2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for Quagga 0.99.1.
5
# Report bugs to <http://bugzilla.quagga.net>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
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 \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
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
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
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
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
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
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; }; }
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).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe 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
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
echo_test_string="`eval $cmd`" &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398
# so uname gets run too.
399
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
ac_default_prefix=/usr/local
407
ac_config_libobj_dir=.
412
SHELL=${CONFIG_SHELL-/bin/sh}
414
# Maximum number of lines to put in a shell here document.
415
# This variable seems obsolete. It should probably be removed, and
416
# only ac_max_sed_lines should be used.
417
: ${ac_max_here_lines=38}
419
# Identity of this package.
420
PACKAGE_NAME='Quagga'
421
PACKAGE_TARNAME='quagga'
422
PACKAGE_VERSION='0.99.1'
423
PACKAGE_STRING='Quagga 0.99.1'
424
PACKAGE_BUGREPORT='http://bugzilla.quagga.net'
426
ac_unique_file="lib/zebra.h"
427
# Factoring default headers for most tests.
428
ac_includes_default="\
431
# include <sys/types.h>
434
# include <sys/stat.h>
445
# if !STDC_HEADERS && HAVE_MEMORY_H
451
# include <strings.h>
454
# include <inttypes.h>
464
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar GAWK exampledir pkgsrcdir pkgsrcrcdir 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 EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED LD NM LN_S ECHO ISIS_TOPOLOGY_INCLUDES ISIS_TOPOLOGY_DIR ISIS_TOPOLOGY_LIB enable_user enable_group enable_vty_group MULTIPATH_NUM PERL LIBPAM RT_METHOD KERNEL_METHOD OTHER_METHOD RTREAD_METHOD IF_METHOD IOCTL_METHOD IF_PROC IPFORWARD LIB_IPV6 ZEBRA BGPD RIPD RIPNGD OSPFD OSPF6D WATCHQUAGGA ISISD VTYSH INCLUDES CURSES OSPFCLIENT OSPFAPI LIB_REGEX SNMP_INCLUDES LIBCAP CONFDATE quagga_statedir LIBOBJS LTLIBOBJS'
467
# Initialize some variables set by options.
469
ac_init_version=false
470
# The variables have the same names as the options, with
471
# dashes changed to underlines.
479
program_transform_name=s,x,x,
487
# Installation directory options.
488
# These are left unexpanded so users can "make install exec_prefix=/foo"
489
# and all the variables that are supposed to be based on exec_prefix
490
# by default will actually change.
491
# Use braces instead of parens because sh, perl, etc. also accept them.
492
bindir='${exec_prefix}/bin'
493
sbindir='${exec_prefix}/sbin'
494
libexecdir='${exec_prefix}/libexec'
495
datadir='${prefix}/share'
496
sysconfdir='${prefix}/etc'
497
sharedstatedir='${prefix}/com'
498
localstatedir='${prefix}/var'
499
libdir='${exec_prefix}/lib'
500
includedir='${prefix}/include'
501
oldincludedir='/usr/include'
502
infodir='${prefix}/info'
503
mandir='${prefix}/man'
508
# If the previous option needs an argument, assign it.
509
if test -n "$ac_prev"; then
510
eval "$ac_prev=\$ac_option"
515
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
# Accept the important Cygnus configure options, so we can diagnose typos.
521
-bindir | --bindir | --bindi | --bind | --bin | --bi)
523
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526
-build | --build | --buil | --bui | --bu)
527
ac_prev=build_alias ;;
528
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
529
build_alias=$ac_optarg ;;
531
-cache-file | --cache-file | --cache-fil | --cache-fi \
532
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533
ac_prev=cache_file ;;
534
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536
cache_file=$ac_optarg ;;
539
cache_file=config.cache ;;
541
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545
datadir=$ac_optarg ;;
547
-disable-* | --disable-*)
548
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549
# Reject names that are not valid shell variable names.
550
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
552
{ (exit 1); exit 1; }; }
553
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554
eval "enable_$ac_feature=no" ;;
556
-enable-* | --enable-*)
557
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558
# Reject names that are not valid shell variable names.
559
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
561
{ (exit 1); exit 1; }; }
562
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567
eval "enable_$ac_feature='$ac_optarg'" ;;
569
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571
| --exec | --exe | --ex)
572
ac_prev=exec_prefix ;;
573
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575
| --exec=* | --exe=* | --ex=*)
576
exec_prefix=$ac_optarg ;;
578
-gas | --gas | --ga | --g)
579
# Obsolete; use --with-gas.
582
-help | --help | --hel | --he | -h)
584
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585
ac_init_help=recursive ;;
586
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587
ac_init_help=short ;;
589
-host | --host | --hos | --ho)
590
ac_prev=host_alias ;;
591
-host=* | --host=* | --hos=* | --ho=*)
592
host_alias=$ac_optarg ;;
594
-includedir | --includedir | --includedi | --included | --include \
595
| --includ | --inclu | --incl | --inc)
596
ac_prev=includedir ;;
597
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598
| --includ=* | --inclu=* | --incl=* | --inc=*)
599
includedir=$ac_optarg ;;
601
-infodir | --infodir | --infodi | --infod | --info | --inf)
603
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604
infodir=$ac_optarg ;;
606
-libdir | --libdir | --libdi | --libd)
608
-libdir=* | --libdir=* | --libdi=* | --libd=*)
611
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612
| --libexe | --libex | --libe)
613
ac_prev=libexecdir ;;
614
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615
| --libexe=* | --libex=* | --libe=*)
616
libexecdir=$ac_optarg ;;
618
-localstatedir | --localstatedir | --localstatedi | --localstated \
619
| --localstate | --localstat | --localsta | --localst \
620
| --locals | --local | --loca | --loc | --lo)
621
ac_prev=localstatedir ;;
622
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
624
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625
localstatedir=$ac_optarg ;;
627
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633
# Obsolete; use --without-fp.
636
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
637
| --no-cr | --no-c | -n)
640
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
641
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646
| --oldin | --oldi | --old | --ol | --o)
647
ac_prev=oldincludedir ;;
648
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651
oldincludedir=$ac_optarg ;;
653
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658
-program-prefix | --program-prefix | --program-prefi | --program-pref \
659
| --program-pre | --program-pr | --program-p)
660
ac_prev=program_prefix ;;
661
-program-prefix=* | --program-prefix=* | --program-prefi=* \
662
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663
program_prefix=$ac_optarg ;;
665
-program-suffix | --program-suffix | --program-suffi | --program-suff \
666
| --program-suf | --program-su | --program-s)
667
ac_prev=program_suffix ;;
668
-program-suffix=* | --program-suffix=* | --program-suffi=* \
669
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670
program_suffix=$ac_optarg ;;
672
-program-transform-name | --program-transform-name \
673
| --program-transform-nam | --program-transform-na \
674
| --program-transform-n | --program-transform- \
675
| --program-transform | --program-transfor \
676
| --program-transfo | --program-transf \
677
| --program-trans | --program-tran \
678
| --progr-tra | --program-tr | --program-t)
679
ac_prev=program_transform_name ;;
680
-program-transform-name=* | --program-transform-name=* \
681
| --program-transform-nam=* | --program-transform-na=* \
682
| --program-transform-n=* | --program-transform-=* \
683
| --program-transform=* | --program-transfor=* \
684
| --program-transfo=* | --program-transf=* \
685
| --program-trans=* | --program-tran=* \
686
| --progr-tra=* | --program-tr=* | --program-t=*)
687
program_transform_name=$ac_optarg ;;
689
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
690
| -silent | --silent | --silen | --sile | --sil)
693
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697
sbindir=$ac_optarg ;;
699
-sharedstatedir | --sharedstatedir | --sharedstatedi \
700
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701
| --sharedst | --shareds | --shared | --share | --shar \
703
ac_prev=sharedstatedir ;;
704
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708
sharedstatedir=$ac_optarg ;;
710
-site | --site | --sit)
712
-site=* | --site=* | --sit=*)
715
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721
| --syscon | --sysco | --sysc | --sys | --sy)
722
ac_prev=sysconfdir ;;
723
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725
sysconfdir=$ac_optarg ;;
727
-target | --target | --targe | --targ | --tar | --ta | --t)
728
ac_prev=target_alias ;;
729
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730
target_alias=$ac_optarg ;;
732
-v | -verbose | --verbose | --verbos | --verbo | --verb)
735
-version | --version | --versio | --versi | --vers | -V)
739
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740
# Reject names that are not valid shell variable names.
741
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742
{ echo "$as_me: error: invalid package name: $ac_package" >&2
743
{ (exit 1); exit 1; }; }
744
ac_package=`echo $ac_package| sed 's/-/_/g'`
746
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749
eval "with_$ac_package='$ac_optarg'" ;;
751
-without-* | --without-*)
752
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753
# Reject names that are not valid shell variable names.
754
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755
{ echo "$as_me: error: invalid package name: $ac_package" >&2
756
{ (exit 1); exit 1; }; }
757
ac_package=`echo $ac_package | sed 's/-/_/g'`
758
eval "with_$ac_package=no" ;;
761
# Obsolete; use --with-x.
764
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765
| --x-incl | --x-inc | --x-in | --x-i)
766
ac_prev=x_includes ;;
767
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769
x_includes=$ac_optarg ;;
771
-x-libraries | --x-libraries | --x-librarie | --x-librari \
772
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773
ac_prev=x_libraries ;;
774
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776
x_libraries=$ac_optarg ;;
778
-*) { echo "$as_me: error: unrecognized option: $ac_option
779
Try \`$0 --help' for more information." >&2
780
{ (exit 1); exit 1; }; }
784
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785
# Reject names that are not valid shell variable names.
786
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788
{ (exit 1); exit 1; }; }
789
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790
eval "$ac_envvar='$ac_optarg'"
794
# FIXME: should be removed in autoconf 3.0.
795
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804
if test -n "$ac_prev"; then
805
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806
{ echo "$as_me: error: missing argument to $ac_option" >&2
807
{ (exit 1); exit 1; }; }
810
# Be sure to have absolute paths.
811
for ac_var in exec_prefix prefix
813
eval ac_val=$`echo $ac_var`
815
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817
{ (exit 1); exit 1; }; };;
821
# Be sure to have absolute paths.
822
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823
localstatedir libdir includedir oldincludedir infodir mandir
825
eval ac_val=$`echo $ac_var`
827
[\\/$]* | ?:[\\/]* ) ;;
828
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829
{ (exit 1); exit 1; }; };;
833
# There might be people who depend on the old broken behavior: `$host'
834
# used to hold the argument of --host etc.
835
# FIXME: To remove some day.
840
# FIXME: To remove some day.
841
if test "x$host_alias" != x; then
842
if test "x$build_alias" = x; then
843
cross_compiling=maybe
844
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845
If a cross compiler is detected then cross compile mode will be used." >&2
846
elif test "x$build_alias" != "x$host_alias"; then
852
test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
test "$silent" = yes && exec 6>/dev/null
857
# Find the source files, if location was not specified.
858
if test -z "$srcdir"; then
859
ac_srcdir_defaulted=yes
860
# Try the directory containing this script, then its parent.
861
ac_confdir=`(dirname "$0") 2>/dev/null ||
862
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863
X"$0" : 'X\(//\)[^/]' \| \
864
X"$0" : 'X\(//\)$' \| \
865
X"$0" : 'X\(/\)' \| \
866
. : '\(.\)' 2>/dev/null ||
868
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
870
/^X\(\/\/\)$/{ s//\1/; q; }
871
/^X\(\/\).*/{ s//\1/; q; }
874
if test ! -r $srcdir/$ac_unique_file; then
878
ac_srcdir_defaulted=no
880
if test ! -r $srcdir/$ac_unique_file; then
881
if test "$ac_srcdir_defaulted" = yes; then
882
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883
{ (exit 1); exit 1; }; }
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886
{ (exit 1); exit 1; }; }
889
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891
{ (exit 1); exit 1; }; }
892
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893
ac_env_build_alias_set=${build_alias+set}
894
ac_env_build_alias_value=$build_alias
895
ac_cv_env_build_alias_set=${build_alias+set}
896
ac_cv_env_build_alias_value=$build_alias
897
ac_env_host_alias_set=${host_alias+set}
898
ac_env_host_alias_value=$host_alias
899
ac_cv_env_host_alias_set=${host_alias+set}
900
ac_cv_env_host_alias_value=$host_alias
901
ac_env_target_alias_set=${target_alias+set}
902
ac_env_target_alias_value=$target_alias
903
ac_cv_env_target_alias_set=${target_alias+set}
904
ac_cv_env_target_alias_value=$target_alias
905
ac_env_GAWK_set=${GAWK+set}
906
ac_env_GAWK_value=$GAWK
907
ac_cv_env_GAWK_set=${GAWK+set}
908
ac_cv_env_GAWK_value=$GAWK
909
ac_env_CC_set=${CC+set}
911
ac_cv_env_CC_set=${CC+set}
912
ac_cv_env_CC_value=$CC
913
ac_env_CFLAGS_set=${CFLAGS+set}
914
ac_env_CFLAGS_value=$CFLAGS
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
916
ac_cv_env_CFLAGS_value=$CFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CPP_set=${CPP+set}
926
ac_env_CPP_value=$CPP
927
ac_cv_env_CPP_set=${CPP+set}
928
ac_cv_env_CPP_value=$CPP
931
# Report the --help message.
933
if test "$ac_init_help" = "long"; then
934
# Omit some internal or obsolete options to make the list less imposing.
935
# This message is too long to be a string in the A/UX 3.1 sh.
937
\`configure' configures Quagga 0.99.1 to adapt to many kinds of systems.
939
Usage: $0 [OPTION]... [VAR=VALUE]...
941
To assign environment variables (e.g., CC, CFLAGS...), specify them as
942
VAR=VALUE. See below for descriptions of some of the useful variables.
944
Defaults for the options are specified in brackets.
947
-h, --help display this help and exit
948
--help=short display options specific to this package
949
--help=recursive display the short help of all the included packages
950
-V, --version display version information and exit
951
-q, --quiet, --silent do not print \`checking...' messages
952
--cache-file=FILE cache test results in FILE [disabled]
953
-C, --config-cache alias for \`--cache-file=config.cache'
954
-n, --no-create do not create output files
955
--srcdir=DIR find the sources in DIR [configure dir or \`..']
960
Installation directories:
961
--prefix=PREFIX install architecture-independent files in PREFIX
963
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966
By default, \`make install' will install all the files in
967
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969
for instance \`--prefix=\$HOME'.
971
For better control, use the options below.
973
Fine tuning of the installation directories:
974
--bindir=DIR user executables [EPREFIX/bin]
975
--sbindir=DIR system admin executables [EPREFIX/sbin]
976
--libexecdir=DIR program executables [EPREFIX/libexec]
977
--datadir=DIR read-only architecture-independent data [PREFIX/share]
978
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
981
--libdir=DIR object code libraries [EPREFIX/lib]
982
--includedir=DIR C header files [PREFIX/include]
983
--oldincludedir=DIR C header files for non-gcc [/usr/include]
984
--infodir=DIR info documentation [PREFIX/info]
985
--mandir=DIR man documentation [PREFIX/man]
991
--program-prefix=PREFIX prepend PREFIX to installed program names
992
--program-suffix=SUFFIX append SUFFIX to installed program names
993
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
996
--build=BUILD configure for building on BUILD [guessed]
997
--host=HOST cross-compile to build programs to run on HOST [BUILD]
998
--target=TARGET configure for building compilers for TARGET [HOST]
1002
if test -n "$ac_init_help"; then
1003
case $ac_init_help in
1004
short | recursive ) echo "Configuration of Quagga 0.99.1:";;
1009
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1011
--enable-exampledir specify alternate directory for examples
1012
--enable-pkgsrcrcdir specify directory for rc.d scripts
1013
--disable-dependency-tracking speeds up one-time build
1014
--enable-dependency-tracking do not reject slow dependency extractors
1015
--enable-shared[=PKGS]
1016
build shared libraries [default=yes]
1017
--enable-static[=PKGS]
1018
build static libraries [default=yes]
1019
--enable-fast-install[=PKGS]
1020
optimize for fast installation [default=yes]
1021
--disable-libtool-lock avoid locking (might break parallel builds)
1022
--enable-vtysh include integrated vty shell for Quagga
1023
--disable-ipv6 turn off IPv6 related features and daemons
1024
--disable-zebra do not build zebra daemon
1025
--disable-bgpd do not build bgpd
1026
--disable-ripd do not build ripd
1027
--disable-ripngd do not build ripngd
1028
--disable-ospfd do not build ospfd
1029
--disable-ospf6d do not build ospf6d
1030
--disable-watchquagga do not build watchquagga
1031
--enable-isisd build isisd
1032
--disable-bgp-announce, turn off BGP route announcement
1033
--enable-netlink force to use Linux netlink interface
1034
--enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
1035
--enable-snmp enable SNMP support
1036
--enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
1037
--enable-opaque-lsa enable OSPF Opaque-LSA with OSPFAPI support (RFC2370)
1038
--disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database,
1039
(this is the default if --enable-opaque-lsa is not set)
1040
--disable-ospfclient do not build OSPFAPI client for OSPFAPI,
1041
(this is the default if --disable-ospfapi is set)
1042
--enable-ospf-te enable Traffic Engineering Extension to OSPF
1043
--enable-multipath=ARG enable multipath function, ARG must be digit
1044
--enable-user=ARG user to run Quagga suite as (default quagga)
1045
--enable-group=ARG group to run Quagga suite as (default quagga)
1046
--enable-vty-group=ARG set vty sockets to have specified group as owner
1047
--enable-configfile-mask=ARG set mask for config files
1048
--enable-logfile-mask=ARG set mask for log files
1049
--disable-rtadv disable IPV6 router advertisement feature
1050
--enable-irdp enable IRDP server support in zebra
1051
--enable-isis-topology enable IS-IS topology generator
1052
--disable-capabilities disable using POSIX capabilities
1053
--enable-gcc-ultra-verbose enable ultra verbose GCC warnings
1054
--enable-gcc-rdynamic enable gcc linking with -rdynamic for better backtraces
1055
--disable-time-check disable slow thread warning messages
1058
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1059
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1060
--with-cflags Set CFLAGS for use in compilation.
1061
--with-pic try to use only PIC/non-PIC objects [default=use
1063
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1064
--with-libpam use libpam for PAM support in vtysh
1066
Some influential environment variables:
1068
CC C compiler command
1069
CFLAGS C compiler flags
1070
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1071
nonstandard directory <lib dir>
1072
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073
headers in a nonstandard directory <include dir>
1076
Use these variables to override the choices made by `configure' or to help
1077
it to find libraries and programs with nonstandard names/locations.
1079
Report bugs to <http://bugzilla.quagga.net>.
1083
if test "$ac_init_help" = "recursive"; then
1084
# If there are subdirs, report their specific --help.
1086
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087
test -d $ac_dir || continue
1090
if test "$ac_dir" != .; then
1091
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092
# A "../" for each directory in $ac_dir_suffix.
1093
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095
ac_dir_suffix= ac_top_builddir=
1099
.) # No --srcdir option. We are building in place.
1101
if test -z "$ac_top_builddir"; then
1104
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106
[\\/]* | ?:[\\/]* ) # Absolute path.
1107
ac_srcdir=$srcdir$ac_dir_suffix;
1108
ac_top_srcdir=$srcdir ;;
1110
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114
# Do not use `cd foo && pwd` to compute absolute paths, because
1115
# the directories may not exist.
1117
.) ac_abs_builddir="$ac_dir";;
1120
.) ac_abs_builddir=`pwd`;;
1121
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1125
case $ac_abs_builddir in
1126
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128
case ${ac_top_builddir}. in
1129
.) ac_abs_top_builddir=$ac_abs_builddir;;
1130
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134
case $ac_abs_builddir in
1135
.) ac_abs_srcdir=$ac_srcdir;;
1138
.) ac_abs_srcdir=$ac_abs_builddir;;
1139
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143
case $ac_abs_builddir in
1144
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146
case $ac_top_srcdir in
1147
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1148
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154
# Check for guested configure; otherwise get Cygnus style configure.
1155
if test -f $ac_srcdir/configure.gnu; then
1157
$SHELL $ac_srcdir/configure.gnu --help=recursive
1158
elif test -f $ac_srcdir/configure; then
1160
$SHELL $ac_srcdir/configure --help=recursive
1161
elif test -f $ac_srcdir/configure.ac ||
1162
test -f $ac_srcdir/configure.in; then
1164
$ac_configure --help
1166
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172
test -n "$ac_init_help" && exit 0
1173
if $ac_init_version; then
1175
Quagga configure 0.99.1
1176
generated by GNU Autoconf 2.59
1178
Copyright (C) 2003 Free Software Foundation, Inc.
1179
This configure script is free software; the Free Software Foundation
1180
gives unlimited permission to copy, distribute and modify it.
1186
This file contains any messages produced by compilers while
1187
running configure, to aid debugging if configure makes a mistake.
1189
It was created by Quagga $as_me 0.99.1, which was
1190
generated by GNU Autoconf 2.59. Invocation command line was
1201
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224
test -z "$as_dir" && as_dir=.
1225
echo "PATH: $as_dir"
1240
# Keep a trace of the command line.
1241
# Strip out --no-create and --no-recursion so they do not pile up.
1242
# Strip out --silent because we don't want to record it for future runs.
1243
# Also quote any args containing shell meta-characters.
1244
# Make two passes to allow for proper duplicate-argument suppression.
1249
ac_must_keep_next=false
1255
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257
| -silent | --silent | --silen | --sile | --sil)
1259
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266
if test $ac_must_keep_next = true; then
1267
ac_must_keep_next=false # Got value, back to normal.
1270
*=* | --config-cache | -C | -disable-* | --disable-* \
1271
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273
| -with-* | --with-* | -without-* | --without-* | --x)
1274
case "$ac_configure_args0 " in
1275
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278
-* ) ac_must_keep_next=true ;;
1281
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282
# Get rid of the leading space.
1288
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
# When interrupted or exit'd, cleanup temporary files, and complete
1292
# config.log. We remove comments because anyway the quotes in there
1293
# would cause problems or look ugly.
1294
# WARNING: Be sure not to use single quotes in there, as some shells,
1295
# such as our DU 5.0 friend, will then `close' the trap.
1296
trap 'exit_status=$?
1297
# Save into config.log some information that might help in debugging.
1302
## ---------------- ##
1303
## Cache variables. ##
1304
## ---------------- ##
1307
# The following way of writing the cache mishandles newlines in values,
1310
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325
## ----------------- ##
1326
## Output variables. ##
1327
## ----------------- ##
1330
for ac_var in $ac_subst_vars
1332
eval ac_val=$`echo $ac_var`
1333
echo "$ac_var='"'"'$ac_val'"'"'"
1337
if test -n "$ac_subst_files"; then
1344
for ac_var in $ac_subst_files
1346
eval ac_val=$`echo $ac_var`
1347
echo "$ac_var='"'"'$ac_val'"'"'"
1352
if test -s confdefs.h; then
1359
sed "/^$/d" confdefs.h | sort
1362
test "$ac_signal" != 0 &&
1363
echo "$as_me: caught signal $ac_signal"
1364
echo "$as_me: exit $exit_status"
1366
rm -f core *.core &&
1367
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370
for ac_signal in 1 2 13 15; do
1371
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376
rm -rf conftest* confdefs.h
1377
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380
# Predefined preprocessor variables.
1382
cat >>confdefs.h <<_ACEOF
1383
#define PACKAGE_NAME "$PACKAGE_NAME"
1387
cat >>confdefs.h <<_ACEOF
1388
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392
cat >>confdefs.h <<_ACEOF
1393
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1397
cat >>confdefs.h <<_ACEOF
1398
#define PACKAGE_STRING "$PACKAGE_STRING"
1402
cat >>confdefs.h <<_ACEOF
1403
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407
# Let the site file select an alternate cache file if it wants to.
1408
# Prefer explicitly selected file to automatically selected ones.
1409
if test -z "$CONFIG_SITE"; then
1410
if test "x$prefix" != xNONE; then
1411
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416
for ac_site_file in $CONFIG_SITE; do
1417
if test -r "$ac_site_file"; then
1418
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419
echo "$as_me: loading site script $ac_site_file" >&6;}
1420
sed 's/^/| /' "$ac_site_file" >&5
1425
if test -r "$cache_file"; then
1426
# Some versions of bash will fail to source /dev/null (special
1427
# files actually), so we avoid doing that.
1428
if test -f "$cache_file"; then
1429
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430
echo "$as_me: loading cache $cache_file" >&6;}
1432
[\\/]* | ?:[\\/]* ) . $cache_file;;
1433
*) . ./$cache_file;;
1437
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438
echo "$as_me: creating cache $cache_file" >&6;}
1442
# Check that the precious variables saved in the cache have kept the same
1444
ac_cache_corrupted=false
1445
for ac_var in `(set) 2>&1 |
1446
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448
eval ac_new_set=\$ac_env_${ac_var}_set
1449
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450
eval ac_new_val="\$ac_env_${ac_var}_value"
1451
case $ac_old_set,$ac_new_set in
1453
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455
ac_cache_corrupted=: ;;
1457
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459
ac_cache_corrupted=: ;;
1462
if test "x$ac_old_val" != "x$ac_new_val"; then
1463
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466
echo "$as_me: former value: $ac_old_val" >&2;}
1467
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468
echo "$as_me: current value: $ac_new_val" >&2;}
1469
ac_cache_corrupted=:
1472
# Pass precious variables to config.status.
1473
if test "$ac_new_set" = set; then
1475
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477
*) ac_arg=$ac_var=$ac_new_val ;;
1479
case " $ac_configure_args " in
1480
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485
if $ac_cache_corrupted; then
1486
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490
{ (exit 1); exit 1; }; }
1494
ac_cpp='$CPP $CPPFLAGS'
1495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529
if test -f $ac_dir/install-sh; then
1531
ac_install_sh="$ac_aux_dir/install-sh -c"
1533
elif test -f $ac_dir/install.sh; then
1535
ac_install_sh="$ac_aux_dir/install.sh -c"
1537
elif test -f $ac_dir/shtool; then
1539
ac_install_sh="$ac_aux_dir/shtool install -c"
1543
if test -z "$ac_aux_dir"; then
1544
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546
{ (exit 1); exit 1; }; }
1548
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
# Make sure we can run config.sub.
1553
$ac_config_sub sun4 >/dev/null 2>&1 ||
1554
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556
{ (exit 1); exit 1; }; }
1558
echo "$as_me:$LINENO: checking build system type" >&5
1559
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560
if test "${ac_cv_build+set}" = set; then
1561
echo $ECHO_N "(cached) $ECHO_C" >&6
1563
ac_cv_build_alias=$build_alias
1564
test -z "$ac_cv_build_alias" &&
1565
ac_cv_build_alias=`$ac_config_guess`
1566
test -z "$ac_cv_build_alias" &&
1567
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569
{ (exit 1); exit 1; }; }
1570
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573
{ (exit 1); exit 1; }; }
1576
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577
echo "${ECHO_T}$ac_cv_build" >&6
1579
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
echo "$as_me:$LINENO: checking host system type" >&5
1585
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586
if test "${ac_cv_host+set}" = set; then
1587
echo $ECHO_N "(cached) $ECHO_C" >&6
1589
ac_cv_host_alias=$host_alias
1590
test -z "$ac_cv_host_alias" &&
1591
ac_cv_host_alias=$ac_cv_build_alias
1592
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595
{ (exit 1); exit 1; }; }
1598
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599
echo "${ECHO_T}$ac_cv_host" >&6
1601
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
echo "$as_me:$LINENO: checking target system type" >&5
1607
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608
if test "${ac_cv_target+set}" = set; then
1609
echo $ECHO_N "(cached) $ECHO_C" >&6
1611
ac_cv_target_alias=$target_alias
1612
test "x$ac_cv_target_alias" = "x" &&
1613
ac_cv_target_alias=$ac_cv_host_alias
1614
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617
{ (exit 1); exit 1; }; }
1620
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621
echo "${ECHO_T}$ac_cv_target" >&6
1622
target=$ac_cv_target
1623
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
# The aliases save the names the user supplied, while $host etc.
1629
# will get canonicalized.
1630
test -n "$target_alias" &&
1631
test "$program_prefix$program_suffix$program_transform_name" = \
1633
program_prefix=${target_alias}-
1635
am__api_version="1.9"
1636
# Find a good install program. We prefer a C program (faster),
1637
# so one script is as good as another. But avoid the broken or
1638
# incompatible versions:
1639
# SysV /etc/install, /usr/sbin/install
1640
# SunOS /usr/etc/install
1641
# IRIX /sbin/install
1643
# AmigaOS /C/install, which installs bootblocks on floppy discs
1644
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647
# OS/2's system install, which has a completely different semantic
1648
# ./install, which can be erroneously created by make from ./install.sh.
1649
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651
if test -z "$INSTALL"; then
1652
if test "${ac_cv_path_install+set}" = set; then
1653
echo $ECHO_N "(cached) $ECHO_C" >&6
1655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659
test -z "$as_dir" && as_dir=.
1660
# Account for people who put trailing slashes in PATH elements.
1662
./ | .// | /cC/* | \
1663
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1667
# OSF1 and SCO ODT 3.0 have their own names for install.
1668
# Don't use installbsd from OSF since it installs stuff as root
1670
for ac_prog in ginstall scoinst install; do
1671
for ac_exec_ext in '' $ac_executable_extensions; do
1672
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673
if test $ac_prog = install &&
1674
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675
# AIX install. It has an incompatible calling convention.
1677
elif test $ac_prog = install &&
1678
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679
# program-specific install script used by HP pwplus--don't use.
1682
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694
if test "${ac_cv_path_install+set}" = set; then
1695
INSTALL=$ac_cv_path_install
1697
# As a last resort, use the slow shell script. We don't cache a
1698
# path for INSTALL within a source directory, because that will
1699
# break other packages using the cache if that directory is
1700
# removed, or if the path is relative.
1701
INSTALL=$ac_install_sh
1704
echo "$as_me:$LINENO: result: $INSTALL" >&5
1705
echo "${ECHO_T}$INSTALL" >&6
1707
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708
# It thinks the first close brace ends the variable substitution.
1709
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1719
echo timestamp > conftest.file
1720
# Do `set' in a subshell so we don't clobber the current shell's
1721
# arguments. Must try -L first in case configure is actually a
1722
# symlink; some systems play weird games with the mod time of symlinks
1723
# (eg FreeBSD returns the mod time of the symlink's containing
1726
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727
if test "$*" = "X"; then
1729
set X `ls -t $srcdir/configure conftest.file`
1732
if test "$*" != "X $srcdir/configure conftest.file" \
1733
&& test "$*" != "X conftest.file $srcdir/configure"; then
1735
# If neither matched, then we have a broken ls. This can happen
1736
# if, for instance, CONFIG_SHELL is bash and it inherits a
1737
# broken ls alias from the environment. This has actually
1738
# happened. Such a system could not be considered "sane".
1739
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1740
alias in your environment" >&5
1741
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1742
alias in your environment" >&2;}
1743
{ (exit 1); exit 1; }; }
1746
test "$2" = conftest.file
1752
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753
Check your system clock" >&5
1754
echo "$as_me: error: newly created file is older than distributed files!
1755
Check your system clock" >&2;}
1756
{ (exit 1); exit 1; }; }
1758
echo "$as_me:$LINENO: result: yes" >&5
1759
echo "${ECHO_T}yes" >&6
1760
test "$program_prefix" != NONE &&
1761
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762
# Use a double $ so make ignores it.
1763
test "$program_suffix" != NONE &&
1764
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765
# Double any \ or $. echo might interpret backslashes.
1766
# By default was `s,x,x', remove it if useless.
1767
cat <<\_ACEOF >conftest.sed
1768
s/[\\$]/&&/g;s/;s,x,x,$//
1770
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1773
# expand $ac_aux_dir to an absolute path
1774
am_aux_dir=`cd $ac_aux_dir && pwd`
1776
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777
# Use eval to expand $SHELL
1778
if eval "$MISSING --run true"; then
1779
am_missing_run="$MISSING --run "
1782
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1786
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787
# We used to keeping the `.' as first argument, in order to
1788
# allow $(mkdir_p) to be used without argument. As in
1789
# $(mkdir_p) $(somedir)
1790
# where $(somedir) is conditionally defined. However this is wrong
1792
# 1. if the package is installed by a user who cannot write `.'
1793
# make install will fail,
1794
# 2. the above comment should most certainly read
1795
# $(mkdir_p) $(DESTDIR)$(somedir)
1796
# so it does not work when $(somedir) is undefined and
1797
# $(DESTDIR) is not.
1798
# To support the latter case, we have to write
1799
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800
# so the `.' trick is pointless.
1801
mkdir_p='mkdir -p --'
1803
# On NextStep and OpenStep, the `mkdir' command does not
1804
# recognize any option. It will interpret all options as
1805
# directories to create, and then abort because `.' already
1807
for d in ./-p ./--version;
1809
test -d $d && rmdir $d
1811
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812
if test -f "$ac_aux_dir/mkinstalldirs"; then
1813
mkdir_p='$(mkinstalldirs)'
1815
mkdir_p='$(install_sh) -d'
1819
for ac_prog in gawk mawk nawk awk
1821
# Extract the first word of "$ac_prog", so it can be a program name with args.
1822
set dummy $ac_prog; ac_word=$2
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
if test "${ac_cv_prog_AWK+set}" = set; then
1826
echo $ECHO_N "(cached) $ECHO_C" >&6
1828
if test -n "$AWK"; then
1829
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835
test -z "$as_dir" && as_dir=.
1836
for ac_exec_ext in '' $ac_executable_extensions; do
1837
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
ac_cv_prog_AWK="$ac_prog"
1839
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848
if test -n "$AWK"; then
1849
echo "$as_me:$LINENO: result: $AWK" >&5
1850
echo "${ECHO_T}$AWK" >&6
1852
echo "$as_me:$LINENO: result: no" >&5
1853
echo "${ECHO_T}no" >&6
1856
test -n "$AWK" && break
1859
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863
echo $ECHO_N "(cached) $ECHO_C" >&6
1865
cat >conftest.make <<\_ACEOF
1867
@echo 'ac_maketemp="$(MAKE)"'
1869
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871
if test -n "$ac_maketemp"; then
1872
eval ac_cv_prog_make_${ac_make}_set=yes
1874
eval ac_cv_prog_make_${ac_make}_set=no
1878
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879
echo "$as_me:$LINENO: result: yes" >&5
1880
echo "${ECHO_T}yes" >&6
1883
echo "$as_me:$LINENO: result: no" >&5
1884
echo "${ECHO_T}no" >&6
1885
SET_MAKE="MAKE=${MAKE-make}"
1888
rm -rf .tst 2>/dev/null
1889
mkdir .tst 2>/dev/null
1890
if test -d .tst; then
1895
rmdir .tst 2>/dev/null
1897
# test to see if srcdir already configured
1898
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899
test -f $srcdir/config.status; then
1900
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902
{ (exit 1); exit 1; }; }
1905
# test whether we have cygpath
1906
if test -z "$CYGPATH_W"; then
1907
if (cygpath --version) >/dev/null 2>/dev/null; then
1908
CYGPATH_W='cygpath -w'
1915
# Define the identity of the package.
1920
cat >>confdefs.h <<_ACEOF
1921
#define PACKAGE "$PACKAGE"
1925
cat >>confdefs.h <<_ACEOF
1926
#define VERSION "$VERSION"
1929
# Some tools Automake needs.
1931
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1934
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1937
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1940
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1943
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1945
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1947
# Installed binaries are usually stripped using `strip' when the user
1948
# run `make install-strip'. However `strip' might not be the right
1949
# tool to use in cross-compilation environments, therefore Automake
1950
# will honor the `STRIP' environment variable to overrule this program.
1951
if test "$cross_compiling" != no; then
1952
if test -n "$ac_tool_prefix"; then
1953
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954
set dummy ${ac_tool_prefix}strip; ac_word=$2
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
if test "${ac_cv_prog_STRIP+set}" = set; then
1958
echo $ECHO_N "(cached) $ECHO_C" >&6
1960
if test -n "$STRIP"; then
1961
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967
test -z "$as_dir" && as_dir=.
1968
for ac_exec_ext in '' $ac_executable_extensions; do
1969
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979
STRIP=$ac_cv_prog_STRIP
1980
if test -n "$STRIP"; then
1981
echo "$as_me:$LINENO: result: $STRIP" >&5
1982
echo "${ECHO_T}$STRIP" >&6
1984
echo "$as_me:$LINENO: result: no" >&5
1985
echo "${ECHO_T}no" >&6
1989
if test -z "$ac_cv_prog_STRIP"; then
1991
# Extract the first word of "strip", so it can be a program name with args.
1992
set dummy strip; ac_word=$2
1993
echo "$as_me:$LINENO: checking for $ac_word" >&5
1994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996
echo $ECHO_N "(cached) $ECHO_C" >&6
1998
if test -n "$ac_ct_STRIP"; then
1999
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005
test -z "$as_dir" && as_dir=.
2006
for ac_exec_ext in '' $ac_executable_extensions; do
2007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008
ac_cv_prog_ac_ct_STRIP="strip"
2009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2018
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019
if test -n "$ac_ct_STRIP"; then
2020
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021
echo "${ECHO_T}$ac_ct_STRIP" >&6
2023
echo "$as_me:$LINENO: result: no" >&5
2024
echo "${ECHO_T}no" >&6
2029
STRIP="$ac_cv_prog_STRIP"
2033
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2035
# We need awk for the "check" target. The system "awk" is bad on
2037
# Always define AMTAR for backward compatibility.
2039
AMTAR=${AMTAR-"${am_missing_run}tar"}
2041
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2047
ac_config_headers="$ac_config_headers config.h"
2050
# Extract the first word of "gawk", so it can be a program name with args.
2051
set dummy gawk; ac_word=$2
2052
echo "$as_me:$LINENO: checking for $ac_word" >&5
2053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054
if test "${ac_cv_prog_GAWK+set}" = set; then
2055
echo $ECHO_N "(cached) $ECHO_C" >&6
2057
if test -n "$GAWK"; then
2058
ac_cv_prog_GAWK="$GAWK" # Let the user override the test.
2060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064
test -z "$as_dir" && as_dir=.
2065
for ac_exec_ext in '' $ac_executable_extensions; do
2066
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067
ac_cv_prog_GAWK="gawk"
2068
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074
test -z "$ac_cv_prog_GAWK" && ac_cv_prog_GAWK="/bin/false"
2077
GAWK=$ac_cv_prog_GAWK
2078
if test -n "$GAWK"; then
2079
echo "$as_me:$LINENO: result: $GAWK" >&5
2080
echo "${ECHO_T}$GAWK" >&6
2082
echo "$as_me:$LINENO: result: no" >&5
2083
echo "${ECHO_T}no" >&6
2088
exampledir=${sysconfdir}
2089
# Check whether --enable-exampledir or --disable-exampledir was given.
2090
if test "${enable_exampledir+set}" = set; then
2091
enableval="$enable_exampledir"
2092
exampledir="$enableval"
2098
# Check whether --enable-pkgsrcrcdir or --disable-pkgsrcrcdir was given.
2099
if test "${enable_pkgsrcrcdir+set}" = set; then
2100
enableval="$enable_pkgsrcrcdir"
2101
pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc"
2107
# Check whether --with-cflags or --without-cflags was given.
2108
if test "${with_cflags+set}" = set; then
2109
withval="$with_cflags"
2112
if test "x$with_cflags" != "x" ; then
2113
CFLAGS="$with_cflags" ; cflags_specified=yes ;
2114
elif test -n "$CFLAGS" ; then
2115
cflags_specified=yes ;
2119
ac_cpp='$CPP $CPPFLAGS'
2120
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
if test -n "$ac_tool_prefix"; then
2124
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2125
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2126
echo "$as_me:$LINENO: checking for $ac_word" >&5
2127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128
if test "${ac_cv_prog_CC+set}" = set; then
2129
echo $ECHO_N "(cached) $ECHO_C" >&6
2131
if test -n "$CC"; then
2132
ac_cv_prog_CC="$CC" # Let the user override the test.
2134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138
test -z "$as_dir" && as_dir=.
2139
for ac_exec_ext in '' $ac_executable_extensions; do
2140
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2142
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151
if test -n "$CC"; then
2152
echo "$as_me:$LINENO: result: $CC" >&5
2153
echo "${ECHO_T}$CC" >&6
2155
echo "$as_me:$LINENO: result: no" >&5
2156
echo "${ECHO_T}no" >&6
2160
if test -z "$ac_cv_prog_CC"; then
2162
# Extract the first word of "gcc", so it can be a program name with args.
2163
set dummy gcc; ac_word=$2
2164
echo "$as_me:$LINENO: checking for $ac_word" >&5
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167
echo $ECHO_N "(cached) $ECHO_C" >&6
2169
if test -n "$ac_ct_CC"; then
2170
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176
test -z "$as_dir" && as_dir=.
2177
for ac_exec_ext in '' $ac_executable_extensions; do
2178
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2179
ac_cv_prog_ac_ct_CC="gcc"
2180
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2189
if test -n "$ac_ct_CC"; then
2190
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2191
echo "${ECHO_T}$ac_ct_CC" >&6
2193
echo "$as_me:$LINENO: result: no" >&5
2194
echo "${ECHO_T}no" >&6
2202
if test -z "$CC"; then
2203
if test -n "$ac_tool_prefix"; then
2204
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2205
set dummy ${ac_tool_prefix}cc; ac_word=$2
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208
if test "${ac_cv_prog_CC+set}" = set; then
2209
echo $ECHO_N "(cached) $ECHO_C" >&6
2211
if test -n "$CC"; then
2212
ac_cv_prog_CC="$CC" # Let the user override the test.
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
for ac_exec_ext in '' $ac_executable_extensions; do
2220
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221
ac_cv_prog_CC="${ac_tool_prefix}cc"
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231
if test -n "$CC"; then
2232
echo "$as_me:$LINENO: result: $CC" >&5
2233
echo "${ECHO_T}$CC" >&6
2235
echo "$as_me:$LINENO: result: no" >&5
2236
echo "${ECHO_T}no" >&6
2240
if test -z "$ac_cv_prog_CC"; then
2242
# Extract the first word of "cc", so it can be a program name with args.
2243
set dummy cc; ac_word=$2
2244
echo "$as_me:$LINENO: checking for $ac_word" >&5
2245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247
echo $ECHO_N "(cached) $ECHO_C" >&6
2249
if test -n "$ac_ct_CC"; then
2250
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256
test -z "$as_dir" && as_dir=.
2257
for ac_exec_ext in '' $ac_executable_extensions; do
2258
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259
ac_cv_prog_ac_ct_CC="cc"
2260
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269
if test -n "$ac_ct_CC"; then
2270
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271
echo "${ECHO_T}$ac_ct_CC" >&6
2273
echo "$as_me:$LINENO: result: no" >&5
2274
echo "${ECHO_T}no" >&6
2283
if test -z "$CC"; then
2284
# Extract the first word of "cc", so it can be a program name with args.
2285
set dummy cc; ac_word=$2
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288
if test "${ac_cv_prog_CC+set}" = set; then
2289
echo $ECHO_N "(cached) $ECHO_C" >&6
2291
if test -n "$CC"; then
2292
ac_cv_prog_CC="$CC" # Let the user override the test.
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299
test -z "$as_dir" && as_dir=.
2300
for ac_exec_ext in '' $ac_executable_extensions; do
2301
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2303
ac_prog_rejected=yes
2307
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313
if test $ac_prog_rejected = yes; then
2314
# We found a bogon in the path, so make sure we never use it.
2315
set dummy $ac_cv_prog_CC
2317
if test $# != 0; then
2318
# We chose a different compiler from the bogus one.
2319
# However, it has the same basename, so the bogon will be chosen
2320
# first if we set CC to just the basename; use the full file name.
2322
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2328
if test -n "$CC"; then
2329
echo "$as_me:$LINENO: result: $CC" >&5
2330
echo "${ECHO_T}$CC" >&6
2332
echo "$as_me:$LINENO: result: no" >&5
2333
echo "${ECHO_T}no" >&6
2337
if test -z "$CC"; then
2338
if test -n "$ac_tool_prefix"; then
2341
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2343
echo "$as_me:$LINENO: checking for $ac_word" >&5
2344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345
if test "${ac_cv_prog_CC+set}" = set; then
2346
echo $ECHO_N "(cached) $ECHO_C" >&6
2348
if test -n "$CC"; then
2349
ac_cv_prog_CC="$CC" # Let the user override the test.
2351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355
test -z "$as_dir" && as_dir=.
2356
for ac_exec_ext in '' $ac_executable_extensions; do
2357
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2359
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368
if test -n "$CC"; then
2369
echo "$as_me:$LINENO: result: $CC" >&5
2370
echo "${ECHO_T}$CC" >&6
2372
echo "$as_me:$LINENO: result: no" >&5
2373
echo "${ECHO_T}no" >&6
2376
test -n "$CC" && break
2379
if test -z "$CC"; then
2383
# Extract the first word of "$ac_prog", so it can be a program name with args.
2384
set dummy $ac_prog; ac_word=$2
2385
echo "$as_me:$LINENO: checking for $ac_word" >&5
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388
echo $ECHO_N "(cached) $ECHO_C" >&6
2390
if test -n "$ac_ct_CC"; then
2391
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397
test -z "$as_dir" && as_dir=.
2398
for ac_exec_ext in '' $ac_executable_extensions; do
2399
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400
ac_cv_prog_ac_ct_CC="$ac_prog"
2401
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410
if test -n "$ac_ct_CC"; then
2411
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412
echo "${ECHO_T}$ac_ct_CC" >&6
2414
echo "$as_me:$LINENO: result: no" >&5
2415
echo "${ECHO_T}no" >&6
2418
test -n "$ac_ct_CC" && break
2427
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2428
See \`config.log' for more details." >&5
2429
echo "$as_me: error: no acceptable C compiler found in \$PATH
2430
See \`config.log' for more details." >&2;}
2431
{ (exit 1); exit 1; }; }
2433
# Provide some information about the compiler.
2434
echo "$as_me:$LINENO:" \
2435
"checking for C compiler version" >&5
2436
ac_compiler=`set X $ac_compile; echo $2`
2437
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438
(eval $ac_compiler --version </dev/null >&5) 2>&5
2440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441
(exit $ac_status); }
2442
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443
(eval $ac_compiler -v </dev/null >&5) 2>&5
2445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
(exit $ac_status); }
2447
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448
(eval $ac_compiler -V </dev/null >&5) 2>&5
2450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451
(exit $ac_status); }
2453
cat >conftest.$ac_ext <<_ACEOF
2456
cat confdefs.h >>conftest.$ac_ext
2457
cat >>conftest.$ac_ext <<_ACEOF
2458
/* end confdefs.h. */
2468
ac_clean_files_save=$ac_clean_files
2469
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2470
# Try to create an executable without -o first, disregard a.out.
2471
# It will help us diagnose broken compilers, and finding out an intuition
2473
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2474
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2475
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2476
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2477
(eval $ac_link_default) 2>&5
2479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480
(exit $ac_status); }; then
2481
# Find the output, starting from the most likely. This scheme is
2482
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2485
# Be careful to initialize this variable, since it used to be cached.
2486
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2488
# b.out is created by i960 compilers.
2489
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2491
test -f "$ac_file" || continue
2493
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2496
# This is the source file.
2499
# We found the default executable, but exeext='' is most
2503
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504
# FIXME: I believe we export ac_cv_exeext for Libtool,
2505
# but it would be cool to find out if it's true. Does anybody
2506
# maintain Libtool? --akim.
2514
echo "$as_me: failed program was:" >&5
2515
sed 's/^/| /' conftest.$ac_ext >&5
2517
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2518
See \`config.log' for more details." >&5
2519
echo "$as_me: error: C compiler cannot create executables
2520
See \`config.log' for more details." >&2;}
2521
{ (exit 77); exit 77; }; }
2524
ac_exeext=$ac_cv_exeext
2525
echo "$as_me:$LINENO: result: $ac_file" >&5
2526
echo "${ECHO_T}$ac_file" >&6
2528
# Check the compiler produces executables we can run. If not, either
2529
# the compiler is broken, or we cross compile.
2530
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2531
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2532
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2533
# If not cross compiling, check that we can run a simple program.
2534
if test "$cross_compiling" != yes; then
2535
if { ac_try='./$ac_file'
2536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
(exit $ac_status); }; }; then
2543
if test "$cross_compiling" = maybe; then
2546
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2547
If you meant to cross compile, use \`--host'.
2548
See \`config.log' for more details." >&5
2549
echo "$as_me: error: cannot run C compiled programs.
2550
If you meant to cross compile, use \`--host'.
2551
See \`config.log' for more details." >&2;}
2552
{ (exit 1); exit 1; }; }
2556
echo "$as_me:$LINENO: result: yes" >&5
2557
echo "${ECHO_T}yes" >&6
2559
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2560
ac_clean_files=$ac_clean_files_save
2561
# Check the compiler produces executables we can run. If not, either
2562
# the compiler is broken, or we cross compile.
2563
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2564
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2565
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2566
echo "${ECHO_T}$cross_compiling" >&6
2568
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2569
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571
(eval $ac_link) 2>&5
2573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
(exit $ac_status); }; then
2575
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2576
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2577
# work properly (i.e., refer to `conftest.exe'), while it won't with
2579
for ac_file in conftest.exe conftest conftest.*; do
2580
test -f "$ac_file" || continue
2582
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2583
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2591
See \`config.log' for more details." >&5
2592
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2593
See \`config.log' for more details." >&2;}
2594
{ (exit 1); exit 1; }; }
2597
rm -f conftest$ac_cv_exeext
2598
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2599
echo "${ECHO_T}$ac_cv_exeext" >&6
2601
rm -f conftest.$ac_ext
2602
EXEEXT=$ac_cv_exeext
2604
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2605
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2606
if test "${ac_cv_objext+set}" = set; then
2607
echo $ECHO_N "(cached) $ECHO_C" >&6
2609
cat >conftest.$ac_ext <<_ACEOF
2612
cat confdefs.h >>conftest.$ac_ext
2613
cat >>conftest.$ac_ext <<_ACEOF
2614
/* end confdefs.h. */
2624
rm -f conftest.o conftest.obj
2625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626
(eval $ac_compile) 2>&5
2628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
(exit $ac_status); }; then
2630
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2632
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2633
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2638
echo "$as_me: failed program was:" >&5
2639
sed 's/^/| /' conftest.$ac_ext >&5
2641
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2642
See \`config.log' for more details." >&5
2643
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2644
See \`config.log' for more details." >&2;}
2645
{ (exit 1); exit 1; }; }
2648
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2651
echo "${ECHO_T}$ac_cv_objext" >&6
2652
OBJEXT=$ac_cv_objext
2654
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2655
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2656
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2657
echo $ECHO_N "(cached) $ECHO_C" >&6
2659
cat >conftest.$ac_ext <<_ACEOF
2662
cat confdefs.h >>conftest.$ac_ext
2663
cat >>conftest.$ac_ext <<_ACEOF
2664
/* end confdefs.h. */
2677
rm -f conftest.$ac_objext
2678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679
(eval $ac_compile) 2>conftest.er1
2681
grep -v '^ *+' conftest.er1 >conftest.err
2683
cat conftest.err >&5
2684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685
(exit $ac_status); } &&
2686
{ ac_try='test -z "$ac_c_werror_flag"
2687
|| test ! -s conftest.err'
2688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
(exit $ac_status); }; } &&
2693
{ ac_try='test -s conftest.$ac_objext'
2694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698
(exit $ac_status); }; }; then
2701
echo "$as_me: failed program was:" >&5
2702
sed 's/^/| /' conftest.$ac_ext >&5
2706
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2710
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2711
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2712
GCC=`test $ac_compiler_gnu = yes && echo yes`
2713
ac_test_CFLAGS=${CFLAGS+set}
2714
ac_save_CFLAGS=$CFLAGS
2716
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2717
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2718
if test "${ac_cv_prog_cc_g+set}" = set; then
2719
echo $ECHO_N "(cached) $ECHO_C" >&6
2721
cat >conftest.$ac_ext <<_ACEOF
2724
cat confdefs.h >>conftest.$ac_ext
2725
cat >>conftest.$ac_ext <<_ACEOF
2726
/* end confdefs.h. */
2736
rm -f conftest.$ac_objext
2737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738
(eval $ac_compile) 2>conftest.er1
2740
grep -v '^ *+' conftest.er1 >conftest.err
2742
cat conftest.err >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); } &&
2745
{ ac_try='test -z "$ac_c_werror_flag"
2746
|| test ! -s conftest.err'
2747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751
(exit $ac_status); }; } &&
2752
{ ac_try='test -s conftest.$ac_objext'
2753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
(exit $ac_status); }; }; then
2760
echo "$as_me: failed program was:" >&5
2761
sed 's/^/| /' conftest.$ac_ext >&5
2765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2768
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2769
if test "$ac_test_CFLAGS" = set; then
2770
CFLAGS=$ac_save_CFLAGS
2771
elif test $ac_cv_prog_cc_g = yes; then
2772
if test "$GCC" = yes; then
2778
if test "$GCC" = yes; then
2784
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2785
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2786
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2787
echo $ECHO_N "(cached) $ECHO_C" >&6
2789
ac_cv_prog_cc_stdc=no
2791
cat >conftest.$ac_ext <<_ACEOF
2794
cat confdefs.h >>conftest.$ac_ext
2795
cat >>conftest.$ac_ext <<_ACEOF
2796
/* end confdefs.h. */
2799
#include <sys/types.h>
2800
#include <sys/stat.h>
2801
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2802
struct buf { int x; };
2803
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2804
static char *e (p, i)
2810
static char *f (char * (*g) (char **, int), char **p, ...)
2815
s = g (p, va_arg (v,int));
2820
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2821
function prototypes and stuff, but not '\xHH' hex character constants.
2822
These don't provoke an error unfortunately, instead are silently treated
2823
as 'x'. The following induces an error, until -std1 is added to get
2824
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2825
array size at least. It's necessary to write '\x00'==0 to get something
2826
that's true only with -std1. */
2827
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2829
int test (int i, double x);
2830
struct s1 {int (*f) (int a);};
2831
struct s2 {int (*f) (double a);};
2832
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2838
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2843
# Don't try gcc -ansi; that turns off useful extensions and
2844
# breaks some systems' header files.
2845
# AIX -qlanglvl=ansi
2846
# Ultrix and OSF/1 -std1
2847
# HP-UX 10.20 and later -Ae
2848
# HP-UX older versions -Aa -D_HPUX_SOURCE
2849
# SVR4 -Xc -D__EXTENSIONS__
2850
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2852
CC="$ac_save_CC $ac_arg"
2853
rm -f conftest.$ac_objext
2854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855
(eval $ac_compile) 2>conftest.er1
2857
grep -v '^ *+' conftest.er1 >conftest.err
2859
cat conftest.err >&5
2860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861
(exit $ac_status); } &&
2862
{ ac_try='test -z "$ac_c_werror_flag"
2863
|| test ! -s conftest.err'
2864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868
(exit $ac_status); }; } &&
2869
{ ac_try='test -s conftest.$ac_objext'
2870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874
(exit $ac_status); }; }; then
2875
ac_cv_prog_cc_stdc=$ac_arg
2878
echo "$as_me: failed program was:" >&5
2879
sed 's/^/| /' conftest.$ac_ext >&5
2882
rm -f conftest.err conftest.$ac_objext
2884
rm -f conftest.$ac_ext conftest.$ac_objext
2889
case "x$ac_cv_prog_cc_stdc" in
2891
echo "$as_me:$LINENO: result: none needed" >&5
2892
echo "${ECHO_T}none needed" >&6 ;;
2894
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2895
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2896
CC="$CC $ac_cv_prog_cc_stdc" ;;
2899
# Some people use a C++ compiler to compile C. Since we use `exit',
2900
# in C++ we need to declare it. In case someone uses the same compiler
2901
# for both compiling C and C++ we need to have the C++ compiler decide
2902
# the declaration of exit, since it's the most demanding environment.
2903
cat >conftest.$ac_ext <<_ACEOF
2908
rm -f conftest.$ac_objext
2909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910
(eval $ac_compile) 2>conftest.er1
2912
grep -v '^ *+' conftest.er1 >conftest.err
2914
cat conftest.err >&5
2915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916
(exit $ac_status); } &&
2917
{ ac_try='test -z "$ac_c_werror_flag"
2918
|| test ! -s conftest.err'
2919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923
(exit $ac_status); }; } &&
2924
{ ac_try='test -s conftest.$ac_objext'
2925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929
(exit $ac_status); }; }; then
2930
for ac_declaration in \
2932
'extern "C" void std::exit (int) throw (); using std::exit;' \
2933
'extern "C" void std::exit (int); using std::exit;' \
2934
'extern "C" void exit (int) throw ();' \
2935
'extern "C" void exit (int);' \
2938
cat >conftest.$ac_ext <<_ACEOF
2941
cat confdefs.h >>conftest.$ac_ext
2942
cat >>conftest.$ac_ext <<_ACEOF
2943
/* end confdefs.h. */
2954
rm -f conftest.$ac_objext
2955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956
(eval $ac_compile) 2>conftest.er1
2958
grep -v '^ *+' conftest.er1 >conftest.err
2960
cat conftest.err >&5
2961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962
(exit $ac_status); } &&
2963
{ ac_try='test -z "$ac_c_werror_flag"
2964
|| test ! -s conftest.err'
2965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969
(exit $ac_status); }; } &&
2970
{ ac_try='test -s conftest.$ac_objext'
2971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975
(exit $ac_status); }; }; then
2978
echo "$as_me: failed program was:" >&5
2979
sed 's/^/| /' conftest.$ac_ext >&5
2983
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984
cat >conftest.$ac_ext <<_ACEOF
2987
cat confdefs.h >>conftest.$ac_ext
2988
cat >>conftest.$ac_ext <<_ACEOF
2989
/* end confdefs.h. */
2999
rm -f conftest.$ac_objext
3000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001
(eval $ac_compile) 2>conftest.er1
3003
grep -v '^ *+' conftest.er1 >conftest.err
3005
cat conftest.err >&5
3006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007
(exit $ac_status); } &&
3008
{ ac_try='test -z "$ac_c_werror_flag"
3009
|| test ! -s conftest.err'
3010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); }; } &&
3015
{ ac_try='test -s conftest.$ac_objext'
3016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; }; then
3023
echo "$as_me: failed program was:" >&5
3024
sed 's/^/| /' conftest.$ac_ext >&5
3027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030
if test -n "$ac_declaration"; then
3031
echo '#ifdef __cplusplus' >>confdefs.h
3032
echo $ac_declaration >>confdefs.h
3033
echo '#endif' >>confdefs.h
3037
echo "$as_me: failed program was:" >&5
3038
sed 's/^/| /' conftest.$ac_ext >&5
3041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043
ac_cpp='$CPP $CPPFLAGS'
3044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
DEPDIR="${am__leading_dot}deps"
3049
ac_config_commands="$ac_config_commands depfiles"
3052
am_make=${MAKE-make}
3053
cat > confinc << 'END'
3058
# If we don't find an include directive, just comment out the code.
3059
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3060
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3064
# First try GNU make style include.
3065
echo "include confinc" > confmf
3066
# We grep out `Entering directory' and `Leaving directory'
3067
# messages which can occur if `w' ends up in MAKEFLAGS.
3068
# In particular we don't look at `^make:' because GNU make might
3069
# be invoked under some other name (usually "gmake"), in which
3070
# case it prints its new name instead of `make'.
3071
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3076
# Now try BSD make style include.
3077
if test "$am__include" = "#"; then
3078
echo '.include "confinc"' > confmf
3079
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3080
am__include=.include
3087
echo "$as_me:$LINENO: result: $_am_result" >&5
3088
echo "${ECHO_T}$_am_result" >&6
3089
rm -f confinc confmf
3091
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3092
if test "${enable_dependency_tracking+set}" = set; then
3093
enableval="$enable_dependency_tracking"
3096
if test "x$enable_dependency_tracking" != xno; then
3097
am_depcomp="$ac_aux_dir/depcomp"
3102
if test "x$enable_dependency_tracking" != xno; then
3113
depcc="$CC" am_compiler_list=
3115
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3116
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3117
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3118
echo $ECHO_N "(cached) $ECHO_C" >&6
3120
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3121
# We make a subdir and do the tests there. Otherwise we can end up
3122
# making bogus files that we don't know about and never remove. For
3123
# instance it was reported that on HP-UX the gcc test will end up
3124
# making a dummy file named `D' -- because `-MD' means `put the output
3127
# Copy depcomp to subdir because otherwise we won't find it if we're
3128
# using a relative directory.
3129
cp "$am_depcomp" conftest.dir
3131
# We will build objects and dependencies in a subdirectory because
3132
# it helps to detect inapplicable dependency modes. For instance
3133
# both Tru64's cc and ICC support -MD to output dependencies as a
3134
# side effect of compilation, but ICC will put the dependencies in
3135
# the current directory while Tru64 will put them in the object
3139
am_cv_CC_dependencies_compiler_type=none
3140
if test "$am_compiler_list" = ""; then
3141
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3143
for depmode in $am_compiler_list; do
3144
# Setup a source with many dependencies, because some compilers
3145
# like to wrap large dependency lists on column 80 (with \), and
3146
# we should not choose a depcomp mode which is confused by this.
3148
# We need to recreate these files for each test, as the compiler may
3149
# overwrite some of them when testing with obscure command lines.
3150
# This happens at least with the AIX C compiler.
3152
for i in 1 2 3 4 5 6; do
3153
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3154
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3155
# Solaris 8's {/usr,}/bin/sh.
3156
touch sub/conftst$i.h
3158
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3162
# after this tag, mechanisms are not by side-effect, so they'll
3163
# only be used when explicitly requested
3164
if test "x$enable_dependency_tracking" = xyes; then
3172
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3173
# mode. It turns out that the SunPro C++ compiler does not properly
3174
# handle `-M -o', and we need to detect this.
3175
if depmode=$depmode \
3176
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3177
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3178
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3179
>/dev/null 2>conftest.err &&
3180
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3181
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3182
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3183
# icc doesn't choke on unknown options, it will just issue warnings
3184
# or remarks (even with -Werror). So we grep stderr for any message
3185
# that says an option was ignored or not supported.
3186
# When given -MP, icc 7.0 and 7.1 complain thusly:
3187
# icc: Command line warning: ignoring option '-M'; no argument required
3188
# The diagnosis changed in icc 8.0:
3189
# icc: Command line remark: option '-MP' not supported
3190
if (grep 'ignoring option' conftest.err ||
3191
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3192
am_cv_CC_dependencies_compiler_type=$depmode
3201
am_cv_CC_dependencies_compiler_type=none
3205
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3206
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3207
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3212
test "x$enable_dependency_tracking" != xno \
3213
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3215
am__fastdepCC_FALSE='#'
3217
am__fastdepCC_TRUE='#'
3218
am__fastdepCC_FALSE=
3223
ac_cpp='$CPP $CPPFLAGS'
3224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3229
# On Suns, sometimes $CPP names a directory.
3230
if test -n "$CPP" && test -d "$CPP"; then
3233
if test -z "$CPP"; then
3234
if test "${ac_cv_prog_CPP+set}" = set; then
3235
echo $ECHO_N "(cached) $ECHO_C" >&6
3237
# Double quotes because CPP needs to be expanded
3238
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241
for ac_c_preproc_warn_flag in '' yes
3243
# Use a header file that comes with gcc, so configuring glibc
3244
# with a fresh cross-compiler works.
3245
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246
# <limits.h> exists even on freestanding compilers.
3247
# On the NeXT, cc -E runs the code through the compiler's parser,
3248
# not just through cpp. "Syntax error" is here to catch this case.
3249
cat >conftest.$ac_ext <<_ACEOF
3252
cat confdefs.h >>conftest.$ac_ext
3253
cat >>conftest.$ac_ext <<_ACEOF
3254
/* end confdefs.h. */
3256
# include <limits.h>
3258
# include <assert.h>
3262
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265
grep -v '^ *+' conftest.er1 >conftest.err
3267
cat conftest.err >&5
3268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269
(exit $ac_status); } >/dev/null; then
3270
if test -s conftest.err; then
3271
ac_cpp_err=$ac_c_preproc_warn_flag
3272
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3279
if test -z "$ac_cpp_err"; then
3282
echo "$as_me: failed program was:" >&5
3283
sed 's/^/| /' conftest.$ac_ext >&5
3285
# Broken: fails on valid input.
3288
rm -f conftest.err conftest.$ac_ext
3290
# OK, works on sane cases. Now check whether non-existent headers
3291
# can be detected and how.
3292
cat >conftest.$ac_ext <<_ACEOF
3295
cat confdefs.h >>conftest.$ac_ext
3296
cat >>conftest.$ac_ext <<_ACEOF
3297
/* end confdefs.h. */
3298
#include <ac_nonexistent.h>
3300
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303
grep -v '^ *+' conftest.er1 >conftest.err
3305
cat conftest.err >&5
3306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307
(exit $ac_status); } >/dev/null; then
3308
if test -s conftest.err; then
3309
ac_cpp_err=$ac_c_preproc_warn_flag
3310
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3317
if test -z "$ac_cpp_err"; then
3318
# Broken: success on invalid input.
3321
echo "$as_me: failed program was:" >&5
3322
sed 's/^/| /' conftest.$ac_ext >&5
3324
# Passes both tests.
3328
rm -f conftest.err conftest.$ac_ext
3331
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332
rm -f conftest.err conftest.$ac_ext
3333
if $ac_preproc_ok; then
3345
echo "$as_me:$LINENO: result: $CPP" >&5
3346
echo "${ECHO_T}$CPP" >&6
3348
for ac_c_preproc_warn_flag in '' yes
3350
# Use a header file that comes with gcc, so configuring glibc
3351
# with a fresh cross-compiler works.
3352
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353
# <limits.h> exists even on freestanding compilers.
3354
# On the NeXT, cc -E runs the code through the compiler's parser,
3355
# not just through cpp. "Syntax error" is here to catch this case.
3356
cat >conftest.$ac_ext <<_ACEOF
3359
cat confdefs.h >>conftest.$ac_ext
3360
cat >>conftest.$ac_ext <<_ACEOF
3361
/* end confdefs.h. */
3363
# include <limits.h>
3365
# include <assert.h>
3369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372
grep -v '^ *+' conftest.er1 >conftest.err
3374
cat conftest.err >&5
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); } >/dev/null; then
3377
if test -s conftest.err; then
3378
ac_cpp_err=$ac_c_preproc_warn_flag
3379
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386
if test -z "$ac_cpp_err"; then
3389
echo "$as_me: failed program was:" >&5
3390
sed 's/^/| /' conftest.$ac_ext >&5
3392
# Broken: fails on valid input.
3395
rm -f conftest.err conftest.$ac_ext
3397
# OK, works on sane cases. Now check whether non-existent headers
3398
# can be detected and how.
3399
cat >conftest.$ac_ext <<_ACEOF
3402
cat confdefs.h >>conftest.$ac_ext
3403
cat >>conftest.$ac_ext <<_ACEOF
3404
/* end confdefs.h. */
3405
#include <ac_nonexistent.h>
3407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410
grep -v '^ *+' conftest.er1 >conftest.err
3412
cat conftest.err >&5
3413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
(exit $ac_status); } >/dev/null; then
3415
if test -s conftest.err; then
3416
ac_cpp_err=$ac_c_preproc_warn_flag
3417
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424
if test -z "$ac_cpp_err"; then
3425
# Broken: success on invalid input.
3428
echo "$as_me: failed program was:" >&5
3429
sed 's/^/| /' conftest.$ac_ext >&5
3431
# Passes both tests.
3435
rm -f conftest.err conftest.$ac_ext
3438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439
rm -f conftest.err conftest.$ac_ext
3440
if $ac_preproc_ok; then
3443
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444
See \`config.log' for more details." >&5
3445
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446
See \`config.log' for more details." >&2;}
3447
{ (exit 1); exit 1; }; }
3451
ac_cpp='$CPP $CPPFLAGS'
3452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
echo "$as_me:$LINENO: checking for egrep" >&5
3457
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3458
if test "${ac_cv_prog_egrep+set}" = set; then
3459
echo $ECHO_N "(cached) $ECHO_C" >&6
3461
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3462
then ac_cv_prog_egrep='grep -E'
3463
else ac_cv_prog_egrep='egrep'
3466
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3467
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3468
EGREP=$ac_cv_prog_egrep
3472
echo "$as_me:$LINENO: checking whether we are using the Intel compiler" >&5
3473
echo $ECHO_N "checking whether we are using the Intel compiler... $ECHO_C" >&6
3476
cat >conftest.$ac_ext <<_ACEOF
3479
cat confdefs.h >>conftest.$ac_ext
3480
cat >>conftest.$ac_ext <<_ACEOF
3481
/* end confdefs.h. */
3484
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485
$EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
3487
echo "$as_me:$LINENO: result: no" >&5
3488
echo "${ECHO_T}no" >&6
3491
echo "$as_me:$LINENO: result: yes" >&5
3492
echo "${ECHO_T}yes" >&6
3498
if test "x$cflags_specified" = "x" ; then
3499
if test "x${GCC}" = "xyes" && test "x${ICC}" = "xno"; then
3500
CFLAGS="-Os -g -Wall -Wsign-compare -Wpointer-arith"
3501
CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
3503
# TODO: conditionally addd -Wpacked if handled
3507
if test "$ICC" = "yes"; then
3508
CFLAGS="-Os -g -Wall -wd 279,869,981"
3511
# Find a good install program. We prefer a C program (faster),
3512
# so one script is as good as another. But avoid the broken or
3513
# incompatible versions:
3514
# SysV /etc/install, /usr/sbin/install
3515
# SunOS /usr/etc/install
3516
# IRIX /sbin/install
3518
# AmigaOS /C/install, which installs bootblocks on floppy discs
3519
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3520
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3521
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3522
# OS/2's system install, which has a completely different semantic
3523
# ./install, which can be erroneously created by make from ./install.sh.
3524
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3525
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3526
if test -z "$INSTALL"; then
3527
if test "${ac_cv_path_install+set}" = set; then
3528
echo $ECHO_N "(cached) $ECHO_C" >&6
3530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534
test -z "$as_dir" && as_dir=.
3535
# Account for people who put trailing slashes in PATH elements.
3537
./ | .// | /cC/* | \
3538
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3539
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3542
# OSF1 and SCO ODT 3.0 have their own names for install.
3543
# Don't use installbsd from OSF since it installs stuff as root
3545
for ac_prog in ginstall scoinst install; do
3546
for ac_exec_ext in '' $ac_executable_extensions; do
3547
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3548
if test $ac_prog = install &&
3549
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550
# AIX install. It has an incompatible calling convention.
3552
elif test $ac_prog = install &&
3553
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554
# program-specific install script used by HP pwplus--don't use.
3557
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3569
if test "${ac_cv_path_install+set}" = set; then
3570
INSTALL=$ac_cv_path_install
3572
# As a last resort, use the slow shell script. We don't cache a
3573
# path for INSTALL within a source directory, because that will
3574
# break other packages using the cache if that directory is
3575
# removed, or if the path is relative.
3576
INSTALL=$ac_install_sh
3579
echo "$as_me:$LINENO: result: $INSTALL" >&5
3580
echo "${ECHO_T}$INSTALL" >&6
3582
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3583
# It thinks the first close brace ends the variable substitution.
3584
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3586
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3588
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3590
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3591
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3592
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3593
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3594
echo $ECHO_N "(cached) $ECHO_C" >&6
3596
cat >conftest.make <<\_ACEOF
3598
@echo 'ac_maketemp="$(MAKE)"'
3600
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3601
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3602
if test -n "$ac_maketemp"; then
3603
eval ac_cv_prog_make_${ac_make}_set=yes
3605
eval ac_cv_prog_make_${ac_make}_set=no
3609
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3610
echo "$as_me:$LINENO: result: yes" >&5
3611
echo "${ECHO_T}yes" >&6
3614
echo "$as_me:$LINENO: result: no" >&5
3615
echo "${ECHO_T}no" >&6
3616
SET_MAKE="MAKE=${MAKE-make}"
3619
if test -n "$ac_tool_prefix"; then
3620
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3621
set dummy ${ac_tool_prefix}ar; ac_word=$2
3622
echo "$as_me:$LINENO: checking for $ac_word" >&5
3623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624
if test "${ac_cv_prog_AR+set}" = set; then
3625
echo $ECHO_N "(cached) $ECHO_C" >&6
3627
if test -n "$AR"; then
3628
ac_cv_prog_AR="$AR" # Let the user override the test.
3630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634
test -z "$as_dir" && as_dir=.
3635
for ac_exec_ext in '' $ac_executable_extensions; do
3636
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637
ac_cv_prog_AR="${ac_tool_prefix}ar"
3638
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647
if test -n "$AR"; then
3648
echo "$as_me:$LINENO: result: $AR" >&5
3649
echo "${ECHO_T}$AR" >&6
3651
echo "$as_me:$LINENO: result: no" >&5
3652
echo "${ECHO_T}no" >&6
3656
if test -z "$ac_cv_prog_AR"; then
3658
# Extract the first word of "ar", so it can be a program name with args.
3659
set dummy ar; ac_word=$2
3660
echo "$as_me:$LINENO: checking for $ac_word" >&5
3661
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3663
echo $ECHO_N "(cached) $ECHO_C" >&6
3665
if test -n "$ac_ct_AR"; then
3666
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672
test -z "$as_dir" && as_dir=.
3673
for ac_exec_ext in '' $ac_executable_extensions; do
3674
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675
ac_cv_prog_ac_ct_AR="ar"
3676
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3685
if test -n "$ac_ct_AR"; then
3686
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3687
echo "${ECHO_T}$ac_ct_AR" >&6
3689
echo "$as_me:$LINENO: result: no" >&5
3690
echo "${ECHO_T}no" >&6
3698
if test -n "$ac_tool_prefix"; then
3699
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3700
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3701
echo "$as_me:$LINENO: checking for $ac_word" >&5
3702
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703
if test "${ac_cv_prog_RANLIB+set}" = set; then
3704
echo $ECHO_N "(cached) $ECHO_C" >&6
3706
if test -n "$RANLIB"; then
3707
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713
test -z "$as_dir" && as_dir=.
3714
for ac_exec_ext in '' $ac_executable_extensions; do
3715
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3717
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725
RANLIB=$ac_cv_prog_RANLIB
3726
if test -n "$RANLIB"; then
3727
echo "$as_me:$LINENO: result: $RANLIB" >&5
3728
echo "${ECHO_T}$RANLIB" >&6
3730
echo "$as_me:$LINENO: result: no" >&5
3731
echo "${ECHO_T}no" >&6
3735
if test -z "$ac_cv_prog_RANLIB"; then
3736
ac_ct_RANLIB=$RANLIB
3737
# Extract the first word of "ranlib", so it can be a program name with args.
3738
set dummy ranlib; ac_word=$2
3739
echo "$as_me:$LINENO: checking for $ac_word" >&5
3740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3741
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3742
echo $ECHO_N "(cached) $ECHO_C" >&6
3744
if test -n "$ac_ct_RANLIB"; then
3745
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751
test -z "$as_dir" && as_dir=.
3752
for ac_exec_ext in '' $ac_executable_extensions; do
3753
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754
ac_cv_prog_ac_ct_RANLIB="ranlib"
3755
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3764
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3765
if test -n "$ac_ct_RANLIB"; then
3766
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3767
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3769
echo "$as_me:$LINENO: result: no" >&5
3770
echo "${ECHO_T}no" >&6
3773
RANLIB=$ac_ct_RANLIB
3775
RANLIB="$ac_cv_prog_RANLIB"
3780
echo "$as_me:$LINENO: checking for AIX" >&5
3781
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3782
cat >conftest.$ac_ext <<_ACEOF
3785
cat confdefs.h >>conftest.$ac_ext
3786
cat >>conftest.$ac_ext <<_ACEOF
3787
/* end confdefs.h. */
3793
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794
$EGREP "yes" >/dev/null 2>&1; then
3795
echo "$as_me:$LINENO: result: yes" >&5
3796
echo "${ECHO_T}yes" >&6
3797
cat >>confdefs.h <<\_ACEOF
3798
#define _ALL_SOURCE 1
3802
echo "$as_me:$LINENO: result: no" >&5
3803
echo "${ECHO_T}no" >&6
3811
macro_version='1.5.6'
3826
$srcdir) ltmain=./ltmain.sh ;;
3827
$srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
3829
test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
3831
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3832
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3833
if test "${lt_cv_path_SED+set}" = set; then
3834
echo $ECHO_N "(cached) $ECHO_C" >&6
3836
# Loop through the user's path and test for sed and gsed.
3837
# Then use that list of sed's as ones to test for truncation.
3838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842
test -z "$as_dir" && as_dir=.
3843
for lt_ac_prog in sed gsed; do
3844
for ac_exec_ext in '' $ac_executable_extensions; do
3845
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3846
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3853
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3854
# along with /bin/sed that truncates output.
3855
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3856
test ! -f $lt_ac_sed && break
3857
cat /dev/null > conftest.in
3859
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3860
# Check for GNU sed and select it if it is found.
3861
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3862
lt_cv_path_SED=$lt_ac_sed
3866
cat conftest.in conftest.in >conftest.tmp
3867
mv conftest.tmp conftest.in
3868
cp conftest.in conftest.nl
3870
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3871
cmp -s conftest.out conftest.nl || break
3872
# 10000 chars as input seems more than enough
3873
test $lt_ac_count -gt 10 && break
3874
lt_ac_count=`expr $lt_ac_count + 1`
3875
if test $lt_ac_count -gt $lt_ac_max; then
3876
lt_ac_max=$lt_ac_count
3877
lt_cv_path_SED=$lt_ac_sed
3886
echo "$as_me:$LINENO: result: $SED" >&5
3887
echo "${ECHO_T}$SED" >&6
3889
test -z "$SED" && SED=sed
3902
test -z "$GREP" && GREP=grep
3915
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3916
if test "${with_gnu_ld+set}" = set; then
3917
withval="$with_gnu_ld"
3918
test "$withval" = no || with_gnu_ld=yes
3924
if test "$GCC" = yes; then
3925
# Check if gcc -print-prog-name=ld gives a path.
3926
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3927
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3930
# gcc leaves a trailing carriage return which upsets mingw
3931
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3933
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3936
# Accept absolute paths.
3938
re_direlt='/[^/][^/]*/\.\./'
3939
# Canonicalize the pathname of ld
3940
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3941
while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
3942
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3944
test -z "$LD" && LD="$ac_prog"
3947
# If it fails, then pretend we aren't using GCC.
3951
# If it is relative, then search for the first ld in PATH.
3955
elif test "$with_gnu_ld" = yes; then
3956
echo "$as_me:$LINENO: checking for GNU ld" >&5
3957
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3959
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3960
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3962
if test "${lt_cv_path_LD+set}" = set; then
3963
echo $ECHO_N "(cached) $ECHO_C" >&6
3965
if test -z "$LD"; then
3966
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967
for ac_dir in $PATH; do
3969
test -z "$ac_dir" && ac_dir=.
3970
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971
lt_cv_path_LD="$ac_dir/$ac_prog"
3972
# Check to see if the program is GNU ld. I'd rather use --version,
3973
# but apparently some GNU ld's only accept -v.
3974
# Break only if it was the GNU/non-GNU ld that we prefer.
3975
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976
*GNU* | *'with BFD'*)
3977
test "$with_gnu_ld" != no && break
3980
test "$with_gnu_ld" != yes && break
3987
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3992
if test -n "$LD"; then
3993
echo "$as_me:$LINENO: result: $LD" >&5
3994
echo "${ECHO_T}$LD" >&6
3996
echo "$as_me:$LINENO: result: no" >&5
3997
echo "${ECHO_T}no" >&6
3999
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4000
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4001
{ (exit 1); exit 1; }; }
4002
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4003
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4004
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4005
echo $ECHO_N "(cached) $ECHO_C" >&6
4007
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4008
case `$LD -v 2>&1 </dev/null` in
4009
*GNU* | *'with BFD'*)
4010
lt_cv_prog_gnu_ld=yes
4013
lt_cv_prog_gnu_ld=no
4017
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4018
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4019
with_gnu_ld=$lt_cv_prog_gnu_ld
4029
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4030
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4031
if test "${lt_cv_ld_reload_flag+set}" = set; then
4032
echo $ECHO_N "(cached) $ECHO_C" >&6
4034
lt_cv_ld_reload_flag='-r'
4036
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4037
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4038
reload_flag=$lt_cv_ld_reload_flag
4039
case $reload_flag in
4041
*) reload_flag=" $reload_flag" ;;
4043
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4046
if test "$GCC" = yes; then
4047
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4049
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4062
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4063
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4064
if test "${lt_cv_path_NM+set}" = set; then
4065
echo $ECHO_N "(cached) $ECHO_C" >&6
4067
if test -n "$NM"; then
4068
# Let the user override the test.
4071
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4072
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4074
test -z "$ac_dir" && ac_dir=.
4075
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4076
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4077
# Check to see if the nm accepts a BSD-compat flag.
4078
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4079
# nm: unknown option "B" ignored
4080
# Tru64's nm complains that /dev/null is an invalid object file
4081
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4082
*/dev/null* | *'Invalid file or object type'*)
4083
lt_cv_path_NM="$tmp_nm -B"
4087
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4089
lt_cv_path_NM="$tmp_nm -p"
4093
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4094
continue # so that we can try to find one that supports BSD flags
4101
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4104
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4105
echo "${ECHO_T}$lt_cv_path_NM" >&6
4107
test -z "$NM" && NM=nm
4114
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4115
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4117
if test "$LN_S" = "ln -s"; then
4118
echo "$as_me:$LINENO: result: yes" >&5
4119
echo "${ECHO_T}yes" >&6
4121
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4122
echo "${ECHO_T}no, using $LN_S" >&6
4126
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4127
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4128
if test "${lt_cv_deplibs_check_method+set}" = set; then
4129
echo $ECHO_N "(cached) $ECHO_C" >&6
4131
lt_cv_file_magic_cmd='$MAGIC_CMD'
4132
lt_cv_file_magic_test_file=
4133
lt_cv_deplibs_check_method='unknown'
4134
# Need to set the preceding variable on all platforms that support
4135
# interlibrary dependencies.
4136
# 'none' -- dependencies not supported.
4137
# `unknown' -- same as none, but documents that we really don't know.
4138
# 'pass_all' -- all dependencies passed with no checks.
4139
# 'test_compile' -- check by making test program.
4140
# 'file_magic [[regex]]' -- check by looking for files in library path
4141
# which responds to the $file_magic_cmd with a given extended regex.
4142
# If you have `file' or equivalent on your system and you're not sure
4143
# whether `pass_all' will *always* work, you probably want this one.
4147
lt_cv_deplibs_check_method=pass_all
4151
lt_cv_deplibs_check_method=pass_all
4155
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4156
lt_cv_file_magic_cmd='/usr/bin/file -L'
4157
lt_cv_file_magic_test_file=/shlib/libc.so
4161
# func_win32_libid is a shell function defined in ltmain.sh
4162
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4163
lt_cv_file_magic_cmd='func_win32_libid'
4166
# Base MSYS/MinGW do not provide the 'file' command needed by
4167
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4169
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4170
lt_cv_file_magic_cmd='$OBJDUMP -f'
4173
darwin* | rhapsody*)
4174
lt_cv_deplibs_check_method=pass_all
4177
freebsd* | kfreebsd*-gnu)
4178
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4181
# Not sure whether the presence of OpenBSD here was a mistake.
4182
# Let's accept both of them until this is cleared up.
4183
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4184
lt_cv_file_magic_cmd=/usr/bin/file
4185
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4189
lt_cv_deplibs_check_method=pass_all
4194
lt_cv_deplibs_check_method=pass_all
4197
hpux10.20* | hpux11*)
4198
lt_cv_file_magic_cmd=/usr/bin/file
4201
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4202
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4205
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4206
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4209
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4210
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4215
irix5* | irix6* | nonstopux*)
4217
*-32|*"-32 ") libmagic=32-bit;;
4218
*-n32|*"-n32 ") libmagic=N32;;
4219
*-64|*"-64 ") libmagic=64-bit;;
4220
*) libmagic=never-match;;
4222
lt_cv_deplibs_check_method=pass_all
4225
# This must be Linux ELF.
4228
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4229
lt_cv_deplibs_check_method=pass_all ;;
4231
# glibc up to 2.1.1 does not perform some relocations on ARM
4232
# this will be overridden with pass_all, but let us keep it just in case
4233
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4235
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4236
lt_cv_deplibs_check_method=pass_all
4239
netbsd* | knetbsd*-gnu)
4240
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4241
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4243
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4248
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4249
lt_cv_file_magic_cmd=/usr/bin/file
4250
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254
lt_cv_deplibs_check_method=pass_all
4258
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4259
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4261
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4265
osf3* | osf4* | osf5*)
4266
lt_cv_deplibs_check_method=pass_all
4270
lt_cv_deplibs_check_method=pass_all
4274
lt_cv_deplibs_check_method=pass_all
4277
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4278
case $host_vendor in
4280
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4281
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4284
lt_cv_deplibs_check_method=pass_all
4287
lt_cv_file_magic_cmd='/bin/file'
4288
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4291
lt_cv_file_magic_cmd='/bin/file'
4292
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4293
lt_cv_file_magic_test_file=/lib/libc.so
4296
lt_cv_deplibs_check_method=pass_all
4301
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4302
lt_cv_deplibs_check_method=pass_all
4307
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4308
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4309
file_magic_cmd=$lt_cv_file_magic_cmd
4310
deplibs_check_method=$lt_cv_deplibs_check_method
4311
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4324
if test -n "$ac_tool_prefix"; then
4325
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4326
set dummy ${ac_tool_prefix}ar; ac_word=$2
4327
echo "$as_me:$LINENO: checking for $ac_word" >&5
4328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329
if test "${ac_cv_prog_AR+set}" = set; then
4330
echo $ECHO_N "(cached) $ECHO_C" >&6
4332
if test -n "$AR"; then
4333
ac_cv_prog_AR="$AR" # Let the user override the test.
4335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339
test -z "$as_dir" && as_dir=.
4340
for ac_exec_ext in '' $ac_executable_extensions; do
4341
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342
ac_cv_prog_AR="${ac_tool_prefix}ar"
4343
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352
if test -n "$AR"; then
4353
echo "$as_me:$LINENO: result: $AR" >&5
4354
echo "${ECHO_T}$AR" >&6
4356
echo "$as_me:$LINENO: result: no" >&5
4357
echo "${ECHO_T}no" >&6
4361
if test -z "$ac_cv_prog_AR"; then
4363
# Extract the first word of "ar", so it can be a program name with args.
4364
set dummy ar; ac_word=$2
4365
echo "$as_me:$LINENO: checking for $ac_word" >&5
4366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4368
echo $ECHO_N "(cached) $ECHO_C" >&6
4370
if test -n "$ac_ct_AR"; then
4371
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377
test -z "$as_dir" && as_dir=.
4378
for ac_exec_ext in '' $ac_executable_extensions; do
4379
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380
ac_cv_prog_ac_ct_AR="ar"
4381
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4390
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4391
if test -n "$ac_ct_AR"; then
4392
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4393
echo "${ECHO_T}$ac_ct_AR" >&6
4395
echo "$as_me:$LINENO: result: no" >&5
4396
echo "${ECHO_T}no" >&6
4404
test -z "$AR" && AR=ar
4405
test -z "$AR_FLAGS" && AR_FLAGS=cru
4417
if test -n "$ac_tool_prefix"; then
4418
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4419
set dummy ${ac_tool_prefix}strip; ac_word=$2
4420
echo "$as_me:$LINENO: checking for $ac_word" >&5
4421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422
if test "${ac_cv_prog_STRIP+set}" = set; then
4423
echo $ECHO_N "(cached) $ECHO_C" >&6
4425
if test -n "$STRIP"; then
4426
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432
test -z "$as_dir" && as_dir=.
4433
for ac_exec_ext in '' $ac_executable_extensions; do
4434
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4436
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444
STRIP=$ac_cv_prog_STRIP
4445
if test -n "$STRIP"; then
4446
echo "$as_me:$LINENO: result: $STRIP" >&5
4447
echo "${ECHO_T}$STRIP" >&6
4449
echo "$as_me:$LINENO: result: no" >&5
4450
echo "${ECHO_T}no" >&6
4454
if test -z "$ac_cv_prog_STRIP"; then
4456
# Extract the first word of "strip", so it can be a program name with args.
4457
set dummy strip; ac_word=$2
4458
echo "$as_me:$LINENO: checking for $ac_word" >&5
4459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4460
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4461
echo $ECHO_N "(cached) $ECHO_C" >&6
4463
if test -n "$ac_ct_STRIP"; then
4464
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470
test -z "$as_dir" && as_dir=.
4471
for ac_exec_ext in '' $ac_executable_extensions; do
4472
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473
ac_cv_prog_ac_ct_STRIP="strip"
4474
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4483
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4484
if test -n "$ac_ct_STRIP"; then
4485
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4486
echo "${ECHO_T}$ac_ct_STRIP" >&6
4488
echo "$as_me:$LINENO: result: no" >&5
4489
echo "${ECHO_T}no" >&6
4494
STRIP="$ac_cv_prog_STRIP"
4497
test -z "$STRIP" && STRIP=:
4504
if test -n "$ac_tool_prefix"; then
4505
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4506
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4507
echo "$as_me:$LINENO: checking for $ac_word" >&5
4508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509
if test "${ac_cv_prog_RANLIB+set}" = set; then
4510
echo $ECHO_N "(cached) $ECHO_C" >&6
4512
if test -n "$RANLIB"; then
4513
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519
test -z "$as_dir" && as_dir=.
4520
for ac_exec_ext in '' $ac_executable_extensions; do
4521
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4523
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531
RANLIB=$ac_cv_prog_RANLIB
4532
if test -n "$RANLIB"; then
4533
echo "$as_me:$LINENO: result: $RANLIB" >&5
4534
echo "${ECHO_T}$RANLIB" >&6
4536
echo "$as_me:$LINENO: result: no" >&5
4537
echo "${ECHO_T}no" >&6
4541
if test -z "$ac_cv_prog_RANLIB"; then
4542
ac_ct_RANLIB=$RANLIB
4543
# Extract the first word of "ranlib", so it can be a program name with args.
4544
set dummy ranlib; ac_word=$2
4545
echo "$as_me:$LINENO: checking for $ac_word" >&5
4546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4548
echo $ECHO_N "(cached) $ECHO_C" >&6
4550
if test -n "$ac_ct_RANLIB"; then
4551
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557
test -z "$as_dir" && as_dir=.
4558
for ac_exec_ext in '' $ac_executable_extensions; do
4559
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560
ac_cv_prog_ac_ct_RANLIB="ranlib"
4561
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4570
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571
if test -n "$ac_ct_RANLIB"; then
4572
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4573
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4575
echo "$as_me:$LINENO: result: no" >&5
4576
echo "${ECHO_T}no" >&6
4579
RANLIB=$ac_ct_RANLIB
4581
RANLIB="$ac_cv_prog_RANLIB"
4584
test -z "$RANLIB" && RANLIB=:
4591
# Determine commands to create old-style static archives.
4592
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4593
old_postinstall_cmds='chmod 644 $oldlib'
4594
old_postuninstall_cmds=
4596
if test -n "$RANLIB"; then
4599
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4602
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4605
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4623
# find the maximum length of command line arguments
4624
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4625
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4626
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4627
echo $ECHO_N "(cached) $ECHO_C" >&6
4634
# On DJGPP, this test can blow up pretty badly due to problems in libc
4635
# (any single argument exceeding 2000 bytes causes a buffer overrun
4636
# during glob expansion). Even if it were fixed, the result of this
4637
# check would be larger than it should be.
4638
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4642
# Under GNU Hurd, this test is not required because there is
4643
# no limit to the length of command line arguments.
4644
# Libtool will interpret -1 as no limit whatsoever
4645
lt_cv_sys_max_cmd_len=-1;
4649
# On Win9x/ME, this test blows up -- it succeeds, but takes
4650
# about 5 minutes as the teststring grows exponentially.
4651
# Worse, since 9x/ME are not pre-emptively multitasking,
4652
# you end up with a "frozen" computer, even though with patience
4653
# the test eventually succeeds (with a max line length of 256k).
4654
# Instead, let's just punt: use the minimum linelength reported by
4655
# all of the supported platforms: 8192 (on NT/2K/XP).
4656
lt_cv_sys_max_cmd_len=8192;
4660
# On AmigaOS with pdksh, this test takes hours, literally.
4661
# So we just punt and use a minimum line length of 8192.
4662
lt_cv_sys_max_cmd_len=8192;
4665
netbsd* | freebsd* | openbsd* | darwin* )
4666
# This has been around since 386BSD, at least. Likely further.
4667
if test -x /sbin/sysctl; then
4668
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4669
elif test -x /usr/sbin/sysctl; then
4670
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4672
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4674
# And add a safety zone
4675
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4678
# Make teststring a little bigger before we do anything with it.
4679
# a 1K string should be a reasonable start.
4680
for i in 1 2 3 4 5 6 7 8 ; do
4681
teststring=$teststring$teststring
4683
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4684
# If test is not a shell built-in, we'll probably end up computing a
4685
# maximum length that is only half of the actual maximum length, but
4687
while (test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4688
= "XX$teststring$teststring") >/dev/null 2>&1 &&
4689
test $i != 17 # 1/2 MB should be enough
4692
teststring=$teststring$teststring
4694
# Only check the string length outside the loop.
4695
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4697
# Add a significant safety factor because C++ compilers can tack on massive
4698
# amounts of additional arguments before passing them to the linker.
4699
# It appears as though 1/2 is a usable value.
4700
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4706
if test -n $lt_cv_sys_max_cmd_len ; then
4707
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4708
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4710
echo "$as_me:$LINENO: result: none" >&5
4711
echo "${ECHO_T}none" >&6
4720
# Check for command to grab the raw symbol name followed by C symbol from nm.
4721
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4722
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4723
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4724
echo $ECHO_N "(cached) $ECHO_C" >&6
4727
# These are sane defaults that work on at least a few old systems.
4728
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4730
# Character class describing NM global symbol codes.
4731
symcode='[BCDEGRST]'
4733
# Regexp to match symbols that can be accessed directly from C.
4734
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4736
# Transform the above into a raw symbol and a C symbol.
4737
symxfrm='\1 \2\3 \3'
4739
# Transform an extracted symbol line into a proper C declaration
4740
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4742
# Transform an extracted symbol line into symbol name and symbol address
4743
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4745
# Define system-specific variables.
4750
cygwin* | mingw* | pw32*)
4751
symcode='[ABCDGISTW]'
4753
hpux*) # Its linker distinguishes data from code symbols
4754
if test "$host_cpu" = ia64; then
4755
symcode='[ABCDEGRST]'
4757
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4758
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4761
symcode='[BCDEGRST]'
4764
symcode='[BCDEGQRST]'
4774
# Handle CRLF in mingw tool chain
4778
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4782
# If we're using GNU nm, then use its standard symbol codes.
4783
case `$NM -V 2>&1` in
4784
*GNU* | *'with BFD'*)
4785
symcode='[ABCDGIRSTW]' ;;
4788
# Try without a prefix undercore, then with it.
4789
for ac_symprfx in "" "_"; do
4791
# Write the raw and C identifiers.
4792
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4794
# Check to see that the pipe works correctly.
4798
cat > conftest.$ac_ext <<_LT_EOF
4803
void nm_test_func(){}
4807
int main(){nm_test_var='a';nm_test_func();return(0);}
4810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811
(eval $ac_compile) 2>&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); }; then
4815
# Now try to grab the symbols.
4817
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4818
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); } && test -s "$nlist"; then
4822
# Try sorting and uniquifying the output.
4823
if sort "$nlist" | uniq > "$nlist"T; then
4824
mv -f "$nlist"T "$nlist"
4829
# Make sure that we snagged all the symbols we need.
4830
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4831
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4832
cat <<_LT_EOF > conftest.$ac_ext
4838
# Now generate the symbol file.
4839
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4841
cat <<_LT_EOF >> conftest.$ac_ext
4843
/* The mapping between symbol names and symbols. */
4845
const char *originator;
4851
lt__PROGRAM__LTX_preloaded_symbols =
4856
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4857
cat <<\_LT_EOF >> conftest.$ac_ext
4862
/* This works around a problem in FreeBSD linker */
4863
#ifdef FREEBSD_WORKAROUND
4864
static const void *lt_preloaded_setup() {
4865
return lt__PROGRAM__LTX_preloaded_symbols;
4873
# Now try linking the two files.
4874
mv conftest.$ac_objext conftstm.$ac_objext
4875
lt_save_LIBS="$LIBS"
4876
lt_save_CFLAGS="$CFLAGS"
4877
LIBS="conftstm.$ac_objext"
4878
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880
(eval $ac_link) 2>&5
4882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883
(exit $ac_status); } && test -s conftest${ac_exeext}; then
4886
LIBS="$lt_save_LIBS"
4887
CFLAGS="$lt_save_CFLAGS"
4889
echo "cannot find nm_test_func in $nlist" >&5
4892
echo "cannot find nm_test_var in $nlist" >&5
4895
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4898
echo "$progname: failed program was:" >&5
4899
cat conftest.$ac_ext >&5
4901
rm -f conftest* conftst*
4903
# Do not use the global_symbol_pipe unless it works.
4904
if test "$pipe_works" = yes; then
4907
lt_cv_sys_global_symbol_pipe=
4913
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4914
lt_cv_sys_global_symbol_to_cdecl=
4916
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4917
echo "$as_me:$LINENO: result: failed" >&5
4918
echo "${ECHO_T}failed" >&6
4920
echo "$as_me:$LINENO: result: ok" >&5
4921
echo "${ECHO_T}ok" >&6
4957
# If no C compiler was specified, use CC.
4960
# Allow CC to be a program name with arguments.
4963
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4964
if test "${enable_libtool_lock+set}" = set; then
4965
enableval="$enable_libtool_lock"
4968
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4970
# Some flags need to be propagated to the compiler or linker for good
4974
# Find out which ABI we are using.
4975
echo 'int i;' > conftest.$ac_ext
4976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977
(eval $ac_compile) 2>&5
4979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980
(exit $ac_status); }; then
4981
case `/usr/bin/file conftest.$ac_objext` in
4993
# Find out which ABI we are using.
4994
echo '#line 4994 "configure"' > conftest.$ac_ext
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
(eval $ac_compile) 2>&5
4998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
(exit $ac_status); }; then
5000
if test "$lt_cv_prog_gnu_ld" = yes; then
5001
case `/usr/bin/file conftest.$ac_objext` in
5003
LD="${LD-ld} -melf32bsmip"
5006
LD="${LD-ld} -melf32bmipn32"
5009
LD="${LD-ld} -melf64bmip"
5013
case `/usr/bin/file conftest.$ac_objext` in
5029
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5030
# Find out which ABI we are using.
5031
echo 'int i;' > conftest.$ac_ext
5032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033
(eval $ac_compile) 2>&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); }; then
5037
case "`/usr/bin/file conftest.o`" in
5041
LD="${LD-ld} -m elf_i386"
5043
ppc64-*linux*|powerpc64-*linux*)
5044
LD="${LD-ld} -m elf32ppclinux"
5047
LD="${LD-ld} -m elf_s390"
5050
LD="${LD-ld} -m elf32_sparc"
5057
LD="${LD-ld} -m elf_x86_64"
5059
ppc*-*linux*|powerpc*-*linux*)
5060
LD="${LD-ld} -m elf64ppc"
5063
LD="${LD-ld} -m elf64_s390"
5066
LD="${LD-ld} -m elf64_sparc"
5076
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5077
SAVE_CFLAGS="$CFLAGS"
5078
CFLAGS="$CFLAGS -belf"
5079
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5080
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5081
if test "${lt_cv_cc_needs_belf+set}" = set; then
5082
echo $ECHO_N "(cached) $ECHO_C" >&6
5085
ac_cpp='$CPP $CPPFLAGS'
5086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
cat >conftest.$ac_ext <<_ACEOF
5093
cat confdefs.h >>conftest.$ac_ext
5094
cat >>conftest.$ac_ext <<_ACEOF
5095
/* end confdefs.h. */
5105
rm -f conftest.$ac_objext conftest$ac_exeext
5106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107
(eval $ac_link) 2>conftest.er1
5109
grep -v '^ *+' conftest.er1 >conftest.err
5111
cat conftest.err >&5
5112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113
(exit $ac_status); } &&
5114
{ ac_try='test -z "$ac_c_werror_flag"
5115
|| test ! -s conftest.err'
5116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
(exit $ac_status); }; } &&
5121
{ ac_try='test -s conftest$ac_exeext'
5122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
(exit $ac_status); }; }; then
5127
lt_cv_cc_needs_belf=yes
5129
echo "$as_me: failed program was:" >&5
5130
sed 's/^/| /' conftest.$ac_ext >&5
5132
lt_cv_cc_needs_belf=no
5134
rm -f conftest.err conftest.$ac_objext \
5135
conftest$ac_exeext conftest.$ac_ext
5137
ac_cpp='$CPP $CPPFLAGS'
5138
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5144
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5145
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5146
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5147
CFLAGS="$SAVE_CFLAGS"
5152
need_locks="$enable_libtool_lock"
5154
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5155
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5156
if test "${ac_cv_header_stdc+set}" = set; then
5157
echo $ECHO_N "(cached) $ECHO_C" >&6
5159
cat >conftest.$ac_ext <<_ACEOF
5162
cat confdefs.h >>conftest.$ac_ext
5163
cat >>conftest.$ac_ext <<_ACEOF
5164
/* end confdefs.h. */
5178
rm -f conftest.$ac_objext
5179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180
(eval $ac_compile) 2>conftest.er1
5182
grep -v '^ *+' conftest.er1 >conftest.err
5184
cat conftest.err >&5
5185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186
(exit $ac_status); } &&
5187
{ ac_try='test -z "$ac_c_werror_flag"
5188
|| test ! -s conftest.err'
5189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193
(exit $ac_status); }; } &&
5194
{ ac_try='test -s conftest.$ac_objext'
5195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
(exit $ac_status); }; }; then
5200
ac_cv_header_stdc=yes
5202
echo "$as_me: failed program was:" >&5
5203
sed 's/^/| /' conftest.$ac_ext >&5
5205
ac_cv_header_stdc=no
5207
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209
if test $ac_cv_header_stdc = yes; then
5210
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5211
cat >conftest.$ac_ext <<_ACEOF
5214
cat confdefs.h >>conftest.$ac_ext
5215
cat >>conftest.$ac_ext <<_ACEOF
5216
/* end confdefs.h. */
5220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5221
$EGREP "memchr" >/dev/null 2>&1; then
5224
ac_cv_header_stdc=no
5230
if test $ac_cv_header_stdc = yes; then
5231
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5232
cat >conftest.$ac_ext <<_ACEOF
5235
cat confdefs.h >>conftest.$ac_ext
5236
cat >>conftest.$ac_ext <<_ACEOF
5237
/* end confdefs.h. */
5241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242
$EGREP "free" >/dev/null 2>&1; then
5245
ac_cv_header_stdc=no
5251
if test $ac_cv_header_stdc = yes; then
5252
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5253
if test "$cross_compiling" = yes; then
5256
cat >conftest.$ac_ext <<_ACEOF
5259
cat confdefs.h >>conftest.$ac_ext
5260
cat >>conftest.$ac_ext <<_ACEOF
5261
/* end confdefs.h. */
5263
#if ((' ' & 0x0FF) == 0x020)
5264
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5265
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5267
# define ISLOWER(c) \
5268
(('a' <= (c) && (c) <= 'i') \
5269
|| ('j' <= (c) && (c) <= 'r') \
5270
|| ('s' <= (c) && (c) <= 'z'))
5271
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5274
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279
for (i = 0; i < 256; i++)
5280
if (XOR (islower (i), ISLOWER (i))
5281
|| toupper (i) != TOUPPER (i))
5286
rm -f conftest$ac_exeext
5287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288
(eval $ac_link) 2>&5
5290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
(exit $ac_status); }; }; then
5299
echo "$as_me: program exited with status $ac_status" >&5
5300
echo "$as_me: failed program was:" >&5
5301
sed 's/^/| /' conftest.$ac_ext >&5
5304
ac_cv_header_stdc=no
5306
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5310
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5311
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5312
if test $ac_cv_header_stdc = yes; then
5314
cat >>confdefs.h <<\_ACEOF
5315
#define STDC_HEADERS 1
5320
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5330
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5331
inttypes.h stdint.h unistd.h
5333
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5334
echo "$as_me:$LINENO: checking for $ac_header" >&5
5335
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5336
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337
echo $ECHO_N "(cached) $ECHO_C" >&6
5339
cat >conftest.$ac_ext <<_ACEOF
5342
cat confdefs.h >>conftest.$ac_ext
5343
cat >>conftest.$ac_ext <<_ACEOF
5344
/* end confdefs.h. */
5345
$ac_includes_default
5347
#include <$ac_header>
5349
rm -f conftest.$ac_objext
5350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351
(eval $ac_compile) 2>conftest.er1
5353
grep -v '^ *+' conftest.er1 >conftest.err
5355
cat conftest.err >&5
5356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
(exit $ac_status); } &&
5358
{ ac_try='test -z "$ac_c_werror_flag"
5359
|| test ! -s conftest.err'
5360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364
(exit $ac_status); }; } &&
5365
{ ac_try='test -s conftest.$ac_objext'
5366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370
(exit $ac_status); }; }; then
5371
eval "$as_ac_Header=yes"
5373
echo "$as_me: failed program was:" >&5
5374
sed 's/^/| /' conftest.$ac_ext >&5
5376
eval "$as_ac_Header=no"
5378
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5383
cat >>confdefs.h <<_ACEOF
5384
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393
for ac_header in dlfcn.h
5395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396
echo "$as_me:$LINENO: checking for $ac_header" >&5
5397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399
echo $ECHO_N "(cached) $ECHO_C" >&6
5401
cat >conftest.$ac_ext <<_ACEOF
5404
cat confdefs.h >>conftest.$ac_ext
5405
cat >>conftest.$ac_ext <<_ACEOF
5406
/* end confdefs.h. */
5407
$ac_includes_default
5409
#include <$ac_header>
5411
rm -f conftest.$ac_objext
5412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413
(eval $ac_compile) 2>conftest.er1
5415
grep -v '^ *+' conftest.er1 >conftest.err
5417
cat conftest.err >&5
5418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419
(exit $ac_status); } &&
5420
{ ac_try='test -z "$ac_c_werror_flag"
5421
|| test ! -s conftest.err'
5422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
(exit $ac_status); }; } &&
5427
{ ac_try='test -s conftest.$ac_objext'
5428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432
(exit $ac_status); }; }; then
5433
eval "$as_ac_Header=yes"
5435
echo "$as_me: failed program was:" >&5
5436
sed 's/^/| /' conftest.$ac_ext >&5
5438
eval "$as_ac_Header=no"
5440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445
cat >>confdefs.h <<_ACEOF
5446
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454
# This can be used to rebuild libtool when needed
5455
LIBTOOL_DEPS="$ltmain"
5457
# Always use our own libtool.
5458
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5465
# Check whether --enable-shared or --disable-shared was given.
5466
if test "${enable_shared+set}" = set; then
5467
enableval="$enable_shared"
5468
p=${PACKAGE-default}
5470
yes) enable_shared=yes ;;
5471
no) enable_shared=no ;;
5474
# Look at the argument we got. We use all the common list separators.
5475
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5476
for pkg in $enableval; do
5478
if test "X$pkg" = "X$p"; then
5496
# Check whether --enable-static or --disable-static was given.
5497
if test "${enable_static+set}" = set; then
5498
enableval="$enable_static"
5499
p=${PACKAGE-default}
5501
yes) enable_static=yes ;;
5502
no) enable_static=no ;;
5505
# Look at the argument we got. We use all the common list separators.
5506
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5507
for pkg in $enableval; do
5509
if test "X$pkg" = "X$p"; then
5528
# Check whether --with-pic or --without-pic was given.
5529
if test "${with_pic+set}" = set; then
5536
test -z "$pic_mode" && pic_mode=default
5544
# Check whether --enable-fast-install or --disable-fast-install was given.
5545
if test "${enable_fast_install+set}" = set; then
5546
enableval="$enable_fast_install"
5547
p=${PACKAGE-default}
5549
yes) enable_fast_install=yes ;;
5550
no) enable_fast_install=no ;;
5552
enable_fast_install=no
5553
# Look at the argument we got. We use all the common list separators.
5554
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5555
for pkg in $enableval; do
5557
if test "X$pkg" = "X$p"; then
5558
enable_fast_install=yes
5565
enable_fast_install=yes
5583
test -z "$LN_S" && LN_S="ln -s"
5598
if test -n "${ZSH_VERSION+set}" ; then
5599
setopt NO_GLOB_SUBST
5602
echo "$as_me:$LINENO: checking for objdir" >&5
5603
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5604
if test "${lt_cv_objdir+set}" = set; then
5605
echo $ECHO_N "(cached) $ECHO_C" >&6
5607
rm -f .libs 2>/dev/null
5608
mkdir .libs 2>/dev/null
5609
if test -d .libs; then
5612
# MS-DOS does not allow filenames that begin with a dot.
5615
rmdir .libs 2>/dev/null
5617
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5618
echo "${ECHO_T}$lt_cv_objdir" >&6
5619
objdir=$lt_cv_objdir
5642
# AIX sometimes has problems with the GCC collect2 program. For some
5643
# reason, if we set the COLLECT_NAMES environment variable, the problems
5644
# vanish in a puff of smoke.
5645
if test "X${COLLECT_NAMES+set}" != Xset; then
5647
export COLLECT_NAMES
5652
# Sed substitution that helps us do robust quoting. It backslashifies
5653
# metacharacters that are still active within double-quoted strings.
5654
Xsed='sed -e s/^X//'
5655
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5657
# Same as above, but do not quote variable references.
5658
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5660
# Sed substitution to delay expansion of an escaped shell variable in a
5661
# double_quote_subst'ed string.
5662
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5664
# Sed substitution to delay expansion of an escaped single quote.
5665
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5667
# Sed substitution to avoid accidental globbing in evaled expressions
5668
no_glob_subst='s/\*/\\\*/g'
5674
default_ofile=libtool
5675
ofile="$default_ofile"
5676
can_build_shared=yes
5678
# All known linkers require a `.a' archive for static linking (except M$VC,
5679
# which needs '.lib').
5682
with_gnu_ld="$lt_cv_prog_gnu_ld"
5685
old_CFLAGS="$CFLAGS"
5687
# Set sane defaults for various variables
5688
test -z "$CC" && CC=cc
5689
test -z "$LTCC" && LTCC=$CC
5690
test -z "$LD" && LD=ld
5691
test -z "$ac_objext" && ac_objext=o
5693
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5695
# Only perform the check for file, if the check method requires it
5696
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5697
case $deplibs_check_method in
5699
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5700
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5701
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5702
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5703
echo $ECHO_N "(cached) $ECHO_C" >&6
5707
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5710
lt_save_MAGIC_CMD="$MAGIC_CMD"
5711
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5713
for ac_dir in $ac_dummy; do
5715
test -z "$ac_dir" && ac_dir=.
5716
if test -f $ac_dir/${ac_tool_prefix}file; then
5717
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5718
if test -n "$file_magic_test_file"; then
5719
case $deplibs_check_method in
5721
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5722
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5723
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5724
$EGREP "$file_magic_regex" > /dev/null; then
5729
*** Warning: the command libtool uses to detect shared libraries,
5730
*** $file_magic_cmd, produces output that libtool cannot recognize.
5731
*** The result is that libtool may fail to recognize shared libraries
5732
*** as such. This will affect the creation of libtool libraries that
5733
*** depend on shared libraries, but programs linked with such libtool
5734
*** libraries will work regardless of this problem. Nevertheless, you
5735
*** may want to report the problem to your system manager and/or to
5736
*** bug-libtool@gnu.org
5746
MAGIC_CMD="$lt_save_MAGIC_CMD"
5751
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5752
if test -n "$MAGIC_CMD"; then
5753
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5754
echo "${ECHO_T}$MAGIC_CMD" >&6
5756
echo "$as_me:$LINENO: result: no" >&5
5757
echo "${ECHO_T}no" >&6
5764
if test -z "$lt_cv_path_MAGIC_CMD"; then
5765
if test -n "$ac_tool_prefix"; then
5766
echo "$as_me:$LINENO: checking for file" >&5
5767
echo $ECHO_N "checking for file... $ECHO_C" >&6
5768
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5769
echo $ECHO_N "(cached) $ECHO_C" >&6
5773
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5776
lt_save_MAGIC_CMD="$MAGIC_CMD"
5777
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5779
for ac_dir in $ac_dummy; do
5781
test -z "$ac_dir" && ac_dir=.
5782
if test -f $ac_dir/file; then
5783
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5784
if test -n "$file_magic_test_file"; then
5785
case $deplibs_check_method in
5787
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5788
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5789
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5790
$EGREP "$file_magic_regex" > /dev/null; then
5795
*** Warning: the command libtool uses to detect shared libraries,
5796
*** $file_magic_cmd, produces output that libtool cannot recognize.
5797
*** The result is that libtool may fail to recognize shared libraries
5798
*** as such. This will affect the creation of libtool libraries that
5799
*** depend on shared libraries, but programs linked with such libtool
5800
*** libraries will work regardless of this problem. Nevertheless, you
5801
*** may want to report the problem to your system manager and/or to
5802
*** bug-libtool@gnu.org
5812
MAGIC_CMD="$lt_save_MAGIC_CMD"
5817
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5818
if test -n "$MAGIC_CMD"; then
5819
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5820
echo "${ECHO_T}$MAGIC_CMD" >&6
5822
echo "$as_me:$LINENO: result: no" >&5
5823
echo "${ECHO_T}no" >&6
5836
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5837
if test "${enable_libtool_lock+set}" = set; then
5838
enableval="$enable_libtool_lock"
5841
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5843
# Use C for the default configuration in the libtool script
5848
ac_cpp='$CPP $CPPFLAGS'
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854
# Source file extension for C test sources.
5857
# Object file extension for compiled C test sources.
5861
# Code to be used in simple compile tests
5862
lt_simple_compile_test_code="int some_variable = 0;\n"
5864
# Code to be used in simple link tests
5865
lt_simple_link_test_code='int main(){return(0);}\n'
5874
# If no C compiler was specified, use CC.
5877
# Allow CC to be a program name with arguments.
5880
# Save the default compiler, since it gets overwritten when the other
5881
# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
5882
compiler_DEFAULT=$CC
5885
# Check for any special shared library compilation flags.
5888
if test "$GCC" = no; then
5891
lt_prog_cc_shlib='-belf'
5895
if test -n "$lt_prog_cc_shlib"; then
5896
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5897
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5898
if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5900
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5901
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5902
lt_cv_prog_cc_can_build_shared=no
5908
## There is no encapsulation within the following macros, do not change
5909
## the running order or otherwise move them around unless you know exactly
5910
## what you are doing...
5911
if test -n "$compiler"; then
5913
lt_prog_compiler_no_builtin_flag=
5915
if test "$GCC" = yes; then
5916
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5918
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5919
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5920
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5921
echo $ECHO_N "(cached) $ECHO_C" >&6
5923
lt_cv_prog_compiler_rtti_exceptions=no
5924
ac_outfile=conftest.$ac_objext
5925
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5926
lt_compiler_flag="-fno-rtti -fno-exceptions"
5927
# Insert the option either (1) after the last *FLAGS variable, or
5928
# (2) before a word containing "conftest.", or (3) at the end.
5929
# Note that $ac_compile itself does not contain backslashes and begins
5930
# with a dollar sign (not a hyphen), so the echo should work correctly.
5931
# The option is referenced via a variable to avoid confusing sed.
5932
lt_compile=`echo "$ac_compile" | $SED \
5933
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5934
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5935
-e 's:$: $lt_compiler_flag:'`
5936
(eval echo "\"\$as_me:5936: $lt_compile\"" >&5)
5937
(eval "$lt_compile" 2>conftest.err)
5939
cat conftest.err >&5
5940
echo "$as_me:5940: \$? = $ac_status" >&5
5941
if (exit $ac_status) && test -s "$ac_outfile"; then
5942
# The compiler can only warn and ignore the option if not recognized
5943
# So say no if there are warnings
5944
if test ! -s conftest.err; then
5945
lt_cv_prog_compiler_rtti_exceptions=yes
5951
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5952
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5954
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5955
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5967
lt_prog_compiler_wl=
5968
lt_prog_compiler_pic=
5969
lt_prog_compiler_static=
5971
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5972
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5974
if test "$GCC" = yes; then
5975
lt_prog_compiler_wl='-Wl,'
5976
lt_prog_compiler_static='-static'
5980
# All AIX code is PIC.
5981
if test "$host_cpu" = ia64; then
5982
# AIX 5 now supports IA64 processor
5983
lt_prog_compiler_static='-Bstatic'
5988
if test "$host_cpu" = m68k; then
5989
# FIXME: we need at least 68020 code to build shared libraries, but
5990
# adding the `-m68020' flag to GCC prevents building anything better,
5992
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5996
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5997
# PIC is the default for these OSes.
6000
mingw* | pw32* | os2*)
6001
# This hack is so that the source file can tell whether it is being
6002
# built for inclusion in a dll (and should export symbols for example).
6003
lt_prog_compiler_pic='-DDLL_EXPORT'
6006
darwin* | rhapsody*)
6007
# PIC is the default on this platform
6008
# Common symbols not allowed in MH_DYLIB files
6009
lt_prog_compiler_pic='-fno-common'
6013
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6020
lt_prog_compiler_pic='-fPIC'
6026
# Just because we use GCC doesn't mean we suddenly get shared libraries
6027
# on systems that don't support them.
6028
lt_prog_compiler_can_build_shared=no
6033
# QNX uses GNU C++, but need to define -shared option too, otherwise
6035
lt_prog_compiler_pic='-fPIC -shared'
6039
if test -d /usr/nec; then
6040
lt_prog_compiler_pic=-Kconform_pic
6045
lt_prog_compiler_pic='-fPIC'
6049
# PORTME Check for flag to pass linker flags through the system compiler.
6052
lt_prog_compiler_wl='-Wl,'
6053
if test "$host_cpu" = ia64; then
6054
# AIX 5 now supports IA64 processor
6055
lt_prog_compiler_static='-Bstatic'
6057
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6061
# PIC is the default on this platform
6062
# Common symbols not allowed in MH_DYLIB files
6063
case "$cc_basename" in
6065
lt_prog_compiler_pic='-qnocommon'
6066
lt_prog_compiler_wl='-Wl,'
6071
mingw* | pw32* | os2*)
6072
# This hack is so that the source file can tell whether it is being
6073
# built for inclusion in a dll (and should export symbols for example).
6074
lt_prog_compiler_pic='-DDLL_EXPORT'
6077
hpux9* | hpux10* | hpux11*)
6078
lt_prog_compiler_wl='-Wl,'
6079
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6086
lt_prog_compiler_pic='+Z'
6089
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6090
lt_prog_compiler_static='${wl}-a ${wl}archive'
6093
irix5* | irix6* | nonstopux*)
6094
lt_prog_compiler_wl='-Wl,'
6095
# PIC (with -KPIC) is the default.
6096
lt_prog_compiler_static='-non_shared'
6102
lt_prog_compiler_wl='-Wl,'
6103
lt_prog_compiler_pic='-KPIC'
6104
lt_prog_compiler_static='-static'
6107
lt_prog_compiler_wl='-Wl,'
6108
# All Alpha code is PIC.
6109
lt_prog_compiler_static='-non_shared'
6115
lt_prog_compiler_pic='-KPIC'
6116
lt_prog_compiler_static='-Bstatic'
6120
# QNX uses GNU C++, but need to define -shared option too, otherwise
6122
lt_prog_compiler_pic='-fPIC -shared'
6125
osf3* | osf4* | osf5*)
6126
lt_prog_compiler_wl='-Wl,'
6127
# All OSF/1 code is PIC.
6128
lt_prog_compiler_static='-non_shared'
6132
lt_prog_compiler_pic='-Kpic'
6133
lt_prog_compiler_static='-dn'
6137
lt_prog_compiler_wl='-Wl,'
6138
lt_prog_compiler_pic='-KPIC'
6139
lt_prog_compiler_static='-Bstatic'
6143
lt_prog_compiler_wl='-Qoption ld '
6144
lt_prog_compiler_pic='-PIC'
6145
lt_prog_compiler_static='-Bstatic'
6148
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6149
lt_prog_compiler_wl='-Wl,'
6150
lt_prog_compiler_pic='-KPIC'
6151
lt_prog_compiler_static='-Bstatic'
6155
if test -d /usr/nec ;then
6156
lt_prog_compiler_pic='-Kconform_pic'
6157
lt_prog_compiler_static='-Bstatic'
6162
lt_prog_compiler_pic='-pic'
6163
lt_prog_compiler_static='-Bstatic'
6167
lt_prog_compiler_can_build_shared=no
6173
# For platforms which do not support PIC, -DPIC is meaningless:
6175
lt_prog_compiler_pic=
6178
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6181
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6182
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6190
# Check to make sure the PIC flag actually works.
6192
if test -n "$lt_prog_compiler_pic"; then
6193
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6194
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6195
if test "${lt_prog_compiler_pic_works+set}" = set; then
6196
echo $ECHO_N "(cached) $ECHO_C" >&6
6198
lt_prog_compiler_pic_works=no
6199
ac_outfile=conftest.$ac_objext
6200
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6201
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6202
# Insert the option either (1) after the last *FLAGS variable, or
6203
# (2) before a word containing "conftest.", or (3) at the end.
6204
# Note that $ac_compile itself does not contain backslashes and begins
6205
# with a dollar sign (not a hyphen), so the echo should work correctly.
6206
# The option is referenced via a variable to avoid confusing sed.
6207
lt_compile=`echo "$ac_compile" | $SED \
6208
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6209
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6210
-e 's:$: $lt_compiler_flag:'`
6211
(eval echo "\"\$as_me:6211: $lt_compile\"" >&5)
6212
(eval "$lt_compile" 2>conftest.err)
6214
cat conftest.err >&5
6215
echo "$as_me:6215: \$? = $ac_status" >&5
6216
if (exit $ac_status) && test -s "$ac_outfile"; then
6217
# The compiler can only warn and ignore the option if not recognized
6218
# So say no if there are warnings
6219
if test ! -s conftest.err; then
6220
lt_prog_compiler_pic_works=yes
6226
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6227
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6229
if test x"$lt_prog_compiler_pic_works" = xyes; then
6230
case $lt_prog_compiler_pic in
6232
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6235
lt_prog_compiler_pic=
6236
lt_prog_compiler_can_build_shared=no
6247
# Check to make sure the static flag actually works.
6249
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6250
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6251
if test "${lt_prog_compiler_static_works+set}" = set; then
6252
echo $ECHO_N "(cached) $ECHO_C" >&6
6254
lt_prog_compiler_static_works=no
6255
save_LDFLAGS="$LDFLAGS"
6256
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6257
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6258
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6259
# The compiler can only warn and ignore the option if not recognized
6260
# So say no if there are warnings
6261
if test -s conftest.err; then
6262
# Append any errors to the config.log.
6263
cat conftest.err 1>&5
6265
lt_prog_compiler_static_works=yes
6269
LDFLAGS="$save_LDFLAGS"
6272
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6273
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6275
if test x"$lt_prog_compiler_static_works" = xyes; then
6278
lt_prog_compiler_static=
6287
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6289
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6290
echo $ECHO_N "(cached) $ECHO_C" >&6
6292
lt_cv_prog_compiler_c_o=no
6293
$rm -r conftest 2>/dev/null
6297
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6299
lt_compiler_flag="-o out/conftest2.$ac_objext"
6300
# Insert the option either (1) after the last *FLAGS variable, or
6301
# (2) before a word containing "conftest.", or (3) at the end.
6302
# Note that $ac_compile itself does not contain backslashes and begins
6303
# with a dollar sign (not a hyphen), so the echo should work correctly.
6304
lt_compile=`echo "$ac_compile" | $SED \
6305
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6306
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6307
-e 's:$: $lt_compiler_flag:'`
6308
(eval echo "\"\$as_me:6308: $lt_compile\"" >&5)
6309
(eval "$lt_compile" 2>out/conftest.err)
6311
cat out/conftest.err >&5
6312
echo "$as_me:6312: \$? = $ac_status" >&5
6313
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6315
# The compiler can only warn and ignore the option if not recognized
6316
# So say no if there are warnings
6317
if test ! -s out/conftest.err; then
6318
lt_cv_prog_compiler_c_o=yes
6323
# SGI C++ compiler will create directory out/ii_files/ for
6324
# template instantiation
6325
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6326
$rm out/* && rmdir out
6332
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6333
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6341
hard_links="nottested"
6342
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6343
# do not overwrite the value of need_locks provided by the user
6344
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6345
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6348
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6350
ln conftest.a conftest.b 2>&5 || hard_links=no
6351
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6352
echo "$as_me:$LINENO: result: $hard_links" >&5
6353
echo "${ECHO_T}$hard_links" >&6
6354
if test "$hard_links" = no; then
6355
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6356
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6368
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6369
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6372
allow_undefined_flag=
6373
always_export_symbols=no
6375
archive_expsym_cmds=
6376
enable_shared_with_static_runtimes=no
6377
export_dynamic_flag_spec=
6378
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6379
hardcode_automatic=no
6381
hardcode_libdir_flag_spec=
6382
hardcode_libdir_flag_spec_ld=
6383
hardcode_libdir_separator=
6385
hardcode_shlibpath_var=unsupported
6387
link_all_deplibs=unknown
6390
old_archive_from_new_cmds=
6391
old_archive_from_expsyms_cmds=
6392
thread_safe_flag_spec=
6393
whole_archive_flag_spec=
6394
# include_expsyms should be a list of space-separated symbols to be *always*
6395
# included in the symbol list
6397
# exclude_expsyms can be an extended regexp of symbols to exclude
6398
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6399
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6400
# as well as any symbol that contains `d'.
6401
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6402
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6403
# platforms (ab)use it in PIC code, but their linkers get confused if
6404
# the symbol is explicitly referenced. Since portable code cannot
6405
# rely on this symbol name, it's probably fine to never include it in
6406
# preloaded symbol tables.
6407
extract_expsyms_cmds=
6410
cygwin* | mingw* | pw32*)
6411
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6412
# When not using gcc, we currently assume that we are using
6413
# Microsoft Visual C++.
6414
if test "$GCC" != yes; then
6424
if test "$with_gnu_ld" = yes; then
6425
# If archive_cmds runs LD, not CC, wlarc should be empty
6428
# See if GNU ld supports shared libraries.
6430
aix3* | aix4* | aix5*)
6431
# On AIX/PPC, the GNU linker is very broken
6432
if test "$host_cpu" != ia64; then
6436
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6437
*** to be unable to reliably create shared libraries on AIX.
6438
*** Therefore, libtool is disabling shared libraries support. If you
6439
*** really care for shared libraries, you may want to modify your PATH
6440
*** so that a non-GNU linker is found, and then restart.
6447
if test "$host_cpu" = m68k; then
6448
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6449
hardcode_libdir_flag_spec='-L$libdir'
6450
hardcode_minus_L=yes
6453
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6454
# that the semantics of dynamic libraries on AmigaOS, at least up
6455
# to version 4, is to share data among multiple programs linked
6456
# with the same dynamic library. Since this doesn't match the
6457
# behavior of shared libraries on other platforms, we can't use
6463
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6464
allow_undefined_flag=unsupported
6465
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6466
# support --undefined. This deserves some investigation. FIXME
6467
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6473
cygwin* | mingw* | pw32*)
6474
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6475
# as there is no search path for DLLs.
6476
hardcode_libdir_flag_spec='-L$libdir'
6477
allow_undefined_flag=unsupported
6478
always_export_symbols=no
6479
enable_shared_with_static_runtimes=yes
6480
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6482
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6483
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6484
# If the export-symbols file already is a .def file (1st line
6485
# is EXPORTS), use it as is; otherwise, prepend...
6486
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6487
cp $export_symbols $output_objdir/$soname.def;
6489
echo EXPORTS > $output_objdir/$soname.def;
6490
cat $export_symbols >> $output_objdir/$soname.def;
6492
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6499
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6500
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6503
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6504
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6509
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6513
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6514
*** create shared libraries on Solaris systems. Therefore, libtool
6515
*** is disabling shared libraries support. We urge you to upgrade GNU
6516
*** binutils to release 2.9.1 or newer. Another option is to modify
6517
*** your PATH or compiler configuration so that the native linker is
6518
*** used, and then restart.
6521
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6522
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6523
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6530
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6533
hardcode_shlibpath_var=no
6537
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
6538
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6539
case `$LD -v 2>&1` in
6540
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6541
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6542
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6543
*\ 2.11.*) ;; # other 2.11 versions
6544
*) supports_anon_versioning=yes ;;
6546
if test "x$supports_anon_versioning" = xyes; then
6547
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6549
archive_expsym_cmds=$archive_cmds
6557
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6558
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6559
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6566
if test "$ld_shlibs" = yes; then
6567
runpath_var=LD_RUN_PATH
6568
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6569
export_dynamic_flag_spec='${wl}--export-dynamic'
6570
# ancient GNU ld didn't support --whole-archive et. al.
6571
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6572
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6574
whole_archive_flag_spec=
6578
# PORTME fill in a description of your system's linker (not GNU ld)
6581
allow_undefined_flag=unsupported
6582
always_export_symbols=yes
6583
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6584
# Note: this linker hardcodes the directories in LIBPATH if there
6585
# are no directories specified by -L.
6586
hardcode_minus_L=yes
6587
if test "$GCC" = yes && test -z "$link_static_flag"; then
6588
# Neither direct hardcoding nor static linking is supported with a
6590
hardcode_direct=unsupported
6595
if test "$host_cpu" = ia64; then
6596
# On IA64, the linker does run time linking by default, so we don't
6597
# have to do anything special.
6598
aix_use_runtimelinking=no
6599
exp_sym_flag='-Bexport'
6602
# If we're using GNU nm, then we don't want the "-C" option.
6603
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6604
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6605
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6607
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6609
aix_use_runtimelinking=no
6611
# Test if we are trying to use run time linking or normal
6612
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6613
# need to do runtime linking.
6614
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6615
for ld_flag in $LDFLAGS; do
6616
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6617
aix_use_runtimelinking=yes
6623
exp_sym_flag='-bexport'
6624
no_entry_flag='-bnoentry'
6627
# When large executables or shared objects are built, AIX ld can
6628
# have problems creating the table of contents. If linking a library
6629
# or program results in "error TOC overflow" add -mminimal-toc to
6630
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6631
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6635
hardcode_libdir_separator=':'
6636
link_all_deplibs=yes
6638
if test "$GCC" = yes; then
6639
case $host_os in aix4.012|aix4.012.*)
6640
# We only want to do this on AIX 4.2 and lower, the check
6641
# below for broken collect2 doesn't work under 4.3+
6642
collect2name=`${CC} -print-prog-name=collect2`
6643
if test -f "$collect2name" &&
6644
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6646
# We have reworked collect2
6649
# We have old collect2
6650
hardcode_direct=unsupported
6651
# It fails to find uninstalled libraries when the uninstalled
6652
# path is not listed in the libpath. Setting hardcode_minus_L
6653
# to unsupported forces relinking
6654
hardcode_minus_L=yes
6655
hardcode_libdir_flag_spec='-L$libdir'
6656
hardcode_libdir_separator=
6659
shared_flag='-shared'
6662
if test "$host_cpu" = ia64; then
6663
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6664
# chokes on -Wl,-G. The following line is correct:
6667
if test "$aix_use_runtimelinking" = yes; then
6668
shared_flag='${wl}-G'
6670
shared_flag='${wl}-bM:SRE'
6675
# It seems that -bexpall does not export symbols beginning with
6676
# underscore (_), so it is better to generate a list of symbols to export.
6677
always_export_symbols=yes
6678
if test "$aix_use_runtimelinking" = yes; then
6679
# Warning - without using the other runtime loading flags (-brtl),
6680
# -berok will link without error, but may produce a broken library.
6681
allow_undefined_flag='-berok'
6682
# Determine the default libpath from the value encoded in an
6684
cat >conftest.$ac_ext <<_ACEOF
6687
cat confdefs.h >>conftest.$ac_ext
6688
cat >>conftest.$ac_ext <<_ACEOF
6689
/* end confdefs.h. */
6699
rm -f conftest.$ac_objext conftest$ac_exeext
6700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701
(eval $ac_link) 2>conftest.er1
6703
grep -v '^ *+' conftest.er1 >conftest.err
6705
cat conftest.err >&5
6706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707
(exit $ac_status); } &&
6708
{ ac_try='test -z "$ac_c_werror_flag"
6709
|| test ! -s conftest.err'
6710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714
(exit $ac_status); }; } &&
6715
{ ac_try='test -s conftest$ac_exeext'
6716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); }; }; then
6722
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6724
# Check for a 64-bit object if we didn't find anything.
6725
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6728
echo "$as_me: failed program was:" >&5
6729
sed 's/^/| /' conftest.$ac_ext >&5
6732
rm -f conftest.err conftest.$ac_objext \
6733
conftest$ac_exeext conftest.$ac_ext
6734
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6736
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6737
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6739
if test "$host_cpu" = ia64; then
6740
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6741
allow_undefined_flag="-z nodefs"
6742
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6744
# Determine the default libpath from the value encoded in an
6746
cat >conftest.$ac_ext <<_ACEOF
6749
cat confdefs.h >>conftest.$ac_ext
6750
cat >>conftest.$ac_ext <<_ACEOF
6751
/* end confdefs.h. */
6761
rm -f conftest.$ac_objext conftest$ac_exeext
6762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763
(eval $ac_link) 2>conftest.er1
6765
grep -v '^ *+' conftest.er1 >conftest.err
6767
cat conftest.err >&5
6768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769
(exit $ac_status); } &&
6770
{ ac_try='test -z "$ac_c_werror_flag"
6771
|| test ! -s conftest.err'
6772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776
(exit $ac_status); }; } &&
6777
{ ac_try='test -s conftest$ac_exeext'
6778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782
(exit $ac_status); }; }; then
6784
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6786
# Check for a 64-bit object if we didn't find anything.
6787
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6790
echo "$as_me: failed program was:" >&5
6791
sed 's/^/| /' conftest.$ac_ext >&5
6794
rm -f conftest.err conftest.$ac_objext \
6795
conftest$ac_exeext conftest.$ac_ext
6796
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6798
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6799
# Warning - without using the other run time loading flags,
6800
# -berok will link without error, but may produce a broken library.
6801
no_undefined_flag=' ${wl}-bernotok'
6802
allow_undefined_flag=' ${wl}-berok'
6803
# -bexpall does not export symbols beginning with underscore (_)
6804
always_export_symbols=yes
6805
# Exported symbols can be pulled into shared objects from archives
6806
whole_archive_flag_spec=' '
6807
archive_cmds_need_lc=yes
6808
# This is similar to how AIX traditionally builds it's shared libraries.
6809
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6815
if test "$host_cpu" = m68k; then
6816
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6817
hardcode_libdir_flag_spec='-L$libdir'
6818
hardcode_minus_L=yes
6820
# see comment about different semantics on the GNU ld section
6825
export_dynamic_flag_spec=-rdynamic
6828
cygwin* | mingw* | pw32*)
6829
# When not using gcc, we currently assume that we are using
6830
# Microsoft Visual C++.
6831
# hardcode_libdir_flag_spec is actually meaningless, as there is
6832
# no search path for DLLs.
6833
hardcode_libdir_flag_spec=' '
6834
allow_undefined_flag=unsupported
6835
# Tell ltmain to make .lib files, not .a files.
6837
# Tell ltmain to make .dll files, not .so files.
6839
# FIXME: Setting linknames here is a bad hack.
6840
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6841
# The linker will automatically build a .lib file if we build a DLL.
6842
old_archive_from_new_cmds='true'
6843
# FIXME: Should let the user specify the lib program.
6844
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6845
fix_srcfile_path='`cygpath -w "$srcfile"`'
6846
enable_shared_with_static_runtimes=yes
6849
darwin* | rhapsody*)
6851
rhapsody* | darwin1.[012])
6852
allow_undefined_flag='${wl}-undefined ${wl}suppress'
6855
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6856
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6858
case ${MACOSX_DEPLOYMENT_TARGET} in
6860
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6863
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6869
archive_cmds_need_lc=no
6871
hardcode_automatic=yes
6872
hardcode_shlibpath_var=unsupported
6873
whole_archive_flag_spec=''
6874
link_all_deplibs=yes
6875
if test "$GCC" = yes ; then
6876
output_verbose_link_cmd='echo'
6877
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6878
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6879
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6880
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6881
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6883
case "$cc_basename" in
6885
output_verbose_link_cmd='echo'
6886
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6887
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6888
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6889
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6890
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6899
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6900
hardcode_libdir_flag_spec='-L$libdir'
6901
hardcode_shlibpath_var=no
6908
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6909
# support. Future versions do this automatically, but an explicit c++rt0.o
6910
# does not break anything, and helps significantly (at the cost of a little
6913
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6914
hardcode_libdir_flag_spec='-R$libdir'
6916
hardcode_shlibpath_var=no
6919
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6921
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6923
hardcode_minus_L=yes
6924
hardcode_shlibpath_var=no
6927
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6928
freebsd* | kfreebsd*-gnu)
6929
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6930
hardcode_libdir_flag_spec='-R$libdir'
6932
hardcode_shlibpath_var=no
6936
if test "$GCC" = yes; then
6937
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6939
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6941
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6942
hardcode_libdir_separator=:
6945
# hardcode_minus_L: Not really in the search PATH,
6946
# but as the default location of the library.
6947
hardcode_minus_L=yes
6948
export_dynamic_flag_spec='${wl}-E'
6952
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6953
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6955
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6957
if test "$with_gnu_ld" = no; then
6958
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6959
hardcode_libdir_flag_spec_ld='+b $libdir'
6960
hardcode_libdir_separator=:
6962
export_dynamic_flag_spec='${wl}-E'
6963
# hardcode_minus_L: Not really in the search PATH,
6964
# but as the default location of the library.
6965
hardcode_minus_L=yes
6970
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6973
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6976
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6982
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6985
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6989
if test "$with_gnu_ld" = no; then
6992
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6993
hardcode_libdir_separator=:
6995
hardcode_shlibpath_var=no
6998
hardcode_libdir_flag_spec='-L$libdir'
7000
hardcode_shlibpath_var=no
7002
# hardcode_minus_L: Not really in the search PATH,
7003
# but as the default location of the library.
7004
hardcode_minus_L=yes
7007
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7008
hardcode_libdir_separator=:
7010
export_dynamic_flag_spec='${wl}-E'
7012
# hardcode_minus_L: Not really in the search PATH,
7013
# but as the default location of the library.
7014
hardcode_minus_L=yes
7020
irix5* | irix6* | nonstopux*)
7021
if test "$GCC" = yes; then
7022
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7023
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7025
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7026
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7028
archive_cmds_need_lc='no'
7029
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7030
hardcode_libdir_separator=:
7032
link_all_deplibs=yes
7036
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7037
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7039
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7041
hardcode_libdir_flag_spec='-R$libdir'
7043
hardcode_shlibpath_var=no
7047
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7049
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7050
hardcode_libdir_separator=:
7051
hardcode_shlibpath_var=no
7059
hardcode_shlibpath_var=no
7060
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7061
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7062
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7063
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7064
export_dynamic_flag_spec='${wl}-E'
7067
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7068
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7069
hardcode_libdir_flag_spec='-R$libdir'
7072
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7073
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7080
hardcode_libdir_flag_spec='-L$libdir'
7081
hardcode_minus_L=yes
7082
allow_undefined_flag=unsupported
7083
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7084
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7088
if test "$GCC" = yes; then
7089
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7090
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7092
allow_undefined_flag=' -expect_unresolved \*'
7093
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7095
archive_cmds_need_lc='no'
7096
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7097
hardcode_libdir_separator=:
7100
osf4* | osf5*) # as osf3* with the addition of -msym flag
7101
if test "$GCC" = yes; then
7102
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7103
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7104
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7106
allow_undefined_flag=' -expect_unresolved \*'
7107
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7108
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7109
$CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7111
# Both c and cxx compiler support -rpath directly
7112
hardcode_libdir_flag_spec='-rpath $libdir'
7114
archive_cmds_need_lc='no'
7115
hardcode_libdir_separator=:
7119
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7120
hardcode_shlibpath_var=no
7121
export_dynamic_flag_spec='${wl}-Bexport'
7122
runpath_var=LD_RUN_PATH
7123
hardcode_runpath_var=yes
7127
no_undefined_flag=' -z text'
7128
if test "$GCC" = yes; then
7129
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7130
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7131
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7133
case `$CC -V 2>&1` in
7135
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7136
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7137
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7140
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7141
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7142
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7146
hardcode_libdir_flag_spec='-R$libdir'
7147
hardcode_shlibpath_var=no
7149
solaris2.[0-5] | solaris2.[0-5].*) ;;
7150
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7151
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7153
link_all_deplibs=yes
7157
if test "x$host_vendor" = xsequent; then
7158
# Use $CC to link under sequent, because it throws in some extra .o
7159
# files that make .init and .fini sections work.
7160
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7162
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7164
hardcode_libdir_flag_spec='-L$libdir'
7166
hardcode_minus_L=yes
7167
hardcode_shlibpath_var=no
7171
case $host_vendor in
7173
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174
hardcode_direct=yes # is this really true???
7177
## LD is ld it makes a PLAMLIB
7178
## CC just makes a GrossModule.
7179
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7180
reload_cmds='$CC -r -o $output$reload_objs'
7184
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7188
runpath_var='LD_RUN_PATH'
7189
hardcode_shlibpath_var=no
7193
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7194
hardcode_shlibpath_var=no
7195
export_dynamic_flag_spec='-Bexport'
7199
if test -d /usr/nec; then
7200
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7201
hardcode_shlibpath_var=no
7202
runpath_var=LD_RUN_PATH
7203
hardcode_runpath_var=yes
7209
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7212
hardcode_shlibpath_var=no
7213
hardcode_runpath_var=yes
7214
runpath_var=LD_RUN_PATH
7217
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7218
no_undefined_flag='${wl}-z ${wl}text'
7219
if test "$GCC" = yes; then
7220
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224
runpath_var='LD_RUN_PATH'
7225
hardcode_shlibpath_var=no
7229
no_undefined_flag=' -z text'
7230
# $CC -shared without GNU ld will not create a library from C++
7231
# object files and a static libstdc++, better avoid it by now
7232
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7233
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7234
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7235
hardcode_libdir_flag_spec=
7236
hardcode_shlibpath_var=no
7237
runpath_var='LD_RUN_PATH'
7241
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7242
hardcode_libdir_flag_spec='-L$libdir'
7243
hardcode_shlibpath_var=no
7251
if test x$host_vendor = xsni; then
7253
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7254
export_dynamic_flag_spec='${wl}-Blargedynsym'
7260
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7261
echo "${ECHO_T}$ld_shlibs" >&6
7262
test "$ld_shlibs" = no && can_build_shared=no
7278
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7279
if test "$GCC" = yes; then
7280
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7289
# Do we need to explicitly link libc?
7291
case "x$archive_cmds_need_lc" in
7293
# Assume -lc should be added
7294
archive_cmds_need_lc=yes
7296
if test "$enable_shared" = yes && test "$GCC" = yes; then
7297
case $archive_cmds in
7299
# FIXME: we may have to deal with multi-command sequences.
7302
# Test whether the compiler implicitly links with -lc since on some
7303
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7304
# to ld, don't add -lc before -lgcc.
7305
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7306
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7308
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311
(eval $ac_compile) 2>&5
7313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314
(exit $ac_status); } 2>conftest.err; then
7317
libobjs=conftest.$ac_objext
7319
wl=$lt_prog_compiler_wl
7325
lt_save_allow_undefined_flag=$allow_undefined_flag
7326
allow_undefined_flag=
7327
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7328
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331
(exit $ac_status); }
7333
archive_cmds_need_lc=no
7335
archive_cmds_need_lc=yes
7337
allow_undefined_flag=$lt_save_allow_undefined_flag
7339
cat conftest.err 1>&5
7342
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7343
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7482
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7483
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7486
libname_spec='lib$name'
7494
shlibpath_overrides_runpath=unknown
7496
dynamic_linker="$host_os ld.so"
7497
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7498
if test "$withGCC" = yes; then
7499
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7500
if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7501
# if the path contains ";" then we assume it to be the separator
7502
# otherwise default to the standard path separator (i.e. ":") - it is
7503
# assumed that no part of a normal pathname contains ";" but that should
7504
# okay in the real world where ";" in dirpaths is itself problematic.
7505
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7507
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7510
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7512
need_lib_prefix=unknown
7513
hardcode_into_libs=no
7515
# when you set need_version to no, make sure it does not cause -set_version
7516
# flags to be left without arguments
7517
need_version=unknown
7522
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7523
shlibpath_var=LIBPATH
7525
# AIX 3 has no versioning support, so we append a major version to the name.
7526
soname_spec='${libname}${release}${shared_ext}$major'
7533
hardcode_into_libs=yes
7534
if test "$host_cpu" = ia64; then
7535
# AIX 5 supports IA64
7536
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7537
shlibpath_var=LD_LIBRARY_PATH
7539
# With GCC up to 2.95.x, collect2 would create an import file
7540
# for dependence libraries. The import file would start with
7541
# the line `#! .'. This would cause the generated library to
7542
# depend on `.', always an invalid library. This was fixed in
7543
# development snapshots of GCC prior to 3.0.
7545
aix4 | aix4.[01] | aix4.[01].*)
7546
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7548
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7555
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7556
# soname into executable. Probably we can add versioning support to
7557
# collect2, so additional links can be useful in future.
7558
if test "$aix_use_runtimelinking" = yes; then
7559
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7560
# instead of lib<name>.a to let people know that these are not
7561
# typical AIX shared libraries.
7562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564
# We preserve .a as extension for shared libraries through AIX4.2
7565
# and later when we are not doing run time linking.
7566
library_names_spec='${libname}${release}.a $libname.a'
7567
soname_spec='${libname}${release}${shared_ext}$major'
7569
shlibpath_var=LIBPATH
7574
if test "$host_cpu" = m68k; then
7575
library_names_spec='$libname.ixlibrary $libname.a'
7576
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7577
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7584
library_names_spec='${libname}${shared_ext}'
7585
dynamic_linker="$host_os ld.so"
7586
shlibpath_var=LIBRARY_PATH
7592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7593
soname_spec='${libname}${release}${shared_ext}$major'
7594
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7595
shlibpath_var=LD_LIBRARY_PATH
7596
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7597
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7598
# the default ld.so.conf also contains /usr/contrib/lib and
7599
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7600
# libtool to hard-code these into programs
7603
cygwin* | mingw* | pw32*)
7604
version_type=windows
7609
case $withGCC,$host_os in
7610
yes,cygwin* | yes,mingw* | yes,pw32*)
7611
library_names_spec='$libname.dll.a'
7612
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7613
postinstall_cmds='base_file=`basename \${file}`~
7614
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7615
dldir=$destdir/`dirname \$dlpath`~
7616
test -d \$dldir || mkdir -p \$dldir~
7617
$install_prog $dir/$dlname \$dldir/$dlname'
7618
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7619
dlpath=$dir/\$dldll~
7621
shlibpath_overrides_runpath=yes
7625
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7626
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7627
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7630
# MinGW DLLs use traditional 'lib' prefix
7631
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7632
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7633
if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7634
# It is most probably a Windows format PATH printed by
7635
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7636
# path with ; separators, and with drive letters. We can handle the
7637
# drive letters (cygwin fileutils understands them), so leave them,
7638
# especially as we might pass files found there to a mingw objdump,
7639
# which wouldn't understand a cygwinified path. Ahh.
7640
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7642
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7646
# pw32 DLLs use 'pw' prefix rather than 'lib'
7647
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7653
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7656
dynamic_linker='Win32 ld.exe'
7657
# FIXME: first we should search . and the directory the executable is in
7661
darwin* | rhapsody*)
7662
dynamic_linker="$host_os dyld"
7666
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7667
soname_spec='${libname}${release}${major}$shared_ext'
7668
shlibpath_overrides_runpath=yes
7669
shlibpath_var=DYLD_LIBRARY_PATH
7670
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7671
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7672
if test "$withGCC" = yes; then
7673
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7675
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7677
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7685
soname_spec='${libname}${release}${shared_ext}$major'
7686
shlibpath_var=LD_LIBRARY_PATH
7697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7698
soname_spec='${libname}${release}${shared_ext}$major'
7699
shlibpath_var=LD_LIBRARY_PATH
7700
shlibpath_overrides_runpath=no
7701
hardcode_into_libs=yes
7702
dynamic_linker='GNU ld.so'
7706
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7707
version_type=freebsd-$objformat
7708
case $version_type in
7710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7715
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7719
shlibpath_var=LD_LIBRARY_PATH
7722
shlibpath_overrides_runpath=yes
7724
freebsd3.01* | freebsdelf3.01*)
7725
shlibpath_overrides_runpath=yes
7726
hardcode_into_libs=yes
7729
shlibpath_overrides_runpath=no
7730
hardcode_into_libs=yes
7739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7740
soname_spec='${libname}${release}${shared_ext}$major'
7741
shlibpath_var=LD_LIBRARY_PATH
7742
hardcode_into_libs=yes
7745
hpux9* | hpux10* | hpux11*)
7746
# Give a soname corresponding to the major version so that dld.sl refuses to
7747
# link against other versions.
7754
hardcode_into_libs=yes
7755
dynamic_linker="$host_os dld.so"
7756
shlibpath_var=LD_LIBRARY_PATH
7757
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7759
soname_spec='${libname}${release}${shared_ext}$major'
7760
if test "X$HPUX_IA64_MODE" = X32; then
7761
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7763
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7765
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7769
hardcode_into_libs=yes
7770
dynamic_linker="$host_os dld.sl"
7771
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7772
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7774
soname_spec='${libname}${release}${shared_ext}$major'
7775
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7776
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7780
dynamic_linker="$host_os dld.sl"
7781
shlibpath_var=SHLIB_PATH
7782
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7784
soname_spec='${libname}${release}${shared_ext}$major'
7787
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7788
postinstall_cmds='chmod 555 $lib'
7791
irix5* | irix6* | nonstopux*)
7793
nonstopux*) version_type=nonstopux ;;
7795
if test "$lt_cv_prog_gnu_ld" = yes; then
7803
soname_spec='${libname}${release}${shared_ext}$major'
7804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7806
irix5* | nonstopux*)
7810
case $LD in # libtool.m4 will add one of these switches to LD
7811
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7812
libsuff= shlibsuff= libmagic=32-bit;;
7813
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7814
libsuff=32 shlibsuff=N32 libmagic=N32;;
7815
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7816
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7817
*) libsuff= shlibsuff= libmagic=never-match;;
7821
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7822
shlibpath_overrides_runpath=no
7823
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7824
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7825
hardcode_into_libs=yes
7828
# No shared lib support for Linux oldld, aout, or coff.
7829
linux*oldld* | linux*aout* | linux*coff*)
7833
# This must be Linux ELF.
7838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839
soname_spec='${libname}${release}${shared_ext}$major'
7840
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7841
shlibpath_var=LD_LIBRARY_PATH
7842
shlibpath_overrides_runpath=no
7843
# This implies no fast_install, which is unacceptable.
7844
# Some rework will be needed to allow for fast_install
7845
# before this can be enabled.
7846
hardcode_into_libs=yes
7848
# Append ld.so.conf contents to the search path
7849
if test -f /etc/ld.so.conf; then
7850
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7851
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7854
# We used to test for /lib/ld.so.1 and disable shared libraries on
7855
# powerpc, because MkLinux only supported shared libraries with the
7856
# GNU dynamic linker. Since this was broken with cross compilers,
7857
# most powerpc-linux boxes support dynamic linking these days and
7858
# people can always --disable-shared, the test was removed, and we
7859
# assume the GNU/Linux dynamic linker is in use.
7860
dynamic_linker='GNU/Linux ld.so'
7867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7868
soname_spec='${libname}${release}${shared_ext}$major'
7869
shlibpath_var=LD_LIBRARY_PATH
7870
shlibpath_overrides_runpath=no
7871
hardcode_into_libs=yes
7872
dynamic_linker='GNU ld.so'
7879
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7881
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7882
dynamic_linker='NetBSD (a.out) ld.so'
7884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7885
soname_spec='${libname}${release}${shared_ext}$major'
7886
dynamic_linker='NetBSD ld.elf_so'
7888
shlibpath_var=LD_LIBRARY_PATH
7889
shlibpath_overrides_runpath=yes
7890
hardcode_into_libs=yes
7895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896
shlibpath_var=LD_LIBRARY_PATH
7897
shlibpath_overrides_runpath=yes
7904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905
soname_spec='${libname}${release}${shared_ext}$major'
7906
shlibpath_var=LD_LIBRARY_PATH
7907
shlibpath_overrides_runpath=no
7908
hardcode_into_libs=yes
7909
dynamic_linker='ldqnx.so'
7916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7917
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7918
shlibpath_var=LD_LIBRARY_PATH
7919
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7921
openbsd2.[89] | openbsd2.[89].*)
7922
shlibpath_overrides_runpath=no
7925
shlibpath_overrides_runpath=yes
7929
shlibpath_overrides_runpath=yes
7934
libname_spec='$name'
7937
library_names_spec='$libname${shared_ext} $libname.a'
7938
dynamic_linker='OS/2 ld.exe'
7939
shlibpath_var=LIBPATH
7942
osf3* | osf4* | osf5*)
7946
soname_spec='${libname}${release}${shared_ext}$major'
7947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948
shlibpath_var=LD_LIBRARY_PATH
7949
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7950
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7955
soname_spec='${libname}${release}${shared_ext}$major'
7956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957
shlibpath_var=LD_LIBRARY_PATH
7964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965
soname_spec='${libname}${release}${shared_ext}$major'
7966
shlibpath_var=LD_LIBRARY_PATH
7967
shlibpath_overrides_runpath=yes
7968
hardcode_into_libs=yes
7969
# ldd complains unless libraries are executable
7970
postinstall_cmds='chmod +x $lib'
7975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7976
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7977
shlibpath_var=LD_LIBRARY_PATH
7978
shlibpath_overrides_runpath=yes
7979
if test "$with_gnu_ld" = yes; then
7985
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988
soname_spec='${libname}${release}${shared_ext}$major'
7989
shlibpath_var=LD_LIBRARY_PATH
7990
case $host_vendor in
7992
shlibpath_overrides_runpath=no
7994
runpath_var=LD_RUN_PATH
8002
shlibpath_overrides_runpath=no
8003
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8009
if test -d /usr/nec ;then
8011
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8012
soname_spec='$libname${shared_ext}.$major'
8013
shlibpath_var=LD_LIBRARY_PATH
8019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020
soname_spec='${libname}${release}${shared_ext}$major'
8021
shlibpath_var=LD_LIBRARY_PATH
8028
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8029
echo "${ECHO_T}$dynamic_linker" >&6
8030
test "$dynamic_linker" = no && can_build_shared=no
8112
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8113
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8115
if test -n "$hardcode_libdir_flag_spec" ||
8116
test -n "$runpath_var" ||
8117
test "X$hardcode_automatic" = "Xyes" ; then
8119
# We can hardcode non-existant directories.
8120
if test "$hardcode_direct" != no &&
8121
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8122
# have to relink, otherwise we might link with an installed library
8123
# when we should be linking with a yet-to-be-installed one
8124
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8125
test "$hardcode_minus_L" != no; then
8126
# Linking always hardcodes the temporary library directory.
8127
hardcode_action=relink
8129
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8130
hardcode_action=immediate
8133
# We cannot hardcode anything, or else we can only hardcode existing
8135
hardcode_action=unsupported
8137
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8138
echo "${ECHO_T}$hardcode_action" >&6
8140
if test "$hardcode_action" = relink ||
8141
test "$inherit_rpath" = yes; then
8142
# Fast installation is not supported
8143
enable_fast_install=no
8144
elif test "$shlibpath_overrides_runpath" = yes ||
8145
test "$enable_shared" = no; then
8146
# Fast installation is not necessary
8147
enable_fast_install=needless
8158
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8159
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8160
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
8161
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8162
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8163
echo "$as_me:$LINENO: result: yes" >&5
8164
echo "${ECHO_T}yes" >&6
8166
# FIXME - insert some real tests, host_os isn't really good enough
8169
if test -n "$STRIP" ; then
8170
striplib="$STRIP -x"
8171
echo "$as_me:$LINENO: result: yes" >&5
8172
echo "${ECHO_T}yes" >&6
8174
echo "$as_me:$LINENO: result: no" >&5
8175
echo "${ECHO_T}no" >&6
8179
echo "$as_me:$LINENO: result: no" >&5
8180
echo "${ECHO_T}no" >&6
8195
if test "x$enable_dlopen" != xyes; then
8196
enable_dlopen=unknown
8197
enable_dlopen_self=unknown
8198
enable_dlopen_self_static=unknown
8205
lt_cv_dlopen="load_add_on"
8207
lt_cv_dlopen_self=yes
8211
lt_cv_dlopen="LoadLibrary"
8216
lt_cv_dlopen="dlopen"
8221
# if libdl is installed we need to link against it
8222
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8225
echo $ECHO_N "(cached) $ECHO_C" >&6
8227
ac_check_lib_save_LIBS=$LIBS
8229
cat >conftest.$ac_ext <<_ACEOF
8232
cat confdefs.h >>conftest.$ac_ext
8233
cat >>conftest.$ac_ext <<_ACEOF
8234
/* end confdefs.h. */
8236
/* Override any gcc2 internal prototype to avoid an error. */
8240
/* We use char because int might match the return type of a gcc2
8241
builtin and then its argument prototype would still apply. */
8251
rm -f conftest.$ac_objext conftest$ac_exeext
8252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253
(eval $ac_link) 2>conftest.er1
8255
grep -v '^ *+' conftest.er1 >conftest.err
8257
cat conftest.err >&5
8258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259
(exit $ac_status); } &&
8260
{ ac_try='test -z "$ac_c_werror_flag"
8261
|| test ! -s conftest.err'
8262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
(exit $ac_status); }; } &&
8267
{ ac_try='test -s conftest$ac_exeext'
8268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272
(exit $ac_status); }; }; then
8273
ac_cv_lib_dl_dlopen=yes
8275
echo "$as_me: failed program was:" >&5
8276
sed 's/^/| /' conftest.$ac_ext >&5
8278
ac_cv_lib_dl_dlopen=no
8280
rm -f conftest.err conftest.$ac_objext \
8281
conftest$ac_exeext conftest.$ac_ext
8282
LIBS=$ac_check_lib_save_LIBS
8284
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8285
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8286
if test $ac_cv_lib_dl_dlopen = yes; then
8287
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8292
lt_cv_dlopen_self=yes
8299
echo "$as_me:$LINENO: checking for shl_load" >&5
8300
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8301
if test "${ac_cv_func_shl_load+set}" = set; then
8302
echo $ECHO_N "(cached) $ECHO_C" >&6
8304
cat >conftest.$ac_ext <<_ACEOF
8307
cat confdefs.h >>conftest.$ac_ext
8308
cat >>conftest.$ac_ext <<_ACEOF
8309
/* end confdefs.h. */
8310
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8311
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8312
#define shl_load innocuous_shl_load
8314
/* System header to define __stub macros and hopefully few prototypes,
8315
which can conflict with char shl_load (); below.
8316
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8317
<limits.h> exists even on freestanding compilers. */
8320
# include <limits.h>
8322
# include <assert.h>
8327
/* Override any gcc2 internal prototype to avoid an error. */
8332
/* We use char because int might match the return type of a gcc2
8333
builtin and then its argument prototype would still apply. */
8335
/* The GNU C library defines this for functions which it implements
8336
to always fail with ENOSYS. Some functions are actually named
8337
something starting with __ and the normal name is an alias. */
8338
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8341
char (*f) () = shl_load;
8350
return f != shl_load;
8355
rm -f conftest.$ac_objext conftest$ac_exeext
8356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357
(eval $ac_link) 2>conftest.er1
8359
grep -v '^ *+' conftest.er1 >conftest.err
8361
cat conftest.err >&5
8362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
(exit $ac_status); } &&
8364
{ ac_try='test -z "$ac_c_werror_flag"
8365
|| test ! -s conftest.err'
8366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370
(exit $ac_status); }; } &&
8371
{ ac_try='test -s conftest$ac_exeext'
8372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376
(exit $ac_status); }; }; then
8377
ac_cv_func_shl_load=yes
8379
echo "$as_me: failed program was:" >&5
8380
sed 's/^/| /' conftest.$ac_ext >&5
8382
ac_cv_func_shl_load=no
8384
rm -f conftest.err conftest.$ac_objext \
8385
conftest$ac_exeext conftest.$ac_ext
8387
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8388
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8389
if test $ac_cv_func_shl_load = yes; then
8390
lt_cv_dlopen="shl_load"
8392
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8393
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8394
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8395
echo $ECHO_N "(cached) $ECHO_C" >&6
8397
ac_check_lib_save_LIBS=$LIBS
8399
cat >conftest.$ac_ext <<_ACEOF
8402
cat confdefs.h >>conftest.$ac_ext
8403
cat >>conftest.$ac_ext <<_ACEOF
8404
/* end confdefs.h. */
8406
/* Override any gcc2 internal prototype to avoid an error. */
8410
/* We use char because int might match the return type of a gcc2
8411
builtin and then its argument prototype would still apply. */
8421
rm -f conftest.$ac_objext conftest$ac_exeext
8422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423
(eval $ac_link) 2>conftest.er1
8425
grep -v '^ *+' conftest.er1 >conftest.err
8427
cat conftest.err >&5
8428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429
(exit $ac_status); } &&
8430
{ ac_try='test -z "$ac_c_werror_flag"
8431
|| test ! -s conftest.err'
8432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436
(exit $ac_status); }; } &&
8437
{ ac_try='test -s conftest$ac_exeext'
8438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442
(exit $ac_status); }; }; then
8443
ac_cv_lib_dld_shl_load=yes
8445
echo "$as_me: failed program was:" >&5
8446
sed 's/^/| /' conftest.$ac_ext >&5
8448
ac_cv_lib_dld_shl_load=no
8450
rm -f conftest.err conftest.$ac_objext \
8451
conftest$ac_exeext conftest.$ac_ext
8452
LIBS=$ac_check_lib_save_LIBS
8454
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8455
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8456
if test $ac_cv_lib_dld_shl_load = yes; then
8457
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8459
echo "$as_me:$LINENO: checking for dlopen" >&5
8460
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8461
if test "${ac_cv_func_dlopen+set}" = set; then
8462
echo $ECHO_N "(cached) $ECHO_C" >&6
8464
cat >conftest.$ac_ext <<_ACEOF
8467
cat confdefs.h >>conftest.$ac_ext
8468
cat >>conftest.$ac_ext <<_ACEOF
8469
/* end confdefs.h. */
8470
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8471
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472
#define dlopen innocuous_dlopen
8474
/* System header to define __stub macros and hopefully few prototypes,
8475
which can conflict with char dlopen (); below.
8476
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477
<limits.h> exists even on freestanding compilers. */
8480
# include <limits.h>
8482
# include <assert.h>
8487
/* Override any gcc2 internal prototype to avoid an error. */
8492
/* We use char because int might match the return type of a gcc2
8493
builtin and then its argument prototype would still apply. */
8495
/* The GNU C library defines this for functions which it implements
8496
to always fail with ENOSYS. Some functions are actually named
8497
something starting with __ and the normal name is an alias. */
8498
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8501
char (*f) () = dlopen;
8515
rm -f conftest.$ac_objext conftest$ac_exeext
8516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517
(eval $ac_link) 2>conftest.er1
8519
grep -v '^ *+' conftest.er1 >conftest.err
8521
cat conftest.err >&5
8522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523
(exit $ac_status); } &&
8524
{ ac_try='test -z "$ac_c_werror_flag"
8525
|| test ! -s conftest.err'
8526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530
(exit $ac_status); }; } &&
8531
{ ac_try='test -s conftest$ac_exeext'
8532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536
(exit $ac_status); }; }; then
8537
ac_cv_func_dlopen=yes
8539
echo "$as_me: failed program was:" >&5
8540
sed 's/^/| /' conftest.$ac_ext >&5
8542
ac_cv_func_dlopen=no
8544
rm -f conftest.err conftest.$ac_objext \
8545
conftest$ac_exeext conftest.$ac_ext
8547
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8548
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8549
if test $ac_cv_func_dlopen = yes; then
8550
lt_cv_dlopen="dlopen"
8552
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8553
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8554
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8555
echo $ECHO_N "(cached) $ECHO_C" >&6
8557
ac_check_lib_save_LIBS=$LIBS
8559
cat >conftest.$ac_ext <<_ACEOF
8562
cat confdefs.h >>conftest.$ac_ext
8563
cat >>conftest.$ac_ext <<_ACEOF
8564
/* end confdefs.h. */
8566
/* Override any gcc2 internal prototype to avoid an error. */
8570
/* We use char because int might match the return type of a gcc2
8571
builtin and then its argument prototype would still apply. */
8581
rm -f conftest.$ac_objext conftest$ac_exeext
8582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583
(eval $ac_link) 2>conftest.er1
8585
grep -v '^ *+' conftest.er1 >conftest.err
8587
cat conftest.err >&5
8588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589
(exit $ac_status); } &&
8590
{ ac_try='test -z "$ac_c_werror_flag"
8591
|| test ! -s conftest.err'
8592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596
(exit $ac_status); }; } &&
8597
{ ac_try='test -s conftest$ac_exeext'
8598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602
(exit $ac_status); }; }; then
8603
ac_cv_lib_dl_dlopen=yes
8605
echo "$as_me: failed program was:" >&5
8606
sed 's/^/| /' conftest.$ac_ext >&5
8608
ac_cv_lib_dl_dlopen=no
8610
rm -f conftest.err conftest.$ac_objext \
8611
conftest$ac_exeext conftest.$ac_ext
8612
LIBS=$ac_check_lib_save_LIBS
8614
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8615
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8616
if test $ac_cv_lib_dl_dlopen = yes; then
8617
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8619
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8620
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8621
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8622
echo $ECHO_N "(cached) $ECHO_C" >&6
8624
ac_check_lib_save_LIBS=$LIBS
8626
cat >conftest.$ac_ext <<_ACEOF
8629
cat confdefs.h >>conftest.$ac_ext
8630
cat >>conftest.$ac_ext <<_ACEOF
8631
/* end confdefs.h. */
8633
/* Override any gcc2 internal prototype to avoid an error. */
8637
/* We use char because int might match the return type of a gcc2
8638
builtin and then its argument prototype would still apply. */
8648
rm -f conftest.$ac_objext conftest$ac_exeext
8649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650
(eval $ac_link) 2>conftest.er1
8652
grep -v '^ *+' conftest.er1 >conftest.err
8654
cat conftest.err >&5
8655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
(exit $ac_status); } &&
8657
{ ac_try='test -z "$ac_c_werror_flag"
8658
|| test ! -s conftest.err'
8659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663
(exit $ac_status); }; } &&
8664
{ ac_try='test -s conftest$ac_exeext'
8665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669
(exit $ac_status); }; }; then
8670
ac_cv_lib_svld_dlopen=yes
8672
echo "$as_me: failed program was:" >&5
8673
sed 's/^/| /' conftest.$ac_ext >&5
8675
ac_cv_lib_svld_dlopen=no
8677
rm -f conftest.err conftest.$ac_objext \
8678
conftest$ac_exeext conftest.$ac_ext
8679
LIBS=$ac_check_lib_save_LIBS
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8682
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8683
if test $ac_cv_lib_svld_dlopen = yes; then
8684
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8686
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8687
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8688
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8689
echo $ECHO_N "(cached) $ECHO_C" >&6
8691
ac_check_lib_save_LIBS=$LIBS
8693
cat >conftest.$ac_ext <<_ACEOF
8696
cat confdefs.h >>conftest.$ac_ext
8697
cat >>conftest.$ac_ext <<_ACEOF
8698
/* end confdefs.h. */
8700
/* Override any gcc2 internal prototype to avoid an error. */
8704
/* We use char because int might match the return type of a gcc2
8705
builtin and then its argument prototype would still apply. */
8715
rm -f conftest.$ac_objext conftest$ac_exeext
8716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717
(eval $ac_link) 2>conftest.er1
8719
grep -v '^ *+' conftest.er1 >conftest.err
8721
cat conftest.err >&5
8722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723
(exit $ac_status); } &&
8724
{ ac_try='test -z "$ac_c_werror_flag"
8725
|| test ! -s conftest.err'
8726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730
(exit $ac_status); }; } &&
8731
{ ac_try='test -s conftest$ac_exeext'
8732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736
(exit $ac_status); }; }; then
8737
ac_cv_lib_dld_dld_link=yes
8739
echo "$as_me: failed program was:" >&5
8740
sed 's/^/| /' conftest.$ac_ext >&5
8742
ac_cv_lib_dld_dld_link=no
8744
rm -f conftest.err conftest.$ac_objext \
8745
conftest$ac_exeext conftest.$ac_ext
8746
LIBS=$ac_check_lib_save_LIBS
8748
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8749
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8750
if test $ac_cv_lib_dld_dld_link = yes; then
8751
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8772
if test "x$lt_cv_dlopen" != xno; then
8778
case $lt_cv_dlopen in
8780
save_CPPFLAGS="$CPPFLAGS"
8781
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8783
save_LDFLAGS="$LDFLAGS"
8784
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8787
LIBS="$lt_cv_dlopen_libs $LIBS"
8789
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8790
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8791
if test "${lt_cv_dlopen_self+set}" = set; then
8792
echo $ECHO_N "(cached) $ECHO_C" >&6
8794
if test "$cross_compiling" = yes; then :
8795
lt_cv_dlopen_self=cross
8797
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8798
lt_status=$lt_dlunknown
8799
cat > conftest.$ac_ext <<_LT_EOF
8800
#line 8800 "configure"
8801
#include "confdefs.h"
8810
# define LT_DLGLOBAL RTLD_GLOBAL
8813
# define LT_DLGLOBAL DL_GLOBAL
8815
# define LT_DLGLOBAL 0
8819
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8820
find out it does not work in some platform. */
8821
#ifndef LT_DLLAZY_OR_NOW
8823
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8826
# define LT_DLLAZY_OR_NOW DL_LAZY
8829
# define LT_DLLAZY_OR_NOW RTLD_NOW
8832
# define LT_DLLAZY_OR_NOW DL_NOW
8834
# define LT_DLLAZY_OR_NOW 0
8842
extern "C" void exit (int);
8845
void fnord() { int i=42;}
8848
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8849
int status = $lt_dlunknown;
8853
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8854
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8855
/* dlclose (self); */
8861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862
(eval $ac_link) 2>&5
8864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8866
(./conftest; exit; ) 2>/dev/null
8869
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8870
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8871
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8874
# compilation failed
8875
lt_cv_dlopen_self=no
8882
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8883
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8885
if test "x$lt_cv_dlopen_self" = xyes; then
8886
LDFLAGS="$LDFLAGS $link_static_flag"
8887
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8888
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8889
if test "${lt_cv_dlopen_self_static+set}" = set; then
8890
echo $ECHO_N "(cached) $ECHO_C" >&6
8892
if test "$cross_compiling" = yes; then :
8893
lt_cv_dlopen_self_static=cross
8895
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8896
lt_status=$lt_dlunknown
8897
cat > conftest.$ac_ext <<_LT_EOF
8898
#line 8898 "configure"
8899
#include "confdefs.h"
8908
# define LT_DLGLOBAL RTLD_GLOBAL
8911
# define LT_DLGLOBAL DL_GLOBAL
8913
# define LT_DLGLOBAL 0
8917
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8918
find out it does not work in some platform. */
8919
#ifndef LT_DLLAZY_OR_NOW
8921
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8924
# define LT_DLLAZY_OR_NOW DL_LAZY
8927
# define LT_DLLAZY_OR_NOW RTLD_NOW
8930
# define LT_DLLAZY_OR_NOW DL_NOW
8932
# define LT_DLLAZY_OR_NOW 0
8940
extern "C" void exit (int);
8943
void fnord() { int i=42;}
8946
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8947
int status = $lt_dlunknown;
8951
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8952
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8953
/* dlclose (self); */
8959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960
(eval $ac_link) 2>&5
8962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8964
(./conftest; exit; ) 2>/dev/null
8967
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8968
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8969
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8972
# compilation failed
8973
lt_cv_dlopen_self_static=no
8980
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8981
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8984
CPPFLAGS="$save_CPPFLAGS"
8985
LDFLAGS="$save_LDFLAGS"
8990
case $lt_cv_dlopen_self in
8991
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8992
*) enable_dlopen_self=unknown ;;
8995
case $lt_cv_dlopen_self_static in
8996
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8997
*) enable_dlopen_self_static=unknown ;;
9017
# Report which library types will actually be built
9018
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9019
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9020
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9021
echo "${ECHO_T}$can_build_shared" >&6
9023
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9024
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9025
test "$can_build_shared" = "no" && enable_shared=no
9027
# On AIX, shared libraries and static libraries use the same namespace, and
9028
# are all built from PIC.
9031
test "$enable_shared" = yes && enable_static=no
9032
if test -n "$RANLIB"; then
9033
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9034
postinstall_cmds='$RANLIB $lib'
9039
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9040
test "$enable_shared" = yes && enable_static=no
9044
echo "$as_me:$LINENO: result: $enable_shared" >&5
9045
echo "${ECHO_T}$enable_shared" >&6
9047
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9048
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9049
# Make sure either enable_shared or enable_static is yes.
9050
test "$enable_shared" = yes || enable_static=yes
9051
echo "$as_me:$LINENO: result: $enable_static" >&5
9052
echo "${ECHO_T}$enable_static" >&6
9059
ac_cpp='$CPP $CPPFLAGS'
9060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9076
ac_config_commands="$ac_config_commands libtool"
9085
# Check whether --enable-vtysh or --disable-vtysh was given.
9086
if test "${enable_vtysh+set}" = set; then
9087
enableval="$enable_vtysh"
9090
# Check whether --enable-ipv6 or --disable-ipv6 was given.
9091
if test "${enable_ipv6+set}" = set; then
9092
enableval="$enable_ipv6"
9095
# Check whether --enable-zebra or --disable-zebra was given.
9096
if test "${enable_zebra+set}" = set; then
9097
enableval="$enable_zebra"
9100
# Check whether --enable-bgpd or --disable-bgpd was given.
9101
if test "${enable_bgpd+set}" = set; then
9102
enableval="$enable_bgpd"
9105
# Check whether --enable-ripd or --disable-ripd was given.
9106
if test "${enable_ripd+set}" = set; then
9107
enableval="$enable_ripd"
9110
# Check whether --enable-ripngd or --disable-ripngd was given.
9111
if test "${enable_ripngd+set}" = set; then
9112
enableval="$enable_ripngd"
9115
# Check whether --enable-ospfd or --disable-ospfd was given.
9116
if test "${enable_ospfd+set}" = set; then
9117
enableval="$enable_ospfd"
9120
# Check whether --enable-ospf6d or --disable-ospf6d was given.
9121
if test "${enable_ospf6d+set}" = set; then
9122
enableval="$enable_ospf6d"
9125
# Check whether --enable-watchquagga or --disable-watchquagga was given.
9126
if test "${enable_watchquagga+set}" = set; then
9127
enableval="$enable_watchquagga"
9130
# Check whether --enable-isisd or --disable-isisd was given.
9131
if test "${enable_isisd+set}" = set; then
9132
enableval="$enable_isisd"
9135
# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
9136
if test "${enable_bgp_announce+set}" = set; then
9137
enableval="$enable_bgp_announce"
9140
# Check whether --enable-netlink or --disable-netlink was given.
9141
if test "${enable_netlink+set}" = set; then
9142
enableval="$enable_netlink"
9145
# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
9146
if test "${enable_broken_aliases+set}" = set; then
9147
enableval="$enable_broken_aliases"
9150
# Check whether --enable-snmp or --disable-snmp was given.
9151
if test "${enable_snmp+set}" = set; then
9152
enableval="$enable_snmp"
9156
# Check whether --with-libpam or --without-libpam was given.
9157
if test "${with_libpam+set}" = set; then
9158
withval="$with_libpam"
9161
# Check whether --enable-tcp-zebra or --disable-tcp-zebra was given.
9162
if test "${enable_tcp_zebra+set}" = set; then
9163
enableval="$enable_tcp_zebra"
9166
# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
9167
if test "${enable_opaque_lsa+set}" = set; then
9168
enableval="$enable_opaque_lsa"
9171
# Check whether --enable-ospfapi or --disable-ospfapi was given.
9172
if test "${enable_ospfapi+set}" = set; then
9173
enableval="$enable_ospfapi"
9176
# Check whether --enable-ospfclient or --disable-ospfclient was given.
9177
if test "${enable_ospfclient+set}" = set; then
9178
enableval="$enable_ospfclient"
9181
# Check whether --enable-ospf-te or --disable-ospf-te was given.
9182
if test "${enable_ospf_te+set}" = set; then
9183
enableval="$enable_ospf_te"
9186
# Check whether --enable-multipath or --disable-multipath was given.
9187
if test "${enable_multipath+set}" = set; then
9188
enableval="$enable_multipath"
9191
# Check whether --enable-quagga_user or --disable-quagga_user was given.
9192
if test "${enable_quagga_user+set}" = set; then
9193
enableval="$enable_quagga_user"
9196
# Check whether --enable-quagga_group or --disable-quagga_group was given.
9197
if test "${enable_quagga_group+set}" = set; then
9198
enableval="$enable_quagga_group"
9201
# Check whether --enable-vty_group or --disable-vty_group was given.
9202
if test "${enable_vty_group+set}" = set; then
9203
enableval="$enable_vty_group"
9206
# Check whether --enable-configfile_mask or --disable-configfile_mask was given.
9207
if test "${enable_configfile_mask+set}" = set; then
9208
enableval="$enable_configfile_mask"
9211
# Check whether --enable-logfile_mask or --disable-logfile_mask was given.
9212
if test "${enable_logfile_mask+set}" = set; then
9213
enableval="$enable_logfile_mask"
9217
# Check whether --enable-rtadv or --disable-rtadv was given.
9218
if test "${enable_rtadv+set}" = set; then
9219
enableval="$enable_rtadv"
9222
# Check whether --enable-irdp or --disable-irdp was given.
9223
if test "${enable_irdp+set}" = set; then
9224
enableval="$enable_irdp"
9227
# Check whether --enable-isis_topology or --disable-isis_topology was given.
9228
if test "${enable_isis_topology+set}" = set; then
9229
enableval="$enable_isis_topology"
9232
# Check whether --enable-capabilities or --disable-capabilities was given.
9233
if test "${enable_capabilities+set}" = set; then
9234
enableval="$enable_capabilities"
9237
# Check whether --enable-gcc_ultra_verbose or --disable-gcc_ultra_verbose was given.
9238
if test "${enable_gcc_ultra_verbose+set}" = set; then
9239
enableval="$enable_gcc_ultra_verbose"
9242
# Check whether --enable-gcc-rdynamic or --disable-gcc-rdynamic was given.
9243
if test "${enable_gcc_rdynamic+set}" = set; then
9244
enableval="$enable_gcc_rdynamic"
9247
# Check whether --enable-time-check or --disable-time-check was given.
9248
if test "${enable_time_check+set}" = set; then
9249
enableval="$enable_time_check"
9253
if test x"${enable_gcc_ultra_verbose}" = x"yes" ; then
9254
CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
9255
CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
9256
CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
9257
CFLAGS="${CFLAGS} -Wpacked -Wpadded"
9260
if test x"${enable_gcc_rdynamic}" = x"yes" ; then
9261
LDFLAGS="${LDFLAGS} -rdynamic"
9264
if test x"${enable_time_check}" != x"no" ; then
9265
if test x"${enable_time_check}" = x"yes" -o x"${enable_time_check}" = x ; then
9267
cat >>confdefs.h <<\_ACEOF
9268
#define CONSUMED_TIME_CHECK 5000000
9273
cat >>confdefs.h <<_ACEOF
9274
#define CONSUMED_TIME_CHECK $enable_time_check
9280
if test "${enable_broken_aliases}" = "yes"; then
9281
if test "${enable_netlink}" = "yes"
9283
echo "Sorry, you can't use netlink with broken aliases"
9287
cat >>confdefs.h <<\_ACEOF
9288
#define HAVE_BROKEN_ALIASES
9294
if test "${enable_tcp_zebra}" = "yes"; then
9296
cat >>confdefs.h <<\_ACEOF
9297
#define HAVE_TCP_ZEBRA
9302
if test "${enable_opaque_lsa}" = "yes"; then
9304
cat >>confdefs.h <<\_ACEOF
9305
#define HAVE_OPAQUE_LSA
9310
if test "${enable_ospf_te}" = "yes"; then
9312
cat >>confdefs.h <<\_ACEOF
9313
#define HAVE_OPAQUE_LSA
9317
cat >>confdefs.h <<\_ACEOF
9318
#define HAVE_OSPF_TE
9323
echo "$as_me:$LINENO: checking if zebra should be configurable to send Route Advertisements" >&5
9324
echo $ECHO_N "checking if zebra should be configurable to send Route Advertisements... $ECHO_C" >&6
9325
if test "${enable_rtadv}" != "no"; then
9326
echo "$as_me:$LINENO: result: yes" >&5
9327
echo "${ECHO_T}yes" >&6
9329
cat >>confdefs.h <<\_ACEOF
9334
echo "$as_me:$LINENO: result: no" >&5
9335
echo "${ECHO_T}no" >&6
9338
if test "${enable_irdp}" = "yes"; then
9340
cat >>confdefs.h <<\_ACEOF
9346
if test "${enable_isisd}" = "yes" && test "${enable_isis_topology}" = yes; then
9348
cat >>confdefs.h <<\_ACEOF
9349
#define TOPOLOGY_GENERATE
9352
ISIS_TOPOLOGY_INCLUDES="-I./topology"
9353
ISIS_TOPOLOGY_DIR="topology"
9354
ISIS_TOPOLOGY_LIB="./topology/libtopology.a"
9361
if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
9362
enable_user="quagga"
9363
elif test "${enable_user}" = "no"; then
9367
if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
9368
enable_group="quagga"
9369
elif test "${enable_group}" = "no"; then
9373
if test x"${enable_vty_group}" = x"yes" ; then
9374
{ { echo "$as_me:$LINENO: error: --enable-vty-group requires a group as argument, not yes" >&5
9375
echo "$as_me: error: --enable-vty-group requires a group as argument, not yes" >&2;}
9376
{ (exit 1); exit 1; }; }
9377
elif test x"${enable_vty_group}" != x""; then
9378
if test x"${enable_vty_group}" != x"no"; then
9380
cat >>confdefs.h <<_ACEOF
9381
#define VTY_GROUP "${enable_vty_group}"
9390
cat >>confdefs.h <<_ACEOF
9391
#define QUAGGA_USER "${enable_user}"
9395
cat >>confdefs.h <<_ACEOF
9396
#define QUAGGA_GROUP "${enable_group}"
9400
enable_configfile_mask=${enable_configfile_mask:-0600}
9402
cat >>confdefs.h <<_ACEOF
9403
#define CONFIGFILE_MASK ${enable_configfile_mask}
9407
enable_logfile_mask=${enable_logfile_mask:-0600}
9409
cat >>confdefs.h <<_ACEOF
9410
#define LOGFILE_MASK ${enable_logfile_mask}
9417
case "${enable_multipath}" in
9419
MULTIPATH_NUM="${enable_multipath}"
9424
echo "Please specify digit to --enable-multipath ARG."
9432
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9433
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9434
if test "${ac_cv_header_stdc+set}" = set; then
9435
echo $ECHO_N "(cached) $ECHO_C" >&6
9437
cat >conftest.$ac_ext <<_ACEOF
9440
cat confdefs.h >>conftest.$ac_ext
9441
cat >>conftest.$ac_ext <<_ACEOF
9442
/* end confdefs.h. */
9456
rm -f conftest.$ac_objext
9457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9458
(eval $ac_compile) 2>conftest.er1
9460
grep -v '^ *+' conftest.er1 >conftest.err
9462
cat conftest.err >&5
9463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464
(exit $ac_status); } &&
9465
{ ac_try='test -z "$ac_c_werror_flag"
9466
|| test ! -s conftest.err'
9467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471
(exit $ac_status); }; } &&
9472
{ ac_try='test -s conftest.$ac_objext'
9473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477
(exit $ac_status); }; }; then
9478
ac_cv_header_stdc=yes
9480
echo "$as_me: failed program was:" >&5
9481
sed 's/^/| /' conftest.$ac_ext >&5
9483
ac_cv_header_stdc=no
9485
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9487
if test $ac_cv_header_stdc = yes; then
9488
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9489
cat >conftest.$ac_ext <<_ACEOF
9492
cat confdefs.h >>conftest.$ac_ext
9493
cat >>conftest.$ac_ext <<_ACEOF
9494
/* end confdefs.h. */
9498
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9499
$EGREP "memchr" >/dev/null 2>&1; then
9502
ac_cv_header_stdc=no
9508
if test $ac_cv_header_stdc = yes; then
9509
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9510
cat >conftest.$ac_ext <<_ACEOF
9513
cat confdefs.h >>conftest.$ac_ext
9514
cat >>conftest.$ac_ext <<_ACEOF
9515
/* end confdefs.h. */
9519
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9520
$EGREP "free" >/dev/null 2>&1; then
9523
ac_cv_header_stdc=no
9529
if test $ac_cv_header_stdc = yes; then
9530
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9531
if test "$cross_compiling" = yes; then
9534
cat >conftest.$ac_ext <<_ACEOF
9537
cat confdefs.h >>conftest.$ac_ext
9538
cat >>conftest.$ac_ext <<_ACEOF
9539
/* end confdefs.h. */
9541
#if ((' ' & 0x0FF) == 0x020)
9542
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9543
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9545
# define ISLOWER(c) \
9546
(('a' <= (c) && (c) <= 'i') \
9547
|| ('j' <= (c) && (c) <= 'r') \
9548
|| ('s' <= (c) && (c) <= 'z'))
9549
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9552
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9557
for (i = 0; i < 256; i++)
9558
if (XOR (islower (i), ISLOWER (i))
9559
|| toupper (i) != TOUPPER (i))
9564
rm -f conftest$ac_exeext
9565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566
(eval $ac_link) 2>&5
9568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574
(exit $ac_status); }; }; then
9577
echo "$as_me: program exited with status $ac_status" >&5
9578
echo "$as_me: failed program was:" >&5
9579
sed 's/^/| /' conftest.$ac_ext >&5
9582
ac_cv_header_stdc=no
9584
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9588
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9589
echo "${ECHO_T}$ac_cv_header_stdc" >&6
9590
if test $ac_cv_header_stdc = yes; then
9592
cat >>confdefs.h <<\_ACEOF
9593
#define STDC_HEADERS 1
9614
for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
9615
sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
9616
sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
9619
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621
echo "$as_me:$LINENO: checking for $ac_header" >&5
9622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9623
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9624
echo $ECHO_N "(cached) $ECHO_C" >&6
9626
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9627
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9629
# Is the header compilable?
9630
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9631
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9632
cat >conftest.$ac_ext <<_ACEOF
9635
cat confdefs.h >>conftest.$ac_ext
9636
cat >>conftest.$ac_ext <<_ACEOF
9637
/* end confdefs.h. */
9638
$ac_includes_default
9639
#include <$ac_header>
9641
rm -f conftest.$ac_objext
9642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643
(eval $ac_compile) 2>conftest.er1
9645
grep -v '^ *+' conftest.er1 >conftest.err
9647
cat conftest.err >&5
9648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649
(exit $ac_status); } &&
9650
{ ac_try='test -z "$ac_c_werror_flag"
9651
|| test ! -s conftest.err'
9652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656
(exit $ac_status); }; } &&
9657
{ ac_try='test -s conftest.$ac_objext'
9658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662
(exit $ac_status); }; }; then
9663
ac_header_compiler=yes
9665
echo "$as_me: failed program was:" >&5
9666
sed 's/^/| /' conftest.$ac_ext >&5
9668
ac_header_compiler=no
9670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9671
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9672
echo "${ECHO_T}$ac_header_compiler" >&6
9674
# Is the header present?
9675
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9676
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9677
cat >conftest.$ac_ext <<_ACEOF
9680
cat confdefs.h >>conftest.$ac_ext
9681
cat >>conftest.$ac_ext <<_ACEOF
9682
/* end confdefs.h. */
9683
#include <$ac_header>
9685
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9686
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9688
grep -v '^ *+' conftest.er1 >conftest.err
9690
cat conftest.err >&5
9691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692
(exit $ac_status); } >/dev/null; then
9693
if test -s conftest.err; then
9694
ac_cpp_err=$ac_c_preproc_warn_flag
9695
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9702
if test -z "$ac_cpp_err"; then
9703
ac_header_preproc=yes
9705
echo "$as_me: failed program was:" >&5
9706
sed 's/^/| /' conftest.$ac_ext >&5
9708
ac_header_preproc=no
9710
rm -f conftest.err conftest.$ac_ext
9711
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9712
echo "${ECHO_T}$ac_header_preproc" >&6
9714
# So? What about this header?
9715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9717
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9718
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9719
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9720
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9721
ac_header_preproc=yes
9724
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9725
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9726
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9727
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9728
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9729
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9730
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9731
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9732
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9733
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9734
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9735
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9738
## ----------------------------------------- ##
9739
## Report this to http://bugzilla.quagga.net ##
9740
## ----------------------------------------- ##
9743
sed "s/^/$as_me: WARNING: /" >&2
9746
echo "$as_me:$LINENO: checking for $ac_header" >&5
9747
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9748
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9749
echo $ECHO_N "(cached) $ECHO_C" >&6
9751
eval "$as_ac_Header=\$ac_header_preproc"
9753
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9757
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9758
cat >>confdefs.h <<_ACEOF
9759
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9777
for ac_header in sys/socket.h netinet/in_systm.h netinet/in.h \
9778
net/if_dl.h net/netopt.h inet/nd.h net/route.h \
9779
net/if.h net/if_var.h netinet/in_var.h
9781
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9782
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9783
echo "$as_me:$LINENO: checking for $ac_header" >&5
9784
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9785
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9786
echo $ECHO_N "(cached) $ECHO_C" >&6
9788
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9789
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9791
# Is the header compilable?
9792
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9793
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9794
cat >conftest.$ac_ext <<_ACEOF
9797
cat confdefs.h >>conftest.$ac_ext
9798
cat >>conftest.$ac_ext <<_ACEOF
9799
/* end confdefs.h. */
9800
$ac_includes_default
9801
#include <$ac_header>
9803
rm -f conftest.$ac_objext
9804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805
(eval $ac_compile) 2>conftest.er1
9807
grep -v '^ *+' conftest.er1 >conftest.err
9809
cat conftest.err >&5
9810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811
(exit $ac_status); } &&
9812
{ ac_try='test -z "$ac_c_werror_flag"
9813
|| test ! -s conftest.err'
9814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818
(exit $ac_status); }; } &&
9819
{ ac_try='test -s conftest.$ac_objext'
9820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824
(exit $ac_status); }; }; then
9825
ac_header_compiler=yes
9827
echo "$as_me: failed program was:" >&5
9828
sed 's/^/| /' conftest.$ac_ext >&5
9830
ac_header_compiler=no
9832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9833
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9834
echo "${ECHO_T}$ac_header_compiler" >&6
9836
# Is the header present?
9837
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9838
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9839
cat >conftest.$ac_ext <<_ACEOF
9842
cat confdefs.h >>conftest.$ac_ext
9843
cat >>conftest.$ac_ext <<_ACEOF
9844
/* end confdefs.h. */
9845
#include <$ac_header>
9847
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9848
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9850
grep -v '^ *+' conftest.er1 >conftest.err
9852
cat conftest.err >&5
9853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854
(exit $ac_status); } >/dev/null; then
9855
if test -s conftest.err; then
9856
ac_cpp_err=$ac_c_preproc_warn_flag
9857
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9864
if test -z "$ac_cpp_err"; then
9865
ac_header_preproc=yes
9867
echo "$as_me: failed program was:" >&5
9868
sed 's/^/| /' conftest.$ac_ext >&5
9870
ac_header_preproc=no
9872
rm -f conftest.err conftest.$ac_ext
9873
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9874
echo "${ECHO_T}$ac_header_preproc" >&6
9876
# So? What about this header?
9877
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9879
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9880
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9881
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9882
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9883
ac_header_preproc=yes
9886
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9887
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9888
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9889
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9890
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9891
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9892
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9893
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9894
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9895
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9896
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9897
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9900
## ----------------------------------------- ##
9901
## Report this to http://bugzilla.quagga.net ##
9902
## ----------------------------------------- ##
9905
sed "s/^/$as_me: WARNING: /" >&2
9908
echo "$as_me:$LINENO: checking for $ac_header" >&5
9909
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9910
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9911
echo $ECHO_N "(cached) $ECHO_C" >&6
9913
eval "$as_ac_Header=\$ac_header_preproc"
9915
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9916
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9919
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9920
cat >>confdefs.h <<_ACEOF
9921
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9930
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9931
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9932
if test "${ac_cv_c_const+set}" = set; then
9933
echo $ECHO_N "(cached) $ECHO_C" >&6
9935
cat >conftest.$ac_ext <<_ACEOF
9938
cat confdefs.h >>conftest.$ac_ext
9939
cat >>conftest.$ac_ext <<_ACEOF
9940
/* end confdefs.h. */
9945
/* FIXME: Include the comments suggested by Paul. */
9947
/* Ultrix mips cc rejects this. */
9948
typedef int charset[2];
9950
/* SunOS 4.1.1 cc rejects this. */
9951
char const *const *ccp;
9953
/* NEC SVR4.0.2 mips cc rejects this. */
9954
struct point {int x, y;};
9955
static struct point const zero = {0,0};
9956
/* AIX XL C 1.02.0.0 rejects this.
9957
It does not let you subtract one const X* pointer from another in
9958
an arm of an if-expression whose if-part is not a constant
9960
const char *g = "string";
9961
ccp = &g + (g ? g-g : 0);
9962
/* HPUX 7.0 cc rejects these. */
9965
ccp = (char const *const *) p;
9966
{ /* SCO 3.2v4 cc rejects this. */
9968
char const *s = 0 ? (char *) 0 : (char const *) 0;
9972
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9974
const int *foo = &x[0];
9977
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9978
typedef const int *iptr;
9982
{ /* AIX XL C 1.02.0.0 rejects this saying
9983
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9984
struct s { int j; const int *ap[3]; };
9985
struct s *b; b->j = 5;
9987
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9996
rm -f conftest.$ac_objext
9997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998
(eval $ac_compile) 2>conftest.er1
10000
grep -v '^ *+' conftest.er1 >conftest.err
10002
cat conftest.err >&5
10003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004
(exit $ac_status); } &&
10005
{ ac_try='test -z "$ac_c_werror_flag"
10006
|| test ! -s conftest.err'
10007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008
(eval $ac_try) 2>&5
10010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011
(exit $ac_status); }; } &&
10012
{ ac_try='test -s conftest.$ac_objext'
10013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014
(eval $ac_try) 2>&5
10016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017
(exit $ac_status); }; }; then
10020
echo "$as_me: failed program was:" >&5
10021
sed 's/^/| /' conftest.$ac_ext >&5
10025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10027
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10028
echo "${ECHO_T}$ac_cv_c_const" >&6
10029
if test $ac_cv_c_const = no; then
10031
cat >>confdefs.h <<\_ACEOF
10037
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10038
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10039
if test "${ac_cv_type_signal+set}" = set; then
10040
echo $ECHO_N "(cached) $ECHO_C" >&6
10042
cat >conftest.$ac_ext <<_ACEOF
10045
cat confdefs.h >>conftest.$ac_ext
10046
cat >>conftest.$ac_ext <<_ACEOF
10047
/* end confdefs.h. */
10048
#include <sys/types.h>
10049
#include <signal.h>
10054
extern "C" void (*signal (int, void (*)(int)))(int);
10056
void (*signal ()) ();
10067
rm -f conftest.$ac_objext
10068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069
(eval $ac_compile) 2>conftest.er1
10071
grep -v '^ *+' conftest.er1 >conftest.err
10073
cat conftest.err >&5
10074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
(exit $ac_status); } &&
10076
{ ac_try='test -z "$ac_c_werror_flag"
10077
|| test ! -s conftest.err'
10078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079
(eval $ac_try) 2>&5
10081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082
(exit $ac_status); }; } &&
10083
{ ac_try='test -s conftest.$ac_objext'
10084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085
(eval $ac_try) 2>&5
10087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088
(exit $ac_status); }; }; then
10089
ac_cv_type_signal=void
10091
echo "$as_me: failed program was:" >&5
10092
sed 's/^/| /' conftest.$ac_ext >&5
10094
ac_cv_type_signal=int
10096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10098
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10099
echo "${ECHO_T}$ac_cv_type_signal" >&6
10101
cat >>confdefs.h <<_ACEOF
10102
#define RETSIGTYPE $ac_cv_type_signal
10108
*-sunos5.[6-7]* | *-solaris2.[6-7]*)
10111
cat >>confdefs.h <<\_ACEOF
10116
cat >>confdefs.h <<\_ACEOF
10121
echo "$as_me:$LINENO: checking for main in -lxnet" >&5
10122
echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
10123
if test "${ac_cv_lib_xnet_main+set}" = set; then
10124
echo $ECHO_N "(cached) $ECHO_C" >&6
10126
ac_check_lib_save_LIBS=$LIBS
10127
LIBS="-lxnet $LIBS"
10128
cat >conftest.$ac_ext <<_ACEOF
10131
cat confdefs.h >>conftest.$ac_ext
10132
cat >>conftest.$ac_ext <<_ACEOF
10133
/* end confdefs.h. */
10144
rm -f conftest.$ac_objext conftest$ac_exeext
10145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146
(eval $ac_link) 2>conftest.er1
10148
grep -v '^ *+' conftest.er1 >conftest.err
10150
cat conftest.err >&5
10151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152
(exit $ac_status); } &&
10153
{ ac_try='test -z "$ac_c_werror_flag"
10154
|| test ! -s conftest.err'
10155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156
(eval $ac_try) 2>&5
10158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159
(exit $ac_status); }; } &&
10160
{ ac_try='test -s conftest$ac_exeext'
10161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162
(eval $ac_try) 2>&5
10164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165
(exit $ac_status); }; }; then
10166
ac_cv_lib_xnet_main=yes
10168
echo "$as_me: failed program was:" >&5
10169
sed 's/^/| /' conftest.$ac_ext >&5
10171
ac_cv_lib_xnet_main=no
10173
rm -f conftest.err conftest.$ac_objext \
10174
conftest$ac_exeext conftest.$ac_ext
10175
LIBS=$ac_check_lib_save_LIBS
10177
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
10178
echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
10179
if test $ac_cv_lib_xnet_main = yes; then
10180
cat >>confdefs.h <<_ACEOF
10181
#define HAVE_LIBXNET 1
10184
LIBS="-lxnet $LIBS"
10191
| *-sunos5.1[0-9] \
10192
| *-sunos5.1[0-9].[0-9] \
10193
| *-solaris2.[8-9] \
10194
| *-solaris2.1[0-9] \
10195
| *-solaris2.1[0-9].[0-9])
10198
cat >>confdefs.h <<\_ACEOF
10203
cat >>confdefs.h <<\_ACEOF
10208
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
10209
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
10210
if test "${ac_cv_lib_socket_main+set}" = set; then
10211
echo $ECHO_N "(cached) $ECHO_C" >&6
10213
ac_check_lib_save_LIBS=$LIBS
10214
LIBS="-lsocket $LIBS"
10215
cat >conftest.$ac_ext <<_ACEOF
10218
cat confdefs.h >>conftest.$ac_ext
10219
cat >>conftest.$ac_ext <<_ACEOF
10220
/* end confdefs.h. */
10231
rm -f conftest.$ac_objext conftest$ac_exeext
10232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233
(eval $ac_link) 2>conftest.er1
10235
grep -v '^ *+' conftest.er1 >conftest.err
10237
cat conftest.err >&5
10238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239
(exit $ac_status); } &&
10240
{ ac_try='test -z "$ac_c_werror_flag"
10241
|| test ! -s conftest.err'
10242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243
(eval $ac_try) 2>&5
10245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246
(exit $ac_status); }; } &&
10247
{ ac_try='test -s conftest$ac_exeext'
10248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249
(eval $ac_try) 2>&5
10251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252
(exit $ac_status); }; }; then
10253
ac_cv_lib_socket_main=yes
10255
echo "$as_me: failed program was:" >&5
10256
sed 's/^/| /' conftest.$ac_ext >&5
10258
ac_cv_lib_socket_main=no
10260
rm -f conftest.err conftest.$ac_objext \
10261
conftest$ac_exeext conftest.$ac_ext
10262
LIBS=$ac_check_lib_save_LIBS
10264
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
10265
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
10266
if test $ac_cv_lib_socket_main = yes; then
10267
cat >>confdefs.h <<_ACEOF
10268
#define HAVE_LIBSOCKET 1
10271
LIBS="-lsocket $LIBS"
10276
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
10277
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
10278
if test "${ac_cv_lib_nsl_main+set}" = set; then
10279
echo $ECHO_N "(cached) $ECHO_C" >&6
10281
ac_check_lib_save_LIBS=$LIBS
10283
cat >conftest.$ac_ext <<_ACEOF
10286
cat confdefs.h >>conftest.$ac_ext
10287
cat >>conftest.$ac_ext <<_ACEOF
10288
/* end confdefs.h. */
10299
rm -f conftest.$ac_objext conftest$ac_exeext
10300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301
(eval $ac_link) 2>conftest.er1
10303
grep -v '^ *+' conftest.er1 >conftest.err
10305
cat conftest.err >&5
10306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307
(exit $ac_status); } &&
10308
{ ac_try='test -z "$ac_c_werror_flag"
10309
|| test ! -s conftest.err'
10310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311
(eval $ac_try) 2>&5
10313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314
(exit $ac_status); }; } &&
10315
{ ac_try='test -s conftest$ac_exeext'
10316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317
(eval $ac_try) 2>&5
10319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320
(exit $ac_status); }; }; then
10321
ac_cv_lib_nsl_main=yes
10323
echo "$as_me: failed program was:" >&5
10324
sed 's/^/| /' conftest.$ac_ext >&5
10326
ac_cv_lib_nsl_main=no
10328
rm -f conftest.err conftest.$ac_objext \
10329
conftest$ac_exeext conftest.$ac_ext
10330
LIBS=$ac_check_lib_save_LIBS
10332
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
10333
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
10334
if test $ac_cv_lib_nsl_main = yes; then
10335
cat >>confdefs.h <<_ACEOF
10336
#define HAVE_LIBNSL 1
10344
echo "$as_me:$LINENO: checking for main in -lumem" >&5
10345
echo $ECHO_N "checking for main in -lumem... $ECHO_C" >&6
10346
if test "${ac_cv_lib_umem_main+set}" = set; then
10347
echo $ECHO_N "(cached) $ECHO_C" >&6
10349
ac_check_lib_save_LIBS=$LIBS
10350
LIBS="-lumem $LIBS"
10351
cat >conftest.$ac_ext <<_ACEOF
10354
cat confdefs.h >>conftest.$ac_ext
10355
cat >>conftest.$ac_ext <<_ACEOF
10356
/* end confdefs.h. */
10367
rm -f conftest.$ac_objext conftest$ac_exeext
10368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369
(eval $ac_link) 2>conftest.er1
10371
grep -v '^ *+' conftest.er1 >conftest.err
10373
cat conftest.err >&5
10374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375
(exit $ac_status); } &&
10376
{ ac_try='test -z "$ac_c_werror_flag"
10377
|| test ! -s conftest.err'
10378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379
(eval $ac_try) 2>&5
10381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382
(exit $ac_status); }; } &&
10383
{ ac_try='test -s conftest$ac_exeext'
10384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385
(eval $ac_try) 2>&5
10387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388
(exit $ac_status); }; }; then
10389
ac_cv_lib_umem_main=yes
10391
echo "$as_me: failed program was:" >&5
10392
sed 's/^/| /' conftest.$ac_ext >&5
10394
ac_cv_lib_umem_main=no
10396
rm -f conftest.err conftest.$ac_objext \
10397
conftest$ac_exeext conftest.$ac_ext
10398
LIBS=$ac_check_lib_save_LIBS
10400
echo "$as_me:$LINENO: result: $ac_cv_lib_umem_main" >&5
10401
echo "${ECHO_T}$ac_cv_lib_umem_main" >&6
10402
if test $ac_cv_lib_umem_main = yes; then
10403
cat >>confdefs.h <<_ACEOF
10404
#define HAVE_LIBUMEM 1
10407
LIBS="-lumem $LIBS"
10413
*-sunos5* | *-solaris2*)
10415
cat >>confdefs.h <<\_ACEOF
10420
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
10421
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
10422
if test "${ac_cv_lib_socket_main+set}" = set; then
10423
echo $ECHO_N "(cached) $ECHO_C" >&6
10425
ac_check_lib_save_LIBS=$LIBS
10426
LIBS="-lsocket $LIBS"
10427
cat >conftest.$ac_ext <<_ACEOF
10430
cat confdefs.h >>conftest.$ac_ext
10431
cat >>conftest.$ac_ext <<_ACEOF
10432
/* end confdefs.h. */
10443
rm -f conftest.$ac_objext conftest$ac_exeext
10444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445
(eval $ac_link) 2>conftest.er1
10447
grep -v '^ *+' conftest.er1 >conftest.err
10449
cat conftest.err >&5
10450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451
(exit $ac_status); } &&
10452
{ ac_try='test -z "$ac_c_werror_flag"
10453
|| test ! -s conftest.err'
10454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455
(eval $ac_try) 2>&5
10457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458
(exit $ac_status); }; } &&
10459
{ ac_try='test -s conftest$ac_exeext'
10460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461
(eval $ac_try) 2>&5
10463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464
(exit $ac_status); }; }; then
10465
ac_cv_lib_socket_main=yes
10467
echo "$as_me: failed program was:" >&5
10468
sed 's/^/| /' conftest.$ac_ext >&5
10470
ac_cv_lib_socket_main=no
10472
rm -f conftest.err conftest.$ac_objext \
10473
conftest$ac_exeext conftest.$ac_ext
10474
LIBS=$ac_check_lib_save_LIBS
10476
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
10477
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
10478
if test $ac_cv_lib_socket_main = yes; then
10479
cat >>confdefs.h <<_ACEOF
10480
#define HAVE_LIBSOCKET 1
10483
LIBS="-lsocket $LIBS"
10488
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
10489
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
10490
if test "${ac_cv_lib_nsl_main+set}" = set; then
10491
echo $ECHO_N "(cached) $ECHO_C" >&6
10493
ac_check_lib_save_LIBS=$LIBS
10495
cat >conftest.$ac_ext <<_ACEOF
10498
cat confdefs.h >>conftest.$ac_ext
10499
cat >>conftest.$ac_ext <<_ACEOF
10500
/* end confdefs.h. */
10511
rm -f conftest.$ac_objext conftest$ac_exeext
10512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513
(eval $ac_link) 2>conftest.er1
10515
grep -v '^ *+' conftest.er1 >conftest.err
10517
cat conftest.err >&5
10518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519
(exit $ac_status); } &&
10520
{ ac_try='test -z "$ac_c_werror_flag"
10521
|| test ! -s conftest.err'
10522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523
(eval $ac_try) 2>&5
10525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526
(exit $ac_status); }; } &&
10527
{ ac_try='test -s conftest$ac_exeext'
10528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529
(eval $ac_try) 2>&5
10531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532
(exit $ac_status); }; }; then
10533
ac_cv_lib_nsl_main=yes
10535
echo "$as_me: failed program was:" >&5
10536
sed 's/^/| /' conftest.$ac_ext >&5
10538
ac_cv_lib_nsl_main=no
10540
rm -f conftest.err conftest.$ac_objext \
10541
conftest$ac_exeext conftest.$ac_ext
10542
LIBS=$ac_check_lib_save_LIBS
10544
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
10545
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
10546
if test $ac_cv_lib_nsl_main = yes; then
10547
cat >>confdefs.h <<_ACEOF
10548
#define HAVE_LIBNSL 1
10560
cat >>confdefs.h <<\_ACEOF
10567
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10568
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10569
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10570
echo $ECHO_N "(cached) $ECHO_C" >&6
10572
ac_check_lib_save_LIBS=$LIBS
10574
cat >conftest.$ac_ext <<_ACEOF
10577
cat confdefs.h >>conftest.$ac_ext
10578
cat >>conftest.$ac_ext <<_ACEOF
10579
/* end confdefs.h. */
10581
/* Override any gcc2 internal prototype to avoid an error. */
10585
/* We use char because int might match the return type of a gcc2
10586
builtin and then its argument prototype would still apply. */
10587
char gethostbyname ();
10596
rm -f conftest.$ac_objext conftest$ac_exeext
10597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598
(eval $ac_link) 2>conftest.er1
10600
grep -v '^ *+' conftest.er1 >conftest.err
10602
cat conftest.err >&5
10603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604
(exit $ac_status); } &&
10605
{ ac_try='test -z "$ac_c_werror_flag"
10606
|| test ! -s conftest.err'
10607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608
(eval $ac_try) 2>&5
10610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
(exit $ac_status); }; } &&
10612
{ ac_try='test -s conftest$ac_exeext'
10613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
(eval $ac_try) 2>&5
10616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
(exit $ac_status); }; }; then
10618
ac_cv_lib_nsl_gethostbyname=yes
10620
echo "$as_me: failed program was:" >&5
10621
sed 's/^/| /' conftest.$ac_ext >&5
10623
ac_cv_lib_nsl_gethostbyname=no
10625
rm -f conftest.err conftest.$ac_objext \
10626
conftest$ac_exeext conftest.$ac_ext
10627
LIBS=$ac_check_lib_save_LIBS
10629
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10630
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10631
if test $ac_cv_lib_nsl_gethostbyname = yes; then
10632
cat >>confdefs.h <<_ACEOF
10633
#define HAVE_LIBNSL 1
10641
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10642
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10643
if test "${ac_cv_lib_socket_socket+set}" = set; then
10644
echo $ECHO_N "(cached) $ECHO_C" >&6
10646
ac_check_lib_save_LIBS=$LIBS
10647
LIBS="-lsocket $LIBS"
10648
cat >conftest.$ac_ext <<_ACEOF
10651
cat confdefs.h >>conftest.$ac_ext
10652
cat >>conftest.$ac_ext <<_ACEOF
10653
/* end confdefs.h. */
10655
/* Override any gcc2 internal prototype to avoid an error. */
10659
/* We use char because int might match the return type of a gcc2
10660
builtin and then its argument prototype would still apply. */
10670
rm -f conftest.$ac_objext conftest$ac_exeext
10671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672
(eval $ac_link) 2>conftest.er1
10674
grep -v '^ *+' conftest.er1 >conftest.err
10676
cat conftest.err >&5
10677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678
(exit $ac_status); } &&
10679
{ ac_try='test -z "$ac_c_werror_flag"
10680
|| test ! -s conftest.err'
10681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682
(eval $ac_try) 2>&5
10684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685
(exit $ac_status); }; } &&
10686
{ ac_try='test -s conftest$ac_exeext'
10687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688
(eval $ac_try) 2>&5
10690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691
(exit $ac_status); }; }; then
10692
ac_cv_lib_socket_socket=yes
10694
echo "$as_me: failed program was:" >&5
10695
sed 's/^/| /' conftest.$ac_ext >&5
10697
ac_cv_lib_socket_socket=no
10699
rm -f conftest.err conftest.$ac_objext \
10700
conftest$ac_exeext conftest.$ac_ext
10701
LIBS=$ac_check_lib_save_LIBS
10703
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10704
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10705
if test $ac_cv_lib_socket_socket = yes; then
10706
cat >>confdefs.h <<_ACEOF
10707
#define HAVE_LIBSOCKET 1
10710
LIBS="-lsocket $LIBS"
10717
cat >>confdefs.h <<\_ACEOF
10725
cat >>confdefs.h <<\_ACEOF
10732
OTHER_METHOD="mtu_kvm.o"
10734
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
10735
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
10736
if test "${ac_cv_lib_kvm_main+set}" = set; then
10737
echo $ECHO_N "(cached) $ECHO_C" >&6
10739
ac_check_lib_save_LIBS=$LIBS
10741
cat >conftest.$ac_ext <<_ACEOF
10744
cat confdefs.h >>conftest.$ac_ext
10745
cat >>conftest.$ac_ext <<_ACEOF
10746
/* end confdefs.h. */
10757
rm -f conftest.$ac_objext conftest$ac_exeext
10758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759
(eval $ac_link) 2>conftest.er1
10761
grep -v '^ *+' conftest.er1 >conftest.err
10763
cat conftest.err >&5
10764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765
(exit $ac_status); } &&
10766
{ ac_try='test -z "$ac_c_werror_flag"
10767
|| test ! -s conftest.err'
10768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769
(eval $ac_try) 2>&5
10771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772
(exit $ac_status); }; } &&
10773
{ ac_try='test -s conftest$ac_exeext'
10774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775
(eval $ac_try) 2>&5
10777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778
(exit $ac_status); }; }; then
10779
ac_cv_lib_kvm_main=yes
10781
echo "$as_me: failed program was:" >&5
10782
sed 's/^/| /' conftest.$ac_ext >&5
10784
ac_cv_lib_kvm_main=no
10786
rm -f conftest.err conftest.$ac_objext \
10787
conftest$ac_exeext conftest.$ac_ext
10788
LIBS=$ac_check_lib_save_LIBS
10790
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
10791
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
10792
if test $ac_cv_lib_kvm_main = yes; then
10793
cat >>confdefs.h <<_ACEOF
10794
#define HAVE_LIBKVM 1
10805
cat >>confdefs.h <<\_ACEOF
10812
case "${enable_vtysh}" in
10813
"yes") VTYSH="vtysh";
10815
cat >>confdefs.h <<\_ACEOF
10819
# Extract the first word of "perl", so it can be a program name with args.
10820
set dummy perl; ac_word=$2
10821
echo "$as_me:$LINENO: checking for $ac_word" >&5
10822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10823
if test "${ac_cv_path_PERL+set}" = set; then
10824
echo $ECHO_N "(cached) $ECHO_C" >&6
10828
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832
for as_dir in $PATH
10835
test -z "$as_dir" && as_dir=.
10836
for ac_exec_ext in '' $ac_executable_extensions; do
10837
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10838
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10839
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848
PERL=$ac_cv_path_PERL
10850
if test -n "$PERL"; then
10851
echo "$as_me:$LINENO: result: $PERL" >&5
10852
echo "${ECHO_T}$PERL" >&6
10854
echo "$as_me:$LINENO: result: no" >&5
10855
echo "${ECHO_T}no" >&6
10859
echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
10860
echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6
10861
if test "${ac_cv_lib_termcap_tputs+set}" = set; then
10862
echo $ECHO_N "(cached) $ECHO_C" >&6
10864
ac_check_lib_save_LIBS=$LIBS
10865
LIBS="-ltermcap $LIBS"
10866
cat >conftest.$ac_ext <<_ACEOF
10869
cat confdefs.h >>conftest.$ac_ext
10870
cat >>conftest.$ac_ext <<_ACEOF
10871
/* end confdefs.h. */
10873
/* Override any gcc2 internal prototype to avoid an error. */
10877
/* We use char because int might match the return type of a gcc2
10878
builtin and then its argument prototype would still apply. */
10888
rm -f conftest.$ac_objext conftest$ac_exeext
10889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890
(eval $ac_link) 2>conftest.er1
10892
grep -v '^ *+' conftest.er1 >conftest.err
10894
cat conftest.err >&5
10895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896
(exit $ac_status); } &&
10897
{ ac_try='test -z "$ac_c_werror_flag"
10898
|| test ! -s conftest.err'
10899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900
(eval $ac_try) 2>&5
10902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903
(exit $ac_status); }; } &&
10904
{ ac_try='test -s conftest$ac_exeext'
10905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906
(eval $ac_try) 2>&5
10908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909
(exit $ac_status); }; }; then
10910
ac_cv_lib_termcap_tputs=yes
10912
echo "$as_me: failed program was:" >&5
10913
sed 's/^/| /' conftest.$ac_ext >&5
10915
ac_cv_lib_termcap_tputs=no
10917
rm -f conftest.err conftest.$ac_objext \
10918
conftest$ac_exeext conftest.$ac_ext
10919
LIBS=$ac_check_lib_save_LIBS
10921
echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
10922
echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6
10923
if test $ac_cv_lib_termcap_tputs = yes; then
10924
cat >>confdefs.h <<_ACEOF
10925
#define HAVE_LIBTERMCAP 1
10928
LIBS="-ltermcap $LIBS"
10932
echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
10933
echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
10934
if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
10935
echo $ECHO_N "(cached) $ECHO_C" >&6
10937
ac_check_lib_save_LIBS=$LIBS
10938
LIBS="-ltinfo $LIBS"
10939
cat >conftest.$ac_ext <<_ACEOF
10942
cat confdefs.h >>conftest.$ac_ext
10943
cat >>conftest.$ac_ext <<_ACEOF
10944
/* end confdefs.h. */
10946
/* Override any gcc2 internal prototype to avoid an error. */
10950
/* We use char because int might match the return type of a gcc2
10951
builtin and then its argument prototype would still apply. */
10961
rm -f conftest.$ac_objext conftest$ac_exeext
10962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963
(eval $ac_link) 2>conftest.er1
10965
grep -v '^ *+' conftest.er1 >conftest.err
10967
cat conftest.err >&5
10968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969
(exit $ac_status); } &&
10970
{ ac_try='test -z "$ac_c_werror_flag"
10971
|| test ! -s conftest.err'
10972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973
(eval $ac_try) 2>&5
10975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976
(exit $ac_status); }; } &&
10977
{ ac_try='test -s conftest$ac_exeext'
10978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979
(eval $ac_try) 2>&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); }; }; then
10983
ac_cv_lib_tinfo_tputs=yes
10985
echo "$as_me: failed program was:" >&5
10986
sed 's/^/| /' conftest.$ac_ext >&5
10988
ac_cv_lib_tinfo_tputs=no
10990
rm -f conftest.err conftest.$ac_objext \
10991
conftest$ac_exeext conftest.$ac_ext
10992
LIBS=$ac_check_lib_save_LIBS
10994
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
10995
echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
10996
if test $ac_cv_lib_tinfo_tputs = yes; then
10997
cat >>confdefs.h <<_ACEOF
10998
#define HAVE_LIBTINFO 1
11001
LIBS="-ltinfo $LIBS"
11005
echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
11006
echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
11007
if test "${ac_cv_lib_curses_tputs+set}" = set; then
11008
echo $ECHO_N "(cached) $ECHO_C" >&6
11010
ac_check_lib_save_LIBS=$LIBS
11011
LIBS="-lcurses $LIBS"
11012
cat >conftest.$ac_ext <<_ACEOF
11015
cat confdefs.h >>conftest.$ac_ext
11016
cat >>conftest.$ac_ext <<_ACEOF
11017
/* end confdefs.h. */
11019
/* Override any gcc2 internal prototype to avoid an error. */
11023
/* We use char because int might match the return type of a gcc2
11024
builtin and then its argument prototype would still apply. */
11034
rm -f conftest.$ac_objext conftest$ac_exeext
11035
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036
(eval $ac_link) 2>conftest.er1
11038
grep -v '^ *+' conftest.er1 >conftest.err
11040
cat conftest.err >&5
11041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042
(exit $ac_status); } &&
11043
{ ac_try='test -z "$ac_c_werror_flag"
11044
|| test ! -s conftest.err'
11045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046
(eval $ac_try) 2>&5
11048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049
(exit $ac_status); }; } &&
11050
{ ac_try='test -s conftest$ac_exeext'
11051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052
(eval $ac_try) 2>&5
11054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055
(exit $ac_status); }; }; then
11056
ac_cv_lib_curses_tputs=yes
11058
echo "$as_me: failed program was:" >&5
11059
sed 's/^/| /' conftest.$ac_ext >&5
11061
ac_cv_lib_curses_tputs=no
11063
rm -f conftest.err conftest.$ac_objext \
11064
conftest$ac_exeext conftest.$ac_ext
11065
LIBS=$ac_check_lib_save_LIBS
11067
echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
11068
echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
11069
if test $ac_cv_lib_curses_tputs = yes; then
11070
cat >>confdefs.h <<_ACEOF
11071
#define HAVE_LIBCURSES 1
11074
LIBS="-lcurses $LIBS"
11078
echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
11079
echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
11080
if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
11081
echo $ECHO_N "(cached) $ECHO_C" >&6
11083
ac_check_lib_save_LIBS=$LIBS
11084
LIBS="-lncurses $LIBS"
11085
cat >conftest.$ac_ext <<_ACEOF
11088
cat confdefs.h >>conftest.$ac_ext
11089
cat >>conftest.$ac_ext <<_ACEOF
11090
/* end confdefs.h. */
11092
/* Override any gcc2 internal prototype to avoid an error. */
11096
/* We use char because int might match the return type of a gcc2
11097
builtin and then its argument prototype would still apply. */
11107
rm -f conftest.$ac_objext conftest$ac_exeext
11108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109
(eval $ac_link) 2>conftest.er1
11111
grep -v '^ *+' conftest.er1 >conftest.err
11113
cat conftest.err >&5
11114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115
(exit $ac_status); } &&
11116
{ ac_try='test -z "$ac_c_werror_flag"
11117
|| test ! -s conftest.err'
11118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119
(eval $ac_try) 2>&5
11121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122
(exit $ac_status); }; } &&
11123
{ ac_try='test -s conftest$ac_exeext'
11124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125
(eval $ac_try) 2>&5
11127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128
(exit $ac_status); }; }; then
11129
ac_cv_lib_ncurses_tputs=yes
11131
echo "$as_me: failed program was:" >&5
11132
sed 's/^/| /' conftest.$ac_ext >&5
11134
ac_cv_lib_ncurses_tputs=no
11136
rm -f conftest.err conftest.$ac_objext \
11137
conftest$ac_exeext conftest.$ac_ext
11138
LIBS=$ac_check_lib_save_LIBS
11140
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
11141
echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
11142
if test $ac_cv_lib_ncurses_tputs = yes; then
11143
cat >>confdefs.h <<_ACEOF
11144
#define HAVE_LIBNCURSES 1
11147
LIBS="-lncurses $LIBS"
11158
echo "$as_me:$LINENO: checking for main in -lreadline" >&5
11159
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
11160
if test "${ac_cv_lib_readline_main+set}" = set; then
11161
echo $ECHO_N "(cached) $ECHO_C" >&6
11163
ac_check_lib_save_LIBS=$LIBS
11164
LIBS="-lreadline $LIBS"
11165
cat >conftest.$ac_ext <<_ACEOF
11168
cat confdefs.h >>conftest.$ac_ext
11169
cat >>conftest.$ac_ext <<_ACEOF
11170
/* end confdefs.h. */
11181
rm -f conftest.$ac_objext conftest$ac_exeext
11182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183
(eval $ac_link) 2>conftest.er1
11185
grep -v '^ *+' conftest.er1 >conftest.err
11187
cat conftest.err >&5
11188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
(exit $ac_status); } &&
11190
{ ac_try='test -z "$ac_c_werror_flag"
11191
|| test ! -s conftest.err'
11192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193
(eval $ac_try) 2>&5
11195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196
(exit $ac_status); }; } &&
11197
{ ac_try='test -s conftest$ac_exeext'
11198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199
(eval $ac_try) 2>&5
11201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202
(exit $ac_status); }; }; then
11203
ac_cv_lib_readline_main=yes
11205
echo "$as_me: failed program was:" >&5
11206
sed 's/^/| /' conftest.$ac_ext >&5
11208
ac_cv_lib_readline_main=no
11210
rm -f conftest.err conftest.$ac_objext \
11211
conftest$ac_exeext conftest.$ac_ext
11212
LIBS=$ac_check_lib_save_LIBS
11214
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
11215
echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
11216
if test $ac_cv_lib_readline_main = yes; then
11217
cat >>confdefs.h <<_ACEOF
11218
#define HAVE_LIBREADLINE 1
11221
LIBS="-lreadline $LIBS"
11225
if test $ac_cv_lib_readline_main = no; then
11226
{ { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found and usable on your system." >&5
11227
echo "$as_me: error: vtysh needs libreadline but was not found and usable on your system." >&2;}
11228
{ (exit 1); exit 1; }; }
11230
if test "${ac_cv_header_readline_history_h+set}" = set; then
11231
echo "$as_me:$LINENO: checking for readline/history.h" >&5
11232
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
11233
if test "${ac_cv_header_readline_history_h+set}" = set; then
11234
echo $ECHO_N "(cached) $ECHO_C" >&6
11236
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
11237
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
11239
# Is the header compilable?
11240
echo "$as_me:$LINENO: checking readline/history.h usability" >&5
11241
echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
11242
cat >conftest.$ac_ext <<_ACEOF
11245
cat confdefs.h >>conftest.$ac_ext
11246
cat >>conftest.$ac_ext <<_ACEOF
11247
/* end confdefs.h. */
11248
$ac_includes_default
11249
#include <readline/history.h>
11251
rm -f conftest.$ac_objext
11252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253
(eval $ac_compile) 2>conftest.er1
11255
grep -v '^ *+' conftest.er1 >conftest.err
11257
cat conftest.err >&5
11258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259
(exit $ac_status); } &&
11260
{ ac_try='test -z "$ac_c_werror_flag"
11261
|| test ! -s conftest.err'
11262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263
(eval $ac_try) 2>&5
11265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266
(exit $ac_status); }; } &&
11267
{ ac_try='test -s conftest.$ac_objext'
11268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269
(eval $ac_try) 2>&5
11271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272
(exit $ac_status); }; }; then
11273
ac_header_compiler=yes
11275
echo "$as_me: failed program was:" >&5
11276
sed 's/^/| /' conftest.$ac_ext >&5
11278
ac_header_compiler=no
11280
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11281
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11282
echo "${ECHO_T}$ac_header_compiler" >&6
11284
# Is the header present?
11285
echo "$as_me:$LINENO: checking readline/history.h presence" >&5
11286
echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
11287
cat >conftest.$ac_ext <<_ACEOF
11290
cat confdefs.h >>conftest.$ac_ext
11291
cat >>conftest.$ac_ext <<_ACEOF
11292
/* end confdefs.h. */
11293
#include <readline/history.h>
11295
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11296
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11298
grep -v '^ *+' conftest.er1 >conftest.err
11300
cat conftest.err >&5
11301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302
(exit $ac_status); } >/dev/null; then
11303
if test -s conftest.err; then
11304
ac_cpp_err=$ac_c_preproc_warn_flag
11305
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11312
if test -z "$ac_cpp_err"; then
11313
ac_header_preproc=yes
11315
echo "$as_me: failed program was:" >&5
11316
sed 's/^/| /' conftest.$ac_ext >&5
11318
ac_header_preproc=no
11320
rm -f conftest.err conftest.$ac_ext
11321
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11322
echo "${ECHO_T}$ac_header_preproc" >&6
11324
# So? What about this header?
11325
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327
{ echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
11328
echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11329
{ echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
11330
echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
11331
ac_header_preproc=yes
11334
{ echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
11335
echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
11336
{ echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
11337
echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
11338
{ echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
11339
echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
11340
{ echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
11341
echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
11342
{ echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
11343
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
11344
{ echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
11345
echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
11348
## ----------------------------------------- ##
11349
## Report this to http://bugzilla.quagga.net ##
11350
## ----------------------------------------- ##
11353
sed "s/^/$as_me: WARNING: /" >&2
11356
echo "$as_me:$LINENO: checking for readline/history.h" >&5
11357
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
11358
if test "${ac_cv_header_readline_history_h+set}" = set; then
11359
echo $ECHO_N "(cached) $ECHO_C" >&6
11361
ac_cv_header_readline_history_h=$ac_header_preproc
11363
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
11364
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
11369
if test $ac_cv_header_readline_history_h = no;then
11370
{ { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
11371
echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
11372
{ (exit 1); exit 1; }; }
11375
echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
11376
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
11377
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
11378
echo $ECHO_N "(cached) $ECHO_C" >&6
11380
ac_check_lib_save_LIBS=$LIBS
11381
LIBS="-lreadline $LIBS"
11382
cat >conftest.$ac_ext <<_ACEOF
11385
cat confdefs.h >>conftest.$ac_ext
11386
cat >>conftest.$ac_ext <<_ACEOF
11387
/* end confdefs.h. */
11389
/* Override any gcc2 internal prototype to avoid an error. */
11393
/* We use char because int might match the return type of a gcc2
11394
builtin and then its argument prototype would still apply. */
11395
char rl_completion_matches ();
11399
rl_completion_matches ();
11404
rm -f conftest.$ac_objext conftest$ac_exeext
11405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406
(eval $ac_link) 2>conftest.er1
11408
grep -v '^ *+' conftest.er1 >conftest.err
11410
cat conftest.err >&5
11411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412
(exit $ac_status); } &&
11413
{ ac_try='test -z "$ac_c_werror_flag"
11414
|| test ! -s conftest.err'
11415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416
(eval $ac_try) 2>&5
11418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419
(exit $ac_status); }; } &&
11420
{ ac_try='test -s conftest$ac_exeext'
11421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422
(eval $ac_try) 2>&5
11424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425
(exit $ac_status); }; }; then
11426
ac_cv_lib_readline_rl_completion_matches=yes
11428
echo "$as_me: failed program was:" >&5
11429
sed 's/^/| /' conftest.$ac_ext >&5
11431
ac_cv_lib_readline_rl_completion_matches=no
11433
rm -f conftest.err conftest.$ac_objext \
11434
conftest$ac_exeext conftest.$ac_ext
11435
LIBS=$ac_check_lib_save_LIBS
11437
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
11438
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
11439
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
11440
cat >>confdefs.h <<_ACEOF
11441
#define HAVE_LIBREADLINE 1
11444
LIBS="-lreadline $LIBS"
11448
if test $ac_cv_lib_readline_rl_completion_matches = no; then
11450
cat >>confdefs.h <<\_ACEOF
11451
#define rl_completion_matches completion_matches
11460
if test "$with_libpam" = "yes"; then
11461
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
11462
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
11463
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
11464
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
11465
echo $ECHO_N "(cached) $ECHO_C" >&6
11467
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
11468
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
11470
# Is the header compilable?
11471
echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
11472
echo $ECHO_N "checking security/pam_misc.h usability... $ECHO_C" >&6
11473
cat >conftest.$ac_ext <<_ACEOF
11476
cat confdefs.h >>conftest.$ac_ext
11477
cat >>conftest.$ac_ext <<_ACEOF
11478
/* end confdefs.h. */
11479
$ac_includes_default
11480
#include <security/pam_misc.h>
11482
rm -f conftest.$ac_objext
11483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484
(eval $ac_compile) 2>conftest.er1
11486
grep -v '^ *+' conftest.er1 >conftest.err
11488
cat conftest.err >&5
11489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490
(exit $ac_status); } &&
11491
{ ac_try='test -z "$ac_c_werror_flag"
11492
|| test ! -s conftest.err'
11493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494
(eval $ac_try) 2>&5
11496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497
(exit $ac_status); }; } &&
11498
{ ac_try='test -s conftest.$ac_objext'
11499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500
(eval $ac_try) 2>&5
11502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503
(exit $ac_status); }; }; then
11504
ac_header_compiler=yes
11506
echo "$as_me: failed program was:" >&5
11507
sed 's/^/| /' conftest.$ac_ext >&5
11509
ac_header_compiler=no
11511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513
echo "${ECHO_T}$ac_header_compiler" >&6
11515
# Is the header present?
11516
echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
11517
echo $ECHO_N "checking security/pam_misc.h presence... $ECHO_C" >&6
11518
cat >conftest.$ac_ext <<_ACEOF
11521
cat confdefs.h >>conftest.$ac_ext
11522
cat >>conftest.$ac_ext <<_ACEOF
11523
/* end confdefs.h. */
11524
#include <security/pam_misc.h>
11526
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11527
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11529
grep -v '^ *+' conftest.er1 >conftest.err
11531
cat conftest.err >&5
11532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533
(exit $ac_status); } >/dev/null; then
11534
if test -s conftest.err; then
11535
ac_cpp_err=$ac_c_preproc_warn_flag
11536
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11543
if test -z "$ac_cpp_err"; then
11544
ac_header_preproc=yes
11546
echo "$as_me: failed program was:" >&5
11547
sed 's/^/| /' conftest.$ac_ext >&5
11549
ac_header_preproc=no
11551
rm -f conftest.err conftest.$ac_ext
11552
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553
echo "${ECHO_T}$ac_header_preproc" >&6
11555
# So? What about this header?
11556
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11558
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11559
echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&5
11561
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&2;}
11562
ac_header_preproc=yes
11565
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
11566
echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
11567
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&5
11568
echo "$as_me: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&2;}
11569
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: see the Autoconf documentation" >&5
11570
echo "$as_me: WARNING: security/pam_misc.h: see the Autoconf documentation" >&2;}
11571
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: section \"Present But Cannot Be Compiled\"" >&5
11572
echo "$as_me: WARNING: security/pam_misc.h: section \"Present But Cannot Be Compiled\"" >&2;}
11573
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
11574
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
11575
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&5
11576
echo "$as_me: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&2;}
11579
## ----------------------------------------- ##
11580
## Report this to http://bugzilla.quagga.net ##
11581
## ----------------------------------------- ##
11584
sed "s/^/$as_me: WARNING: /" >&2
11587
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
11588
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
11589
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
11590
echo $ECHO_N "(cached) $ECHO_C" >&6
11592
ac_cv_header_security_pam_misc_h=$ac_header_preproc
11594
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
11595
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
11600
if test "$ac_cv_header_security_pam_misc_h" = yes; then
11602
cat >>confdefs.h <<\_ACEOF
11603
#define HAVE_PAM_MISC_H
11607
cat >>confdefs.h <<\_ACEOF
11608
#define PAM_CONV_FUNC misc_conv
11611
pam_conv_func="misc_conv"
11613
if test "${ac_cv_header_security_openpam_h+set}" = set; then
11614
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
11615
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
11616
if test "${ac_cv_header_security_openpam_h+set}" = set; then
11617
echo $ECHO_N "(cached) $ECHO_C" >&6
11619
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
11620
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
11622
# Is the header compilable?
11623
echo "$as_me:$LINENO: checking security/openpam.h usability" >&5
11624
echo $ECHO_N "checking security/openpam.h usability... $ECHO_C" >&6
11625
cat >conftest.$ac_ext <<_ACEOF
11628
cat confdefs.h >>conftest.$ac_ext
11629
cat >>conftest.$ac_ext <<_ACEOF
11630
/* end confdefs.h. */
11631
$ac_includes_default
11632
#include <security/openpam.h>
11634
rm -f conftest.$ac_objext
11635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636
(eval $ac_compile) 2>conftest.er1
11638
grep -v '^ *+' conftest.er1 >conftest.err
11640
cat conftest.err >&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); } &&
11643
{ ac_try='test -z "$ac_c_werror_flag"
11644
|| test ! -s conftest.err'
11645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646
(eval $ac_try) 2>&5
11648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649
(exit $ac_status); }; } &&
11650
{ ac_try='test -s conftest.$ac_objext'
11651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652
(eval $ac_try) 2>&5
11654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); }; }; then
11656
ac_header_compiler=yes
11658
echo "$as_me: failed program was:" >&5
11659
sed 's/^/| /' conftest.$ac_ext >&5
11661
ac_header_compiler=no
11663
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11665
echo "${ECHO_T}$ac_header_compiler" >&6
11667
# Is the header present?
11668
echo "$as_me:$LINENO: checking security/openpam.h presence" >&5
11669
echo $ECHO_N "checking security/openpam.h presence... $ECHO_C" >&6
11670
cat >conftest.$ac_ext <<_ACEOF
11673
cat confdefs.h >>conftest.$ac_ext
11674
cat >>conftest.$ac_ext <<_ACEOF
11675
/* end confdefs.h. */
11676
#include <security/openpam.h>
11678
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11679
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11681
grep -v '^ *+' conftest.er1 >conftest.err
11683
cat conftest.err >&5
11684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685
(exit $ac_status); } >/dev/null; then
11686
if test -s conftest.err; then
11687
ac_cpp_err=$ac_c_preproc_warn_flag
11688
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11695
if test -z "$ac_cpp_err"; then
11696
ac_header_preproc=yes
11698
echo "$as_me: failed program was:" >&5
11699
sed 's/^/| /' conftest.$ac_ext >&5
11701
ac_header_preproc=no
11703
rm -f conftest.err conftest.$ac_ext
11704
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11705
echo "${ECHO_T}$ac_header_preproc" >&6
11707
# So? What about this header?
11708
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11710
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&5
11711
echo "$as_me: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11712
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the compiler's result" >&5
11713
echo "$as_me: WARNING: security/openpam.h: proceeding with the compiler's result" >&2;}
11714
ac_header_preproc=yes
11717
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: present but cannot be compiled" >&5
11718
echo "$as_me: WARNING: security/openpam.h: present but cannot be compiled" >&2;}
11719
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: check for missing prerequisite headers?" >&5
11720
echo "$as_me: WARNING: security/openpam.h: check for missing prerequisite headers?" >&2;}
11721
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: see the Autoconf documentation" >&5
11722
echo "$as_me: WARNING: security/openpam.h: see the Autoconf documentation" >&2;}
11723
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: section \"Present But Cannot Be Compiled\"" >&5
11724
echo "$as_me: WARNING: security/openpam.h: section \"Present But Cannot Be Compiled\"" >&2;}
11725
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
11726
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
11727
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: in the future, the compiler will take precedence" >&5
11728
echo "$as_me: WARNING: security/openpam.h: in the future, the compiler will take precedence" >&2;}
11731
## ----------------------------------------- ##
11732
## Report this to http://bugzilla.quagga.net ##
11733
## ----------------------------------------- ##
11736
sed "s/^/$as_me: WARNING: /" >&2
11739
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
11740
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
11741
if test "${ac_cv_header_security_openpam_h+set}" = set; then
11742
echo $ECHO_N "(cached) $ECHO_C" >&6
11744
ac_cv_header_security_openpam_h=$ac_header_preproc
11746
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
11747
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
11752
if test "$ac_cv_header_security_openpam_h" = yes; then
11754
cat >>confdefs.h <<\_ACEOF
11755
#define HAVE_OPENPAM_H
11759
cat >>confdefs.h <<\_ACEOF
11760
#define PAM_CONV_FUNC openpam_ttyconv
11763
pam_conv_func="openpam_ttyconv"
11765
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
11766
{ echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
11767
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
11772
if test "$with_libpam" = "yes"; then
11773
echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
11774
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
11775
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
11776
echo $ECHO_N "(cached) $ECHO_C" >&6
11778
ac_check_lib_save_LIBS=$LIBS
11780
cat >conftest.$ac_ext <<_ACEOF
11783
cat confdefs.h >>conftest.$ac_ext
11784
cat >>conftest.$ac_ext <<_ACEOF
11785
/* end confdefs.h. */
11787
/* Override any gcc2 internal prototype to avoid an error. */
11791
/* We use char because int might match the return type of a gcc2
11792
builtin and then its argument prototype would still apply. */
11802
rm -f conftest.$ac_objext conftest$ac_exeext
11803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804
(eval $ac_link) 2>conftest.er1
11806
grep -v '^ *+' conftest.er1 >conftest.err
11808
cat conftest.err >&5
11809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810
(exit $ac_status); } &&
11811
{ ac_try='test -z "$ac_c_werror_flag"
11812
|| test ! -s conftest.err'
11813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814
(eval $ac_try) 2>&5
11816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817
(exit $ac_status); }; } &&
11818
{ ac_try='test -s conftest$ac_exeext'
11819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820
(eval $ac_try) 2>&5
11822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823
(exit $ac_status); }; }; then
11824
ac_cv_lib_pam_pam_start=yes
11826
echo "$as_me: failed program was:" >&5
11827
sed 's/^/| /' conftest.$ac_ext >&5
11829
ac_cv_lib_pam_pam_start=no
11831
rm -f conftest.err conftest.$ac_objext \
11832
conftest$ac_exeext conftest.$ac_ext
11833
LIBS=$ac_check_lib_save_LIBS
11835
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
11836
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
11837
if test $ac_cv_lib_pam_pam_start = yes; then
11838
as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
11839
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
11840
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
11841
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11842
echo $ECHO_N "(cached) $ECHO_C" >&6
11844
ac_check_lib_save_LIBS=$LIBS
11846
cat >conftest.$ac_ext <<_ACEOF
11849
cat confdefs.h >>conftest.$ac_ext
11850
cat >>conftest.$ac_ext <<_ACEOF
11851
/* end confdefs.h. */
11853
/* Override any gcc2 internal prototype to avoid an error. */
11857
/* We use char because int might match the return type of a gcc2
11858
builtin and then its argument prototype would still apply. */
11859
char $pam_conv_func ();
11868
rm -f conftest.$ac_objext conftest$ac_exeext
11869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870
(eval $ac_link) 2>conftest.er1
11872
grep -v '^ *+' conftest.er1 >conftest.err
11874
cat conftest.err >&5
11875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876
(exit $ac_status); } &&
11877
{ ac_try='test -z "$ac_c_werror_flag"
11878
|| test ! -s conftest.err'
11879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880
(eval $ac_try) 2>&5
11882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883
(exit $ac_status); }; } &&
11884
{ ac_try='test -s conftest$ac_exeext'
11885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886
(eval $ac_try) 2>&5
11888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889
(exit $ac_status); }; }; then
11890
eval "$as_ac_Lib=yes"
11892
echo "$as_me: failed program was:" >&5
11893
sed 's/^/| /' conftest.$ac_ext >&5
11895
eval "$as_ac_Lib=no"
11897
rm -f conftest.err conftest.$ac_objext \
11898
conftest$ac_exeext conftest.$ac_ext
11899
LIBS=$ac_check_lib_save_LIBS
11901
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11902
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11903
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11905
cat >>confdefs.h <<\_ACEOF
11912
cat >>confdefs.h <<\_ACEOF
11916
LIBPAM="-lpam -lpam_misc"
11922
echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
11923
echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
11924
if test "${ac_cv_lib_pam_pam_end+set}" = set; then
11925
echo $ECHO_N "(cached) $ECHO_C" >&6
11927
ac_check_lib_save_LIBS=$LIBS
11928
LIBS="-lpam -ldl $LIBS"
11929
cat >conftest.$ac_ext <<_ACEOF
11932
cat confdefs.h >>conftest.$ac_ext
11933
cat >>conftest.$ac_ext <<_ACEOF
11934
/* end confdefs.h. */
11936
/* Override any gcc2 internal prototype to avoid an error. */
11940
/* We use char because int might match the return type of a gcc2
11941
builtin and then its argument prototype would still apply. */
11951
rm -f conftest.$ac_objext conftest$ac_exeext
11952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953
(eval $ac_link) 2>conftest.er1
11955
grep -v '^ *+' conftest.er1 >conftest.err
11957
cat conftest.err >&5
11958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959
(exit $ac_status); } &&
11960
{ ac_try='test -z "$ac_c_werror_flag"
11961
|| test ! -s conftest.err'
11962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963
(eval $ac_try) 2>&5
11965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966
(exit $ac_status); }; } &&
11967
{ ac_try='test -s conftest$ac_exeext'
11968
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969
(eval $ac_try) 2>&5
11971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972
(exit $ac_status); }; }; then
11973
ac_cv_lib_pam_pam_end=yes
11975
echo "$as_me: failed program was:" >&5
11976
sed 's/^/| /' conftest.$ac_ext >&5
11978
ac_cv_lib_pam_pam_end=no
11980
rm -f conftest.err conftest.$ac_objext \
11981
conftest$ac_exeext conftest.$ac_ext
11982
LIBS=$ac_check_lib_save_LIBS
11984
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
11985
echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
11986
if test $ac_cv_lib_pam_pam_end = yes; then
11987
as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
11988
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
11989
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
11990
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11991
echo $ECHO_N "(cached) $ECHO_C" >&6
11993
ac_check_lib_save_LIBS=$LIBS
11995
cat >conftest.$ac_ext <<_ACEOF
11998
cat confdefs.h >>conftest.$ac_ext
11999
cat >>conftest.$ac_ext <<_ACEOF
12000
/* end confdefs.h. */
12002
/* Override any gcc2 internal prototype to avoid an error. */
12006
/* We use char because int might match the return type of a gcc2
12007
builtin and then its argument prototype would still apply. */
12008
char $pam_conv_func ();
12017
rm -f conftest.$ac_objext conftest$ac_exeext
12018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019
(eval $ac_link) 2>conftest.er1
12021
grep -v '^ *+' conftest.er1 >conftest.err
12023
cat conftest.err >&5
12024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025
(exit $ac_status); } &&
12026
{ ac_try='test -z "$ac_c_werror_flag"
12027
|| test ! -s conftest.err'
12028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029
(eval $ac_try) 2>&5
12031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032
(exit $ac_status); }; } &&
12033
{ ac_try='test -s conftest$ac_exeext'
12034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035
(eval $ac_try) 2>&5
12037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038
(exit $ac_status); }; }; then
12039
eval "$as_ac_Lib=yes"
12041
echo "$as_me: failed program was:" >&5
12042
sed 's/^/| /' conftest.$ac_ext >&5
12044
eval "$as_ac_Lib=no"
12046
rm -f conftest.err conftest.$ac_objext \
12047
conftest$ac_exeext conftest.$ac_ext
12048
LIBS=$ac_check_lib_save_LIBS
12050
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12051
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12052
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12054
cat >>confdefs.h <<\_ACEOF
12058
LIBPAM="-lpam -ldl"
12061
cat >>confdefs.h <<\_ACEOF
12065
LIBPAM="-lpam -ldl -lpam_misc"
12071
{ echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
12072
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
12082
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12083
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12084
if test "${ac_cv_c_bigendian+set}" = set; then
12085
echo $ECHO_N "(cached) $ECHO_C" >&6
12087
# See if sys/param.h defines the BYTE_ORDER macro.
12088
cat >conftest.$ac_ext <<_ACEOF
12091
cat confdefs.h >>conftest.$ac_ext
12092
cat >>conftest.$ac_ext <<_ACEOF
12093
/* end confdefs.h. */
12094
#include <sys/types.h>
12095
#include <sys/param.h>
12100
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12101
bogus endian macros
12108
rm -f conftest.$ac_objext
12109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110
(eval $ac_compile) 2>conftest.er1
12112
grep -v '^ *+' conftest.er1 >conftest.err
12114
cat conftest.err >&5
12115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116
(exit $ac_status); } &&
12117
{ ac_try='test -z "$ac_c_werror_flag"
12118
|| test ! -s conftest.err'
12119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120
(eval $ac_try) 2>&5
12122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
(exit $ac_status); }; } &&
12124
{ ac_try='test -s conftest.$ac_objext'
12125
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126
(eval $ac_try) 2>&5
12128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129
(exit $ac_status); }; }; then
12130
# It does; now see whether it defined to BIG_ENDIAN or not.
12131
cat >conftest.$ac_ext <<_ACEOF
12134
cat confdefs.h >>conftest.$ac_ext
12135
cat >>conftest.$ac_ext <<_ACEOF
12136
/* end confdefs.h. */
12137
#include <sys/types.h>
12138
#include <sys/param.h>
12143
#if BYTE_ORDER != BIG_ENDIAN
12151
rm -f conftest.$ac_objext
12152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153
(eval $ac_compile) 2>conftest.er1
12155
grep -v '^ *+' conftest.er1 >conftest.err
12157
cat conftest.err >&5
12158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159
(exit $ac_status); } &&
12160
{ ac_try='test -z "$ac_c_werror_flag"
12161
|| test ! -s conftest.err'
12162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163
(eval $ac_try) 2>&5
12165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166
(exit $ac_status); }; } &&
12167
{ ac_try='test -s conftest.$ac_objext'
12168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169
(eval $ac_try) 2>&5
12171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172
(exit $ac_status); }; }; then
12173
ac_cv_c_bigendian=yes
12175
echo "$as_me: failed program was:" >&5
12176
sed 's/^/| /' conftest.$ac_ext >&5
12178
ac_cv_c_bigendian=no
12180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12182
echo "$as_me: failed program was:" >&5
12183
sed 's/^/| /' conftest.$ac_ext >&5
12185
# It does not; compile a test program.
12186
if test "$cross_compiling" = yes; then
12187
# try to guess the endianness by grepping values into an object file
12188
ac_cv_c_bigendian=unknown
12189
cat >conftest.$ac_ext <<_ACEOF
12192
cat confdefs.h >>conftest.$ac_ext
12193
cat >>conftest.$ac_ext <<_ACEOF
12194
/* end confdefs.h. */
12195
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12196
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12197
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12198
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12199
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12200
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12204
_ascii (); _ebcdic ();
12209
rm -f conftest.$ac_objext
12210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211
(eval $ac_compile) 2>conftest.er1
12213
grep -v '^ *+' conftest.er1 >conftest.err
12215
cat conftest.err >&5
12216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217
(exit $ac_status); } &&
12218
{ ac_try='test -z "$ac_c_werror_flag"
12219
|| test ! -s conftest.err'
12220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221
(eval $ac_try) 2>&5
12223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224
(exit $ac_status); }; } &&
12225
{ ac_try='test -s conftest.$ac_objext'
12226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227
(eval $ac_try) 2>&5
12229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230
(exit $ac_status); }; }; then
12231
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12232
ac_cv_c_bigendian=yes
12234
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12235
if test "$ac_cv_c_bigendian" = unknown; then
12236
ac_cv_c_bigendian=no
12238
# finding both strings is unlikely to happen, but who knows?
12239
ac_cv_c_bigendian=unknown
12243
echo "$as_me: failed program was:" >&5
12244
sed 's/^/| /' conftest.$ac_ext >&5
12247
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12249
cat >conftest.$ac_ext <<_ACEOF
12252
cat confdefs.h >>conftest.$ac_ext
12253
cat >>conftest.$ac_ext <<_ACEOF
12254
/* end confdefs.h. */
12258
/* Are we little or big endian? From Harbison&Steele. */
12262
char c[sizeof (long)];
12265
exit (u.c[sizeof (long) - 1] == 1);
12268
rm -f conftest$ac_exeext
12269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270
(eval $ac_link) 2>&5
12272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275
(eval $ac_try) 2>&5
12277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
(exit $ac_status); }; }; then
12279
ac_cv_c_bigendian=no
12281
echo "$as_me: program exited with status $ac_status" >&5
12282
echo "$as_me: failed program was:" >&5
12283
sed 's/^/| /' conftest.$ac_ext >&5
12285
( exit $ac_status )
12286
ac_cv_c_bigendian=yes
12288
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12291
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12294
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12295
case $ac_cv_c_bigendian in
12298
cat >>confdefs.h <<\_ACEOF
12299
#define WORDS_BIGENDIAN 1
12305
{ { echo "$as_me:$LINENO: error: unknown endianness
12306
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12307
echo "$as_me: error: unknown endianness
12308
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12309
{ (exit 1); exit 1; }; } ;;
12328
for ac_func in memset memcpy strerror inet_aton daemon snprintf vsnprintf \
12329
strlcat strlcpy if_nametoindex if_indextoname getifaddrs \
12332
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12333
echo "$as_me:$LINENO: checking for $ac_func" >&5
12334
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12335
if eval "test \"\${$as_ac_var+set}\" = set"; then
12336
echo $ECHO_N "(cached) $ECHO_C" >&6
12338
cat >conftest.$ac_ext <<_ACEOF
12341
cat confdefs.h >>conftest.$ac_ext
12342
cat >>conftest.$ac_ext <<_ACEOF
12343
/* end confdefs.h. */
12344
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12345
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12346
#define $ac_func innocuous_$ac_func
12348
/* System header to define __stub macros and hopefully few prototypes,
12349
which can conflict with char $ac_func (); below.
12350
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351
<limits.h> exists even on freestanding compilers. */
12354
# include <limits.h>
12356
# include <assert.h>
12361
/* Override any gcc2 internal prototype to avoid an error. */
12366
/* We use char because int might match the return type of a gcc2
12367
builtin and then its argument prototype would still apply. */
12369
/* The GNU C library defines this for functions which it implements
12370
to always fail with ENOSYS. Some functions are actually named
12371
something starting with __ and the normal name is an alias. */
12372
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12375
char (*f) () = $ac_func;
12384
return f != $ac_func;
12389
rm -f conftest.$ac_objext conftest$ac_exeext
12390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391
(eval $ac_link) 2>conftest.er1
12393
grep -v '^ *+' conftest.er1 >conftest.err
12395
cat conftest.err >&5
12396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397
(exit $ac_status); } &&
12398
{ ac_try='test -z "$ac_c_werror_flag"
12399
|| test ! -s conftest.err'
12400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401
(eval $ac_try) 2>&5
12403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404
(exit $ac_status); }; } &&
12405
{ ac_try='test -s conftest$ac_exeext'
12406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407
(eval $ac_try) 2>&5
12409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410
(exit $ac_status); }; }; then
12411
eval "$as_ac_var=yes"
12413
echo "$as_me: failed program was:" >&5
12414
sed 's/^/| /' conftest.$ac_ext >&5
12416
eval "$as_ac_var=no"
12418
rm -f conftest.err conftest.$ac_objext \
12419
conftest$ac_exeext conftest.$ac_ext
12421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12423
if test `eval echo '${'$as_ac_var'}'` = yes; then
12424
cat >>confdefs.h <<_ACEOF
12425
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12432
for ac_func in setproctitle
12434
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12435
echo "$as_me:$LINENO: checking for $ac_func" >&5
12436
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12437
if eval "test \"\${$as_ac_var+set}\" = set"; then
12438
echo $ECHO_N "(cached) $ECHO_C" >&6
12440
cat >conftest.$ac_ext <<_ACEOF
12443
cat confdefs.h >>conftest.$ac_ext
12444
cat >>conftest.$ac_ext <<_ACEOF
12445
/* end confdefs.h. */
12446
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12447
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12448
#define $ac_func innocuous_$ac_func
12450
/* System header to define __stub macros and hopefully few prototypes,
12451
which can conflict with char $ac_func (); below.
12452
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12453
<limits.h> exists even on freestanding compilers. */
12456
# include <limits.h>
12458
# include <assert.h>
12463
/* Override any gcc2 internal prototype to avoid an error. */
12468
/* We use char because int might match the return type of a gcc2
12469
builtin and then its argument prototype would still apply. */
12471
/* The GNU C library defines this for functions which it implements
12472
to always fail with ENOSYS. Some functions are actually named
12473
something starting with __ and the normal name is an alias. */
12474
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12477
char (*f) () = $ac_func;
12486
return f != $ac_func;
12491
rm -f conftest.$ac_objext conftest$ac_exeext
12492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493
(eval $ac_link) 2>conftest.er1
12495
grep -v '^ *+' conftest.er1 >conftest.err
12497
cat conftest.err >&5
12498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499
(exit $ac_status); } &&
12500
{ ac_try='test -z "$ac_c_werror_flag"
12501
|| test ! -s conftest.err'
12502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503
(eval $ac_try) 2>&5
12505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506
(exit $ac_status); }; } &&
12507
{ ac_try='test -s conftest$ac_exeext'
12508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509
(eval $ac_try) 2>&5
12511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512
(exit $ac_status); }; }; then
12513
eval "$as_ac_var=yes"
12515
echo "$as_me: failed program was:" >&5
12516
sed 's/^/| /' conftest.$ac_ext >&5
12518
eval "$as_ac_var=no"
12520
rm -f conftest.err conftest.$ac_objext \
12521
conftest$ac_exeext conftest.$ac_ext
12523
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12524
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12525
if test `eval echo '${'$as_ac_var'}'` = yes; then
12526
cat >>confdefs.h <<_ACEOF
12527
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12531
echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
12532
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
12533
if test "${ac_cv_lib_util_setproctitle+set}" = set; then
12534
echo $ECHO_N "(cached) $ECHO_C" >&6
12536
ac_check_lib_save_LIBS=$LIBS
12537
LIBS="-lutil $LIBS"
12538
cat >conftest.$ac_ext <<_ACEOF
12541
cat confdefs.h >>conftest.$ac_ext
12542
cat >>conftest.$ac_ext <<_ACEOF
12543
/* end confdefs.h. */
12545
/* Override any gcc2 internal prototype to avoid an error. */
12549
/* We use char because int might match the return type of a gcc2
12550
builtin and then its argument prototype would still apply. */
12551
char setproctitle ();
12560
rm -f conftest.$ac_objext conftest$ac_exeext
12561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562
(eval $ac_link) 2>conftest.er1
12564
grep -v '^ *+' conftest.er1 >conftest.err
12566
cat conftest.err >&5
12567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568
(exit $ac_status); } &&
12569
{ ac_try='test -z "$ac_c_werror_flag"
12570
|| test ! -s conftest.err'
12571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572
(eval $ac_try) 2>&5
12574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575
(exit $ac_status); }; } &&
12576
{ ac_try='test -s conftest$ac_exeext'
12577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578
(eval $ac_try) 2>&5
12580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581
(exit $ac_status); }; }; then
12582
ac_cv_lib_util_setproctitle=yes
12584
echo "$as_me: failed program was:" >&5
12585
sed 's/^/| /' conftest.$ac_ext >&5
12587
ac_cv_lib_util_setproctitle=no
12589
rm -f conftest.err conftest.$ac_objext \
12590
conftest$ac_exeext conftest.$ac_ext
12591
LIBS=$ac_check_lib_save_LIBS
12593
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
12594
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
12595
if test $ac_cv_lib_util_setproctitle = yes; then
12596
LIBS="$LIBS -lutil"
12598
cat >>confdefs.h <<\_ACEOF
12599
#define HAVE_SETPROCTITLE
12612
echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
12613
echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
12614
if test x"$opsys" = x"gnu-linux"; then
12615
if test "${enable_netlink}" = "yes";then
12616
echo "$as_me:$LINENO: result: netlink" >&5
12617
echo "${ECHO_T}netlink" >&6
12618
RT_METHOD=rt_netlink.o
12620
cat >>confdefs.h <<\_ACEOF
12621
#define HAVE_NETLINK
12625
elif test "${enable_netlink}" = "no"; then
12626
echo "$as_me:$LINENO: result: ioctl" >&5
12627
echo "${ECHO_T}ioctl" >&6
12628
RT_METHOD=rt_ioctl.o
12631
echo "$as_me:$LINENO: result: netlink" >&5
12632
echo "${ECHO_T}netlink" >&6
12633
RT_METHOD=rt_netlink.o
12635
cat >>confdefs.h <<\_ACEOF
12636
#define HAVE_NETLINK
12641
elif test x"$opsys" = x"sol2-6";then
12642
echo "$as_me:$LINENO: result: Route socket" >&5
12643
echo "${ECHO_T}Route socket" >&6
12644
KERNEL_METHOD="kernel_socket.o"
12645
RT_METHOD="rt_socket.o"
12646
elif test x"$opsys" = x"sol8";then
12647
echo "$as_me:$LINENO: result: Route socket" >&5
12648
echo "${ECHO_T}Route socket" >&6
12649
KERNEL_METHOD="kernel_socket.o"
12650
RT_METHOD="rt_socket.o"
12651
elif test "$opsys" = "irix" ; then
12652
echo "$as_me:$LINENO: result: Route socket" >&5
12653
echo "${ECHO_T}Route socket" >&6
12654
KERNEL_METHOD="kernel_socket.o"
12655
RT_METHOD="rt_socket.o"
12657
if test "$cross_compiling" = yes; then
12658
KERNEL_METHOD=kernel_socket.o
12659
RT_METHOD=rt_socket.o
12660
echo "$as_me:$LINENO: result: socket" >&5
12661
echo "${ECHO_T}socket" >&6
12663
cat >conftest.$ac_ext <<_ACEOF
12666
cat confdefs.h >>conftest.$ac_ext
12667
cat >>conftest.$ac_ext <<_ACEOF
12668
/* end confdefs.h. */
12670
#include <sys/types.h>
12671
#include <sys/socket.h>
12677
ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
12678
if (ac_sock < 0 && errno == EINVAL)
12683
rm -f conftest$ac_exeext
12684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12685
(eval $ac_link) 2>&5
12687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690
(eval $ac_try) 2>&5
12692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
(exit $ac_status); }; }; then
12694
KERNEL_METHOD=kernel_socket.o
12695
RT_METHOD=rt_socket.o
12696
echo "$as_me:$LINENO: result: socket" >&5
12697
echo "${ECHO_T}socket" >&6
12699
echo "$as_me: program exited with status $ac_status" >&5
12700
echo "$as_me: failed program was:" >&5
12701
sed 's/^/| /' conftest.$ac_ext >&5
12703
( exit $ac_status )
12704
RT_METHOD=rt_ioctl.o
12705
echo "$as_me:$LINENO: result: ioctl" >&5
12706
echo "${ECHO_T}ioctl" >&6
12708
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12715
echo "$as_me:$LINENO: checking for broken CMSG_FIRSTHDR" >&5
12716
echo $ECHO_N "checking for broken CMSG_FIRSTHDR... $ECHO_C" >&6
12717
if test "$cross_compiling" = yes; then
12718
echo "$as_me:$LINENO: result: no" >&5
12719
echo "${ECHO_T}no" >&6
12721
cat >conftest.$ac_ext <<_ACEOF
12724
cat confdefs.h >>conftest.$ac_ext
12725
cat >>conftest.$ac_ext <<_ACEOF
12726
/* end confdefs.h. */
12730
#define __EXTENSIONS__
12732
#include <stdlib.h>
12733
#include <sys/types.h>
12734
#include <sys/socket.h>
12741
msg.msg_control = buf;
12742
msg.msg_controllen = 0;
12744
if (CMSG_FIRSTHDR(&msg) != NULL)
12749
rm -f conftest$ac_exeext
12750
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751
(eval $ac_link) 2>&5
12753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756
(eval $ac_try) 2>&5
12758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759
(exit $ac_status); }; }; then
12760
echo "$as_me:$LINENO: result: yes - using workaround" >&5
12761
echo "${ECHO_T}yes - using workaround" >&6
12762
cat >>confdefs.h <<\_ACEOF
12763
#define HAVE_BROKEN_CMSG_FIRSTHDR
12767
echo "$as_me: program exited with status $ac_status" >&5
12768
echo "$as_me: failed program was:" >&5
12769
sed 's/^/| /' conftest.$ac_ext >&5
12771
( exit $ac_status )
12772
echo "$as_me:$LINENO: result: no" >&5
12773
echo "${ECHO_T}no" >&6
12775
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12778
echo "$as_me:$LINENO: checking route read method check" >&5
12779
echo $ECHO_N "checking route read method check... $ECHO_C" >&6
12780
if test "${zebra_rtread+set}" = set; then
12781
echo $ECHO_N "(cached) $ECHO_C" >&6
12783
if test "$netlink" = yes; then
12784
RTREAD_METHOD="rtread_netlink.o"
12785
zebra_rtread="netlink"
12787
for zebra_rtread in /proc/net/route /dev/ip /dev/null;
12789
test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
12791
case $zebra_rtread in
12792
"/proc/net/route") RTREAD_METHOD="rtread_proc.o"
12793
zebra_rtread="proc";;
12796
*-freebsd*) RTREAD_METHOD=rtread_sysctl.o
12797
zebra_rtread="sysctl";;
12798
*) RTREAD_METHOD="rtread_getmsg.o"
12799
zebra_rtread="getmsg";;
12801
*) RTREAD_METHOD="rtread_sysctl.o"
12802
zebra_rtread="sysctl";;
12806
echo "$as_me:$LINENO: result: $zebra_rtread" >&5
12807
echo "${ECHO_T}$zebra_rtread" >&6
12810
IOCTL_METHOD=ioctl.o
12811
echo "$as_me:$LINENO: checking interface looking up method" >&5
12812
echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
12813
if test "$netlink" = yes; then
12814
echo "$as_me:$LINENO: result: netlink" >&5
12815
echo "${ECHO_T}netlink" >&6
12816
IF_METHOD=if_netlink.o
12817
elif test "$opsys" = "sol2-6";then
12818
echo "$as_me:$LINENO: result: Solaris GIF" >&5
12819
echo "${ECHO_T}Solaris GIF" >&6
12820
IF_METHOD=if_ioctl.o
12821
elif test "$opsys" = "sol8";then
12822
echo "$as_me:$LINENO: result: Solaris GLIF" >&5
12823
echo "${ECHO_T}Solaris GLIF" >&6
12824
IF_METHOD=if_ioctl_solaris.o
12825
IOCTL_METHOD=ioctl_solaris.o
12826
elif test "$opsys" = "irix" ; then
12827
echo "$as_me:$LINENO: result: IRIX" >&5
12828
echo "${ECHO_T}IRIX" >&6
12829
IF_METHOD=if_ioctl.o
12830
elif test "$opsys" = "openbsd";then
12831
echo "$as_me:$LINENO: result: openbsd" >&5
12832
echo "${ECHO_T}openbsd" >&6
12833
IF_METHOD=if_ioctl.o
12834
elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
12835
echo "$as_me:$LINENO: result: sysctl" >&5
12836
echo "${ECHO_T}sysctl" >&6
12837
IF_METHOD=if_sysctl.o
12839
cat >>confdefs.h <<\_ACEOF
12840
#define HAVE_NET_RT_IFLIST
12844
echo "$as_me:$LINENO: result: ioctl" >&5
12845
echo "${ECHO_T}ioctl" >&6
12846
IF_METHOD=if_ioctl.o
12851
if test -r /proc/net/dev; then
12853
cat >>confdefs.h <<\_ACEOF
12854
#define HAVE_PROC_NET_DEV
12860
if test -r /proc/net/if_inet6; then
12862
cat >>confdefs.h <<\_ACEOF
12863
#define HAVE_PROC_NET_IF_INET6
12870
echo "$as_me:$LINENO: checking ipforward method check" >&5
12871
echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
12872
if test "${zebra_ipforward_path+set}" = set; then
12873
echo $ECHO_N "(cached) $ECHO_C" >&6
12875
for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
12877
test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
12879
case $zebra_ipforward_path in
12880
"/proc/net/snmp") IPFORWARD=ipforward_proc.o
12881
zebra_ipforward_path="proc";;
12884
*-nec-sysv4*) IPFORWARD=ipforward_ews.o
12885
zebra_ipforward_path="ews";;
12886
*-freebsd*) IPFORWARD=ipforward_sysctl.o
12887
zebra_ipforward_path="sysctl";;
12888
*) IPFORWARD=ipforward_solaris.o
12889
zebra_ipforward_path="solaris";;
12891
*) IPFORWARD=ipforward_sysctl.o
12892
zebra_ipforward_path="sysctl";;
12895
echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
12896
echo "${ECHO_T}$zebra_ipforward_path" >&6
12900
for ac_func in getaddrinfo
12902
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903
echo "$as_me:$LINENO: checking for $ac_func" >&5
12904
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12905
if eval "test \"\${$as_ac_var+set}\" = set"; then
12906
echo $ECHO_N "(cached) $ECHO_C" >&6
12908
cat >conftest.$ac_ext <<_ACEOF
12911
cat confdefs.h >>conftest.$ac_ext
12912
cat >>conftest.$ac_ext <<_ACEOF
12913
/* end confdefs.h. */
12914
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12915
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12916
#define $ac_func innocuous_$ac_func
12918
/* System header to define __stub macros and hopefully few prototypes,
12919
which can conflict with char $ac_func (); below.
12920
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921
<limits.h> exists even on freestanding compilers. */
12924
# include <limits.h>
12926
# include <assert.h>
12931
/* Override any gcc2 internal prototype to avoid an error. */
12936
/* We use char because int might match the return type of a gcc2
12937
builtin and then its argument prototype would still apply. */
12939
/* The GNU C library defines this for functions which it implements
12940
to always fail with ENOSYS. Some functions are actually named
12941
something starting with __ and the normal name is an alias. */
12942
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12945
char (*f) () = $ac_func;
12954
return f != $ac_func;
12959
rm -f conftest.$ac_objext conftest$ac_exeext
12960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12961
(eval $ac_link) 2>conftest.er1
12963
grep -v '^ *+' conftest.er1 >conftest.err
12965
cat conftest.err >&5
12966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967
(exit $ac_status); } &&
12968
{ ac_try='test -z "$ac_c_werror_flag"
12969
|| test ! -s conftest.err'
12970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971
(eval $ac_try) 2>&5
12973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974
(exit $ac_status); }; } &&
12975
{ ac_try='test -s conftest$ac_exeext'
12976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977
(eval $ac_try) 2>&5
12979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980
(exit $ac_status); }; }; then
12981
eval "$as_ac_var=yes"
12983
echo "$as_me: failed program was:" >&5
12984
sed 's/^/| /' conftest.$ac_ext >&5
12986
eval "$as_ac_var=no"
12988
rm -f conftest.err conftest.$ac_objext \
12989
conftest$ac_exeext conftest.$ac_ext
12991
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12992
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12993
if test `eval echo '${'$as_ac_var'}'` = yes; then
12994
cat >>confdefs.h <<_ACEOF
12995
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12997
have_getaddrinfo=yes
12999
have_getaddrinfo=no
13004
echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
13005
echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
13006
if test "${enable_ipv6}" = "no"; then
13007
echo "$as_me:$LINENO: result: disabled" >&5
13008
echo "${ECHO_T}disabled" >&6
13010
if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
13013
cat >>confdefs.h <<\_ACEOF
13014
#define HAVE_IPV6 1
13018
cat >>confdefs.h <<\_ACEOF
13019
#define INRIA_IPV6 1
13025
echo "$as_me:$LINENO: result: INRIA IPv6" >&5
13026
echo "${ECHO_T}INRIA IPv6" >&6
13027
elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
13030
cat >>confdefs.h <<\_ACEOF
13031
#define HAVE_IPV6 1
13035
cat >>confdefs.h <<\_ACEOF
13041
if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
13042
LIB_IPV6="-L/usr/local/v6/lib -linet6"
13044
echo "$as_me:$LINENO: result: KAME" >&5
13045
echo "${ECHO_T}KAME" >&6
13046
elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
13049
cat >>confdefs.h <<\_ACEOF
13050
#define HAVE_IPV6 1
13054
cat >>confdefs.h <<\_ACEOF
13059
cat >>confdefs.h <<\_ACEOF
13065
if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
13066
LIB_IPV6="-L/usr/local/v6/lib -linet6"
13068
echo "$as_me:$LINENO: result: MUSICA" >&5
13069
echo "${ECHO_T}MUSICA" >&6
13070
elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
13073
cat >>confdefs.h <<\_ACEOF
13074
#define HAVE_IPV6 1
13078
cat >>confdefs.h <<\_ACEOF
13084
if test x"$opsys" = x"bsdi";then
13086
cat >>confdefs.h <<\_ACEOF
13090
echo "$as_me:$LINENO: result: BSDI_NRL" >&5
13091
echo "${ECHO_T}BSDI_NRL" >&6
13093
echo "$as_me:$LINENO: result: NRL" >&5
13094
echo "${ECHO_T}NRL" >&6
13096
elif test x"$opsys" = x"sol8"; then
13099
cat >>confdefs.h <<\_ACEOF
13100
#define HAVE_IPV6 1
13104
cat >>confdefs.h <<\_ACEOF
13105
#define SOLARIS_IPV6 1
13110
echo "$as_me:$LINENO: result: Solaris IPv6" >&5
13111
echo "${ECHO_T}Solaris IPv6" >&6
13112
elif test "${enable_ipv6}" = "yes"; then
13113
cat >conftest.$ac_ext <<_ACEOF
13116
cat confdefs.h >>conftest.$ac_ext
13117
cat >>conftest.$ac_ext <<_ACEOF
13118
/* end confdefs.h. */
13120
#include <linux/version.h>
13121
/* 2.1.128 or later */
13122
#if LINUX_VERSION_CODE >= 0x020180
13126
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13127
$EGREP "yes" >/dev/null 2>&1; then
13129
zebra_cv_linux_ipv6=yes
13130
echo "$as_me:$LINENO: result: Linux IPv6" >&5
13131
echo "${ECHO_T}Linux IPv6" >&6
13136
if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
13139
zebra_cv_linux_ipv6=yes
13140
echo "$as_me:$LINENO: result: Linux IPv6" >&5
13141
echo "${ECHO_T}Linux IPv6" >&6
13145
if test "$zebra_cv_linux_ipv6" = "yes";then
13146
echo "$as_me:$LINENO: checking for GNU libc >= 2.1" >&5
13147
echo $ECHO_N "checking for GNU libc >= 2.1... $ECHO_C" >&6
13149
cat >>confdefs.h <<\_ACEOF
13150
#define HAVE_IPV6 1
13153
cat >conftest.$ac_ext <<_ACEOF
13156
cat confdefs.h >>conftest.$ac_ext
13157
cat >>conftest.$ac_ext <<_ACEOF
13158
/* end confdefs.h. */
13160
#include <features.h>
13161
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
13165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166
$EGREP "yes" >/dev/null 2>&1; then
13169
cat >>confdefs.h <<\_ACEOF
13170
#define LINUX_IPV6 1
13173
echo "$as_me:$LINENO: result: yes" >&5
13174
echo "${ECHO_T}yes" >&6
13176
echo "$as_me:$LINENO: result: no" >&5
13177
echo "${ECHO_T}no" >&6
13184
if test "$glibc" != "yes"; then
13185
INCLUDES="-I/usr/inet6/include"
13186
if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
13187
LIB_IPV6="-L/usr/inet6/lib -linet6"
13192
LIBS="$LIB_IPV6 $LIBS"
13195
if test x"$RIPNGD" = x""; then
13196
echo "$as_me:$LINENO: result: IPv4 only" >&5
13197
echo "${ECHO_T}IPv4 only" >&6
13201
if test "x${zebra_cv_ipv6}" = "xyes"; then
13207
for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
13208
netinet6/in6_var.h netinet6/nd6.h
13210
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212
echo "$as_me:$LINENO: checking for $ac_header" >&5
13213
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215
echo $ECHO_N "(cached) $ECHO_C" >&6
13217
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13220
# Is the header compilable?
13221
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223
cat >conftest.$ac_ext <<_ACEOF
13226
cat confdefs.h >>conftest.$ac_ext
13227
cat >>conftest.$ac_ext <<_ACEOF
13228
/* end confdefs.h. */
13229
$ac_includes_default
13230
#include <$ac_header>
13232
rm -f conftest.$ac_objext
13233
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234
(eval $ac_compile) 2>conftest.er1
13236
grep -v '^ *+' conftest.er1 >conftest.err
13238
cat conftest.err >&5
13239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
(exit $ac_status); } &&
13241
{ ac_try='test -z "$ac_c_werror_flag"
13242
|| test ! -s conftest.err'
13243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244
(eval $ac_try) 2>&5
13246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247
(exit $ac_status); }; } &&
13248
{ ac_try='test -s conftest.$ac_objext'
13249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250
(eval $ac_try) 2>&5
13252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253
(exit $ac_status); }; }; then
13254
ac_header_compiler=yes
13256
echo "$as_me: failed program was:" >&5
13257
sed 's/^/| /' conftest.$ac_ext >&5
13259
ac_header_compiler=no
13261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263
echo "${ECHO_T}$ac_header_compiler" >&6
13265
# Is the header present?
13266
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268
cat >conftest.$ac_ext <<_ACEOF
13271
cat confdefs.h >>conftest.$ac_ext
13272
cat >>conftest.$ac_ext <<_ACEOF
13273
/* end confdefs.h. */
13274
#include <$ac_header>
13276
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13279
grep -v '^ *+' conftest.er1 >conftest.err
13281
cat conftest.err >&5
13282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283
(exit $ac_status); } >/dev/null; then
13284
if test -s conftest.err; then
13285
ac_cpp_err=$ac_c_preproc_warn_flag
13286
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13293
if test -z "$ac_cpp_err"; then
13294
ac_header_preproc=yes
13296
echo "$as_me: failed program was:" >&5
13297
sed 's/^/| /' conftest.$ac_ext >&5
13299
ac_header_preproc=no
13301
rm -f conftest.err conftest.$ac_ext
13302
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303
echo "${ECHO_T}$ac_header_preproc" >&6
13305
# So? What about this header?
13306
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13308
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312
ac_header_preproc=yes
13315
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329
## ----------------------------------------- ##
13330
## Report this to http://bugzilla.quagga.net ##
13331
## ----------------------------------------- ##
13334
sed "s/^/$as_me: WARNING: /" >&2
13337
echo "$as_me:$LINENO: checking for $ac_header" >&5
13338
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340
echo $ECHO_N "(cached) $ECHO_C" >&6
13342
eval "$as_ac_Header=\$ac_header_preproc"
13344
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349
cat >>confdefs.h <<_ACEOF
13350
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13359
if test "${enable_zebra}" = "no";then
13365
if test "${enable_bgpd}" = "no";then
13371
if test "${enable_ripd}" = "no";then
13377
if test "${enable_ospfd}" = "no";then
13383
if test "${enable_watchquagga}" = "no";then
13386
WATCHQUAGGA="watchquagga"
13390
if test "${enable_opaque_lsa}" = "yes"; then
13391
if test "${enable_ospfapi}" != "no";then
13393
cat >>confdefs.h <<\_ACEOF
13394
#define SUPPORT_OSPF_API
13398
if test "${enable_ospfclient}" != "no";then
13399
OSPFCLIENT="ospfclient"
13405
case "${enable_ripngd}" in
13406
"yes") RIPNGD="ripngd";;
13411
case "${enable_ospf6d}" in
13412
"yes") OSPF6D="ospf6d";;
13417
case "${enable_isisd}" in
13418
"yes") ISISD="isisd";;
13423
if test "${enable_bgp_announce}" = "no";then
13425
cat >>confdefs.h <<\_ACEOF
13426
#define DISABLE_BGP_ANNOUNCE
13444
echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
13445
echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
13446
if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
13447
echo $ECHO_N "(cached) $ECHO_C" >&6
13449
ac_check_lib_save_LIBS=$LIBS
13451
cat >conftest.$ac_ext <<_ACEOF
13454
cat confdefs.h >>conftest.$ac_ext
13455
cat >>conftest.$ac_ext <<_ACEOF
13456
/* end confdefs.h. */
13458
/* Override any gcc2 internal prototype to avoid an error. */
13462
/* We use char because int might match the return type of a gcc2
13463
builtin and then its argument prototype would still apply. */
13473
rm -f conftest.$ac_objext conftest$ac_exeext
13474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13475
(eval $ac_link) 2>conftest.er1
13477
grep -v '^ *+' conftest.er1 >conftest.err
13479
cat conftest.err >&5
13480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481
(exit $ac_status); } &&
13482
{ ac_try='test -z "$ac_c_werror_flag"
13483
|| test ! -s conftest.err'
13484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485
(eval $ac_try) 2>&5
13487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488
(exit $ac_status); }; } &&
13489
{ ac_try='test -s conftest$ac_exeext'
13490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491
(eval $ac_try) 2>&5
13493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494
(exit $ac_status); }; }; then
13495
ac_cv_lib_c_inet_ntop=yes
13497
echo "$as_me: failed program was:" >&5
13498
sed 's/^/| /' conftest.$ac_ext >&5
13500
ac_cv_lib_c_inet_ntop=no
13502
rm -f conftest.err conftest.$ac_objext \
13503
conftest$ac_exeext conftest.$ac_ext
13504
LIBS=$ac_check_lib_save_LIBS
13506
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
13507
echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
13508
if test $ac_cv_lib_c_inet_ntop = yes; then
13510
cat >>confdefs.h <<\_ACEOF
13511
#define HAVE_INET_NTOP
13516
echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
13517
echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
13518
if test "${ac_cv_lib_c_inet_pton+set}" = set; then
13519
echo $ECHO_N "(cached) $ECHO_C" >&6
13521
ac_check_lib_save_LIBS=$LIBS
13523
cat >conftest.$ac_ext <<_ACEOF
13526
cat confdefs.h >>conftest.$ac_ext
13527
cat >>conftest.$ac_ext <<_ACEOF
13528
/* end confdefs.h. */
13530
/* Override any gcc2 internal prototype to avoid an error. */
13534
/* We use char because int might match the return type of a gcc2
13535
builtin and then its argument prototype would still apply. */
13545
rm -f conftest.$ac_objext conftest$ac_exeext
13546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547
(eval $ac_link) 2>conftest.er1
13549
grep -v '^ *+' conftest.er1 >conftest.err
13551
cat conftest.err >&5
13552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553
(exit $ac_status); } &&
13554
{ ac_try='test -z "$ac_c_werror_flag"
13555
|| test ! -s conftest.err'
13556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557
(eval $ac_try) 2>&5
13559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560
(exit $ac_status); }; } &&
13561
{ ac_try='test -s conftest$ac_exeext'
13562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563
(eval $ac_try) 2>&5
13565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566
(exit $ac_status); }; }; then
13567
ac_cv_lib_c_inet_pton=yes
13569
echo "$as_me: failed program was:" >&5
13570
sed 's/^/| /' conftest.$ac_ext >&5
13572
ac_cv_lib_c_inet_pton=no
13574
rm -f conftest.err conftest.$ac_objext \
13575
conftest$ac_exeext conftest.$ac_ext
13576
LIBS=$ac_check_lib_save_LIBS
13578
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
13579
echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
13580
if test $ac_cv_lib_c_inet_pton = yes; then
13582
cat >>confdefs.h <<\_ACEOF
13583
#define HAVE_INET_PTON
13589
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13590
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13591
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13592
echo $ECHO_N "(cached) $ECHO_C" >&6
13594
ac_check_lib_save_LIBS=$LIBS
13595
LIBS="-lcrypt $LIBS"
13596
cat >conftest.$ac_ext <<_ACEOF
13599
cat confdefs.h >>conftest.$ac_ext
13600
cat >>conftest.$ac_ext <<_ACEOF
13601
/* end confdefs.h. */
13603
/* Override any gcc2 internal prototype to avoid an error. */
13607
/* We use char because int might match the return type of a gcc2
13608
builtin and then its argument prototype would still apply. */
13618
rm -f conftest.$ac_objext conftest$ac_exeext
13619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620
(eval $ac_link) 2>conftest.er1
13622
grep -v '^ *+' conftest.er1 >conftest.err
13624
cat conftest.err >&5
13625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626
(exit $ac_status); } &&
13627
{ ac_try='test -z "$ac_c_werror_flag"
13628
|| test ! -s conftest.err'
13629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630
(eval $ac_try) 2>&5
13632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633
(exit $ac_status); }; } &&
13634
{ ac_try='test -s conftest$ac_exeext'
13635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636
(eval $ac_try) 2>&5
13638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639
(exit $ac_status); }; }; then
13640
ac_cv_lib_crypt_crypt=yes
13642
echo "$as_me: failed program was:" >&5
13643
sed 's/^/| /' conftest.$ac_ext >&5
13645
ac_cv_lib_crypt_crypt=no
13647
rm -f conftest.err conftest.$ac_objext \
13648
conftest$ac_exeext conftest.$ac_ext
13649
LIBS=$ac_check_lib_save_LIBS
13651
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13652
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13653
if test $ac_cv_lib_crypt_crypt = yes; then
13654
cat >>confdefs.h <<_ACEOF
13655
#define HAVE_LIBCRYPT 1
13658
LIBS="-lcrypt $LIBS"
13663
echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
13664
echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
13665
if test "${ac_cv_lib_resolv_res_init+set}" = set; then
13666
echo $ECHO_N "(cached) $ECHO_C" >&6
13668
ac_check_lib_save_LIBS=$LIBS
13669
LIBS="-lresolv $LIBS"
13670
cat >conftest.$ac_ext <<_ACEOF
13673
cat confdefs.h >>conftest.$ac_ext
13674
cat >>conftest.$ac_ext <<_ACEOF
13675
/* end confdefs.h. */
13677
/* Override any gcc2 internal prototype to avoid an error. */
13681
/* We use char because int might match the return type of a gcc2
13682
builtin and then its argument prototype would still apply. */
13692
rm -f conftest.$ac_objext conftest$ac_exeext
13693
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694
(eval $ac_link) 2>conftest.er1
13696
grep -v '^ *+' conftest.er1 >conftest.err
13698
cat conftest.err >&5
13699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700
(exit $ac_status); } &&
13701
{ ac_try='test -z "$ac_c_werror_flag"
13702
|| test ! -s conftest.err'
13703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704
(eval $ac_try) 2>&5
13706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707
(exit $ac_status); }; } &&
13708
{ ac_try='test -s conftest$ac_exeext'
13709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710
(eval $ac_try) 2>&5
13712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713
(exit $ac_status); }; }; then
13714
ac_cv_lib_resolv_res_init=yes
13716
echo "$as_me: failed program was:" >&5
13717
sed 's/^/| /' conftest.$ac_ext >&5
13719
ac_cv_lib_resolv_res_init=no
13721
rm -f conftest.err conftest.$ac_objext \
13722
conftest$ac_exeext conftest.$ac_ext
13723
LIBS=$ac_check_lib_save_LIBS
13725
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
13726
echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
13727
if test $ac_cv_lib_resolv_res_init = yes; then
13728
cat >>confdefs.h <<_ACEOF
13729
#define HAVE_LIBRESOLV 1
13732
LIBS="-lresolv $LIBS"
13737
echo "$as_me:$LINENO: checking for main in -lm" >&5
13738
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
13739
if test "${ac_cv_lib_m_main+set}" = set; then
13740
echo $ECHO_N "(cached) $ECHO_C" >&6
13742
ac_check_lib_save_LIBS=$LIBS
13744
cat >conftest.$ac_ext <<_ACEOF
13747
cat confdefs.h >>conftest.$ac_ext
13748
cat >>conftest.$ac_ext <<_ACEOF
13749
/* end confdefs.h. */
13760
rm -f conftest.$ac_objext conftest$ac_exeext
13761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13762
(eval $ac_link) 2>conftest.er1
13764
grep -v '^ *+' conftest.er1 >conftest.err
13766
cat conftest.err >&5
13767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768
(exit $ac_status); } &&
13769
{ ac_try='test -z "$ac_c_werror_flag"
13770
|| test ! -s conftest.err'
13771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772
(eval $ac_try) 2>&5
13774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775
(exit $ac_status); }; } &&
13776
{ ac_try='test -s conftest$ac_exeext'
13777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778
(eval $ac_try) 2>&5
13780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781
(exit $ac_status); }; }; then
13782
ac_cv_lib_m_main=yes
13784
echo "$as_me: failed program was:" >&5
13785
sed 's/^/| /' conftest.$ac_ext >&5
13787
ac_cv_lib_m_main=no
13789
rm -f conftest.err conftest.$ac_objext \
13790
conftest$ac_exeext conftest.$ac_ext
13791
LIBS=$ac_check_lib_save_LIBS
13793
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
13794
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
13795
if test $ac_cv_lib_m_main = yes; then
13796
cat >>confdefs.h <<_ACEOF
13797
#define HAVE_LIBM 1
13805
echo "$as_me:$LINENO: checking for __inet_ntop" >&5
13806
echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
13807
if test "${ac_cv_func___inet_ntop+set}" = set; then
13808
echo $ECHO_N "(cached) $ECHO_C" >&6
13810
cat >conftest.$ac_ext <<_ACEOF
13813
cat confdefs.h >>conftest.$ac_ext
13814
cat >>conftest.$ac_ext <<_ACEOF
13815
/* end confdefs.h. */
13816
/* Define __inet_ntop to an innocuous variant, in case <limits.h> declares __inet_ntop.
13817
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13818
#define __inet_ntop innocuous___inet_ntop
13820
/* System header to define __stub macros and hopefully few prototypes,
13821
which can conflict with char __inet_ntop (); below.
13822
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13823
<limits.h> exists even on freestanding compilers. */
13826
# include <limits.h>
13828
# include <assert.h>
13833
/* Override any gcc2 internal prototype to avoid an error. */
13838
/* We use char because int might match the return type of a gcc2
13839
builtin and then its argument prototype would still apply. */
13840
char __inet_ntop ();
13841
/* The GNU C library defines this for functions which it implements
13842
to always fail with ENOSYS. Some functions are actually named
13843
something starting with __ and the normal name is an alias. */
13844
#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
13847
char (*f) () = __inet_ntop;
13856
return f != __inet_ntop;
13861
rm -f conftest.$ac_objext conftest$ac_exeext
13862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863
(eval $ac_link) 2>conftest.er1
13865
grep -v '^ *+' conftest.er1 >conftest.err
13867
cat conftest.err >&5
13868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869
(exit $ac_status); } &&
13870
{ ac_try='test -z "$ac_c_werror_flag"
13871
|| test ! -s conftest.err'
13872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873
(eval $ac_try) 2>&5
13875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876
(exit $ac_status); }; } &&
13877
{ ac_try='test -s conftest$ac_exeext'
13878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879
(eval $ac_try) 2>&5
13881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882
(exit $ac_status); }; }; then
13883
ac_cv_func___inet_ntop=yes
13885
echo "$as_me: failed program was:" >&5
13886
sed 's/^/| /' conftest.$ac_ext >&5
13888
ac_cv_func___inet_ntop=no
13890
rm -f conftest.err conftest.$ac_objext \
13891
conftest$ac_exeext conftest.$ac_ext
13893
echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
13894
echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
13895
if test $ac_cv_func___inet_ntop = yes; then
13897
cat >>confdefs.h <<\_ACEOF
13898
#define HAVE_INET_NTOP
13903
echo "$as_me:$LINENO: checking for __inet_pton" >&5
13904
echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
13905
if test "${ac_cv_func___inet_pton+set}" = set; then
13906
echo $ECHO_N "(cached) $ECHO_C" >&6
13908
cat >conftest.$ac_ext <<_ACEOF
13911
cat confdefs.h >>conftest.$ac_ext
13912
cat >>conftest.$ac_ext <<_ACEOF
13913
/* end confdefs.h. */
13914
/* Define __inet_pton to an innocuous variant, in case <limits.h> declares __inet_pton.
13915
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916
#define __inet_pton innocuous___inet_pton
13918
/* System header to define __stub macros and hopefully few prototypes,
13919
which can conflict with char __inet_pton (); below.
13920
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921
<limits.h> exists even on freestanding compilers. */
13924
# include <limits.h>
13926
# include <assert.h>
13931
/* Override any gcc2 internal prototype to avoid an error. */
13936
/* We use char because int might match the return type of a gcc2
13937
builtin and then its argument prototype would still apply. */
13938
char __inet_pton ();
13939
/* The GNU C library defines this for functions which it implements
13940
to always fail with ENOSYS. Some functions are actually named
13941
something starting with __ and the normal name is an alias. */
13942
#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
13945
char (*f) () = __inet_pton;
13954
return f != __inet_pton;
13959
rm -f conftest.$ac_objext conftest$ac_exeext
13960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961
(eval $ac_link) 2>conftest.er1
13963
grep -v '^ *+' conftest.er1 >conftest.err
13965
cat conftest.err >&5
13966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967
(exit $ac_status); } &&
13968
{ ac_try='test -z "$ac_c_werror_flag"
13969
|| test ! -s conftest.err'
13970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971
(eval $ac_try) 2>&5
13973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974
(exit $ac_status); }; } &&
13975
{ ac_try='test -s conftest$ac_exeext'
13976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977
(eval $ac_try) 2>&5
13979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980
(exit $ac_status); }; }; then
13981
ac_cv_func___inet_pton=yes
13983
echo "$as_me: failed program was:" >&5
13984
sed 's/^/| /' conftest.$ac_ext >&5
13986
ac_cv_func___inet_pton=no
13988
rm -f conftest.err conftest.$ac_objext \
13989
conftest$ac_exeext conftest.$ac_ext
13991
echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
13992
echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
13993
if test $ac_cv_func___inet_pton = yes; then
13995
cat >>confdefs.h <<\_ACEOF
13996
#define HAVE_INET_PTON
14001
echo "$as_me:$LINENO: checking for __inet_aton" >&5
14002
echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
14003
if test "${ac_cv_func___inet_aton+set}" = set; then
14004
echo $ECHO_N "(cached) $ECHO_C" >&6
14006
cat >conftest.$ac_ext <<_ACEOF
14009
cat confdefs.h >>conftest.$ac_ext
14010
cat >>conftest.$ac_ext <<_ACEOF
14011
/* end confdefs.h. */
14012
/* Define __inet_aton to an innocuous variant, in case <limits.h> declares __inet_aton.
14013
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14014
#define __inet_aton innocuous___inet_aton
14016
/* System header to define __stub macros and hopefully few prototypes,
14017
which can conflict with char __inet_aton (); below.
14018
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14019
<limits.h> exists even on freestanding compilers. */
14022
# include <limits.h>
14024
# include <assert.h>
14029
/* Override any gcc2 internal prototype to avoid an error. */
14034
/* We use char because int might match the return type of a gcc2
14035
builtin and then its argument prototype would still apply. */
14036
char __inet_aton ();
14037
/* The GNU C library defines this for functions which it implements
14038
to always fail with ENOSYS. Some functions are actually named
14039
something starting with __ and the normal name is an alias. */
14040
#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
14043
char (*f) () = __inet_aton;
14052
return f != __inet_aton;
14057
rm -f conftest.$ac_objext conftest$ac_exeext
14058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059
(eval $ac_link) 2>conftest.er1
14061
grep -v '^ *+' conftest.er1 >conftest.err
14063
cat conftest.err >&5
14064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065
(exit $ac_status); } &&
14066
{ ac_try='test -z "$ac_c_werror_flag"
14067
|| test ! -s conftest.err'
14068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069
(eval $ac_try) 2>&5
14071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072
(exit $ac_status); }; } &&
14073
{ ac_try='test -s conftest$ac_exeext'
14074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075
(eval $ac_try) 2>&5
14077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078
(exit $ac_status); }; }; then
14079
ac_cv_func___inet_aton=yes
14081
echo "$as_me: failed program was:" >&5
14082
sed 's/^/| /' conftest.$ac_ext >&5
14084
ac_cv_func___inet_aton=no
14086
rm -f conftest.err conftest.$ac_objext \
14087
conftest$ac_exeext conftest.$ac_ext
14089
echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
14090
echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
14091
if test $ac_cv_func___inet_aton = yes; then
14093
cat >>confdefs.h <<\_ACEOF
14094
#define HAVE_INET_ATON
14100
echo "$as_me:$LINENO: checking for regexec in -lc" >&5
14101
echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
14102
if test "${ac_cv_lib_c_regexec+set}" = set; then
14103
echo $ECHO_N "(cached) $ECHO_C" >&6
14105
ac_check_lib_save_LIBS=$LIBS
14107
cat >conftest.$ac_ext <<_ACEOF
14110
cat confdefs.h >>conftest.$ac_ext
14111
cat >>conftest.$ac_ext <<_ACEOF
14112
/* end confdefs.h. */
14114
/* Override any gcc2 internal prototype to avoid an error. */
14118
/* We use char because int might match the return type of a gcc2
14119
builtin and then its argument prototype would still apply. */
14129
rm -f conftest.$ac_objext conftest$ac_exeext
14130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131
(eval $ac_link) 2>conftest.er1
14133
grep -v '^ *+' conftest.er1 >conftest.err
14135
cat conftest.err >&5
14136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137
(exit $ac_status); } &&
14138
{ ac_try='test -z "$ac_c_werror_flag"
14139
|| test ! -s conftest.err'
14140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141
(eval $ac_try) 2>&5
14143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144
(exit $ac_status); }; } &&
14145
{ ac_try='test -s conftest$ac_exeext'
14146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147
(eval $ac_try) 2>&5
14149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150
(exit $ac_status); }; }; then
14151
ac_cv_lib_c_regexec=yes
14153
echo "$as_me: failed program was:" >&5
14154
sed 's/^/| /' conftest.$ac_ext >&5
14156
ac_cv_lib_c_regexec=no
14158
rm -f conftest.err conftest.$ac_objext \
14159
conftest$ac_exeext conftest.$ac_ext
14160
LIBS=$ac_check_lib_save_LIBS
14162
echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
14163
echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
14164
if test $ac_cv_lib_c_regexec = yes; then
14166
cat >>confdefs.h <<\_ACEOF
14167
#define HAVE_GNU_REGEX
14172
LIB_REGEX="regex.o"
14177
if test "${enable_snmp}" = "yes";then
14178
if test "${HAVE_SNMP}" = ""; then
14181
unset ac_cv_lib_snmp_asn_parse_int
14182
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
14183
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
14184
if test "${ac_cv_lib_crypto_main+set}" = set; then
14185
echo $ECHO_N "(cached) $ECHO_C" >&6
14187
ac_check_lib_save_LIBS=$LIBS
14188
LIBS="-lcrypto $LIBS"
14189
cat >conftest.$ac_ext <<_ACEOF
14192
cat confdefs.h >>conftest.$ac_ext
14193
cat >>conftest.$ac_ext <<_ACEOF
14194
/* end confdefs.h. */
14205
rm -f conftest.$ac_objext conftest$ac_exeext
14206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207
(eval $ac_link) 2>conftest.er1
14209
grep -v '^ *+' conftest.er1 >conftest.err
14211
cat conftest.err >&5
14212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213
(exit $ac_status); } &&
14214
{ ac_try='test -z "$ac_c_werror_flag"
14215
|| test ! -s conftest.err'
14216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217
(eval $ac_try) 2>&5
14219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220
(exit $ac_status); }; } &&
14221
{ ac_try='test -s conftest$ac_exeext'
14222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223
(eval $ac_try) 2>&5
14225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226
(exit $ac_status); }; }; then
14227
ac_cv_lib_crypto_main=yes
14229
echo "$as_me: failed program was:" >&5
14230
sed 's/^/| /' conftest.$ac_ext >&5
14232
ac_cv_lib_crypto_main=no
14234
rm -f conftest.err conftest.$ac_objext \
14235
conftest$ac_exeext conftest.$ac_ext
14236
LIBS=$ac_check_lib_save_LIBS
14238
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
14239
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
14240
if test $ac_cv_lib_crypto_main = yes; then
14244
if test "${NEED_CRYPTO}" = ""; then
14245
echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
14246
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
14247
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
14248
echo $ECHO_N "(cached) $ECHO_C" >&6
14250
ac_check_lib_save_LIBS=$LIBS
14251
LIBS="-lnetsnmp $LIBS"
14252
cat >conftest.$ac_ext <<_ACEOF
14255
cat confdefs.h >>conftest.$ac_ext
14256
cat >>conftest.$ac_ext <<_ACEOF
14257
/* end confdefs.h. */
14259
/* Override any gcc2 internal prototype to avoid an error. */
14263
/* We use char because int might match the return type of a gcc2
14264
builtin and then its argument prototype would still apply. */
14265
char asn_parse_int ();
14274
rm -f conftest.$ac_objext conftest$ac_exeext
14275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14276
(eval $ac_link) 2>conftest.er1
14278
grep -v '^ *+' conftest.er1 >conftest.err
14280
cat conftest.err >&5
14281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282
(exit $ac_status); } &&
14283
{ ac_try='test -z "$ac_c_werror_flag"
14284
|| test ! -s conftest.err'
14285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286
(eval $ac_try) 2>&5
14288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289
(exit $ac_status); }; } &&
14290
{ ac_try='test -s conftest$ac_exeext'
14291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292
(eval $ac_try) 2>&5
14294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295
(exit $ac_status); }; }; then
14296
ac_cv_lib_netsnmp_asn_parse_int=yes
14298
echo "$as_me: failed program was:" >&5
14299
sed 's/^/| /' conftest.$ac_ext >&5
14301
ac_cv_lib_netsnmp_asn_parse_int=no
14303
rm -f conftest.err conftest.$ac_objext \
14304
conftest$ac_exeext conftest.$ac_ext
14305
LIBS=$ac_check_lib_save_LIBS
14307
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
14308
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
14309
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
14310
HAVE_NETSNMP=yes; HAVE_SNMP=yes
14314
echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
14315
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
14316
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
14317
echo $ECHO_N "(cached) $ECHO_C" >&6
14319
ac_check_lib_save_LIBS=$LIBS
14320
LIBS="-lnetsnmp "-lcrypto" $LIBS"
14321
cat >conftest.$ac_ext <<_ACEOF
14324
cat confdefs.h >>conftest.$ac_ext
14325
cat >>conftest.$ac_ext <<_ACEOF
14326
/* end confdefs.h. */
14328
/* Override any gcc2 internal prototype to avoid an error. */
14332
/* We use char because int might match the return type of a gcc2
14333
builtin and then its argument prototype would still apply. */
14334
char asn_parse_int ();
14343
rm -f conftest.$ac_objext conftest$ac_exeext
14344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345
(eval $ac_link) 2>conftest.er1
14347
grep -v '^ *+' conftest.er1 >conftest.err
14349
cat conftest.err >&5
14350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351
(exit $ac_status); } &&
14352
{ ac_try='test -z "$ac_c_werror_flag"
14353
|| test ! -s conftest.err'
14354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355
(eval $ac_try) 2>&5
14357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358
(exit $ac_status); }; } &&
14359
{ ac_try='test -s conftest$ac_exeext'
14360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361
(eval $ac_try) 2>&5
14363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364
(exit $ac_status); }; }; then
14365
ac_cv_lib_netsnmp_asn_parse_int=yes
14367
echo "$as_me: failed program was:" >&5
14368
sed 's/^/| /' conftest.$ac_ext >&5
14370
ac_cv_lib_netsnmp_asn_parse_int=no
14372
rm -f conftest.err conftest.$ac_objext \
14373
conftest$ac_exeext conftest.$ac_ext
14374
LIBS=$ac_check_lib_save_LIBS
14376
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
14377
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
14378
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
14379
HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
14385
if test "${HAVE_SNMP}" = ""; then
14388
unset ac_cv_lib_snmp_asn_parse_int
14389
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
14390
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
14391
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
14392
echo $ECHO_N "(cached) $ECHO_C" >&6
14394
ac_check_lib_save_LIBS=$LIBS
14395
LIBS="-lsnmp $LIBS"
14396
cat >conftest.$ac_ext <<_ACEOF
14399
cat confdefs.h >>conftest.$ac_ext
14400
cat >>conftest.$ac_ext <<_ACEOF
14401
/* end confdefs.h. */
14403
/* Override any gcc2 internal prototype to avoid an error. */
14407
/* We use char because int might match the return type of a gcc2
14408
builtin and then its argument prototype would still apply. */
14409
char asn_parse_int ();
14418
rm -f conftest.$ac_objext conftest$ac_exeext
14419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420
(eval $ac_link) 2>conftest.er1
14422
grep -v '^ *+' conftest.er1 >conftest.err
14424
cat conftest.err >&5
14425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426
(exit $ac_status); } &&
14427
{ ac_try='test -z "$ac_c_werror_flag"
14428
|| test ! -s conftest.err'
14429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430
(eval $ac_try) 2>&5
14432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433
(exit $ac_status); }; } &&
14434
{ ac_try='test -s conftest$ac_exeext'
14435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436
(eval $ac_try) 2>&5
14438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439
(exit $ac_status); }; }; then
14440
ac_cv_lib_snmp_asn_parse_int=yes
14442
echo "$as_me: failed program was:" >&5
14443
sed 's/^/| /' conftest.$ac_ext >&5
14445
ac_cv_lib_snmp_asn_parse_int=no
14447
rm -f conftest.err conftest.$ac_objext \
14448
conftest$ac_exeext conftest.$ac_ext
14449
LIBS=$ac_check_lib_save_LIBS
14451
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
14452
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
14453
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
14457
if test "${HAVE_SNMP}" = ""; then
14458
unset ac_cv_lib_snmp_asn_parse_int
14459
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
14460
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
14461
if test "${ac_cv_lib_crypto_main+set}" = set; then
14462
echo $ECHO_N "(cached) $ECHO_C" >&6
14464
ac_check_lib_save_LIBS=$LIBS
14465
LIBS="-lcrypto $LIBS"
14466
cat >conftest.$ac_ext <<_ACEOF
14469
cat confdefs.h >>conftest.$ac_ext
14470
cat >>conftest.$ac_ext <<_ACEOF
14471
/* end confdefs.h. */
14482
rm -f conftest.$ac_objext conftest$ac_exeext
14483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484
(eval $ac_link) 2>conftest.er1
14486
grep -v '^ *+' conftest.er1 >conftest.err
14488
cat conftest.err >&5
14489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490
(exit $ac_status); } &&
14491
{ ac_try='test -z "$ac_c_werror_flag"
14492
|| test ! -s conftest.err'
14493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494
(eval $ac_try) 2>&5
14496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497
(exit $ac_status); }; } &&
14498
{ ac_try='test -s conftest$ac_exeext'
14499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500
(eval $ac_try) 2>&5
14502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503
(exit $ac_status); }; }; then
14504
ac_cv_lib_crypto_main=yes
14506
echo "$as_me: failed program was:" >&5
14507
sed 's/^/| /' conftest.$ac_ext >&5
14509
ac_cv_lib_crypto_main=no
14511
rm -f conftest.err conftest.$ac_objext \
14512
conftest$ac_exeext conftest.$ac_ext
14513
LIBS=$ac_check_lib_save_LIBS
14515
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
14516
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
14517
if test $ac_cv_lib_crypto_main = yes; then
14521
if test "${NEED_CRYPTO}" = "yes"; then
14522
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
14523
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
14524
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
14525
echo $ECHO_N "(cached) $ECHO_C" >&6
14527
ac_check_lib_save_LIBS=$LIBS
14528
LIBS="-lsnmp "-lcrypto" $LIBS"
14529
cat >conftest.$ac_ext <<_ACEOF
14532
cat confdefs.h >>conftest.$ac_ext
14533
cat >>conftest.$ac_ext <<_ACEOF
14534
/* end confdefs.h. */
14536
/* Override any gcc2 internal prototype to avoid an error. */
14540
/* We use char because int might match the return type of a gcc2
14541
builtin and then its argument prototype would still apply. */
14542
char asn_parse_int ();
14551
rm -f conftest.$ac_objext conftest$ac_exeext
14552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14553
(eval $ac_link) 2>conftest.er1
14555
grep -v '^ *+' conftest.er1 >conftest.err
14557
cat conftest.err >&5
14558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559
(exit $ac_status); } &&
14560
{ ac_try='test -z "$ac_c_werror_flag"
14561
|| test ! -s conftest.err'
14562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563
(eval $ac_try) 2>&5
14565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566
(exit $ac_status); }; } &&
14567
{ ac_try='test -s conftest$ac_exeext'
14568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569
(eval $ac_try) 2>&5
14571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572
(exit $ac_status); }; }; then
14573
ac_cv_lib_snmp_asn_parse_int=yes
14575
echo "$as_me: failed program was:" >&5
14576
sed 's/^/| /' conftest.$ac_ext >&5
14578
ac_cv_lib_snmp_asn_parse_int=no
14580
rm -f conftest.err conftest.$ac_objext \
14581
conftest$ac_exeext conftest.$ac_ext
14582
LIBS=$ac_check_lib_save_LIBS
14584
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
14585
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
14586
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
14587
HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
14595
if test "${HAVE_SNMP}" = ""; then
14597
LIBS="-L/usr/local/lib"
14598
unset ac_cv_lib_snmp_asn_parse_int
14599
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
14600
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
14601
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
14602
echo $ECHO_N "(cached) $ECHO_C" >&6
14604
ac_check_lib_save_LIBS=$LIBS
14605
LIBS="-lsnmp $LIBS"
14606
cat >conftest.$ac_ext <<_ACEOF
14609
cat confdefs.h >>conftest.$ac_ext
14610
cat >>conftest.$ac_ext <<_ACEOF
14611
/* end confdefs.h. */
14613
/* Override any gcc2 internal prototype to avoid an error. */
14617
/* We use char because int might match the return type of a gcc2
14618
builtin and then its argument prototype would still apply. */
14619
char asn_parse_int ();
14628
rm -f conftest.$ac_objext conftest$ac_exeext
14629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630
(eval $ac_link) 2>conftest.er1
14632
grep -v '^ *+' conftest.er1 >conftest.err
14634
cat conftest.err >&5
14635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636
(exit $ac_status); } &&
14637
{ ac_try='test -z "$ac_c_werror_flag"
14638
|| test ! -s conftest.err'
14639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640
(eval $ac_try) 2>&5
14642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643
(exit $ac_status); }; } &&
14644
{ ac_try='test -s conftest$ac_exeext'
14645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646
(eval $ac_try) 2>&5
14648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649
(exit $ac_status); }; }; then
14650
ac_cv_lib_snmp_asn_parse_int=yes
14652
echo "$as_me: failed program was:" >&5
14653
sed 's/^/| /' conftest.$ac_ext >&5
14655
ac_cv_lib_snmp_asn_parse_int=no
14657
rm -f conftest.err conftest.$ac_objext \
14658
conftest$ac_exeext conftest.$ac_ext
14659
LIBS=$ac_check_lib_save_LIBS
14661
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
14662
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
14663
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
14667
if test "${HAVE_SNMP}" = ""; then
14668
unset ac_cv_lib_snmp_asn_parse_int
14669
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
14670
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
14671
if test "${ac_cv_lib_crypto_main+set}" = set; then
14672
echo $ECHO_N "(cached) $ECHO_C" >&6
14674
ac_check_lib_save_LIBS=$LIBS
14675
LIBS="-lcrypto $LIBS"
14676
cat >conftest.$ac_ext <<_ACEOF
14679
cat confdefs.h >>conftest.$ac_ext
14680
cat >>conftest.$ac_ext <<_ACEOF
14681
/* end confdefs.h. */
14692
rm -f conftest.$ac_objext conftest$ac_exeext
14693
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14694
(eval $ac_link) 2>conftest.er1
14696
grep -v '^ *+' conftest.er1 >conftest.err
14698
cat conftest.err >&5
14699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700
(exit $ac_status); } &&
14701
{ ac_try='test -z "$ac_c_werror_flag"
14702
|| test ! -s conftest.err'
14703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704
(eval $ac_try) 2>&5
14706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707
(exit $ac_status); }; } &&
14708
{ ac_try='test -s conftest$ac_exeext'
14709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710
(eval $ac_try) 2>&5
14712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713
(exit $ac_status); }; }; then
14714
ac_cv_lib_crypto_main=yes
14716
echo "$as_me: failed program was:" >&5
14717
sed 's/^/| /' conftest.$ac_ext >&5
14719
ac_cv_lib_crypto_main=no
14721
rm -f conftest.err conftest.$ac_objext \
14722
conftest$ac_exeext conftest.$ac_ext
14723
LIBS=$ac_check_lib_save_LIBS
14725
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
14726
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
14727
if test $ac_cv_lib_crypto_main = yes; then
14731
if test "${NEED_CRYPTO}" = "yes"; then
14732
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
14733
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
14734
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
14735
echo $ECHO_N "(cached) $ECHO_C" >&6
14737
ac_check_lib_save_LIBS=$LIBS
14738
LIBS="-lsnmp "-lcrypto" $LIBS"
14739
cat >conftest.$ac_ext <<_ACEOF
14742
cat confdefs.h >>conftest.$ac_ext
14743
cat >>conftest.$ac_ext <<_ACEOF
14744
/* end confdefs.h. */
14746
/* Override any gcc2 internal prototype to avoid an error. */
14750
/* We use char because int might match the return type of a gcc2
14751
builtin and then its argument prototype would still apply. */
14752
char asn_parse_int ();
14761
rm -f conftest.$ac_objext conftest$ac_exeext
14762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14763
(eval $ac_link) 2>conftest.er1
14765
grep -v '^ *+' conftest.er1 >conftest.err
14767
cat conftest.err >&5
14768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769
(exit $ac_status); } &&
14770
{ ac_try='test -z "$ac_c_werror_flag"
14771
|| test ! -s conftest.err'
14772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773
(eval $ac_try) 2>&5
14775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776
(exit $ac_status); }; } &&
14777
{ ac_try='test -s conftest$ac_exeext'
14778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779
(eval $ac_try) 2>&5
14781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782
(exit $ac_status); }; }; then
14783
ac_cv_lib_snmp_asn_parse_int=yes
14785
echo "$as_me: failed program was:" >&5
14786
sed 's/^/| /' conftest.$ac_ext >&5
14788
ac_cv_lib_snmp_asn_parse_int=no
14790
rm -f conftest.err conftest.$ac_objext \
14791
conftest$ac_exeext conftest.$ac_ext
14792
LIBS=$ac_check_lib_save_LIBS
14794
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
14795
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
14796
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
14797
HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
14805
if test "${HAVE_SNMP}" = "yes"; then
14806
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
14808
test -f "${ac_snmp}" && break
14812
/usr/include/net-snmp/*)
14814
cat >>confdefs.h <<\_ACEOF
14819
cat >>confdefs.h <<\_ACEOF
14820
#define HAVE_NETSNMP
14824
cat >>confdefs.h <<\_ACEOF
14825
#define UCD_COMPATIBLE
14828
SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/include/net-snmp -I/usr/include/net-snmp/library"
14829
if test "${HAVE_NETSNMP}" = "yes"; then
14830
LIBS="${LIBS} -lnetsnmp"
14832
LIBS="${LIBS} -lsnmp"
14835
/usr/include/ucd-snmp/*)
14837
cat >>confdefs.h <<\_ACEOF
14841
SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/include/ucd-snmp"
14842
LIBS="${LIBS} -lsnmp"
14844
/usr/local/include/ucd-snmp/*)
14846
cat >>confdefs.h <<\_ACEOF
14850
SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/ucd-snmp"
14851
LIBS="${LIBS} -L/usr/local/lib -lsnmp"
14853
/usr/local/include/net-snmp/*)
14855
cat >>confdefs.h <<\_ACEOF
14860
cat >>confdefs.h <<\_ACEOF
14861
#define HAVE_NET_SNMP
14865
cat >>confdefs.h <<\_ACEOF
14866
#define UCD_COMPATIBLE
14869
SNMP_INCLUDES="${SNMP_INCLUDES} -I/usr/local/include/net-snmp"
14870
LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
14873
if test "${NEED_CRYPTO}" = "yes"; then
14874
LIBS="${LIBS} -lcrypto"
14879
if test "${enable_snmp}" = "yes" -a "${HAVE_SNMP}" != "yes"; then
14880
{ { echo "$as_me:$LINENO: error: --enable-snmp given, but cannot find support for SNMP" >&5
14881
echo "$as_me: error: --enable-snmp given, but cannot find support for SNMP" >&2;}
14882
{ (exit 1); exit 1; }; }
14887
echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
14888
echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
14889
cat >conftest.$ac_ext <<_ACEOF
14892
cat confdefs.h >>conftest.$ac_ext
14893
cat >>conftest.$ac_ext <<_ACEOF
14894
/* end confdefs.h. */
14895
#include <sys/types.h>
14896
#include <sys/socket.h>
14901
static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
14906
rm -f conftest.$ac_objext
14907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908
(eval $ac_compile) 2>conftest.er1
14910
grep -v '^ *+' conftest.er1 >conftest.err
14912
cat conftest.err >&5
14913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914
(exit $ac_status); } &&
14915
{ ac_try='test -z "$ac_c_werror_flag"
14916
|| test ! -s conftest.err'
14917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918
(eval $ac_try) 2>&5
14920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921
(exit $ac_status); }; } &&
14922
{ ac_try='test -s conftest.$ac_objext'
14923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924
(eval $ac_try) 2>&5
14926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927
(exit $ac_status); }; }; then
14928
echo "$as_me:$LINENO: result: yes" >&5
14929
echo "${ECHO_T}yes" >&6
14931
cat >>confdefs.h <<\_ACEOF
14932
#define HAVE_SA_LEN
14936
echo "$as_me: failed program was:" >&5
14937
sed 's/^/| /' conftest.$ac_ext >&5
14939
echo "$as_me:$LINENO: result: no" >&5
14940
echo "${ECHO_T}no" >&6
14942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14944
echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
14945
echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
14946
cat >conftest.$ac_ext <<_ACEOF
14949
cat confdefs.h >>conftest.$ac_ext
14950
cat >>conftest.$ac_ext <<_ACEOF
14951
/* end confdefs.h. */
14952
#include <sys/types.h>
14953
#include <netinet/in.h>
14958
static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
14963
rm -f conftest.$ac_objext
14964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965
(eval $ac_compile) 2>conftest.er1
14967
grep -v '^ *+' conftest.er1 >conftest.err
14969
cat conftest.err >&5
14970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971
(exit $ac_status); } &&
14972
{ ac_try='test -z "$ac_c_werror_flag"
14973
|| test ! -s conftest.err'
14974
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975
(eval $ac_try) 2>&5
14977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978
(exit $ac_status); }; } &&
14979
{ ac_try='test -s conftest.$ac_objext'
14980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981
(eval $ac_try) 2>&5
14983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984
(exit $ac_status); }; }; then
14985
echo "$as_me:$LINENO: result: yes" >&5
14986
echo "${ECHO_T}yes" >&6
14988
cat >>confdefs.h <<\_ACEOF
14989
#define HAVE_SIN_LEN
14993
echo "$as_me: failed program was:" >&5
14994
sed 's/^/| /' conftest.$ac_ext >&5
14996
echo "$as_me:$LINENO: result: no" >&5
14997
echo "${ECHO_T}no" >&6
14999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15001
echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
15002
echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
15003
cat >conftest.$ac_ext <<_ACEOF
15006
cat confdefs.h >>conftest.$ac_ext
15007
cat >>conftest.$ac_ext <<_ACEOF
15008
/* end confdefs.h. */
15009
#include <sys/types.h>
15010
#include <sys/un.h>
15015
static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
15020
rm -f conftest.$ac_objext
15021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022
(eval $ac_compile) 2>conftest.er1
15024
grep -v '^ *+' conftest.er1 >conftest.err
15026
cat conftest.err >&5
15027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028
(exit $ac_status); } &&
15029
{ ac_try='test -z "$ac_c_werror_flag"
15030
|| test ! -s conftest.err'
15031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032
(eval $ac_try) 2>&5
15034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035
(exit $ac_status); }; } &&
15036
{ ac_try='test -s conftest.$ac_objext'
15037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038
(eval $ac_try) 2>&5
15040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041
(exit $ac_status); }; }; then
15042
echo "$as_me:$LINENO: result: yes" >&5
15043
echo "${ECHO_T}yes" >&6
15045
cat >>confdefs.h <<\_ACEOF
15046
#define HAVE_SUN_LEN
15050
echo "$as_me: failed program was:" >&5
15051
sed 's/^/| /' conftest.$ac_ext >&5
15053
echo "$as_me:$LINENO: result: no" >&5
15054
echo "${ECHO_T}no" >&6
15056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15058
if test "$zebra_cv_ipv6" = yes; then
15059
echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
15060
echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
15061
cat >conftest.$ac_ext <<_ACEOF
15064
cat confdefs.h >>conftest.$ac_ext
15065
cat >>conftest.$ac_ext <<_ACEOF
15066
/* end confdefs.h. */
15067
#include <sys/types.h>
15068
#include <netinet/in.h>
15073
static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
15078
rm -f conftest.$ac_objext
15079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080
(eval $ac_compile) 2>conftest.er1
15082
grep -v '^ *+' conftest.er1 >conftest.err
15084
cat conftest.err >&5
15085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086
(exit $ac_status); } &&
15087
{ ac_try='test -z "$ac_c_werror_flag"
15088
|| test ! -s conftest.err'
15089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090
(eval $ac_try) 2>&5
15092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093
(exit $ac_status); }; } &&
15094
{ ac_try='test -s conftest.$ac_objext'
15095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096
(eval $ac_try) 2>&5
15098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099
(exit $ac_status); }; }; then
15100
echo "$as_me:$LINENO: result: yes" >&5
15101
echo "${ECHO_T}yes" >&6
15103
cat >>confdefs.h <<\_ACEOF
15104
#define HAVE_SIN6_SCOPE_ID
15108
echo "$as_me: failed program was:" >&5
15109
sed 's/^/| /' conftest.$ac_ext >&5
15111
echo "$as_me:$LINENO: result: no" >&5
15112
echo "${ECHO_T}no" >&6
15114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117
echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
15118
echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
15119
cat >conftest.$ac_ext <<_ACEOF
15122
cat confdefs.h >>conftest.$ac_ext
15123
cat >>conftest.$ac_ext <<_ACEOF
15124
/* end confdefs.h. */
15125
#include <sys/types.h>
15126
#include <sys/socket.h>
15127
#include <netinet/in.h>
15137
rm -f conftest.$ac_objext
15138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139
(eval $ac_compile) 2>conftest.er1
15141
grep -v '^ *+' conftest.er1 >conftest.err
15143
cat conftest.err >&5
15144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145
(exit $ac_status); } &&
15146
{ ac_try='test -z "$ac_c_werror_flag"
15147
|| test ! -s conftest.err'
15148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149
(eval $ac_try) 2>&5
15151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152
(exit $ac_status); }; } &&
15153
{ ac_try='test -s conftest.$ac_objext'
15154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155
(eval $ac_try) 2>&5
15157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158
(exit $ac_status); }; }; then
15159
echo "$as_me:$LINENO: result: yes" >&5
15160
echo "${ECHO_T}yes" >&6
15162
cat >>confdefs.h <<\_ACEOF
15163
#define HAVE_SOCKLEN_T
15167
echo "$as_me: failed program was:" >&5
15168
sed 's/^/| /' conftest.$ac_ext >&5
15170
echo "$as_me:$LINENO: result: no" >&5
15171
echo "${ECHO_T}no" >&6
15173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175
echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
15176
echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
15177
cat >conftest.$ac_ext <<_ACEOF
15180
cat confdefs.h >>conftest.$ac_ext
15181
cat >>conftest.$ac_ext <<_ACEOF
15182
/* end confdefs.h. */
15183
#include <net/if_dl.h>
15186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15187
$EGREP "sockaddr_dl" >/dev/null 2>&1; then
15188
echo "$as_me:$LINENO: result: yes" >&5
15189
echo "${ECHO_T}yes" >&6
15191
cat >>confdefs.h <<\_ACEOF
15192
#define HAVE_SOCKADDR_DL
15196
echo "$as_me:$LINENO: result: no" >&5
15197
echo "${ECHO_T}no" >&6
15202
echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
15203
echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
15204
cat >conftest.$ac_ext <<_ACEOF
15207
cat confdefs.h >>conftest.$ac_ext
15208
cat >>conftest.$ac_ext <<_ACEOF
15209
/* end confdefs.h. */
15210
#include <net/if.h>
15213
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214
$EGREP "ifaliasreq" >/dev/null 2>&1; then
15215
echo "$as_me:$LINENO: result: yes" >&5
15216
echo "${ECHO_T}yes" >&6
15218
cat >>confdefs.h <<\_ACEOF
15219
#define HAVE_IFALIASREQ
15223
echo "$as_me:$LINENO: result: no" >&5
15224
echo "${ECHO_T}no" >&6
15229
echo "$as_me:$LINENO: checking whether struct in6_aliasreq exist" >&5
15230
echo $ECHO_N "checking whether struct in6_aliasreq exist... $ECHO_C" >&6
15231
cat >conftest.$ac_ext <<_ACEOF
15234
cat confdefs.h >>conftest.$ac_ext
15235
cat >>conftest.$ac_ext <<_ACEOF
15236
/* end confdefs.h. */
15237
#include <netinet6/in6_var.h>
15240
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15241
$EGREP "in6_aliasreq" >/dev/null 2>&1; then
15242
echo "$as_me:$LINENO: result: yes" >&5
15243
echo "${ECHO_T}yes" >&6
15245
cat >>confdefs.h <<\_ACEOF
15246
#define HAVE_IN6_ALIASREQ
15250
echo "$as_me:$LINENO: result: no" >&5
15251
echo "${ECHO_T}no" >&6
15256
echo "$as_me:$LINENO: checking whether in6_aliasreq.ifra_lifetime exist" >&5
15257
echo $ECHO_N "checking whether in6_aliasreq.ifra_lifetime exist... $ECHO_C" >&6
15258
cat >conftest.$ac_ext <<_ACEOF
15261
cat confdefs.h >>conftest.$ac_ext
15262
cat >>conftest.$ac_ext <<_ACEOF
15263
/* end confdefs.h. */
15264
#include <sys/types.h>
15265
#include <netinet6/in6_var.h>
15270
static struct if6_aliasreq ac_i;int ac_j = sizeof (ac_i.ifra_lifetime);
15275
rm -f conftest.$ac_objext
15276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277
(eval $ac_compile) 2>conftest.er1
15279
grep -v '^ *+' conftest.er1 >conftest.err
15281
cat conftest.err >&5
15282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283
(exit $ac_status); } &&
15284
{ ac_try='test -z "$ac_c_werror_flag"
15285
|| test ! -s conftest.err'
15286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287
(eval $ac_try) 2>&5
15289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290
(exit $ac_status); }; } &&
15291
{ ac_try='test -s conftest.$ac_objext'
15292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293
(eval $ac_try) 2>&5
15295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296
(exit $ac_status); }; }; then
15297
echo "$as_me:$LINENO: result: yes" >&5
15298
echo "${ECHO_T}yes" >&6
15300
cat >>confdefs.h <<\_ACEOF
15301
#define HAVE_IFRA_LIFETIME
15305
echo "$as_me: failed program was:" >&5
15306
sed 's/^/| /' conftest.$ac_ext >&5
15308
echo "$as_me:$LINENO: result: no" >&5
15309
echo "${ECHO_T}no" >&6
15311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15313
echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
15314
echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
15315
cat >conftest.$ac_ext <<_ACEOF
15318
cat confdefs.h >>conftest.$ac_ext
15319
cat >>conftest.$ac_ext <<_ACEOF
15320
/* end confdefs.h. */
15321
#include <net/route.h>
15324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15325
$EGREP "rt_addrinfo" >/dev/null 2>&1; then
15326
echo "$as_me:$LINENO: result: yes" >&5
15327
echo "${ECHO_T}yes" >&6
15329
cat >>confdefs.h <<\_ACEOF
15330
#define HAVE_RT_ADDRINFO
15334
echo "$as_me:$LINENO: result: no" >&5
15335
echo "${ECHO_T}no" >&6
15340
echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
15341
echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
15342
cat >conftest.$ac_ext <<_ACEOF
15345
cat confdefs.h >>conftest.$ac_ext
15346
cat >>conftest.$ac_ext <<_ACEOF
15347
/* end confdefs.h. */
15348
#include <netinet/in.h>
15353
struct in_pktinfo ac_x;
15358
rm -f conftest.$ac_objext
15359
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360
(eval $ac_compile) 2>conftest.er1
15362
grep -v '^ *+' conftest.er1 >conftest.err
15364
cat conftest.err >&5
15365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366
(exit $ac_status); } &&
15367
{ ac_try='test -z "$ac_c_werror_flag"
15368
|| test ! -s conftest.err'
15369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370
(eval $ac_try) 2>&5
15372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373
(exit $ac_status); }; } &&
15374
{ ac_try='test -s conftest.$ac_objext'
15375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376
(eval $ac_try) 2>&5
15378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
(exit $ac_status); }; }; then
15380
echo "$as_me:$LINENO: result: yes" >&5
15381
echo "${ECHO_T}yes" >&6
15383
cat >>confdefs.h <<\_ACEOF
15384
#define HAVE_INPKTINFO
15388
echo "$as_me: failed program was:" >&5
15389
sed 's/^/| /' conftest.$ac_ext >&5
15391
echo "$as_me:$LINENO: result: no" >&5
15392
echo "${ECHO_T}no" >&6
15394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15396
echo "$as_me:$LINENO: checking whether struct nd_opt_homeagent_info exist" >&5
15397
echo $ECHO_N "checking whether struct nd_opt_homeagent_info exist... $ECHO_C" >&6
15398
cat >conftest.$ac_ext <<_ACEOF
15401
cat confdefs.h >>conftest.$ac_ext
15402
cat >>conftest.$ac_ext <<_ACEOF
15403
/* end confdefs.h. */
15404
#include <netinet/icmp6.h>
15407
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15408
$EGREP "nd_opt_homeagent_info" >/dev/null 2>&1; then
15409
echo "$as_me:$LINENO: result: yes" >&5
15410
echo "${ECHO_T}yes" >&6
15412
cat >>confdefs.h <<\_ACEOF
15413
#define HAVE_ND_OPT_HOMEAGENT_INFO
15417
echo "$as_me:$LINENO: result: no" >&5
15418
echo "${ECHO_T}no" >&6
15423
echo "$as_me:$LINENO: checking whether struct nd_opt_adv_interval exist" >&5
15424
echo $ECHO_N "checking whether struct nd_opt_adv_interval exist... $ECHO_C" >&6
15425
cat >conftest.$ac_ext <<_ACEOF
15428
cat confdefs.h >>conftest.$ac_ext
15429
cat >>conftest.$ac_ext <<_ACEOF
15430
/* end confdefs.h. */
15431
#include <netinet/icmp6.h>
15434
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15435
$EGREP "nd_opt_adv_interval" >/dev/null 2>&1; then
15436
echo "$as_me:$LINENO: result: yes" >&5
15437
echo "${ECHO_T}yes" >&6
15439
cat >>confdefs.h <<\_ACEOF
15440
#define HAVE_ND_OPT_ADV_INTERVAL
15444
echo "$as_me:$LINENO: result: no" >&5
15445
echo "${ECHO_T}no" >&6
15450
echo "$as_me:$LINENO: checking whether nd_opt_ai_type field exist" >&5
15451
echo $ECHO_N "checking whether nd_opt_ai_type field exist... $ECHO_C" >&6
15452
cat >conftest.$ac_ext <<_ACEOF
15455
cat confdefs.h >>conftest.$ac_ext
15456
cat >>conftest.$ac_ext <<_ACEOF
15457
/* end confdefs.h. */
15458
#include <netinet/icmp6.h>
15461
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15462
$EGREP "nd_opt_ai_type" >/dev/null 2>&1; then
15463
echo "$as_me:$LINENO: result: yes" >&5
15464
echo "${ECHO_T}yes" >&6
15466
cat >>confdefs.h <<\_ACEOF
15467
#define HAVE_ND_OPT_ADV_INTERVAL_AI_FIELDS
15471
echo "$as_me:$LINENO: result: no" >&5
15472
echo "${ECHO_T}no" >&6
15477
echo "$as_me:$LINENO: checking whether getrusage is available" >&5
15478
echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
15479
cat >conftest.$ac_ext <<_ACEOF
15482
cat confdefs.h >>conftest.$ac_ext
15483
cat >>conftest.$ac_ext <<_ACEOF
15484
/* end confdefs.h. */
15485
#include <sys/resource.h>
15490
struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
15495
rm -f conftest.$ac_objext
15496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497
(eval $ac_compile) 2>conftest.er1
15499
grep -v '^ *+' conftest.er1 >conftest.err
15501
cat conftest.err >&5
15502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503
(exit $ac_status); } &&
15504
{ ac_try='test -z "$ac_c_werror_flag"
15505
|| test ! -s conftest.err'
15506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507
(eval $ac_try) 2>&5
15509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510
(exit $ac_status); }; } &&
15511
{ ac_try='test -s conftest.$ac_objext'
15512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513
(eval $ac_try) 2>&5
15515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516
(exit $ac_status); }; }; then
15517
echo "$as_me:$LINENO: result: yes" >&5
15518
echo "${ECHO_T}yes" >&6
15520
cat >>confdefs.h <<\_ACEOF
15521
#define HAVE_RUSAGE
15525
echo "$as_me: failed program was:" >&5
15526
sed 's/^/| /' conftest.$ac_ext >&5
15528
echo "$as_me:$LINENO: result: no" >&5
15529
echo "${ECHO_T}no" >&6
15531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15533
if test "${enable_capabilities}" != "no"; then
15534
echo "$as_me:$LINENO: checking whether prctl PR_SET_KEEPCAPS is available" >&5
15535
echo $ECHO_N "checking whether prctl PR_SET_KEEPCAPS is available... $ECHO_C" >&6
15536
cat >conftest.$ac_ext <<_ACEOF
15539
cat confdefs.h >>conftest.$ac_ext
15540
cat >>conftest.$ac_ext <<_ACEOF
15541
/* end confdefs.h. */
15542
#include <sys/prctl.h>
15546
prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
15551
rm -f conftest.$ac_objext
15552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553
(eval $ac_compile) 2>conftest.er1
15555
grep -v '^ *+' conftest.er1 >conftest.err
15557
cat conftest.err >&5
15558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559
(exit $ac_status); } &&
15560
{ ac_try='test -z "$ac_c_werror_flag"
15561
|| test ! -s conftest.err'
15562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563
(eval $ac_try) 2>&5
15565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566
(exit $ac_status); }; } &&
15567
{ ac_try='test -s conftest.$ac_objext'
15568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569
(eval $ac_try) 2>&5
15571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572
(exit $ac_status); }; }; then
15573
echo "$as_me:$LINENO: result: yes" >&5
15574
echo "${ECHO_T}yes" >&6
15576
cat >>confdefs.h <<\_ACEOF
15577
#define HAVE_PR_SET_KEEPCAPS
15580
quagga_ac_keepcaps="yes"
15582
echo "$as_me: failed program was:" >&5
15583
sed 's/^/| /' conftest.$ac_ext >&5
15585
echo "$as_me:$LINENO: result: no" >&5
15586
echo "${ECHO_T}no" >&6
15589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15590
if test x"${quagga_ac_keepcaps}" = x"yes"; then
15592
for ac_header in sys/capability.h
15594
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15596
echo "$as_me:$LINENO: checking for $ac_header" >&5
15597
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15598
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599
echo $ECHO_N "(cached) $ECHO_C" >&6
15601
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15602
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15604
# Is the header compilable?
15605
echo "$as_me:$LINENO: checking $ac_header usability" >&5
15606
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15607
cat >conftest.$ac_ext <<_ACEOF
15610
cat confdefs.h >>conftest.$ac_ext
15611
cat >>conftest.$ac_ext <<_ACEOF
15612
/* end confdefs.h. */
15613
$ac_includes_default
15614
#include <$ac_header>
15616
rm -f conftest.$ac_objext
15617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618
(eval $ac_compile) 2>conftest.er1
15620
grep -v '^ *+' conftest.er1 >conftest.err
15622
cat conftest.err >&5
15623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624
(exit $ac_status); } &&
15625
{ ac_try='test -z "$ac_c_werror_flag"
15626
|| test ! -s conftest.err'
15627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628
(eval $ac_try) 2>&5
15630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631
(exit $ac_status); }; } &&
15632
{ ac_try='test -s conftest.$ac_objext'
15633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634
(eval $ac_try) 2>&5
15636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637
(exit $ac_status); }; }; then
15638
ac_header_compiler=yes
15640
echo "$as_me: failed program was:" >&5
15641
sed 's/^/| /' conftest.$ac_ext >&5
15643
ac_header_compiler=no
15645
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15647
echo "${ECHO_T}$ac_header_compiler" >&6
15649
# Is the header present?
15650
echo "$as_me:$LINENO: checking $ac_header presence" >&5
15651
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15652
cat >conftest.$ac_ext <<_ACEOF
15655
cat confdefs.h >>conftest.$ac_ext
15656
cat >>conftest.$ac_ext <<_ACEOF
15657
/* end confdefs.h. */
15658
#include <$ac_header>
15660
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15661
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15663
grep -v '^ *+' conftest.er1 >conftest.err
15665
cat conftest.err >&5
15666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667
(exit $ac_status); } >/dev/null; then
15668
if test -s conftest.err; then
15669
ac_cpp_err=$ac_c_preproc_warn_flag
15670
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677
if test -z "$ac_cpp_err"; then
15678
ac_header_preproc=yes
15680
echo "$as_me: failed program was:" >&5
15681
sed 's/^/| /' conftest.$ac_ext >&5
15683
ac_header_preproc=no
15685
rm -f conftest.err conftest.$ac_ext
15686
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15687
echo "${ECHO_T}$ac_header_preproc" >&6
15689
# So? What about this header?
15690
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15692
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15693
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15694
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15695
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15696
ac_header_preproc=yes
15699
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15700
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15701
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15702
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15703
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15704
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15705
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15706
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15707
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15708
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15709
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15710
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15713
## ----------------------------------------- ##
15714
## Report this to http://bugzilla.quagga.net ##
15715
## ----------------------------------------- ##
15718
sed "s/^/$as_me: WARNING: /" >&2
15721
echo "$as_me:$LINENO: checking for $ac_header" >&5
15722
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15723
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724
echo $ECHO_N "(cached) $ECHO_C" >&6
15726
eval "$as_ac_Header=\$ac_header_preproc"
15728
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15729
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15733
cat >>confdefs.h <<_ACEOF
15734
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15742
if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
15743
echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
15744
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
15745
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
15746
echo $ECHO_N "(cached) $ECHO_C" >&6
15748
ac_check_lib_save_LIBS=$LIBS
15750
cat >conftest.$ac_ext <<_ACEOF
15753
cat confdefs.h >>conftest.$ac_ext
15754
cat >>conftest.$ac_ext <<_ACEOF
15755
/* end confdefs.h. */
15757
/* Override any gcc2 internal prototype to avoid an error. */
15761
/* We use char because int might match the return type of a gcc2
15762
builtin and then its argument prototype would still apply. */
15772
rm -f conftest.$ac_objext conftest$ac_exeext
15773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774
(eval $ac_link) 2>conftest.er1
15776
grep -v '^ *+' conftest.er1 >conftest.err
15778
cat conftest.err >&5
15779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780
(exit $ac_status); } &&
15781
{ ac_try='test -z "$ac_c_werror_flag"
15782
|| test ! -s conftest.err'
15783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784
(eval $ac_try) 2>&5
15786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787
(exit $ac_status); }; } &&
15788
{ ac_try='test -s conftest$ac_exeext'
15789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790
(eval $ac_try) 2>&5
15792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793
(exit $ac_status); }; }; then
15794
ac_cv_lib_cap_cap_init=yes
15796
echo "$as_me: failed program was:" >&5
15797
sed 's/^/| /' conftest.$ac_ext >&5
15799
ac_cv_lib_cap_cap_init=no
15801
rm -f conftest.err conftest.$ac_objext \
15802
conftest$ac_exeext conftest.$ac_ext
15803
LIBS=$ac_check_lib_save_LIBS
15805
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
15806
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
15807
if test $ac_cv_lib_cap_cap_init = yes; then
15809
cat >>confdefs.h <<\_ACEOF
15810
#define HAVE_LCAPS 1
15823
for ac_header in ucontext.h
15825
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15826
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15827
echo "$as_me:$LINENO: checking for $ac_header" >&5
15828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830
echo $ECHO_N "(cached) $ECHO_C" >&6
15832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15835
# Is the header compilable?
15836
echo "$as_me:$LINENO: checking $ac_header usability" >&5
15837
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15838
cat >conftest.$ac_ext <<_ACEOF
15841
cat confdefs.h >>conftest.$ac_ext
15842
cat >>conftest.$ac_ext <<_ACEOF
15843
/* end confdefs.h. */
15844
$ac_includes_default
15845
#include <$ac_header>
15847
rm -f conftest.$ac_objext
15848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849
(eval $ac_compile) 2>conftest.er1
15851
grep -v '^ *+' conftest.er1 >conftest.err
15853
cat conftest.err >&5
15854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855
(exit $ac_status); } &&
15856
{ ac_try='test -z "$ac_c_werror_flag"
15857
|| test ! -s conftest.err'
15858
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859
(eval $ac_try) 2>&5
15861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862
(exit $ac_status); }; } &&
15863
{ ac_try='test -s conftest.$ac_objext'
15864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865
(eval $ac_try) 2>&5
15867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868
(exit $ac_status); }; }; then
15869
ac_header_compiler=yes
15871
echo "$as_me: failed program was:" >&5
15872
sed 's/^/| /' conftest.$ac_ext >&5
15874
ac_header_compiler=no
15876
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15877
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15878
echo "${ECHO_T}$ac_header_compiler" >&6
15880
# Is the header present?
15881
echo "$as_me:$LINENO: checking $ac_header presence" >&5
15882
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15883
cat >conftest.$ac_ext <<_ACEOF
15886
cat confdefs.h >>conftest.$ac_ext
15887
cat >>conftest.$ac_ext <<_ACEOF
15888
/* end confdefs.h. */
15889
#include <$ac_header>
15891
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15892
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15894
grep -v '^ *+' conftest.er1 >conftest.err
15896
cat conftest.err >&5
15897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898
(exit $ac_status); } >/dev/null; then
15899
if test -s conftest.err; then
15900
ac_cpp_err=$ac_c_preproc_warn_flag
15901
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908
if test -z "$ac_cpp_err"; then
15909
ac_header_preproc=yes
15911
echo "$as_me: failed program was:" >&5
15912
sed 's/^/| /' conftest.$ac_ext >&5
15914
ac_header_preproc=no
15916
rm -f conftest.err conftest.$ac_ext
15917
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15918
echo "${ECHO_T}$ac_header_preproc" >&6
15920
# So? What about this header?
15921
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15923
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15924
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15925
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15926
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15927
ac_header_preproc=yes
15930
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15931
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15932
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15933
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15934
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15935
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15936
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15937
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15938
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15939
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15940
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15941
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15944
## ----------------------------------------- ##
15945
## Report this to http://bugzilla.quagga.net ##
15946
## ----------------------------------------- ##
15949
sed "s/^/$as_me: WARNING: /" >&2
15952
echo "$as_me:$LINENO: checking for $ac_header" >&5
15953
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15954
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955
echo $ECHO_N "(cached) $ECHO_C" >&6
15957
eval "$as_ac_Header=\$ac_header_preproc"
15959
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15960
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15964
cat >>confdefs.h <<_ACEOF
15965
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973
if test "${glibc}" = "yes"; then
15974
if test "${ac_cv_header_execinfo_h+set}" = set; then
15975
echo "$as_me:$LINENO: checking for execinfo.h" >&5
15976
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
15977
if test "${ac_cv_header_execinfo_h+set}" = set; then
15978
echo $ECHO_N "(cached) $ECHO_C" >&6
15980
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
15981
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
15983
# Is the header compilable?
15984
echo "$as_me:$LINENO: checking execinfo.h usability" >&5
15985
echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6
15986
cat >conftest.$ac_ext <<_ACEOF
15989
cat confdefs.h >>conftest.$ac_ext
15990
cat >>conftest.$ac_ext <<_ACEOF
15991
/* end confdefs.h. */
15992
$ac_includes_default
15993
#include <execinfo.h>
15995
rm -f conftest.$ac_objext
15996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997
(eval $ac_compile) 2>conftest.er1
15999
grep -v '^ *+' conftest.er1 >conftest.err
16001
cat conftest.err >&5
16002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003
(exit $ac_status); } &&
16004
{ ac_try='test -z "$ac_c_werror_flag"
16005
|| test ! -s conftest.err'
16006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007
(eval $ac_try) 2>&5
16009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010
(exit $ac_status); }; } &&
16011
{ ac_try='test -s conftest.$ac_objext'
16012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013
(eval $ac_try) 2>&5
16015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016
(exit $ac_status); }; }; then
16017
ac_header_compiler=yes
16019
echo "$as_me: failed program was:" >&5
16020
sed 's/^/| /' conftest.$ac_ext >&5
16022
ac_header_compiler=no
16024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16025
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16026
echo "${ECHO_T}$ac_header_compiler" >&6
16028
# Is the header present?
16029
echo "$as_me:$LINENO: checking execinfo.h presence" >&5
16030
echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6
16031
cat >conftest.$ac_ext <<_ACEOF
16034
cat confdefs.h >>conftest.$ac_ext
16035
cat >>conftest.$ac_ext <<_ACEOF
16036
/* end confdefs.h. */
16037
#include <execinfo.h>
16039
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16040
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16042
grep -v '^ *+' conftest.er1 >conftest.err
16044
cat conftest.err >&5
16045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046
(exit $ac_status); } >/dev/null; then
16047
if test -s conftest.err; then
16048
ac_cpp_err=$ac_c_preproc_warn_flag
16049
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056
if test -z "$ac_cpp_err"; then
16057
ac_header_preproc=yes
16059
echo "$as_me: failed program was:" >&5
16060
sed 's/^/| /' conftest.$ac_ext >&5
16062
ac_header_preproc=no
16064
rm -f conftest.err conftest.$ac_ext
16065
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16066
echo "${ECHO_T}$ac_header_preproc" >&6
16068
# So? What about this header?
16069
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071
{ echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
16072
echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16073
{ echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
16074
echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
16075
ac_header_preproc=yes
16078
{ echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
16079
echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
16080
{ echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
16081
echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
16082
{ echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
16083
echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
16084
{ echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
16085
echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
16086
{ echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
16087
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
16088
{ echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
16089
echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
16092
## ----------------------------------------- ##
16093
## Report this to http://bugzilla.quagga.net ##
16094
## ----------------------------------------- ##
16097
sed "s/^/$as_me: WARNING: /" >&2
16100
echo "$as_me:$LINENO: checking for execinfo.h" >&5
16101
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
16102
if test "${ac_cv_header_execinfo_h+set}" = set; then
16103
echo $ECHO_N "(cached) $ECHO_C" >&6
16105
ac_cv_header_execinfo_h=$ac_header_preproc
16107
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
16108
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
16114
if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
16115
echo "$as_me:$LINENO: checking for backtrace" >&5
16116
echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
16117
if test "${ac_cv_func_backtrace+set}" = set; then
16118
echo $ECHO_N "(cached) $ECHO_C" >&6
16120
cat >conftest.$ac_ext <<_ACEOF
16123
cat confdefs.h >>conftest.$ac_ext
16124
cat >>conftest.$ac_ext <<_ACEOF
16125
/* end confdefs.h. */
16126
/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
16127
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16128
#define backtrace innocuous_backtrace
16130
/* System header to define __stub macros and hopefully few prototypes,
16131
which can conflict with char backtrace (); below.
16132
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16133
<limits.h> exists even on freestanding compilers. */
16136
# include <limits.h>
16138
# include <assert.h>
16143
/* Override any gcc2 internal prototype to avoid an error. */
16148
/* We use char because int might match the return type of a gcc2
16149
builtin and then its argument prototype would still apply. */
16151
/* The GNU C library defines this for functions which it implements
16152
to always fail with ENOSYS. Some functions are actually named
16153
something starting with __ and the normal name is an alias. */
16154
#if defined (__stub_backtrace) || defined (__stub___backtrace)
16157
char (*f) () = backtrace;
16166
return f != backtrace;
16171
rm -f conftest.$ac_objext conftest$ac_exeext
16172
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173
(eval $ac_link) 2>conftest.er1
16175
grep -v '^ *+' conftest.er1 >conftest.err
16177
cat conftest.err >&5
16178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179
(exit $ac_status); } &&
16180
{ ac_try='test -z "$ac_c_werror_flag"
16181
|| test ! -s conftest.err'
16182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183
(eval $ac_try) 2>&5
16185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186
(exit $ac_status); }; } &&
16187
{ ac_try='test -s conftest$ac_exeext'
16188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189
(eval $ac_try) 2>&5
16191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192
(exit $ac_status); }; }; then
16193
ac_cv_func_backtrace=yes
16195
echo "$as_me: failed program was:" >&5
16196
sed 's/^/| /' conftest.$ac_ext >&5
16198
ac_cv_func_backtrace=no
16200
rm -f conftest.err conftest.$ac_objext \
16201
conftest$ac_exeext conftest.$ac_ext
16203
echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
16204
echo "${ECHO_T}$ac_cv_func_backtrace" >&6
16205
if test $ac_cv_func_backtrace = yes; then
16207
cat >>confdefs.h <<\_ACEOF
16208
#define HAVE_GLIBC_BACKTRACE
16216
CONFDATE=`date '+%Y%m%d'`
16219
if test "${prefix}" = "NONE"; then
16220
quagga_statedir_prefix="";
16222
quagga_statedir_prefix=${prefix}
16224
if test "${localstatedir}" = '${prefix}/var'; then
16225
echo "$as_me:$LINENO: checking state directory" >&5
16226
echo $ECHO_N "checking state directory... $ECHO_C" >&6
16227
if test "${ac_statedir+set}" = set; then
16228
echo $ECHO_N "(cached) $ECHO_C" >&6
16230
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;
16232
test -d $QUAGGA_STATE_DIR && break
16234
quagga_statedir=$QUAGGA_STATE_DIR
16236
echo "$as_me:$LINENO: result: $ac_statedir" >&5
16237
echo "${ECHO_T}$ac_statedir" >&6
16239
quagga_statedir=${localstatedir}
16240
echo "$as_me:$LINENO: checking directory to use for state file" >&5
16241
echo $ECHO_N "checking directory to use for state file... $ECHO_C" >&6
16242
echo "$as_me:$LINENO: result: ${quagga_statedir}" >&5
16243
echo "${ECHO_T}${quagga_statedir}" >&6
16246
if test $quagga_statedir = "/dev/null"; then
16247
{ { echo "$as_me:$LINENO: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&5
16248
echo "$as_me: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&2;}
16249
{ (exit 1); exit 1; }; }
16253
cat >>confdefs.h <<_ACEOF
16254
#define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
16258
cat >>confdefs.h <<_ACEOF
16259
#define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
16263
cat >>confdefs.h <<_ACEOF
16264
#define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
16268
cat >>confdefs.h <<_ACEOF
16269
#define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
16273
cat >>confdefs.h <<_ACEOF
16274
#define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
16278
cat >>confdefs.h <<_ACEOF
16279
#define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
16283
cat >>confdefs.h <<_ACEOF
16284
#define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
16288
cat >>confdefs.h <<_ACEOF
16289
#define PATH_WATCHQUAGGA_PID "$quagga_statedir/watchquagga.pid"
16293
cat >>confdefs.h <<_ACEOF
16294
#define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
16298
cat >>confdefs.h <<_ACEOF
16299
#define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
16303
cat >>confdefs.h <<_ACEOF
16304
#define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
16308
cat >>confdefs.h <<_ACEOF
16309
#define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
16313
cat >>confdefs.h <<_ACEOF
16314
#define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
16318
cat >>confdefs.h <<_ACEOF
16319
#define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
16323
cat >>confdefs.h <<_ACEOF
16324
#define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
16328
cat >>confdefs.h <<_ACEOF
16329
#define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
16333
cat >>confdefs.h <<_ACEOF
16334
#define DAEMON_VTY_DIR "$quagga_statedir"
16339
cat >>confdefs.h <<\_ACEOF
16340
#define QUAGGA_NO_DEPRECATED_INTERFACES 1
16344
echo "$as_me:$LINENO: checking for working htonl" >&5
16345
echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
16346
if test "${ac_cv_htonl_works+set}" = set; then
16347
echo $ECHO_N "(cached) $ECHO_C" >&6
16350
cat >conftest.$ac_ext <<_ACEOF
16353
cat confdefs.h >>conftest.$ac_ext
16354
cat >>conftest.$ac_ext <<_ACEOF
16355
/* end confdefs.h. */
16356
#ifdef HAVE_SYS_TYPES_H
16357
#include <sys/types.h>
16359
#ifdef HAVE_NETDB_H
16362
#ifdef HAVE_NETINET_IN_H
16363
#include <netinet/in.h>
16373
rm -f conftest.$ac_objext conftest$ac_exeext
16374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375
(eval $ac_link) 2>conftest.er1
16377
grep -v '^ *+' conftest.er1 >conftest.err
16379
cat conftest.err >&5
16380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381
(exit $ac_status); } &&
16382
{ ac_try='test -z "$ac_c_werror_flag"
16383
|| test ! -s conftest.err'
16384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385
(eval $ac_try) 2>&5
16387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388
(exit $ac_status); }; } &&
16389
{ ac_try='test -s conftest$ac_exeext'
16390
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391
(eval $ac_try) 2>&5
16393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394
(exit $ac_status); }; }; then
16395
ac_cv_htonl_works=yes
16397
echo "$as_me: failed program was:" >&5
16398
sed 's/^/| /' conftest.$ac_ext >&5
16400
ac_cv_htonl_works=no
16402
rm -f conftest.err conftest.$ac_objext \
16403
conftest$ac_exeext conftest.$ac_ext
16406
echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
16407
echo "${ECHO_T}$ac_cv_htonl_works" >&6
16409
ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchquagga/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile redhat/Makefile pkgsrc/Makefile redhat/quagga.spec lib/version.h doc/defines.texi isisd/topology/Makefile pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh"
16411
ac_config_files="$ac_config_files solaris/Makefile"
16414
ac_config_files="$ac_config_files vtysh/extract.pl"
16416
## Hack, but working solution to avoid rebuilding of quagga.info.
16417
## It's already in CVS until texinfo 4.7 is more common.
16418
ac_config_commands="$ac_config_commands info-time"
16420
cat >confcache <<\_ACEOF
16421
# This file is a shell script that caches the results of configure
16422
# tests run on this system so they can be shared between configure
16423
# scripts and configure runs, see configure's option --config-cache.
16424
# It is not useful on other systems. If it contains results you don't
16425
# want to keep, you may remove or edit it.
16427
# config.status only pays attention to the cache file if you give it
16428
# the --recheck option to rerun configure.
16430
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16431
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16432
# following values.
16436
# The following way of writing the cache mishandles newlines in values,
16437
# but we know of no workaround that is simple, portable, and efficient.
16438
# So, don't put newlines in cache variables' values.
16439
# Ultrix sh set writes to stderr and can't be redirected directly,
16440
# and sets the high bit in the cache file unless we assign to the vars.
16443
case `(ac_space=' '; set | grep ac_space) 2>&1` in
16445
# `set' does not quote correctly, so add quotes (double-quote
16446
# substitution turns \\\\ into \\, and sed turns \\ into \).
16449
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16452
# `set' quotes correctly as required by POSIX, so do not add quotes.
16454
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16461
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16463
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16465
if diff $cache_file confcache >/dev/null 2>&1; then :; else
16466
if test -w $cache_file; then
16467
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16468
cat confcache >$cache_file
16470
echo "not updating unwritable cache $cache_file"
16475
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16476
# Let make expand exec_prefix.
16477
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16479
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16480
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16481
# trailing colons and then remove the whole line if VPATH becomes empty
16482
# (actually we leave an empty line to preserve line numbers).
16483
if test "x$srcdir" = x.; then
16484
ac_vpsub='/^[ ]*VPATH[ ]*=/{
16485
s/:*\$(srcdir):*/:/;
16486
s/:*\${srcdir}:*/:/;
16488
s/^\([^=]*=[ ]*\):*/\1/;
16494
DEFS=-DHAVE_CONFIG_H
16498
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16499
# 1. Remove the extension, and $U if already installed.
16500
ac_i=`echo "$ac_i" |
16501
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16503
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16504
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16506
LIBOBJS=$ac_libobjs
16508
LTLIBOBJS=$ac_ltlibobjs
16511
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16512
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16513
Usually this means the macro was only invoked conditionally." >&5
16514
echo "$as_me: error: conditional \"AMDEP\" was never defined.
16515
Usually this means the macro was only invoked conditionally." >&2;}
16516
{ (exit 1); exit 1; }; }
16518
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16519
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16520
Usually this means the macro was only invoked conditionally." >&5
16521
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16522
Usually this means the macro was only invoked conditionally." >&2;}
16523
{ (exit 1); exit 1; }; }
16526
: ${CONFIG_STATUS=./config.status}
16527
ac_clean_files_save=$ac_clean_files
16528
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16529
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16530
echo "$as_me: creating $CONFIG_STATUS" >&6;}
16531
cat >$CONFIG_STATUS <<_ACEOF
16533
# Generated by $as_me.
16534
# Run this file to recreate the current configuration.
16535
# Compiler output produced by configure, useful for debugging
16536
# configure, is in config.log if it exists.
16539
ac_cs_recheck=false
16541
SHELL=\${CONFIG_SHELL-$SHELL}
16544
cat >>$CONFIG_STATUS <<\_ACEOF
16545
## --------------------- ##
16546
## M4sh Initialization. ##
16547
## --------------------- ##
16549
# Be Bourne compatible
16550
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16553
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16554
# is contrary to our usage. Disable this feature.
16555
alias -g '${1+"$@"}'='"$@"'
16556
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16559
DUALCASE=1; export DUALCASE # for MKS sh
16561
# Support unset when possible.
16562
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16569
# Work around bugs in pre-3.0 UWIN ksh.
16570
$as_unset ENV MAIL MAILPATH
16577
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16578
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16579
LC_TELEPHONE LC_TIME
16581
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16582
eval $as_var=C; export $as_var
16588
# Required to use basename.
16589
if expr a : '\(a\)' >/dev/null 2>&1; then
16595
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16596
as_basename=basename
16602
# Name of the executable.
16603
as_me=`$as_basename "$0" ||
16604
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16605
X"$0" : 'X\(//\)$' \| \
16606
X"$0" : 'X\(/\)$' \| \
16607
. : '\(.\)' 2>/dev/null ||
16609
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16610
/^X\/\(\/\/\)$/{ s//\1/; q; }
16611
/^X\/\(\/\).*/{ s//\1/; q; }
16615
# PATH needs CR, and LINENO needs CR and PATH.
16616
# Avoid depending upon Character Ranges.
16617
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16618
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16619
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16620
as_cr_digits='0123456789'
16621
as_cr_alnum=$as_cr_Letters$as_cr_digits
16623
# The user is always right.
16624
if test "${PATH_SEPARATOR+set}" != set; then
16625
echo "#! /bin/sh" >conf$$.sh
16626
echo "exit 0" >>conf$$.sh
16628
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16637
as_lineno_1=$LINENO
16638
as_lineno_2=$LINENO
16639
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16640
test "x$as_lineno_1" != "x$as_lineno_2" &&
16641
test "x$as_lineno_3" = "x$as_lineno_2" || {
16642
# Find who we are. Look in the path if we contain no path at all
16645
*[\\/]* ) as_myself=$0 ;;
16646
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647
for as_dir in $PATH
16650
test -z "$as_dir" && as_dir=.
16651
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16656
# We did not find ourselves, most probably we were run as `sh COMMAND'
16657
# in which case we are not to be found in the path.
16658
if test "x$as_myself" = x; then
16661
if test ! -f "$as_myself"; then
16662
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16663
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16664
{ (exit 1); exit 1; }; }
16666
case $CONFIG_SHELL in
16668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16669
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16672
test -z "$as_dir" && as_dir=.
16673
for as_base in sh bash ksh sh5; do
16676
if ("$as_dir/$as_base" -c '
16677
as_lineno_1=$LINENO
16678
as_lineno_2=$LINENO
16679
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16680
test "x$as_lineno_1" != "x$as_lineno_2" &&
16681
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16682
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16683
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16684
CONFIG_SHELL=$as_dir/$as_base
16685
export CONFIG_SHELL
16686
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16694
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16695
# uniformly replaced by the line number. The first 'sed' inserts a
16696
# line-number line before each line; the second 'sed' does the real
16697
# work. The second script uses 'N' to pair each line-number line
16698
# with the numbered line, and appends trailing '-' during
16699
# substitution so that $LINENO is not a special case at line end.
16700
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16701
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16702
sed '=' <$as_myself |
16707
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16710
s,^['$as_cr_digits']*\n,,
16711
' >$as_me.lineno &&
16712
chmod +x $as_me.lineno ||
16713
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16714
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16715
{ (exit 1); exit 1; }; }
16717
# Don't try to exec as it changes $[0], causing all sort of problems
16718
# (the dirname of $[0] is not the place where we might find the
16719
# original and so on. Autoconf is especially sensible to this).
16721
# Exit status is that of the last command.
16726
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16727
*c*,-n*) ECHO_N= ECHO_C='
16729
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16730
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16733
if expr a : '\(a\)' >/dev/null 2>&1; then
16739
rm -f conf$$ conf$$.exe conf$$.file
16741
if ln -s conf$$.file conf$$ 2>/dev/null; then
16742
# We could just check for DJGPP; but this test a) works b) is more generic
16743
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16744
if test -f conf$$.exe; then
16745
# Don't use ln at all; we don't have any links
16750
elif ln conf$$.file conf$$ 2>/dev/null; then
16755
rm -f conf$$ conf$$.exe conf$$.file
16757
if mkdir -p . 2>/dev/null; then
16760
test -d ./-p && rmdir ./-p
16764
as_executable_p="test -f"
16766
# Sed expression to map a string onto a valid CPP name.
16767
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16769
# Sed expression to map a string onto a valid variable name.
16770
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16774
# We need space, tab and new line, in precisely that order.
16784
# Open the log real soon, to keep \$[0] and so on meaningful, and to
16785
# report actual input values of CONFIG_FILES etc. instead of their
16786
# values after options handling. Logging --version etc. is OK.
16790
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16791
## Running $as_me. ##
16796
This file was extended by Quagga $as_me 0.99.1, which was
16797
generated by GNU Autoconf 2.59. Invocation command line was
16799
CONFIG_FILES = $CONFIG_FILES
16800
CONFIG_HEADERS = $CONFIG_HEADERS
16801
CONFIG_LINKS = $CONFIG_LINKS
16802
CONFIG_COMMANDS = $CONFIG_COMMANDS
16806
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16810
# Files that config.status was made for.
16811
if test -n "$ac_config_files"; then
16812
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16815
if test -n "$ac_config_headers"; then
16816
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16819
if test -n "$ac_config_links"; then
16820
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16823
if test -n "$ac_config_commands"; then
16824
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16827
cat >>$CONFIG_STATUS <<\_ACEOF
16830
\`$as_me' instantiates files from templates according to the
16831
current configuration.
16833
Usage: $0 [OPTIONS] [FILE]...
16835
-h, --help print this help, then exit
16836
-V, --version print version number, then exit
16837
-q, --quiet do not print progress messages
16838
-d, --debug don't remove temporary files
16839
--recheck update $as_me by reconfiguring in the same conditions
16840
--file=FILE[:TEMPLATE]
16841
instantiate the configuration file FILE
16842
--header=FILE[:TEMPLATE]
16843
instantiate the configuration header FILE
16845
Configuration files:
16848
Configuration headers:
16851
Configuration commands:
16854
Report bugs to <bug-autoconf@gnu.org>."
16857
cat >>$CONFIG_STATUS <<_ACEOF
16859
Quagga config.status 0.99.1
16860
configured by $0, generated by GNU Autoconf 2.59,
16861
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16863
Copyright (C) 2003 Free Software Foundation, Inc.
16864
This config.status script is free software; the Free Software Foundation
16865
gives unlimited permission to copy, distribute and modify it."
16870
cat >>$CONFIG_STATUS <<\_ACEOF
16871
# If no file are specified by the user, then we need to provide default
16872
# value. By we need to know if files were specified by the user.
16878
ac_option=`expr "x$1" : 'x\([^=]*\)='`
16879
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16887
*) # This is not an option, so the user has probably given explicit
16890
ac_need_defaults=false;;
16894
# Handling of the options.
16896
cat >>$CONFIG_STATUS <<\_ACEOF
16897
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16899
--version | --vers* | -V )
16900
echo "$ac_cs_version"; exit 0 ;;
16902
# Conflict between --help and --header
16903
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
16904
Try \`$0 --help' for more information." >&5
16905
echo "$as_me: error: ambiguous option: $1
16906
Try \`$0 --help' for more information." >&2;}
16907
{ (exit 1); exit 1; }; };;
16908
--help | --hel | -h )
16909
echo "$ac_cs_usage"; exit 0 ;;
16910
--debug | --d* | -d )
16912
--file | --fil | --fi | --f )
16914
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16915
ac_need_defaults=false;;
16916
--header | --heade | --head | --hea )
16918
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16919
ac_need_defaults=false;;
16920
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
16921
| -silent | --silent | --silen | --sile | --sil | --si | --s)
16924
# This is an error.
16925
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16926
Try \`$0 --help' for more information." >&5
16927
echo "$as_me: error: unrecognized option: $1
16928
Try \`$0 --help' for more information." >&2;}
16929
{ (exit 1); exit 1; }; } ;;
16931
*) ac_config_targets="$ac_config_targets $1" ;;
16937
ac_configure_extra_args=
16939
if $ac_cs_silent; then
16941
ac_configure_extra_args="$ac_configure_extra_args --silent"
16945
cat >>$CONFIG_STATUS <<_ACEOF
16946
if \$ac_cs_recheck; then
16947
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16948
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16953
cat >>$CONFIG_STATUS <<_ACEOF
16955
# INIT-COMMANDS section.
16958
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16961
# The HP-UX ksh and POSIX shell print the target directory to stdout
16962
# if CDPATH is set.
16963
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16965
sed_quote_subst='$sed_quote_subst'
16966
double_quote_subst='$double_quote_subst'
16967
delay_variable_subst='$delay_variable_subst'
16968
macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16969
macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16970
enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16971
enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16972
pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16973
enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16974
host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16975
host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16976
SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16977
Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16978
GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16979
EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16980
LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16981
reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16982
reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16983
NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16984
LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16985
deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16986
file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16987
AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16988
AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16989
STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16990
RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16991
old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16992
old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16993
old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16994
lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16995
lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16996
lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16997
lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16998
ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16999
exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17000
objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17001
CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17002
compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17003
GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17004
SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17005
echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17006
MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17007
lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17008
lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17009
lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17010
lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17011
lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17012
need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17013
libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17014
shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17015
extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17016
variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17017
archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17018
enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17019
export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17020
whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17021
old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17022
old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17023
archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17024
archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17025
module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17026
module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17027
allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17028
no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17029
hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17030
hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17031
hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17032
hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17033
hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17034
hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17035
hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17036
inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17037
link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17038
fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17039
always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17040
export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17041
exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17042
include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17043
need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17044
need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17045
version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17046
runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17047
shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17048
shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17049
libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17050
library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17051
soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17052
postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17053
postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17054
finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17055
finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17056
hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17057
sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17058
sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17059
hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17060
old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17061
striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17062
enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17063
enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17064
enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17067
compiler='$compiler_DEFAULT'
17069
# Quote evaled strings.
17070
for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
17071
eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17074
# Double-quote double-evaled strings.
17075
for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
17076
eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17079
# Fix-up fallback echo if it was mangled by the above quoting rules.
17081
*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17085
ac_aux_dir='$ac_aux_dir'
17087
# See if we are running on zsh, and set the options which allow our
17088
# commands through without removal of \ escapes INIT.
17089
if test -n "\${ZSH_VERSION+set}" ; then
17090
setopt NO_GLOB_SUBST
17096
TIMESTAMP='$TIMESTAMP'
17107
cat >>$CONFIG_STATUS <<\_ACEOF
17108
for ac_config_target in $ac_config_targets
17110
case "$ac_config_target" in
17111
# Handling of arguments.
17112
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17113
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17114
"zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
17115
"ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
17116
"ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
17117
"bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
17118
"ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
17119
"watchquagga/Makefile" ) CONFIG_FILES="$CONFIG_FILES watchquagga/Makefile" ;;
17120
"ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
17121
"isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
17122
"vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
17123
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17124
"ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
17125
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17126
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17127
"redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
17128
"pkgsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/Makefile" ;;
17129
"redhat/quagga.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
17130
"lib/version.h" ) CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
17131
"doc/defines.texi" ) CONFIG_FILES="$CONFIG_FILES doc/defines.texi" ;;
17132
"isisd/topology/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/topology/Makefile" ;;
17133
"pkgsrc/bgpd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/bgpd.sh" ;;
17134
"pkgsrc/ospf6d.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ospf6d.sh" ;;
17135
"pkgsrc/ospfd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ospfd.sh" ;;
17136
"pkgsrc/ripd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ripd.sh" ;;
17137
"pkgsrc/ripngd.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/ripngd.sh" ;;
17138
"pkgsrc/zebra.sh" ) CONFIG_FILES="$CONFIG_FILES pkgsrc/zebra.sh" ;;
17139
"solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
17140
"vtysh/extract.pl" ) CONFIG_FILES="$CONFIG_FILES vtysh/extract.pl" ;;
17141
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17142
"libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17143
"info-time" ) CONFIG_COMMANDS="$CONFIG_COMMANDS info-time" ;;
17144
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17145
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17146
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17147
{ (exit 1); exit 1; }; };;
17151
# If the user did not use the arguments to specify the items to instantiate,
17152
# then the envvar interface is used. Set only those that are not.
17153
# We use the long form for the default assignment because of an extremely
17154
# bizarre bug on SunOS 4.1.3.
17155
if $ac_need_defaults; then
17156
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17157
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17158
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17161
# Have a temporary directory for convenience. Make it in the build tree
17162
# simply because there is no reason to put it here, and in addition,
17163
# creating and moving files from /tmp can sometimes cause problems.
17164
# Create a temporary directory, and hook for its removal unless debugging.
17167
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17168
trap '{ (exit 1); exit 1; }' 1 2 13 15
17171
# Create a (secure) tmp directory for tmp files.
17174
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17175
test -n "$tmp" && test -d "$tmp"
17178
tmp=./confstat$$-$RANDOM
17179
(umask 077 && mkdir $tmp)
17182
echo "$me: cannot create a temporary directory in ." >&2
17183
{ (exit 1); exit 1; }
17188
cat >>$CONFIG_STATUS <<_ACEOF
17191
# CONFIG_FILES section.
17194
# No need to generate the scripts if there are no CONFIG_FILES.
17195
# This happens for instance when ./config.status config.h
17196
if test -n "\$CONFIG_FILES"; then
17197
# Protect against being on the right side of a sed subst in config.status.
17198
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17199
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17200
s,@SHELL@,$SHELL,;t t
17201
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17202
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17203
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17204
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17205
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17206
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17207
s,@exec_prefix@,$exec_prefix,;t t
17208
s,@prefix@,$prefix,;t t
17209
s,@program_transform_name@,$program_transform_name,;t t
17210
s,@bindir@,$bindir,;t t
17211
s,@sbindir@,$sbindir,;t t
17212
s,@libexecdir@,$libexecdir,;t t
17213
s,@datadir@,$datadir,;t t
17214
s,@sysconfdir@,$sysconfdir,;t t
17215
s,@sharedstatedir@,$sharedstatedir,;t t
17216
s,@localstatedir@,$localstatedir,;t t
17217
s,@libdir@,$libdir,;t t
17218
s,@includedir@,$includedir,;t t
17219
s,@oldincludedir@,$oldincludedir,;t t
17220
s,@infodir@,$infodir,;t t
17221
s,@mandir@,$mandir,;t t
17222
s,@build_alias@,$build_alias,;t t
17223
s,@host_alias@,$host_alias,;t t
17224
s,@target_alias@,$target_alias,;t t
17225
s,@DEFS@,$DEFS,;t t
17226
s,@ECHO_C@,$ECHO_C,;t t
17227
s,@ECHO_N@,$ECHO_N,;t t
17228
s,@ECHO_T@,$ECHO_T,;t t
17229
s,@LIBS@,$LIBS,;t t
17230
s,@build@,$build,;t t
17231
s,@build_cpu@,$build_cpu,;t t
17232
s,@build_vendor@,$build_vendor,;t t
17233
s,@build_os@,$build_os,;t t
17234
s,@host@,$host,;t t
17235
s,@host_cpu@,$host_cpu,;t t
17236
s,@host_vendor@,$host_vendor,;t t
17237
s,@host_os@,$host_os,;t t
17238
s,@target@,$target,;t t
17239
s,@target_cpu@,$target_cpu,;t t
17240
s,@target_vendor@,$target_vendor,;t t
17241
s,@target_os@,$target_os,;t t
17242
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17243
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17244
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17245
s,@CYGPATH_W@,$CYGPATH_W,;t t
17246
s,@PACKAGE@,$PACKAGE,;t t
17247
s,@VERSION@,$VERSION,;t t
17248
s,@ACLOCAL@,$ACLOCAL,;t t
17249
s,@AUTOCONF@,$AUTOCONF,;t t
17250
s,@AUTOMAKE@,$AUTOMAKE,;t t
17251
s,@AUTOHEADER@,$AUTOHEADER,;t t
17252
s,@MAKEINFO@,$MAKEINFO,;t t
17253
s,@install_sh@,$install_sh,;t t
17254
s,@STRIP@,$STRIP,;t t
17255
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17256
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17257
s,@mkdir_p@,$mkdir_p,;t t
17259
s,@SET_MAKE@,$SET_MAKE,;t t
17260
s,@am__leading_dot@,$am__leading_dot,;t t
17261
s,@AMTAR@,$AMTAR,;t t
17262
s,@am__tar@,$am__tar,;t t
17263
s,@am__untar@,$am__untar,;t t
17264
s,@GAWK@,$GAWK,;t t
17265
s,@exampledir@,$exampledir,;t t
17266
s,@pkgsrcdir@,$pkgsrcdir,;t t
17267
s,@pkgsrcrcdir@,$pkgsrcrcdir,;t t
17269
s,@CFLAGS@,$CFLAGS,;t t
17270
s,@LDFLAGS@,$LDFLAGS,;t t
17271
s,@CPPFLAGS@,$CPPFLAGS,;t t
17272
s,@ac_ct_CC@,$ac_ct_CC,;t t
17273
s,@EXEEXT@,$EXEEXT,;t t
17274
s,@OBJEXT@,$OBJEXT,;t t
17275
s,@DEPDIR@,$DEPDIR,;t t
17276
s,@am__include@,$am__include,;t t
17277
s,@am__quote@,$am__quote,;t t
17278
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17279
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17280
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17281
s,@CCDEPMODE@,$CCDEPMODE,;t t
17282
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17283
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17285
s,@EGREP@,$EGREP,;t t
17287
s,@ac_ct_AR@,$ac_ct_AR,;t t
17288
s,@RANLIB@,$RANLIB,;t t
17289
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17290
s,@LIBTOOL@,$LIBTOOL,;t t
17294
s,@LN_S@,$LN_S,;t t
17295
s,@ECHO@,$ECHO,;t t
17296
s,@ISIS_TOPOLOGY_INCLUDES@,$ISIS_TOPOLOGY_INCLUDES,;t t
17297
s,@ISIS_TOPOLOGY_DIR@,$ISIS_TOPOLOGY_DIR,;t t
17298
s,@ISIS_TOPOLOGY_LIB@,$ISIS_TOPOLOGY_LIB,;t t
17299
s,@enable_user@,$enable_user,;t t
17300
s,@enable_group@,$enable_group,;t t
17301
s,@enable_vty_group@,$enable_vty_group,;t t
17302
s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
17303
s,@PERL@,$PERL,;t t
17304
s,@LIBPAM@,$LIBPAM,;t t
17305
s,@RT_METHOD@,$RT_METHOD,;t t
17306
s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
17307
s,@OTHER_METHOD@,$OTHER_METHOD,;t t
17308
s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
17309
s,@IF_METHOD@,$IF_METHOD,;t t
17310
s,@IOCTL_METHOD@,$IOCTL_METHOD,;t t
17311
s,@IF_PROC@,$IF_PROC,;t t
17312
s,@IPFORWARD@,$IPFORWARD,;t t
17313
s,@LIB_IPV6@,$LIB_IPV6,;t t
17314
s,@ZEBRA@,$ZEBRA,;t t
17315
s,@BGPD@,$BGPD,;t t
17316
s,@RIPD@,$RIPD,;t t
17317
s,@RIPNGD@,$RIPNGD,;t t
17318
s,@OSPFD@,$OSPFD,;t t
17319
s,@OSPF6D@,$OSPF6D,;t t
17320
s,@WATCHQUAGGA@,$WATCHQUAGGA,;t t
17321
s,@ISISD@,$ISISD,;t t
17322
s,@VTYSH@,$VTYSH,;t t
17323
s,@INCLUDES@,$INCLUDES,;t t
17324
s,@CURSES@,$CURSES,;t t
17325
s,@OSPFCLIENT@,$OSPFCLIENT,;t t
17326
s,@OSPFAPI@,$OSPFAPI,;t t
17327
s,@LIB_REGEX@,$LIB_REGEX,;t t
17328
s,@SNMP_INCLUDES@,$SNMP_INCLUDES,;t t
17329
s,@LIBCAP@,$LIBCAP,;t t
17330
s,@CONFDATE@,$CONFDATE,;t t
17331
s,@quagga_statedir@,$quagga_statedir,;t t
17332
s,@LIBOBJS@,$LIBOBJS,;t t
17333
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17338
cat >>$CONFIG_STATUS <<\_ACEOF
17339
# Split the substitutions into bite-sized pieces for seds with
17340
# small command number limits, like on Digital OSF/1 and HP-UX.
17341
ac_max_sed_lines=48
17342
ac_sed_frag=1 # Number of current file.
17343
ac_beg=1 # First line for current file.
17344
ac_end=$ac_max_sed_lines # Line after last line for current file.
17347
while $ac_more_lines; do
17348
if test $ac_beg -gt 1; then
17349
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17351
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17353
if test ! -s $tmp/subs.frag; then
17354
ac_more_lines=false
17356
# The purpose of the label and of the branching condition is to
17357
# speed up the sed processing (if there are no `@' at all, there
17358
# is no need to browse any of the substitutions).
17359
# These are the two extra sed commands mentioned above.
17361
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17362
if test -z "$ac_sed_cmds"; then
17363
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17365
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17367
ac_sed_frag=`expr $ac_sed_frag + 1`
17369
ac_end=`expr $ac_end + $ac_max_sed_lines`
17372
if test -z "$ac_sed_cmds"; then
17375
fi # test -n "$CONFIG_FILES"
17378
cat >>$CONFIG_STATUS <<\_ACEOF
17379
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17380
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17382
- | *:- | *:-:* ) # input from stdin
17384
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17385
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17386
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17387
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17388
* ) ac_file_in=$ac_file.in ;;
17391
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17392
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17393
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394
X"$ac_file" : 'X\(//\)[^/]' \| \
17395
X"$ac_file" : 'X\(//\)$' \| \
17396
X"$ac_file" : 'X\(/\)' \| \
17397
. : '\(.\)' 2>/dev/null ||
17399
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17400
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17401
/^X\(\/\/\)$/{ s//\1/; q; }
17402
/^X\(\/\).*/{ s//\1/; q; }
17404
{ if $as_mkdir_p; then
17409
while test ! -d "$as_dir"; do
17410
as_dirs="$as_dir $as_dirs"
17411
as_dir=`(dirname "$as_dir") 2>/dev/null ||
17412
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17413
X"$as_dir" : 'X\(//\)[^/]' \| \
17414
X"$as_dir" : 'X\(//\)$' \| \
17415
X"$as_dir" : 'X\(/\)' \| \
17416
. : '\(.\)' 2>/dev/null ||
17418
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17419
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17420
/^X\(\/\/\)$/{ s//\1/; q; }
17421
/^X\(\/\).*/{ s//\1/; q; }
17424
test ! -n "$as_dirs" || mkdir $as_dirs
17425
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17426
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17427
{ (exit 1); exit 1; }; }; }
17431
if test "$ac_dir" != .; then
17432
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17433
# A "../" for each directory in $ac_dir_suffix.
17434
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17436
ac_dir_suffix= ac_top_builddir=
17440
.) # No --srcdir option. We are building in place.
17442
if test -z "$ac_top_builddir"; then
17445
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17447
[\\/]* | ?:[\\/]* ) # Absolute path.
17448
ac_srcdir=$srcdir$ac_dir_suffix;
17449
ac_top_srcdir=$srcdir ;;
17450
*) # Relative path.
17451
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17452
ac_top_srcdir=$ac_top_builddir$srcdir ;;
17455
# Do not use `cd foo && pwd` to compute absolute paths, because
17456
# the directories may not exist.
17458
.) ac_abs_builddir="$ac_dir";;
17461
.) ac_abs_builddir=`pwd`;;
17462
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17463
*) ac_abs_builddir=`pwd`/"$ac_dir";;
17466
case $ac_abs_builddir in
17467
.) ac_abs_top_builddir=${ac_top_builddir}.;;
17469
case ${ac_top_builddir}. in
17470
.) ac_abs_top_builddir=$ac_abs_builddir;;
17471
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17472
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17475
case $ac_abs_builddir in
17476
.) ac_abs_srcdir=$ac_srcdir;;
17479
.) ac_abs_srcdir=$ac_abs_builddir;;
17480
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17481
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17484
case $ac_abs_builddir in
17485
.) ac_abs_top_srcdir=$ac_top_srcdir;;
17487
case $ac_top_srcdir in
17488
.) ac_abs_top_srcdir=$ac_abs_builddir;;
17489
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17490
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17496
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17497
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17500
if test x"$ac_file" != x-; then
17501
{ echo "$as_me:$LINENO: creating $ac_file" >&5
17502
echo "$as_me: creating $ac_file" >&6;}
17505
# Let's still pretend it is `configure' which instantiates (i.e., don't
17506
# use $as_me), people would be surprised to read:
17507
# /* config.h. Generated by config.status. */
17508
if test x"$ac_file" = x-; then
17511
configure_input="$ac_file. "
17513
configure_input=$configure_input"Generated from `echo $ac_file_in |
17514
sed 's,.*/,,'` by configure."
17516
# First look for the input files in the build tree, otherwise in the
17518
ac_file_inputs=`IFS=:
17519
for f in $ac_file_in; do
17521
-) echo $tmp/stdin ;;
17523
# Absolute (can't be DOS-style, as IFS=:)
17524
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17525
echo "$as_me: error: cannot find input file: $f" >&2;}
17526
{ (exit 1); exit 1; }; }
17529
if test -f "$f"; then
17532
elif test -f "$srcdir/$f"; then
17537
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538
echo "$as_me: error: cannot find input file: $f" >&2;}
17539
{ (exit 1); exit 1; }; }
17542
done` || { (exit 1); exit 1; }
17544
cat >>$CONFIG_STATUS <<_ACEOF
17548
cat >>$CONFIG_STATUS <<\_ACEOF
17550
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17551
s,@configure_input@,$configure_input,;t t
17552
s,@srcdir@,$ac_srcdir,;t t
17553
s,@abs_srcdir@,$ac_abs_srcdir,;t t
17554
s,@top_srcdir@,$ac_top_srcdir,;t t
17555
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17556
s,@builddir@,$ac_builddir,;t t
17557
s,@abs_builddir@,$ac_abs_builddir,;t t
17558
s,@top_builddir@,$ac_top_builddir,;t t
17559
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17560
s,@INSTALL@,$ac_INSTALL,;t t
17561
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17563
if test x"$ac_file" != x-; then
17564
mv $tmp/out $ac_file
17570
# Run the commands associated with the file.
17572
vtysh/extract.pl ) chmod +x vtysh/extract.pl ;;
17576
cat >>$CONFIG_STATUS <<\_ACEOF
17579
# CONFIG_HEADER section.
17582
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17583
# NAME is the cpp macro being defined and VALUE is the value it is being given.
17585
# ac_d sets the value in "#define NAME VALUE" lines.
17586
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17587
ac_dB='[ ].*$,\1#\2'
17590
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17591
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17592
ac_uB='$,\1#\2define\3'
17596
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17597
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17599
- | *:- | *:-:* ) # input from stdin
17601
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17602
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17603
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17604
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17605
* ) ac_file_in=$ac_file.in ;;
17608
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17609
echo "$as_me: creating $ac_file" >&6;}
17611
# First look for the input files in the build tree, otherwise in the
17613
ac_file_inputs=`IFS=:
17614
for f in $ac_file_in; do
17616
-) echo $tmp/stdin ;;
17618
# Absolute (can't be DOS-style, as IFS=:)
17619
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17620
echo "$as_me: error: cannot find input file: $f" >&2;}
17621
{ (exit 1); exit 1; }; }
17622
# Do quote $f, to prevent DOS paths from being IFS'd.
17625
if test -f "$f"; then
17628
elif test -f "$srcdir/$f"; then
17633
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17634
echo "$as_me: error: cannot find input file: $f" >&2;}
17635
{ (exit 1); exit 1; }; }
17638
done` || { (exit 1); exit 1; }
17639
# Remove the trailing spaces.
17640
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17644
# Transform confdefs.h into two sed scripts, `conftest.defines' and
17645
# `conftest.undefs', that substitutes the proper values into
17646
# config.h.in to produce config.h. The first handles `#define'
17647
# templates, and the second `#undef' templates.
17648
# And first: Protect against being on the right side of a sed subst in
17649
# config.status. Protect against being in an unquoted here document
17650
# in config.status.
17651
rm -f conftest.defines conftest.undefs
17652
# Using a here document instead of a string reduces the quoting nightmare.
17653
# Putting comments in sed scripts is not portable.
17655
# `end' is used to avoid that the second main sed command (meant for
17656
# 0-ary CPP macros) applies to n-ary macro definitions.
17657
# See the Autoconf documentation for `clear'.
17658
cat >confdef2sed.sed <<\_ACEOF
17663
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17665
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17668
# If some macros were called several times there might be several times
17669
# the same #defines, which is useless. Nevertheless, we may not want to
17670
# sort them, since we want the *last* AC-DEFINE to be honored.
17671
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17672
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17673
rm -f confdef2sed.sed
17675
# This sed command replaces #undef with comments. This is necessary, for
17676
# example, in the case of _POSIX_SOURCE, which is predefined and required
17677
# on some systems where configure will not decide to define it.
17678
cat >>conftest.undefs <<\_ACEOF
17679
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17682
# Break up conftest.defines because some shells have a limit on the size
17683
# of here documents, and old seds have small limits too (100 cmds).
17684
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17685
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17686
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17687
echo ' :' >>$CONFIG_STATUS
17688
rm -f conftest.tail
17689
while grep . conftest.defines >/dev/null
17691
# Write a limited-size here document to $tmp/defines.sed.
17692
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17693
# Speed up: don't consider the non `#define' lines.
17694
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17695
# Work around the forget-to-reset-the-flag bug.
17696
echo 't clr' >>$CONFIG_STATUS
17697
echo ': clr' >>$CONFIG_STATUS
17698
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17700
sed -f $tmp/defines.sed $tmp/in >$tmp/out
17702
mv $tmp/out $tmp/in
17704
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17705
rm -f conftest.defines
17706
mv conftest.tail conftest.defines
17708
rm -f conftest.defines
17709
echo ' fi # grep' >>$CONFIG_STATUS
17710
echo >>$CONFIG_STATUS
17712
# Break up conftest.undefs because some shells have a limit on the size
17713
# of here documents, and old seds have small limits too (100 cmds).
17714
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17715
rm -f conftest.tail
17716
while grep . conftest.undefs >/dev/null
17718
# Write a limited-size here document to $tmp/undefs.sed.
17719
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17720
# Speed up: don't consider the non `#undef'
17721
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17722
# Work around the forget-to-reset-the-flag bug.
17723
echo 't clr' >>$CONFIG_STATUS
17724
echo ': clr' >>$CONFIG_STATUS
17725
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17727
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17729
mv $tmp/out $tmp/in
17731
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17732
rm -f conftest.undefs
17733
mv conftest.tail conftest.undefs
17735
rm -f conftest.undefs
17737
cat >>$CONFIG_STATUS <<\_ACEOF
17738
# Let's still pretend it is `configure' which instantiates (i.e., don't
17739
# use $as_me), people would be surprised to read:
17740
# /* config.h. Generated by config.status. */
17741
if test x"$ac_file" = x-; then
17742
echo "/* Generated by configure. */" >$tmp/config.h
17744
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17746
cat $tmp/in >>$tmp/config.h
17748
if test x"$ac_file" != x-; then
17749
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17750
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17751
echo "$as_me: $ac_file is unchanged" >&6;}
17753
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17754
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755
X"$ac_file" : 'X\(//\)[^/]' \| \
17756
X"$ac_file" : 'X\(//\)$' \| \
17757
X"$ac_file" : 'X\(/\)' \| \
17758
. : '\(.\)' 2>/dev/null ||
17760
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17761
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17762
/^X\(\/\/\)$/{ s//\1/; q; }
17763
/^X\(\/\).*/{ s//\1/; q; }
17765
{ if $as_mkdir_p; then
17770
while test ! -d "$as_dir"; do
17771
as_dirs="$as_dir $as_dirs"
17772
as_dir=`(dirname "$as_dir") 2>/dev/null ||
17773
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17774
X"$as_dir" : 'X\(//\)[^/]' \| \
17775
X"$as_dir" : 'X\(//\)$' \| \
17776
X"$as_dir" : 'X\(/\)' \| \
17777
. : '\(.\)' 2>/dev/null ||
17779
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17780
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17781
/^X\(\/\/\)$/{ s//\1/; q; }
17782
/^X\(\/\).*/{ s//\1/; q; }
17785
test ! -n "$as_dirs" || mkdir $as_dirs
17786
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17787
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17788
{ (exit 1); exit 1; }; }; }
17791
mv $tmp/config.h $ac_file
17795
rm -f $tmp/config.h
17797
# Compute $ac_file's index in $config_headers.
17799
for _am_header in $config_headers :; do
17800
case $_am_header in
17801
$ac_file | $ac_file:* )
17804
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
17807
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17808
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809
X$ac_file : 'X\(//\)[^/]' \| \
17810
X$ac_file : 'X\(//\)$' \| \
17811
X$ac_file : 'X\(/\)' \| \
17812
. : '\(.\)' 2>/dev/null ||
17814
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17815
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17816
/^X\(\/\/\)$/{ s//\1/; q; }
17817
/^X\(\/\).*/{ s//\1/; q; }
17818
s/.*/./; q'`/stamp-h$_am_stamp_count
17821
cat >>$CONFIG_STATUS <<\_ACEOF
17824
# CONFIG_COMMANDS section.
17826
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17827
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17828
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17829
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17830
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17831
X"$ac_dest" : 'X\(//\)[^/]' \| \
17832
X"$ac_dest" : 'X\(//\)$' \| \
17833
X"$ac_dest" : 'X\(/\)' \| \
17834
. : '\(.\)' 2>/dev/null ||
17836
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17837
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17838
/^X\(\/\/\)$/{ s//\1/; q; }
17839
/^X\(\/\).*/{ s//\1/; q; }
17841
{ if $as_mkdir_p; then
17846
while test ! -d "$as_dir"; do
17847
as_dirs="$as_dir $as_dirs"
17848
as_dir=`(dirname "$as_dir") 2>/dev/null ||
17849
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17850
X"$as_dir" : 'X\(//\)[^/]' \| \
17851
X"$as_dir" : 'X\(//\)$' \| \
17852
X"$as_dir" : 'X\(/\)' \| \
17853
. : '\(.\)' 2>/dev/null ||
17855
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17856
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17857
/^X\(\/\/\)$/{ s//\1/; q; }
17858
/^X\(\/\).*/{ s//\1/; q; }
17861
test ! -n "$as_dirs" || mkdir $as_dirs
17862
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17863
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17864
{ (exit 1); exit 1; }; }; }
17868
if test "$ac_dir" != .; then
17869
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17870
# A "../" for each directory in $ac_dir_suffix.
17871
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17873
ac_dir_suffix= ac_top_builddir=
17877
.) # No --srcdir option. We are building in place.
17879
if test -z "$ac_top_builddir"; then
17882
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17884
[\\/]* | ?:[\\/]* ) # Absolute path.
17885
ac_srcdir=$srcdir$ac_dir_suffix;
17886
ac_top_srcdir=$srcdir ;;
17887
*) # Relative path.
17888
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17889
ac_top_srcdir=$ac_top_builddir$srcdir ;;
17892
# Do not use `cd foo && pwd` to compute absolute paths, because
17893
# the directories may not exist.
17895
.) ac_abs_builddir="$ac_dir";;
17898
.) ac_abs_builddir=`pwd`;;
17899
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17900
*) ac_abs_builddir=`pwd`/"$ac_dir";;
17903
case $ac_abs_builddir in
17904
.) ac_abs_top_builddir=${ac_top_builddir}.;;
17906
case ${ac_top_builddir}. in
17907
.) ac_abs_top_builddir=$ac_abs_builddir;;
17908
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17909
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17912
case $ac_abs_builddir in
17913
.) ac_abs_srcdir=$ac_srcdir;;
17916
.) ac_abs_srcdir=$ac_abs_builddir;;
17917
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17918
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17921
case $ac_abs_builddir in
17922
.) ac_abs_top_srcdir=$ac_top_srcdir;;
17924
case $ac_top_srcdir in
17925
.) ac_abs_top_srcdir=$ac_abs_builddir;;
17926
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17927
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17932
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17933
echo "$as_me: executing $ac_dest commands" >&6;}
17935
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17936
# Strip MF so we end up with the name of the file.
17937
mf=`echo "$mf" | sed -e 's/:.*$//'`
17938
# Check whether this is an Automake generated Makefile or not.
17939
# We used to match only the files named `Makefile.in', but
17940
# some people rename them; so instead we look at the file content.
17941
# Grep'ing the first line is not enough: some people post-process
17942
# each Makefile.in and add a new line on top of each file to say so.
17943
# So let's grep whole file.
17944
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17945
dirpart=`(dirname "$mf") 2>/dev/null ||
17946
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17947
X"$mf" : 'X\(//\)[^/]' \| \
17948
X"$mf" : 'X\(//\)$' \| \
17949
X"$mf" : 'X\(/\)' \| \
17950
. : '\(.\)' 2>/dev/null ||
17952
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17953
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17954
/^X\(\/\/\)$/{ s//\1/; q; }
17955
/^X\(\/\).*/{ s//\1/; q; }
17960
# Extract the definition of DEPDIR, am__include, and am__quote
17961
# from the Makefile without running `make'.
17962
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17963
test -z "$DEPDIR" && continue
17964
am__include=`sed -n 's/^am__include = //p' < "$mf"`
17965
test -z "am__include" && continue
17966
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17967
# When using ansi2knr, U may be empty or an underscore; expand it
17968
U=`sed -n 's/^U = //p' < "$mf"`
17969
# Find all dependency output files, they are included files with
17970
# $(DEPDIR) in their names. We invoke sed twice because it is the
17971
# simplest approach to changing $(DEPDIR) to its actual value in the
17973
for file in `sed -n "
17974
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17975
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17976
# Make sure the directory exists.
17977
test -f "$dirpart/$file" && continue
17978
fdir=`(dirname "$file") 2>/dev/null ||
17979
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17980
X"$file" : 'X\(//\)[^/]' \| \
17981
X"$file" : 'X\(//\)$' \| \
17982
X"$file" : 'X\(/\)' \| \
17983
. : '\(.\)' 2>/dev/null ||
17985
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17986
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17987
/^X\(\/\/\)$/{ s//\1/; q; }
17988
/^X\(\/\).*/{ s//\1/; q; }
17990
{ if $as_mkdir_p; then
17991
mkdir -p $dirpart/$fdir
17993
as_dir=$dirpart/$fdir
17995
while test ! -d "$as_dir"; do
17996
as_dirs="$as_dir $as_dirs"
17997
as_dir=`(dirname "$as_dir") 2>/dev/null ||
17998
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17999
X"$as_dir" : 'X\(//\)[^/]' \| \
18000
X"$as_dir" : 'X\(//\)$' \| \
18001
X"$as_dir" : 'X\(/\)' \| \
18002
. : '\(.\)' 2>/dev/null ||
18004
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18005
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
18006
/^X\(\/\/\)$/{ s//\1/; q; }
18007
/^X\(\/\).*/{ s//\1/; q; }
18010
test ! -n "$as_dirs" || mkdir $as_dirs
18011
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18012
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18013
{ (exit 1); exit 1; }; }; }
18015
# echo "creating $dirpart/$file"
18016
echo '# dummy' > "$dirpart/$file"
18022
# See if we are running on zsh, and set the options which allow our
18023
# commands through without removal of \ escapes.
18024
if test -n "${ZSH_VERSION+set}" ; then
18025
setopt NO_GLOB_SUBST
18028
cfgfile="${ofile}T"
18029
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18032
cat <<_LT_EOF >> "$cfgfile"
18035
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18036
# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
18037
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18038
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18040
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
18041
# Free Software Foundation, Inc.
18043
# This file is part of GNU Libtool:
18044
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18046
# This program is free software; you can redistribute it and/or modify
18047
# it under the terms of the GNU General Public License as published by
18048
# the Free Software Foundation; either version 2 of the License, or
18049
# (at your option) any later version.
18051
# This program is distributed in the hope that it will be useful, but
18052
# WITHOUT ANY WARRANTY; without even the implied warranty of
18053
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18054
# General Public License for more details.
18056
# You should have received a copy of the GNU General Public License
18057
# along with this program; if not, write to the Free Software
18058
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18060
# As a special exception to the GNU General Public License, if you
18061
# distribute this file as part of a program that contains a
18062
# configuration script generated by Autoconf, you may include it under
18063
# the same distribution terms that you use for the rest of that program.
18067
# The names of the tagged configurations supported by this script.
18070
# ### BEGIN LIBTOOL CONFIG
18072
# Which release of libtool.m4 was used?
18073
macro_version=$macro_version
18074
macro_revision=$macro_revision
18076
# Whether or not to build shared libraries.
18077
build_libtool_libs=$enable_shared
18079
# Whether or not to build static libraries.
18080
build_old_libs=$enable_static
18082
# What type of objects to build.
18085
# Whether or not to optimize for fast installation.
18086
fast_install=$enable_fast_install
18089
host_alias=$host_alias
18092
# A sed program that does not truncate output.
18095
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18096
Xsed="\$SED -e s/^X//"
18098
# A grep program that handles long line.
18104
# How to create reloadable object files.
18105
reload_flag=$lt_reload_flag
18106
reload_cmds=$lt_reload_cmds
18108
# A BSD-compatible nm program.
18111
# Whether we need soft or hard links.
18114
# Method to check whether dependent libraries are shared objects.
18115
deplibs_check_method=$lt_deplibs_check_method
18117
# Command to use when deplibs_check_method == "file_magic".
18118
file_magic_cmd=$lt_file_magic_cmd
18122
AR_FLAGS=$lt_AR_FLAGS
18124
# A symbol stripping program.
18127
# Commands used to install an old-style archive.
18129
old_postinstall_cmds=$lt_old_postinstall_cmds
18130
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18132
# What is the maximum length of a command?
18133
max_cmd_len=$lt_cv_sys_max_cmd_len
18135
# Take the output of nm and produce a listing of raw symbols and C names.
18136
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18138
# Transform the output of nm in a proper C declaration.
18139
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18141
# Transform the output of nm in a C name address pair.
18142
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18144
# Object file suffix (normally "o").
18147
# Executable file suffix (normally "").
18150
# The name of the directory that contains temporary libtool files.
18156
# Shell to use when invoking shell scripts.
18159
# An echo program that does not interpret backslashes.
18162
# Used to examine libraries when file_magic_cmd begins "file".
18163
MAGIC_CMD=$MAGIC_CMD
18165
# Does compiler simultaneously support -c and -o options?
18166
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18168
# Must we lock files when doing compilation?
18169
need_locks=$lt_need_locks
18171
# Old archive suffix (normally "a").
18174
# Shared library suffix (normally ".so").
18175
shrext_cmds=$lt_shrext_cmds
18177
# The commands to extract the exported symbol list from a shared archive.
18178
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18180
# Variables whose values should be saved in libtool wrapper scripts and
18181
# restored at link time.
18182
variables_saved_for_relink=$lt_variables_saved_for_relink
18184
# Do we need the "lib" prefix for modules?
18185
need_lib_prefix=$need_lib_prefix
18187
# Do we need a version for libraries?
18188
need_version=$need_version
18190
# Library versioning type.
18191
version_type=$version_type
18193
# Shared library runtime path variable.
18194
runpath_var=$runpath_var
18196
# Shared library path variable.
18197
shlibpath_var=$shlibpath_var
18199
# Is shibpath searched before the hard-coded library search path?
18200
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18202
# Format of library name prefix.
18203
libname_spec=$lt_libname_spec
18205
# List of archive names. First name is the real one,the rest are links.
18206
# The last name is the one that the linker finds with -lNAME
18207
library_names_spec=$lt_library_names_spec
18209
# The coded name of the library,if different from the real name.
18210
soname_spec=$lt_soname_spec
18212
# Command to use after installation of a shared archive.
18213
postinstall_cmds=$lt_postinstall_cmds
18215
# Command to use after uninstallation of a shared archive.
18216
postuninstall_cmds=$lt_postuninstall_cmds
18218
# Commands used to finish a libtool library installation in a directory.
18219
finish_cmds=$lt_finish_cmds
18221
# As "finish_cmds",except a single script fragment to be evaled but
18223
finish_eval=$lt_finish_eval
18225
# Whether we should hardcode library paths into libraries.
18226
hardcode_into_libs=$hardcode_into_libs
18228
# Compile-time system search path for libraries.
18229
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18231
# Run-time system search path for libraries.
18232
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18234
# Commands to strip libraries.
18235
old_striplib=$lt_old_striplib
18236
striplib=$lt_striplib
18238
# Whether dlopen is supported.
18239
dlopen_support=$enable_dlopen
18241
# Whether dlopen of programs is supported.
18242
dlopen_self=$enable_dlopen_self
18244
# Whether dlopen of statically linked programs is supported.
18245
dlopen_self_static=$enable_dlopen_self_static
18248
# The linker used to build libraries.
18251
# Commands used to build an old-style archive.
18252
old_archive_cmds=$lt_old_archive_cmds
18254
# A language specific compiler.
18257
# Is the compiler the GNU C compiler?
18260
# Compiler flag to turn off builtin functions.
18261
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18263
# How to pass a linker flag through the compiler.
18264
wl=$lt_lt_prog_compiler_wl
18266
# Additional compiler flags for building library objects.
18267
pic_flag=$lt_lt_prog_compiler_pic
18269
# Compiler flag to prevent dynamic linking.
18270
link_static_flag=$lt_lt_prog_compiler_static
18272
# Whether or not to add -lc for building shared libraries.
18273
build_libtool_need_lc=$archive_cmds_need_lc
18275
# Whether or not to disallow shared libs when runtime libs are static.
18276
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18278
# Compiler flag to allow reflexive dlopens.
18279
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18281
# Compiler flag to generate shared objects directly from archives.
18282
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18284
# Create an old-style archive from a shared archive.
18285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18287
# Create a temporary old-style archive to link instead of a shared archive.
18288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18290
# Commands used to build a shared archive.
18291
archive_cmds=$lt_archive_cmds
18292
archive_expsym_cmds=$lt_archive_expsym_cmds
18294
# Commands used to build a loadable module if different from building
18295
# a shared archive.
18296
module_cmds=$lt_module_cmds
18297
module_expsym_cmds=$lt_module_expsym_cmds
18299
# Flag that allows shared libraries with undefined symbols to be built.
18300
allow_undefined_flag=$lt_allow_undefined_flag
18302
# Flag that enforces no undefined symbols.
18303
no_undefined_flag=$lt_no_undefined_flag
18305
# Flag to hardcode $libdir into a binary during linking.
18306
# This must work even if $libdir does not exist
18307
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18309
# If ld is used when linking,flag to hardcode $libdir into a binary
18310
# during linking. This must work even if $libdir does not exist.
18311
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18313
# Whether we need a single "-rpath" flag with a separated argument.
18314
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18316
# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
18317
# DIR into the resulting binary.
18318
hardcode_direct=$hardcode_direct
18320
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18321
# into the resulting binary.
18322
hardcode_minus_L=$hardcode_minus_L
18324
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18325
# into the resulting binary.
18326
hardcode_shlibpath_var=$hardcode_shlibpath_var
18328
# Set to "yes" if building a shared library automatically hardcodes DIR
18329
# into the library and all subsequent libraries and executables linked
18331
hardcode_automatic=$hardcode_automatic
18333
# Set to yes if linker adds runtime paths of dependent libraries
18334
# to runtime path list.
18335
inherit_rpath=$inherit_rpath
18337
# Whether libtool must link a program against all its dependency libraries.
18338
link_all_deplibs=$link_all_deplibs
18340
# Fix the shell variable $srcfile for the compiler.
18341
fix_srcfile_path=$lt_fix_srcfile_path
18343
# Set to "yes" if exported symbols are required.
18344
always_export_symbols=$always_export_symbols
18346
# The commands to list exported symbols.
18347
export_symbols_cmds=$lt_export_symbols_cmds
18349
# Symbols that should not be listed in the preloaded symbols.
18350
exclude_expsyms=$lt_exclude_expsyms
18352
# Symbols that must always be exported.
18353
include_expsyms=$lt_include_expsyms
18355
# How to hardcode a shared library path into an executable.
18356
hardcode_action=$hardcode_action
18358
# ### END LIBTOOL CONFIG
18360
# The HP-UX ksh and POSIX shell print the target directory to stdout
18361
# if CDPATH is set.
18362
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18368
cat <<\_LT_EOF >> "$cfgfile"
18369
# AIX sometimes has problems with the GCC collect2 program. For some
18370
# reason, if we set the COLLECT_NAMES environment variable, the problems
18371
# vanish in a puff of smoke.
18372
if test "X${COLLECT_NAMES+set}" != Xset; then
18374
export COLLECT_NAMES
18381
case $ac_aux_dir in
18382
$srcdir) ltmain=./ltmain.sh ;;
18383
$srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
18385
test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
18388
# We use sed instead of cat because bash on DJGPP gets confused if
18389
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18390
# text mode, it properly converts lines to CR/LF. This bash problem
18391
# is reportedly fixed, but why not run on old versions too?
18392
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18394
mv -f "$cfgfile" "$ofile" ||
18395
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18399
info-time ) touch doc/quagga.info ;;
18404
cat >>$CONFIG_STATUS <<\_ACEOF
18406
{ (exit 0); exit 0; }
18408
chmod +x $CONFIG_STATUS
18409
ac_clean_files=$ac_clean_files_save
18412
# configure is writing to config.log, and then calls config.status.
18413
# config.status does its own redirection, appending to config.log.
18414
# Unfortunately, on DOS this fails, as config.log is still kept open
18415
# by configure, so config.status won't be able to write to it; its
18416
# output is simply discarded. So we exec the FD to /dev/null,
18417
# effectively closing config.log, so it can be properly (re)opened and
18418
# appended to by config.status. When coming back to configure, we
18419
# need to make the FD available again.
18420
if test "$no_create" != yes; then
18422
ac_config_status_args=
18423
test "$silent" = yes &&
18424
ac_config_status_args="$ac_config_status_args --quiet"
18426
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18428
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
18429
# would make configure fail if this is the last instruction.
18430
$ac_cs_success || { (exit 1); exit 1; }
18435
Quagga configuration
18436
--------------------
18437
quagga version : ${PACKAGE_VERSION}
18438
host operationg system : ${host_os}
18439
source code location : ${srcdir}
18441
compiler flags : ${CFLAGS}
18442
includes : ${INCLUDES} ${SNMP_INCLUDES}
18443
linker flags : ${LDFLAGS} ${LIBS}
18444
state file directory : ${quagga_statedir}
18445
config file directory : `eval echo \`echo ${sysconfdir}\``
18446
example directory : `eval echo \`echo ${exampledir}\``
18447
user to run as : ${enable_user}
18448
group to run as : ${enable_group}
18449
group for vty sockets : ${enable_vty_group}
18450
config file mask : ${enable_configfile_mask}
18451
log file mask : ${enable_logfile_mask}
18453
The above user and group must have read/write access to the state file
18454
directory and to the config files in the config file directory.