2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for monit 5.5.
5
# Report bugs to <monit-general@nongnu.org>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: monit-general@nongnu.org about your system, including
235
$0: any error possibly output before this message. Then
236
$0: install a modern shell, or manually run the script
237
$0: under such a shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
703
PACKAGE_TARNAME='monit'
704
PACKAGE_VERSION='5.5'
705
PACKAGE_STRING='monit 5.5'
706
PACKAGE_BUGREPORT='monit-general@nongnu.org'
709
ac_unique_file="src/monit.c"
710
enable_option_checking=no
711
# Factoring default headers for most tests.
712
ac_includes_default="\
714
#ifdef HAVE_SYS_TYPES_H
715
# include <sys/types.h>
717
#ifdef HAVE_SYS_STAT_H
718
# include <sys/stat.h>
724
# ifdef HAVE_STDLIB_H
729
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734
#ifdef HAVE_STRINGS_H
735
# include <strings.h>
737
#ifdef HAVE_INTTYPES_H
738
# include <inttypes.h>
747
ac_subst_vars='am__EXEEXT_FALSE
811
INSTALL_STRIP_PROGRAM
853
program_transform_name
866
enable_option_checking
867
enable_dependency_tracking
884
ac_precious_vars='build_alias
893
ac_subdirs_all='libmonit'
895
# Initialize some variables set by options.
897
ac_init_version=false
898
ac_unrecognized_opts=
900
# The variables have the same names as the options, with
901
# dashes changed to underlines.
909
program_transform_name=s,x,x,
917
# Installation directory options.
918
# These are left unexpanded so users can "make install exec_prefix=/foo"
919
# and all the variables that are supposed to be based on exec_prefix
920
# by default will actually change.
921
# Use braces instead of parens because sh, perl, etc. also accept them.
922
# (The list follows the same order as the GNU Coding Standards.)
923
bindir='${exec_prefix}/bin'
924
sbindir='${exec_prefix}/sbin'
925
libexecdir='${exec_prefix}/libexec'
926
datarootdir='${prefix}/share'
927
datadir='${datarootdir}'
928
sysconfdir='${prefix}/etc'
929
sharedstatedir='${prefix}/com'
930
localstatedir='${prefix}/var'
931
includedir='${prefix}/include'
932
oldincludedir='/usr/include'
933
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934
infodir='${datarootdir}/info'
939
libdir='${exec_prefix}/lib'
940
localedir='${datarootdir}/locale'
941
mandir='${datarootdir}/man'
947
# If the previous option needs an argument, assign it.
948
if test -n "$ac_prev"; then
949
eval $ac_prev=\$ac_option
955
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959
# Accept the important Cygnus configure options, so we can diagnose typos.
961
case $ac_dashdash$ac_option in
965
-bindir | --bindir | --bindi | --bind | --bin | --bi)
967
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970
-build | --build | --buil | --bui | --bu)
971
ac_prev=build_alias ;;
972
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
973
build_alias=$ac_optarg ;;
975
-cache-file | --cache-file | --cache-fil | --cache-fi \
976
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977
ac_prev=cache_file ;;
978
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980
cache_file=$ac_optarg ;;
983
cache_file=config.cache ;;
985
-datadir | --datadir | --datadi | --datad)
987
-datadir=* | --datadir=* | --datadi=* | --datad=*)
988
datadir=$ac_optarg ;;
990
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991
| --dataroo | --dataro | --datar)
992
ac_prev=datarootdir ;;
993
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995
datarootdir=$ac_optarg ;;
997
-disable-* | --disable-*)
998
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999
# Reject names that are not valid shell variable names.
1000
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001
as_fn_error "invalid feature name: $ac_useropt"
1002
ac_useropt_orig=$ac_useropt
1003
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004
case $ac_user_opts in
1006
"enable_$ac_useropt"
1008
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009
ac_unrecognized_sep=', ';;
1011
eval enable_$ac_useropt=no ;;
1013
-docdir | --docdir | --docdi | --doc | --do)
1015
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016
docdir=$ac_optarg ;;
1018
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021
dvidir=$ac_optarg ;;
1023
-enable-* | --enable-*)
1024
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025
# Reject names that are not valid shell variable names.
1026
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027
as_fn_error "invalid feature name: $ac_useropt"
1028
ac_useropt_orig=$ac_useropt
1029
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030
case $ac_user_opts in
1032
"enable_$ac_useropt"
1034
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035
ac_unrecognized_sep=', ';;
1037
eval enable_$ac_useropt=\$ac_optarg ;;
1039
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041
| --exec | --exe | --ex)
1042
ac_prev=exec_prefix ;;
1043
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045
| --exec=* | --exe=* | --ex=*)
1046
exec_prefix=$ac_optarg ;;
1048
-gas | --gas | --ga | --g)
1049
# Obsolete; use --with-gas.
1052
-help | --help | --hel | --he | -h)
1053
ac_init_help=long ;;
1054
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055
ac_init_help=recursive ;;
1056
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057
ac_init_help=short ;;
1059
-host | --host | --hos | --ho)
1060
ac_prev=host_alias ;;
1061
-host=* | --host=* | --hos=* | --ho=*)
1062
host_alias=$ac_optarg ;;
1064
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068
htmldir=$ac_optarg ;;
1070
-includedir | --includedir | --includedi | --included | --include \
1071
| --includ | --inclu | --incl | --inc)
1072
ac_prev=includedir ;;
1073
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074
| --includ=* | --inclu=* | --incl=* | --inc=*)
1075
includedir=$ac_optarg ;;
1077
-infodir | --infodir | --infodi | --infod | --info | --inf)
1079
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080
infodir=$ac_optarg ;;
1082
-libdir | --libdir | --libdi | --libd)
1084
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1085
libdir=$ac_optarg ;;
1087
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088
| --libexe | --libex | --libe)
1089
ac_prev=libexecdir ;;
1090
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091
| --libexe=* | --libex=* | --libe=*)
1092
libexecdir=$ac_optarg ;;
1094
-localedir | --localedir | --localedi | --localed | --locale)
1095
ac_prev=localedir ;;
1096
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097
localedir=$ac_optarg ;;
1099
-localstatedir | --localstatedir | --localstatedi | --localstated \
1100
| --localstate | --localstat | --localsta | --localst | --locals)
1101
ac_prev=localstatedir ;;
1102
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104
localstatedir=$ac_optarg ;;
1106
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109
mandir=$ac_optarg ;;
1111
-nfp | --nfp | --nf)
1112
# Obsolete; use --without-fp.
1115
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116
| --no-cr | --no-c | -n)
1119
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125
| --oldin | --oldi | --old | --ol | --o)
1126
ac_prev=oldincludedir ;;
1127
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130
oldincludedir=$ac_optarg ;;
1132
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135
prefix=$ac_optarg ;;
1137
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1138
| --program-pre | --program-pr | --program-p)
1139
ac_prev=program_prefix ;;
1140
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1141
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142
program_prefix=$ac_optarg ;;
1144
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1145
| --program-suf | --program-su | --program-s)
1146
ac_prev=program_suffix ;;
1147
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1148
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149
program_suffix=$ac_optarg ;;
1151
-program-transform-name | --program-transform-name \
1152
| --program-transform-nam | --program-transform-na \
1153
| --program-transform-n | --program-transform- \
1154
| --program-transform | --program-transfor \
1155
| --program-transfo | --program-transf \
1156
| --program-trans | --program-tran \
1157
| --progr-tra | --program-tr | --program-t)
1158
ac_prev=program_transform_name ;;
1159
-program-transform-name=* | --program-transform-name=* \
1160
| --program-transform-nam=* | --program-transform-na=* \
1161
| --program-transform-n=* | --program-transform-=* \
1162
| --program-transform=* | --program-transfor=* \
1163
| --program-transfo=* | --program-transf=* \
1164
| --program-trans=* | --program-tran=* \
1165
| --progr-tra=* | --program-tr=* | --program-t=*)
1166
program_transform_name=$ac_optarg ;;
1168
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171
pdfdir=$ac_optarg ;;
1173
-psdir | --psdir | --psdi | --psd | --ps)
1175
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179
| -silent | --silent | --silen | --sile | --sil)
1182
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186
sbindir=$ac_optarg ;;
1188
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1189
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190
| --sharedst | --shareds | --shared | --share | --shar \
1192
ac_prev=sharedstatedir ;;
1193
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197
sharedstatedir=$ac_optarg ;;
1199
-site | --site | --sit)
1201
-site=* | --site=* | --sit=*)
1204
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207
srcdir=$ac_optarg ;;
1209
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210
| --syscon | --sysco | --sysc | --sys | --sy)
1211
ac_prev=sysconfdir ;;
1212
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214
sysconfdir=$ac_optarg ;;
1216
-target | --target | --targe | --targ | --tar | --ta | --t)
1217
ac_prev=target_alias ;;
1218
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219
target_alias=$ac_optarg ;;
1221
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1224
-version | --version | --versio | --versi | --vers | -V)
1225
ac_init_version=: ;;
1228
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229
# Reject names that are not valid shell variable names.
1230
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231
as_fn_error "invalid package name: $ac_useropt"
1232
ac_useropt_orig=$ac_useropt
1233
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234
case $ac_user_opts in
1238
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239
ac_unrecognized_sep=', ';;
1241
eval with_$ac_useropt=\$ac_optarg ;;
1243
-without-* | --without-*)
1244
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245
# Reject names that are not valid shell variable names.
1246
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247
as_fn_error "invalid package name: $ac_useropt"
1248
ac_useropt_orig=$ac_useropt
1249
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250
case $ac_user_opts in
1254
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255
ac_unrecognized_sep=', ';;
1257
eval with_$ac_useropt=no ;;
1260
# Obsolete; use --with-x.
1263
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264
| --x-incl | --x-inc | --x-in | --x-i)
1265
ac_prev=x_includes ;;
1266
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268
x_includes=$ac_optarg ;;
1270
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1271
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272
ac_prev=x_libraries ;;
1273
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275
x_libraries=$ac_optarg ;;
1277
-*) as_fn_error "unrecognized option: \`$ac_option'
1278
Try \`$0 --help' for more information."
1282
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283
# Reject names that are not valid shell variable names.
1284
case $ac_envvar in #(
1285
'' | [0-9]* | *[!_$as_cr_alnum]* )
1286
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1288
eval $ac_envvar=\$ac_optarg
1289
export $ac_envvar ;;
1292
# FIXME: should be removed in autoconf 3.0.
1293
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302
if test -n "$ac_prev"; then
1303
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304
as_fn_error "missing argument to $ac_option"
1307
if test -n "$ac_unrecognized_opts"; then
1308
case $enable_option_checking in
1310
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1311
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315
# Check all directory arguments for consistency.
1316
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317
datadir sysconfdir sharedstatedir localstatedir includedir \
1318
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319
libdir localedir mandir
1321
eval ac_val=\$$ac_var
1322
# Remove trailing slashes.
1325
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326
eval $ac_var=\$ac_val;;
1328
# Be sure to have absolute directory names.
1330
[\\/$]* | ?:[\\/]* ) continue;;
1331
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1336
# There might be people who depend on the old broken behavior: `$host'
1337
# used to hold the argument of --host etc.
1338
# FIXME: To remove some day.
1341
target=$target_alias
1343
# FIXME: To remove some day.
1344
if test "x$host_alias" != x; then
1345
if test "x$build_alias" = x; then
1346
cross_compiling=maybe
1347
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348
If a cross compiler is detected then cross compile mode will be used." >&2
1349
elif test "x$build_alias" != "x$host_alias"; then
1355
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
test "$silent" = yes && exec 6>/dev/null
1360
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361
ac_ls_di=`ls -di .` &&
1362
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363
as_fn_error "working directory cannot be determined"
1364
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365
as_fn_error "pwd does not report name of working directory"
1368
# Find the source files, if location was not specified.
1369
if test -z "$srcdir"; then
1370
ac_srcdir_defaulted=yes
1371
# Try the directory containing this script, then the parent directory.
1372
ac_confdir=`$as_dirname -- "$as_myself" ||
1373
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374
X"$as_myself" : 'X\(//\)[^/]' \| \
1375
X"$as_myself" : 'X\(//\)$' \| \
1376
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377
$as_echo X"$as_myself" |
1378
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396
if test ! -r "$srcdir/$ac_unique_file"; then
1400
ac_srcdir_defaulted=no
1402
if test ! -r "$srcdir/$ac_unique_file"; then
1403
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1406
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1410
# When building in place, set srcdir=.
1411
if test "$ac_abs_confdir" = "$ac_pwd"; then
1414
# Remove unnecessary trailing slashes from srcdir.
1415
# Double slashes in file names in object file debugging info
1416
# mess up M-x gdb in Emacs.
1418
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420
for ac_var in $ac_precious_vars; do
1421
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422
eval ac_env_${ac_var}_value=\$${ac_var}
1423
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428
# Report the --help message.
1430
if test "$ac_init_help" = "long"; then
1431
# Omit some internal or obsolete options to make the list less imposing.
1432
# This message is too long to be a string in the A/UX 3.1 sh.
1434
\`configure' configures monit 5.5 to adapt to many kinds of systems.
1436
Usage: $0 [OPTION]... [VAR=VALUE]...
1438
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439
VAR=VALUE. See below for descriptions of some of the useful variables.
1441
Defaults for the options are specified in brackets.
1444
-h, --help display this help and exit
1445
--help=short display options specific to this package
1446
--help=recursive display the short help of all the included packages
1447
-V, --version display version information and exit
1448
-q, --quiet, --silent do not print \`checking...' messages
1449
--cache-file=FILE cache test results in FILE [disabled]
1450
-C, --config-cache alias for \`--cache-file=config.cache'
1451
-n, --no-create do not create output files
1452
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
Installation directories:
1455
--prefix=PREFIX install architecture-independent files in PREFIX
1456
[$ac_default_prefix]
1457
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460
By default, \`make install' will install all the files in
1461
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463
for instance \`--prefix=\$HOME'.
1465
For better control, use the options below.
1467
Fine tuning of the installation directories:
1468
--bindir=DIR user executables [EPREFIX/bin]
1469
--sbindir=DIR system admin executables [EPREFIX/sbin]
1470
--libexecdir=DIR program executables [EPREFIX/libexec]
1471
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474
--libdir=DIR object code libraries [EPREFIX/lib]
1475
--includedir=DIR C header files [PREFIX/include]
1476
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1477
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479
--infodir=DIR info documentation [DATAROOTDIR/info]
1480
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481
--mandir=DIR man documentation [DATAROOTDIR/man]
1482
--docdir=DIR documentation root [DATAROOTDIR/doc/monit]
1483
--htmldir=DIR html documentation [DOCDIR]
1484
--dvidir=DIR dvi documentation [DOCDIR]
1485
--pdfdir=DIR pdf documentation [DOCDIR]
1486
--psdir=DIR ps documentation [DOCDIR]
1492
--program-prefix=PREFIX prepend PREFIX to installed program names
1493
--program-suffix=SUFFIX append SUFFIX to installed program names
1494
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
--build=BUILD configure for building on BUILD [guessed]
1498
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1502
if test -n "$ac_init_help"; then
1503
case $ac_init_help in
1504
short | recursive ) echo "Configuration of monit 5.5:";;
1509
--disable-option-checking ignore unrecognized --enable/--with options
1510
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512
--disable-dependency-tracking speeds up one-time build
1513
--enable-dependency-tracking do not reject slow dependency extractors
1514
--enable-static[=PKGS] build static libraries [default=no]
1515
--enable-shared[=PKGS] build shared libraries [default=yes]
1516
--enable-fast-install[=PKGS]
1517
optimize for fast installation [default=yes]
1518
--disable-libtool-lock avoid locking (might break parallel builds)
1519
--enable-optimized Build software optimized
1520
--disable-largefile omit support for large files
1523
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525
--with-pic try to use only PIC/non-PIC objects [default=use
1527
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528
--without-largefiles disable large files support (default: enabled)
1529
--without-pam disable the use of pam (default: enabled)
1530
--with-ssl-static=DIR location of SSL installation
1531
--without-ssl disable the use of ssl (default: enabled)
1532
--with-ssl-dir=DIR location of SSL installation
1533
--with-ssl-incl-dir=DIR location of installed SSL include files
1534
--with-ssl-lib-dir=DIR location of installed SSL library files
1536
Some influential environment variables:
1537
CC C compiler command
1538
CFLAGS C compiler flags
1539
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540
nonstandard directory <lib dir>
1541
LIBS libraries to pass to the linker, e.g. -l<library>
1542
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543
you have headers in a nonstandard directory <include dir>
1546
Use these variables to override the choices made by `configure' or to help
1547
it to find libraries and programs with nonstandard names/locations.
1549
Report bugs to <monit-general@nongnu.org>.
1554
if test "$ac_init_help" = "recursive"; then
1555
# If there are subdirs, report their specific --help.
1556
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557
test -d "$ac_dir" ||
1558
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566
# A ".." for each directory in $ac_dir_suffix.
1567
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568
case $ac_top_builddir_sub in
1569
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573
ac_abs_top_builddir=$ac_pwd
1574
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575
# for backward compatibility:
1576
ac_top_builddir=$ac_top_build_prefix
1579
.) # We are building in place.
1581
ac_top_srcdir=$ac_top_builddir_sub
1582
ac_abs_top_srcdir=$ac_pwd ;;
1583
[\\/]* | ?:[\\/]* ) # Absolute name.
1584
ac_srcdir=$srcdir$ac_dir_suffix;
1585
ac_top_srcdir=$srcdir
1586
ac_abs_top_srcdir=$srcdir ;;
1588
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589
ac_top_srcdir=$ac_top_build_prefix$srcdir
1590
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
cd "$ac_dir" || { ac_status=$?; continue; }
1595
# Check for guested configure.
1596
if test -f "$ac_srcdir/configure.gnu"; then
1598
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599
elif test -f "$ac_srcdir/configure"; then
1601
$SHELL "$ac_srcdir/configure" --help=recursive
1603
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605
cd "$ac_pwd" || { ac_status=$?; break; }
1609
test -n "$ac_init_help" && exit $ac_status
1610
if $ac_init_version; then
1613
generated by GNU Autoconf 2.65
1615
Copyright (C) 2009 Free Software Foundation, Inc.
1616
This configure script is free software; the Free Software Foundation
1617
gives unlimited permission to copy, distribute and modify it.
1622
## ------------------------ ##
1623
## Autoconf initialization. ##
1624
## ------------------------ ##
1626
# ac_fn_c_try_compile LINENO
1627
# --------------------------
1628
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629
ac_fn_c_try_compile ()
1631
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632
rm -f conftest.$ac_objext
1633
if { { ac_try="$ac_compile"
1635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636
*) ac_try_echo=$ac_try;;
1638
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639
$as_echo "$ac_try_echo"; } >&5
1640
(eval "$ac_compile") 2>conftest.err
1642
if test -s conftest.err; then
1643
grep -v '^ *+' conftest.err >conftest.er1
1644
cat conftest.er1 >&5
1645
mv -f conftest.er1 conftest.err
1647
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648
test $ac_status = 0; } && {
1649
test -z "$ac_c_werror_flag" ||
1650
test ! -s conftest.err
1651
} && test -s conftest.$ac_objext; then :
1654
$as_echo "$as_me: failed program was:" >&5
1655
sed 's/^/| /' conftest.$ac_ext >&5
1659
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660
as_fn_set_status $ac_retval
1662
} # ac_fn_c_try_compile
1664
# ac_fn_c_try_link LINENO
1665
# -----------------------
1666
# Try to link conftest.$ac_ext, and return whether this succeeded.
1669
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670
rm -f conftest.$ac_objext conftest$ac_exeext
1671
if { { ac_try="$ac_link"
1673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674
*) ac_try_echo=$ac_try;;
1676
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677
$as_echo "$ac_try_echo"; } >&5
1678
(eval "$ac_link") 2>conftest.err
1680
if test -s conftest.err; then
1681
grep -v '^ *+' conftest.err >conftest.er1
1682
cat conftest.er1 >&5
1683
mv -f conftest.er1 conftest.err
1685
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686
test $ac_status = 0; } && {
1687
test -z "$ac_c_werror_flag" ||
1688
test ! -s conftest.err
1689
} && test -s conftest$ac_exeext && {
1690
test "$cross_compiling" = yes ||
1691
$as_test_x conftest$ac_exeext
1695
$as_echo "$as_me: failed program was:" >&5
1696
sed 's/^/| /' conftest.$ac_ext >&5
1700
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702
# interfere with the next link command; also delete a directory that is
1703
# left behind by Apple's compiler. We do this before executing the actions.
1704
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706
as_fn_set_status $ac_retval
1708
} # ac_fn_c_try_link
1710
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711
# -------------------------------------------------------
1712
# Tests whether HEADER exists and can be compiled using the include files in
1713
# INCLUDES, setting the cache variable VAR accordingly.
1714
ac_fn_c_check_header_compile ()
1716
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718
$as_echo_n "checking for $2... " >&6; }
1719
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720
$as_echo_n "(cached) " >&6
1722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723
/* end confdefs.h. */
1727
if ac_fn_c_try_compile "$LINENO"; then :
1732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736
$as_echo "$ac_res" >&6; }
1737
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739
} # ac_fn_c_check_header_compile
1741
# ac_fn_c_try_cpp LINENO
1742
# ----------------------
1743
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747
if { { ac_try="$ac_cpp conftest.$ac_ext"
1749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750
*) ac_try_echo=$ac_try;;
1752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753
$as_echo "$ac_try_echo"; } >&5
1754
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756
if test -s conftest.err; then
1757
grep -v '^ *+' conftest.err >conftest.er1
1758
cat conftest.er1 >&5
1759
mv -f conftest.er1 conftest.err
1761
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762
test $ac_status = 0; } >/dev/null && {
1763
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764
test ! -s conftest.err
1768
$as_echo "$as_me: failed program was:" >&5
1769
sed 's/^/| /' conftest.$ac_ext >&5
1773
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
as_fn_set_status $ac_retval
1778
# ac_fn_c_try_run LINENO
1779
# ----------------------
1780
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781
# that executables *can* be run.
1784
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785
if { { ac_try="$ac_link"
1787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788
*) ac_try_echo=$ac_try;;
1790
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791
$as_echo "$ac_try_echo"; } >&5
1792
(eval "$ac_link") 2>&5
1794
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796
{ { case "(($ac_try" in
1797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798
*) ac_try_echo=$ac_try;;
1800
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801
$as_echo "$ac_try_echo"; } >&5
1802
(eval "$ac_try") 2>&5
1804
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805
test $ac_status = 0; }; }; then :
1808
$as_echo "$as_me: program exited with status $ac_status" >&5
1809
$as_echo "$as_me: failed program was:" >&5
1810
sed 's/^/| /' conftest.$ac_ext >&5
1812
ac_retval=$ac_status
1814
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
as_fn_set_status $ac_retval
1820
# ac_fn_c_check_func LINENO FUNC VAR
1821
# ----------------------------------
1822
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823
ac_fn_c_check_func ()
1825
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827
$as_echo_n "checking for $2... " >&6; }
1828
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829
$as_echo_n "(cached) " >&6
1831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832
/* end confdefs.h. */
1833
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835
#define $2 innocuous_$2
1837
/* System header to define __stub macros and hopefully few prototypes,
1838
which can conflict with char $2 (); below.
1839
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840
<limits.h> exists even on freestanding compilers. */
1843
# include <limits.h>
1845
# include <assert.h>
1850
/* Override any GCC internal prototype to avoid an error.
1851
Use char because int might match the return type of a GCC
1852
builtin and then its argument prototype would still apply. */
1857
/* The GNU C library defines this for functions which it implements
1858
to always fail with ENOSYS. Some functions are actually named
1859
something starting with __ and the normal name is an alias. */
1860
#if defined __stub_$2 || defined __stub___$2
1872
if ac_fn_c_try_link "$LINENO"; then :
1877
rm -f core conftest.err conftest.$ac_objext \
1878
conftest$ac_exeext conftest.$ac_ext
1881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882
$as_echo "$ac_res" >&6; }
1883
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885
} # ac_fn_c_check_func
1887
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888
# -------------------------------------------------------
1889
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890
# the include files in INCLUDES and setting the cache variable VAR
1892
ac_fn_c_check_header_mongrel ()
1894
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897
$as_echo_n "checking for $2... " >&6; }
1898
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899
$as_echo_n "(cached) " >&6
1902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903
$as_echo "$ac_res" >&6; }
1905
# Is the header compilable?
1906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907
$as_echo_n "checking $2 usability... " >&6; }
1908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909
/* end confdefs.h. */
1913
if ac_fn_c_try_compile "$LINENO"; then :
1914
ac_header_compiler=yes
1916
ac_header_compiler=no
1918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920
$as_echo "$ac_header_compiler" >&6; }
1922
# Is the header present?
1923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924
$as_echo_n "checking $2 presence... " >&6; }
1925
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926
/* end confdefs.h. */
1929
if ac_fn_c_try_cpp "$LINENO"; then :
1930
ac_header_preproc=yes
1932
ac_header_preproc=no
1934
rm -f conftest.err conftest.$ac_ext
1935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936
$as_echo "$ac_header_preproc" >&6; }
1938
# So? What about this header?
1939
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958
## --------------------------------------- ##
1959
## Report this to monit-general@nongnu.org ##
1960
## --------------------------------------- ##
1962
) | sed "s/^/$as_me: WARNING: /" >&2
1965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966
$as_echo_n "checking for $2... " >&6; }
1967
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968
$as_echo_n "(cached) " >&6
1970
eval "$3=\$ac_header_compiler"
1973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974
$as_echo "$ac_res" >&6; }
1976
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978
} # ac_fn_c_check_header_mongrel
1980
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1981
# -------------------------------------------
1982
# Tests whether TYPE exists after having included INCLUDES, setting cache
1983
# variable VAR accordingly.
1984
ac_fn_c_check_type ()
1986
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988
$as_echo_n "checking for $2... " >&6; }
1989
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990
$as_echo_n "(cached) " >&6
1993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994
/* end confdefs.h. */
2005
if ac_fn_c_try_compile "$LINENO"; then :
2006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007
/* end confdefs.h. */
2018
if ac_fn_c_try_compile "$LINENO"; then :
2023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029
$as_echo "$ac_res" >&6; }
2030
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
} # ac_fn_c_check_type
2034
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2035
# ----------------------------------------------------
2036
# Tries to find if the field MEMBER exists in type AGGR, after including
2037
# INCLUDES, setting cache variable VAR accordingly.
2038
ac_fn_c_check_member ()
2040
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2042
$as_echo_n "checking for $2.$3... " >&6; }
2043
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2044
$as_echo_n "(cached) " >&6
2046
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047
/* end confdefs.h. */
2059
if ac_fn_c_try_compile "$LINENO"; then :
2062
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063
/* end confdefs.h. */
2069
if (sizeof ac_aggr.$3)
2075
if ac_fn_c_try_compile "$LINENO"; then :
2080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086
$as_echo "$ac_res" >&6; }
2087
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
} # ac_fn_c_check_member
2090
cat >config.log <<_ACEOF
2091
This file contains any messages produced by compilers while
2092
running configure, to aid debugging if configure makes a mistake.
2094
It was created by monit $as_me 5.5, which was
2095
generated by GNU Autoconf 2.65. Invocation command line was
2107
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130
test -z "$as_dir" && as_dir=.
2131
$as_echo "PATH: $as_dir"
2147
# Keep a trace of the command line.
2148
# Strip out --no-create and --no-recursion so they do not pile up.
2149
# Strip out --silent because we don't want to record it for future runs.
2150
# Also quote any args containing shell meta-characters.
2151
# Make two passes to allow for proper duplicate-argument suppression.
2155
ac_must_keep_next=false
2161
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163
| -silent | --silent | --silen | --sile | --sil)
2166
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171
as_fn_append ac_configure_args1 " '$ac_arg'"
2172
if test $ac_must_keep_next = true; then
2173
ac_must_keep_next=false # Got value, back to normal.
2176
*=* | --config-cache | -C | -disable-* | --disable-* \
2177
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179
| -with-* | --with-* | -without-* | --without-* | --x)
2180
case "$ac_configure_args0 " in
2181
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184
-* ) ac_must_keep_next=true ;;
2187
as_fn_append ac_configure_args " '$ac_arg'"
2192
{ ac_configure_args0=; unset ac_configure_args0;}
2193
{ ac_configure_args1=; unset ac_configure_args1;}
2195
# When interrupted or exit'd, cleanup temporary files, and complete
2196
# config.log. We remove comments because anyway the quotes in there
2197
# would cause problems or look ugly.
2198
# WARNING: Use '\'' to represent an apostrophe within the trap.
2199
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200
trap 'exit_status=$?
2201
# Save into config.log some information that might help in debugging.
2206
## ---------------- ##
2207
## Cache variables. ##
2208
## ---------------- ##
2211
# The following way of writing the cache mishandles newlines in values,
2213
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214
eval ac_val=\$$ac_var
2218
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222
_ | IFS | as_nl) ;; #(
2223
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224
*) { eval $ac_var=; unset $ac_var;} ;;
2229
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230
*${as_nl}ac_space=\ *)
2232
"s/'\''/'\''\\\\'\'''\''/g;
2233
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244
## ----------------- ##
2245
## Output variables. ##
2246
## ----------------- ##
2249
for ac_var in $ac_subst_vars
2251
eval ac_val=\$$ac_var
2253
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255
$as_echo "$ac_var='\''$ac_val'\''"
2259
if test -n "$ac_subst_files"; then
2261
## ------------------- ##
2262
## File substitutions. ##
2263
## ------------------- ##
2266
for ac_var in $ac_subst_files
2268
eval ac_val=\$$ac_var
2270
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272
$as_echo "$ac_var='\''$ac_val'\''"
2277
if test -s confdefs.h; then
2287
test "$ac_signal" != 0 &&
2288
$as_echo "$as_me: caught signal $ac_signal"
2289
$as_echo "$as_me: exit $exit_status"
2291
rm -f core *.core core.conftest.* &&
2292
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295
for ac_signal in 1 2 13 15; do
2296
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2301
rm -f -r conftest* confdefs.h
2303
$as_echo "/* confdefs.h */" > confdefs.h
2305
# Predefined preprocessor variables.
2307
cat >>confdefs.h <<_ACEOF
2308
#define PACKAGE_NAME "$PACKAGE_NAME"
2311
cat >>confdefs.h <<_ACEOF
2312
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315
cat >>confdefs.h <<_ACEOF
2316
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2319
cat >>confdefs.h <<_ACEOF
2320
#define PACKAGE_STRING "$PACKAGE_STRING"
2323
cat >>confdefs.h <<_ACEOF
2324
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327
cat >>confdefs.h <<_ACEOF
2328
#define PACKAGE_URL "$PACKAGE_URL"
2332
# Let the site file select an alternate cache file if it wants to.
2333
# Prefer an explicitly selected file to automatically selected ones.
2336
if test -n "$CONFIG_SITE"; then
2337
ac_site_file1=$CONFIG_SITE
2338
elif test "x$prefix" != xNONE; then
2339
ac_site_file1=$prefix/share/config.site
2340
ac_site_file2=$prefix/etc/config.site
2342
ac_site_file1=$ac_default_prefix/share/config.site
2343
ac_site_file2=$ac_default_prefix/etc/config.site
2345
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347
test "x$ac_site_file" = xNONE && continue
2348
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351
sed 's/^/| /' "$ac_site_file" >&5
2356
if test -r "$cache_file"; then
2357
# Some versions of bash will fail to source /dev/null (special files
2358
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2359
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361
$as_echo "$as_me: loading cache $cache_file" >&6;}
2363
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2364
*) . "./$cache_file";;
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369
$as_echo "$as_me: creating cache $cache_file" >&6;}
2373
# Check that the precious variables saved in the cache have kept the same
2375
ac_cache_corrupted=false
2376
for ac_var in $ac_precious_vars; do
2377
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378
eval ac_new_set=\$ac_env_${ac_var}_set
2379
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380
eval ac_new_val=\$ac_env_${ac_var}_value
2381
case $ac_old_set,$ac_new_set in
2383
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385
ac_cache_corrupted=: ;;
2387
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389
ac_cache_corrupted=: ;;
2392
if test "x$ac_old_val" != "x$ac_new_val"; then
2393
# differences in whitespace do not lead to failure.
2394
ac_old_val_w=`echo x $ac_old_val`
2395
ac_new_val_w=`echo x $ac_new_val`
2396
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399
ac_cache_corrupted=:
2401
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403
eval $ac_var=\$ac_old_val
2405
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411
# Pass precious variables to config.status.
2412
if test "$ac_new_set" = set; then
2414
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415
*) ac_arg=$ac_var=$ac_new_val ;;
2417
case " $ac_configure_args " in
2418
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423
if $ac_cache_corrupted; then
2424
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430
## -------------------- ##
2431
## Main body of script. ##
2432
## -------------------- ##
2435
ac_cpp='$CPP $CPPFLAGS'
2436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
for ac_dir in config "$srcdir"/config; do
2443
for ac_t in install-sh install.sh shtool; do
2444
if test -f "$ac_dir/$ac_t"; then
2446
ac_install_sh="$ac_aux_dir/$ac_t -c"
2451
if test -z "$ac_aux_dir"; then
2452
as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2455
# These three variables are undocumented and unsupported,
2456
# and are intended to be withdrawn in a future Autoconf release.
2457
# They can cause serious problems if a builder's source tree is in a directory
2458
# whose full name contains unusual characters.
2459
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2460
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2461
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2465
am__api_version='1.11'
2467
# Find a good install program. We prefer a C program (faster),
2468
# so one script is as good as another. But avoid the broken or
2469
# incompatible versions:
2470
# SysV /etc/install, /usr/sbin/install
2471
# SunOS /usr/etc/install
2472
# IRIX /sbin/install
2474
# AmigaOS /C/install, which installs bootblocks on floppy discs
2475
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478
# OS/2's system install, which has a completely different semantic
2479
# ./install, which can be erroneously created by make from ./install.sh.
2480
# Reject install programs that cannot install multiple files.
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2483
if test -z "$INSTALL"; then
2484
if test "${ac_cv_path_install+set}" = set; then :
2485
$as_echo_n "(cached) " >&6
2487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491
test -z "$as_dir" && as_dir=.
2492
# Account for people who put trailing slashes in PATH elements.
2493
case $as_dir/ in #((
2494
./ | .// | /[cC]/* | \
2495
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499
# OSF1 and SCO ODT 3.0 have their own names for install.
2500
# Don't use installbsd from OSF since it installs stuff as root
2502
for ac_prog in ginstall scoinst install; do
2503
for ac_exec_ext in '' $ac_executable_extensions; do
2504
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505
if test $ac_prog = install &&
2506
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507
# AIX install. It has an incompatible calling convention.
2509
elif test $ac_prog = install &&
2510
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511
# program-specific install script used by HP pwplus--don't use.
2514
rm -rf conftest.one conftest.two conftest.dir
2515
echo one > conftest.one
2516
echo two > conftest.two
2518
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519
test -s conftest.one && test -s conftest.two &&
2520
test -s conftest.dir/conftest.one &&
2521
test -s conftest.dir/conftest.two
2523
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536
rm -rf conftest.one conftest.two conftest.dir
2539
if test "${ac_cv_path_install+set}" = set; then
2540
INSTALL=$ac_cv_path_install
2542
# As a last resort, use the slow shell script. Don't cache a
2543
# value for INSTALL within a source directory, because that will
2544
# break other packages using the cache if that directory is
2545
# removed, or if the value is a relative name.
2546
INSTALL=$ac_install_sh
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550
$as_echo "$INSTALL" >&6; }
2552
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553
# It thinks the first close brace ends the variable substitution.
2554
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561
$as_echo_n "checking whether build environment is sane... " >&6; }
2564
echo timestamp > conftest.file
2565
# Reject unsafe characters in $srcdir or the absolute working directory
2566
# name. Accept space and tab only in the latter.
2570
*[\\\"\#\$\&\'\`$am_lf]*)
2571
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2574
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2578
# Do `set' in a subshell so we don't clobber the current shell's
2579
# arguments. Must try -L first in case configure is actually a
2580
# symlink; some systems play weird games with the mod time of symlinks
2581
# (eg FreeBSD returns the mod time of the symlink's containing
2584
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585
if test "$*" = "X"; then
2587
set X `ls -t "$srcdir/configure" conftest.file`
2590
if test "$*" != "X $srcdir/configure conftest.file" \
2591
&& test "$*" != "X conftest.file $srcdir/configure"; then
2593
# If neither matched, then we have a broken ls. This can happen
2594
# if, for instance, CONFIG_SHELL is bash and it inherits a
2595
# broken ls alias from the environment. This has actually
2596
# happened. Such a system could not be considered "sane".
2597
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2598
alias in your environment" "$LINENO" 5
2601
test "$2" = conftest.file
2607
as_fn_error "newly created file is older than distributed files!
2608
Check your system clock" "$LINENO" 5
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611
$as_echo "yes" >&6; }
2612
test "$program_prefix" != NONE &&
2613
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614
# Use a double $ so make ignores it.
2615
test "$program_suffix" != NONE &&
2616
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617
# Double any \ or $.
2618
# By default was `s,x,x', remove it if useless.
2619
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2622
# expand $ac_aux_dir to an absolute path
2623
am_aux_dir=`cd $ac_aux_dir && pwd`
2625
if test x"${MISSING+set}" != xset; then
2628
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2630
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2633
# Use eval to expand $SHELL
2634
if eval "$MISSING --run true"; then
2635
am_missing_run="$MISSING --run "
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642
if test x"${install_sh}" != xset; then
2645
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2647
install_sh="\${SHELL} $am_aux_dir/install-sh"
2651
# Installed binaries are usually stripped using `strip' when the user
2652
# run `make install-strip'. However `strip' might not be the right
2653
# tool to use in cross-compilation environments, therefore Automake
2654
# will honor the `STRIP' environment variable to overrule this program.
2655
if test "$cross_compiling" != no; then
2656
if test -n "$ac_tool_prefix"; then
2657
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658
set dummy ${ac_tool_prefix}strip; ac_word=$2
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660
$as_echo_n "checking for $ac_word... " >&6; }
2661
if test "${ac_cv_prog_STRIP+set}" = set; then :
2662
$as_echo_n "(cached) " >&6
2664
if test -n "$STRIP"; then
2665
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671
test -z "$as_dir" && as_dir=.
2672
for ac_exec_ext in '' $ac_executable_extensions; do
2673
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684
STRIP=$ac_cv_prog_STRIP
2685
if test -n "$STRIP"; then
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687
$as_echo "$STRIP" >&6; }
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690
$as_echo "no" >&6; }
2695
if test -z "$ac_cv_prog_STRIP"; then
2697
# Extract the first word of "strip", so it can be a program name with args.
2698
set dummy strip; ac_word=$2
2699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700
$as_echo_n "checking for $ac_word... " >&6; }
2701
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2702
$as_echo_n "(cached) " >&6
2704
if test -n "$ac_ct_STRIP"; then
2705
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711
test -z "$as_dir" && as_dir=.
2712
for ac_exec_ext in '' $ac_executable_extensions; do
2713
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714
ac_cv_prog_ac_ct_STRIP="strip"
2715
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725
if test -n "$ac_ct_STRIP"; then
2726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727
$as_echo "$ac_ct_STRIP" >&6; }
2729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730
$as_echo "no" >&6; }
2733
if test "x$ac_ct_STRIP" = x; then
2736
case $cross_compiling:$ac_tool_warned in
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740
ac_tool_warned=yes ;;
2745
STRIP="$ac_cv_prog_STRIP"
2749
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753
if test -z "$MKDIR_P"; then
2754
if test "${ac_cv_path_mkdir+set}" = set; then :
2755
$as_echo_n "(cached) " >&6
2757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2761
test -z "$as_dir" && as_dir=.
2762
for ac_prog in mkdir gmkdir; do
2763
for ac_exec_ext in '' $ac_executable_extensions; do
2764
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766
'mkdir (GNU coreutils) '* | \
2767
'mkdir (coreutils) '* | \
2768
'mkdir (fileutils) '4.1*)
2769
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779
test -d ./--version && rmdir ./--version
2780
if test "${ac_cv_path_mkdir+set}" = set; then
2781
MKDIR_P="$ac_cv_path_mkdir -p"
2783
# As a last resort, use the slow shell script. Don't cache a
2784
# value for MKDIR_P within a source directory, because that will
2785
# break other packages using the cache if that directory is
2786
# removed, or if the value is a relative name.
2787
MKDIR_P="$ac_install_sh -d"
2790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791
$as_echo "$MKDIR_P" >&6; }
2795
[\\/$]* | ?:[\\/]*) ;;
2796
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2799
for ac_prog in gawk mawk nawk awk
2801
# Extract the first word of "$ac_prog", so it can be a program name with args.
2802
set dummy $ac_prog; ac_word=$2
2803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804
$as_echo_n "checking for $ac_word... " >&6; }
2805
if test "${ac_cv_prog_AWK+set}" = set; then :
2806
$as_echo_n "(cached) " >&6
2808
if test -n "$AWK"; then
2809
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815
test -z "$as_dir" && as_dir=.
2816
for ac_exec_ext in '' $ac_executable_extensions; do
2817
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818
ac_cv_prog_AWK="$ac_prog"
2819
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829
if test -n "$AWK"; then
2830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831
$as_echo "$AWK" >&6; }
2833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834
$as_echo "no" >&6; }
2838
test -n "$AWK" && break
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2846
$as_echo_n "(cached) " >&6
2848
cat >conftest.make <<\_ACEOF
2851
@echo '@@@%%%=$(MAKE)=@@@%%%'
2853
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2854
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856
eval ac_cv_prog_make_${ac_make}_set=yes;;
2858
eval ac_cv_prog_make_${ac_make}_set=no;;
2862
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864
$as_echo "yes" >&6; }
2867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868
$as_echo "no" >&6; }
2869
SET_MAKE="MAKE=${MAKE-make}"
2872
rm -rf .tst 2>/dev/null
2873
mkdir .tst 2>/dev/null
2874
if test -d .tst; then
2879
rmdir .tst 2>/dev/null
2881
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883
# is not polluted with repeated "-I."
2884
am__isrc=' -I$(srcdir)'
2885
# test to see if srcdir already configured
2886
if test -f $srcdir/config.status; then
2887
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2891
# test whether we have cygpath
2892
if test -z "$CYGPATH_W"; then
2893
if (cygpath --version) >/dev/null 2>/dev/null; then
2894
CYGPATH_W='cygpath -w'
2901
# Define the identity of the package.
2906
cat >>confdefs.h <<_ACEOF
2907
#define PACKAGE "$PACKAGE"
2911
cat >>confdefs.h <<_ACEOF
2912
#define VERSION "$VERSION"
2915
# Some tools Automake needs.
2917
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2920
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2923
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2926
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2929
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
# We need awk for the "check" target. The system "awk" is bad on
2933
# Always define AMTAR for backward compatibility.
2935
AMTAR=${AMTAR-"${am_missing_run}tar"}
2937
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2946
subdirs="$subdirs libmonit"
2948
ac_config_commands="$ac_config_commands libtool_patch"
2952
# ------------------------------------------------------------------------
2954
# ------------------------------------------------------------------------
2957
ac_cpp='$CPP $CPPFLAGS'
2958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961
if test -n "$ac_tool_prefix"; then
2962
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965
$as_echo_n "checking for $ac_word... " >&6; }
2966
if test "${ac_cv_prog_CC+set}" = set; then :
2967
$as_echo_n "(cached) " >&6
2969
if test -n "$CC"; then
2970
ac_cv_prog_CC="$CC" # Let the user override the test.
2972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976
test -z "$as_dir" && as_dir=.
2977
for ac_exec_ext in '' $ac_executable_extensions; do
2978
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990
if test -n "$CC"; then
2991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992
$as_echo "$CC" >&6; }
2994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995
$as_echo "no" >&6; }
3000
if test -z "$ac_cv_prog_CC"; then
3002
# Extract the first word of "gcc", so it can be a program name with args.
3003
set dummy gcc; ac_word=$2
3004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005
$as_echo_n "checking for $ac_word... " >&6; }
3006
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007
$as_echo_n "(cached) " >&6
3009
if test -n "$ac_ct_CC"; then
3010
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016
test -z "$as_dir" && as_dir=.
3017
for ac_exec_ext in '' $ac_executable_extensions; do
3018
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019
ac_cv_prog_ac_ct_CC="gcc"
3020
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030
if test -n "$ac_ct_CC"; then
3031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032
$as_echo "$ac_ct_CC" >&6; }
3034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035
$as_echo "no" >&6; }
3038
if test "x$ac_ct_CC" = x; then
3041
case $cross_compiling:$ac_tool_warned in
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045
ac_tool_warned=yes ;;
3053
if test -z "$CC"; then
3054
if test -n "$ac_tool_prefix"; then
3055
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056
set dummy ${ac_tool_prefix}cc; ac_word=$2
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058
$as_echo_n "checking for $ac_word... " >&6; }
3059
if test "${ac_cv_prog_CC+set}" = set; then :
3060
$as_echo_n "(cached) " >&6
3062
if test -n "$CC"; then
3063
ac_cv_prog_CC="$CC" # Let the user override the test.
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069
test -z "$as_dir" && as_dir=.
3070
for ac_exec_ext in '' $ac_executable_extensions; do
3071
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072
ac_cv_prog_CC="${ac_tool_prefix}cc"
3073
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083
if test -n "$CC"; then
3084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085
$as_echo "$CC" >&6; }
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088
$as_echo "no" >&6; }
3094
if test -z "$CC"; then
3095
# Extract the first word of "cc", so it can be a program name with args.
3096
set dummy cc; ac_word=$2
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098
$as_echo_n "checking for $ac_word... " >&6; }
3099
if test "${ac_cv_prog_CC+set}" = set; then :
3100
$as_echo_n "(cached) " >&6
3102
if test -n "$CC"; then
3103
ac_cv_prog_CC="$CC" # Let the user override the test.
3106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110
test -z "$as_dir" && as_dir=.
3111
for ac_exec_ext in '' $ac_executable_extensions; do
3112
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114
ac_prog_rejected=yes
3118
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125
if test $ac_prog_rejected = yes; then
3126
# We found a bogon in the path, so make sure we never use it.
3127
set dummy $ac_cv_prog_CC
3129
if test $# != 0; then
3130
# We chose a different compiler from the bogus one.
3131
# However, it has the same basename, so the bogon will be chosen
3132
# first if we set CC to just the basename; use the full file name.
3134
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140
if test -n "$CC"; then
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142
$as_echo "$CC" >&6; }
3144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145
$as_echo "no" >&6; }
3150
if test -z "$CC"; then
3151
if test -n "$ac_tool_prefix"; then
3152
for ac_prog in cl.exe
3154
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157
$as_echo_n "checking for $ac_word... " >&6; }
3158
if test "${ac_cv_prog_CC+set}" = set; then :
3159
$as_echo_n "(cached) " >&6
3161
if test -n "$CC"; then
3162
ac_cv_prog_CC="$CC" # Let the user override the test.
3164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168
test -z "$as_dir" && as_dir=.
3169
for ac_exec_ext in '' $ac_executable_extensions; do
3170
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
if test -n "$CC"; then
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184
$as_echo "$CC" >&6; }
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187
$as_echo "no" >&6; }
3191
test -n "$CC" && break
3194
if test -z "$CC"; then
3196
for ac_prog in cl.exe
3198
# Extract the first word of "$ac_prog", so it can be a program name with args.
3199
set dummy $ac_prog; ac_word=$2
3200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201
$as_echo_n "checking for $ac_word... " >&6; }
3202
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203
$as_echo_n "(cached) " >&6
3205
if test -n "$ac_ct_CC"; then
3206
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212
test -z "$as_dir" && as_dir=.
3213
for ac_exec_ext in '' $ac_executable_extensions; do
3214
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215
ac_cv_prog_ac_ct_CC="$ac_prog"
3216
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226
if test -n "$ac_ct_CC"; then
3227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228
$as_echo "$ac_ct_CC" >&6; }
3230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231
$as_echo "no" >&6; }
3235
test -n "$ac_ct_CC" && break
3238
if test "x$ac_ct_CC" = x; then
3241
case $cross_compiling:$ac_tool_warned in
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245
ac_tool_warned=yes ;;
3254
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256
as_fn_error "no acceptable C compiler found in \$PATH
3257
See \`config.log' for more details." "$LINENO" 5; }
3259
# Provide some information about the compiler.
3260
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263
for ac_option in --version -v -V -qversion; do
3264
{ { ac_try="$ac_compiler $ac_option >&5"
3266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267
*) ac_try_echo=$ac_try;;
3269
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270
$as_echo "$ac_try_echo"; } >&5
3271
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273
if test -s conftest.err; then
3275
... rest of stderr output deleted ...
3276
10q' conftest.err >conftest.er1
3277
cat conftest.er1 >&5
3279
rm -f conftest.er1 conftest.err
3280
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281
test $ac_status = 0; }
3284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285
/* end confdefs.h. */
3295
ac_clean_files_save=$ac_clean_files
3296
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297
# Try to create an executable without -o first, disregard a.out.
3298
# It will help us diagnose broken compilers, and finding out an intuition
3300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301
$as_echo_n "checking whether the C compiler works... " >&6; }
3302
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
# The possible output files:
3305
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
for ac_file in $ac_files
3311
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317
if { { ac_try="$ac_link_default"
3319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320
*) ac_try_echo=$ac_try;;
3322
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323
$as_echo "$ac_try_echo"; } >&5
3324
(eval "$ac_link_default") 2>&5
3326
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327
test $ac_status = 0; }; then :
3328
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3331
# so that the user can short-circuit this test for compilers unknown to
3333
for ac_file in $ac_files ''
3335
test -f "$ac_file" || continue
3337
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340
# We found the default executable, but exeext='' is most
3344
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348
# We set ac_cv_exeext here because the later test for it is not
3349
# safe: cross compilers may not add the suffix if given an `-o'
3350
# argument, so we may need to know it at that point already.
3351
# Even if this section looks crufty: it has the advantage of
3358
test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
if test -z "$ac_file"; then :
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365
$as_echo "no" >&6; }
3366
$as_echo "$as_me: failed program was:" >&5
3367
sed 's/^/| /' conftest.$ac_ext >&5
3369
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371
{ as_fn_set_status 77
3372
as_fn_error "C compiler cannot create executables
3373
See \`config.log' for more details." "$LINENO" 5; }; }
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376
$as_echo "yes" >&6; }
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379
$as_echo_n "checking for C compiler default output file name... " >&6; }
3380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381
$as_echo "$ac_file" >&6; }
3382
ac_exeext=$ac_cv_exeext
3384
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385
ac_clean_files=$ac_clean_files_save
3386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387
$as_echo_n "checking for suffix of executables... " >&6; }
3388
if { { ac_try="$ac_link"
3390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391
*) ac_try_echo=$ac_try;;
3393
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394
$as_echo "$ac_try_echo"; } >&5
3395
(eval "$ac_link") 2>&5
3397
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398
test $ac_status = 0; }; then :
3399
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3400
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401
# work properly (i.e., refer to `conftest.exe'), while it won't with
3403
for ac_file in conftest.exe conftest conftest.*; do
3404
test -f "$ac_file" || continue
3406
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415
as_fn_error "cannot compute suffix of executables: cannot compile and link
3416
See \`config.log' for more details." "$LINENO" 5; }
3418
rm -f conftest conftest$ac_cv_exeext
3419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420
$as_echo "$ac_cv_exeext" >&6; }
3422
rm -f conftest.$ac_ext
3423
EXEEXT=$ac_cv_exeext
3425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426
/* end confdefs.h. */
3431
FILE *f = fopen ("conftest.out", "w");
3432
return ferror (f) || fclose (f) != 0;
3438
ac_clean_files="$ac_clean_files conftest.out"
3439
# Check that the compiler produces executables we can run. If not, either
3440
# the compiler is broken, or we cross compile.
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442
$as_echo_n "checking whether we are cross compiling... " >&6; }
3443
if test "$cross_compiling" != yes; then
3444
{ { ac_try="$ac_link"
3446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447
*) ac_try_echo=$ac_try;;
3449
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450
$as_echo "$ac_try_echo"; } >&5
3451
(eval "$ac_link") 2>&5
3453
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454
test $ac_status = 0; }
3455
if { ac_try='./conftest$ac_cv_exeext'
3456
{ { case "(($ac_try" in
3457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458
*) ac_try_echo=$ac_try;;
3460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461
$as_echo "$ac_try_echo"; } >&5
3462
(eval "$ac_try") 2>&5
3464
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465
test $ac_status = 0; }; }; then
3468
if test "$cross_compiling" = maybe; then
3471
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473
as_fn_error "cannot run C compiled programs.
3474
If you meant to cross compile, use \`--host'.
3475
See \`config.log' for more details." "$LINENO" 5; }
3479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480
$as_echo "$cross_compiling" >&6; }
3482
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483
ac_clean_files=$ac_clean_files_save
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485
$as_echo_n "checking for suffix of object files... " >&6; }
3486
if test "${ac_cv_objext+set}" = set; then :
3487
$as_echo_n "(cached) " >&6
3489
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490
/* end confdefs.h. */
3500
rm -f conftest.o conftest.obj
3501
if { { ac_try="$ac_compile"
3503
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504
*) ac_try_echo=$ac_try;;
3506
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507
$as_echo "$ac_try_echo"; } >&5
3508
(eval "$ac_compile") 2>&5
3510
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511
test $ac_status = 0; }; then :
3512
for ac_file in conftest.o conftest.obj conftest.*; do
3513
test -f "$ac_file" || continue;
3515
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521
$as_echo "$as_me: failed program was:" >&5
3522
sed 's/^/| /' conftest.$ac_ext >&5
3524
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526
as_fn_error "cannot compute suffix of object files: cannot compile
3527
See \`config.log' for more details." "$LINENO" 5; }
3529
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532
$as_echo "$ac_cv_objext" >&6; }
3533
OBJEXT=$ac_cv_objext
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3538
$as_echo_n "(cached) " >&6
3540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541
/* end confdefs.h. */
3554
if ac_fn_c_try_compile "$LINENO"; then :
3559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565
if test $ac_compiler_gnu = yes; then
3570
ac_test_CFLAGS=${CFLAGS+set}
3571
ac_save_CFLAGS=$CFLAGS
3572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3574
if test "${ac_cv_prog_cc_g+set}" = set; then :
3575
$as_echo_n "(cached) " >&6
3577
ac_save_c_werror_flag=$ac_c_werror_flag
3578
ac_c_werror_flag=yes
3581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582
/* end confdefs.h. */
3592
if ac_fn_c_try_compile "$LINENO"; then :
3596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597
/* end confdefs.h. */
3607
if ac_fn_c_try_compile "$LINENO"; then :
3610
ac_c_werror_flag=$ac_save_c_werror_flag
3612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613
/* end confdefs.h. */
3623
if ac_fn_c_try_compile "$LINENO"; then :
3626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631
ac_c_werror_flag=$ac_save_c_werror_flag
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634
$as_echo "$ac_cv_prog_cc_g" >&6; }
3635
if test "$ac_test_CFLAGS" = set; then
3636
CFLAGS=$ac_save_CFLAGS
3637
elif test $ac_cv_prog_cc_g = yes; then
3638
if test "$GCC" = yes; then
3644
if test "$GCC" = yes; then
3650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3653
$as_echo_n "(cached) " >&6
3655
ac_cv_prog_cc_c89=no
3657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658
/* end confdefs.h. */
3661
#include <sys/types.h>
3662
#include <sys/stat.h>
3663
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3664
struct buf { int x; };
3665
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666
static char *e (p, i)
3672
static char *f (char * (*g) (char **, int), char **p, ...)
3677
s = g (p, va_arg (v,int));
3682
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3683
function prototypes and stuff, but not '\xHH' hex character constants.
3684
These don't provoke an error unfortunately, instead are silently treated
3685
as 'x'. The following induces an error, until -std is added to get
3686
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3687
array size at least. It's necessary to write '\x00'==0 to get something
3688
that's true only with -std. */
3689
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3691
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692
inside strings and character constants. */
3694
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3696
int test (int i, double x);
3697
struct s1 {int (*f) (int a);};
3698
struct s2 {int (*f) (double a);};
3699
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713
CC="$ac_save_CC $ac_arg"
3714
if ac_fn_c_try_compile "$LINENO"; then :
3715
ac_cv_prog_cc_c89=$ac_arg
3717
rm -f core conftest.err conftest.$ac_objext
3718
test "x$ac_cv_prog_cc_c89" != "xno" && break
3720
rm -f conftest.$ac_ext
3725
case "x$ac_cv_prog_cc_c89" in
3727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728
$as_echo "none needed" >&6; } ;;
3730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731
$as_echo "unsupported" >&6; } ;;
3733
CC="$CC $ac_cv_prog_cc_c89"
3734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3737
if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
ac_cpp='$CPP $CPPFLAGS'
3743
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
DEPDIR="${am__leading_dot}deps"
3748
ac_config_commands="$ac_config_commands depfiles"
3751
am_make=${MAKE-make}
3752
cat > confinc << 'END'
3754
@echo this is the am__doit target
3757
# If we don't find an include directive, just comment out the code.
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3759
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3763
# First try GNU make style include.
3764
echo "include confinc" > confmf
3765
# Ignore all kinds of additional output from `make'.
3766
case `$am_make -s -f confmf 2> /dev/null` in #(
3767
*the\ am__doit\ target*)
3773
# Now try BSD make style include.
3774
if test "$am__include" = "#"; then
3775
echo '.include "confinc"' > confmf
3776
case `$am_make -s -f confmf 2> /dev/null` in #(
3777
*the\ am__doit\ target*)
3778
am__include=.include
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3787
$as_echo "$_am_result" >&6; }
3788
rm -f confinc confmf
3790
# Check whether --enable-dependency-tracking was given.
3791
if test "${enable_dependency_tracking+set}" = set; then :
3792
enableval=$enable_dependency_tracking;
3795
if test "x$enable_dependency_tracking" != xno; then
3796
am_depcomp="$ac_aux_dir/depcomp"
3799
if test "x$enable_dependency_tracking" != xno; then
3809
depcc="$CC" am_compiler_list=
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812
$as_echo_n "checking dependency style of $depcc... " >&6; }
3813
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3814
$as_echo_n "(cached) " >&6
3816
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817
# We make a subdir and do the tests there. Otherwise we can end up
3818
# making bogus files that we don't know about and never remove. For
3819
# instance it was reported that on HP-UX the gcc test will end up
3820
# making a dummy file named `D' -- because `-MD' means `put the output
3823
# Copy depcomp to subdir because otherwise we won't find it if we're
3824
# using a relative directory.
3825
cp "$am_depcomp" conftest.dir
3827
# We will build objects and dependencies in a subdirectory because
3828
# it helps to detect inapplicable dependency modes. For instance
3829
# both Tru64's cc and ICC support -MD to output dependencies as a
3830
# side effect of compilation, but ICC will put the dependencies in
3831
# the current directory while Tru64 will put them in the object
3835
am_cv_CC_dependencies_compiler_type=none
3836
if test "$am_compiler_list" = ""; then
3837
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3840
case " $depcc " in #(
3841
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3844
for depmode in $am_compiler_list; do
3845
# Setup a source with many dependencies, because some compilers
3846
# like to wrap large dependency lists on column 80 (with \), and
3847
# we should not choose a depcomp mode which is confused by this.
3849
# We need to recreate these files for each test, as the compiler may
3850
# overwrite some of them when testing with obscure command lines.
3851
# This happens at least with the AIX C compiler.
3853
for i in 1 2 3 4 5 6; do
3854
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856
# Solaris 8's {/usr,}/bin/sh.
3857
touch sub/conftst$i.h
3859
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3862
# mode. It turns out that the SunPro C++ compiler does not properly
3863
# handle `-M -o', and we need to detect this. Also, some Intel
3864
# versions had trouble with output in subdirs
3865
am__obj=sub/conftest.${OBJEXT-o}
3866
am__minus_obj="-o $am__obj"
3869
# This depmode causes a compiler race in universal mode.
3870
test "$am__universal" = false || continue
3873
# after this tag, mechanisms are not by side-effect, so they'll
3874
# only be used when explicitly requested
3875
if test "x$enable_dependency_tracking" = xyes; then
3881
msvisualcpp | msvcmsys)
3882
# This compiler won't grok `-c -o', but also, the minuso test has
3883
# not run yet. These depmodes are late enough in the game, and
3884
# so weak that their functioning should not be impacted.
3885
am__obj=conftest.${OBJEXT-o}
3890
if depmode=$depmode \
3891
source=sub/conftest.c object=$am__obj \
3892
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894
>/dev/null 2>conftest.err &&
3895
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899
# icc doesn't choke on unknown options, it will just issue warnings
3900
# or remarks (even with -Werror). So we grep stderr for any message
3901
# that says an option was ignored or not supported.
3902
# When given -MP, icc 7.0 and 7.1 complain thusly:
3903
# icc: Command line warning: ignoring option '-M'; no argument required
3904
# The diagnosis changed in icc 8.0:
3905
# icc: Command line remark: option '-MP' not supported
3906
if (grep 'ignoring option' conftest.err ||
3907
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908
am_cv_CC_dependencies_compiler_type=$depmode
3917
am_cv_CC_dependencies_compiler_type=none
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3926
test "x$enable_dependency_tracking" != xno \
3927
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929
am__fastdepCC_FALSE='#'
3931
am__fastdepCC_TRUE='#'
3932
am__fastdepCC_FALSE=
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3938
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3940
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3941
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3942
$as_echo_n "(cached) " >&6
3944
cat >conftest.make <<\_ACEOF
3947
@echo '@@@%%%=$(MAKE)=@@@%%%'
3949
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3950
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3952
eval ac_cv_prog_make_${ac_make}_set=yes;;
3954
eval ac_cv_prog_make_${ac_make}_set=no;;
3958
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960
$as_echo "yes" >&6; }
3963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964
$as_echo "no" >&6; }
3965
SET_MAKE="MAKE=${MAKE-make}"
3968
for ac_prog in 'bison -y' byacc yacc
3970
# Extract the first word of "$ac_prog", so it can be a program name with args.
3971
set dummy $ac_prog; ac_word=$2
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973
$as_echo_n "checking for $ac_word... " >&6; }
3974
if test "${ac_cv_prog_YACC+set}" = set; then :
3975
$as_echo_n "(cached) " >&6
3977
if test -n "$YACC"; then
3978
ac_cv_prog_YACC="$YACC" # Let the user override the test.
3980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981
as_dummy="$PATH:/usr/local/bin:/usr/bin"
3982
for as_dir in $as_dummy
3985
test -z "$as_dir" && as_dir=.
3986
for ac_exec_ext in '' $ac_executable_extensions; do
3987
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988
ac_cv_prog_YACC="$ac_prog"
3989
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998
YACC=$ac_cv_prog_YACC
3999
if test -n "$YACC"; then
4000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4001
$as_echo "$YACC" >&6; }
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004
$as_echo "no" >&6; }
4008
test -n "$YACC" && break
4010
test -n "$YACC" || YACC="no"
4012
if test "x$YACC" = "xno"; then
4013
# Require bison unless y.tab.c already is built
4014
if test ! -f src/y.tab.c; then
4015
as_fn_error "Monit require bison, byacc or yacc. Download bison from http://www.gnu.org/software/bison/" "$LINENO" 5
4018
# Extract the first word of "flex", so it can be a program name with args.
4019
set dummy flex; ac_word=$2
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021
$as_echo_n "checking for $ac_word... " >&6; }
4022
if test "${ac_cv_path_FLEX+set}" = set; then :
4023
$as_echo_n "(cached) " >&6
4027
ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
4030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031
as_dummy="$PATH:/usr/local/bin:/usr/bin"
4032
for as_dir in $as_dummy
4035
test -z "$as_dir" && as_dir=.
4036
for ac_exec_ext in '' $ac_executable_extensions; do
4037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038
ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
4039
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046
test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="no"
4050
FLEX=$ac_cv_path_FLEX
4051
if test -n "$FLEX"; then
4052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4053
$as_echo "$FLEX" >&6; }
4055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056
$as_echo "no" >&6; }
4060
if test "x$FLEX" = "xno"; then
4061
# Require flex unless lex.yy.c already is built
4062
if test ! -f src/lex.yy.c; then
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: flex is required. Download from http://www.gnu.org/software/flex/" >&5
4064
$as_echo "flex is required. Download from http://www.gnu.org/software/flex/" >&6; }
4067
# Extract the first word of "pod2man", so it can be a program name with args.
4068
set dummy pod2man; ac_word=$2
4069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070
$as_echo_n "checking for $ac_word... " >&6; }
4071
if test "${ac_cv_path_POD2MAN+set}" = set; then :
4072
$as_echo_n "(cached) " >&6
4076
ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
4079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080
as_dummy="$PATH:/usr/local/bin:/usr/bin"
4081
for as_dir in $as_dummy
4084
test -z "$as_dir" && as_dir=.
4085
for ac_exec_ext in '' $ac_executable_extensions; do
4086
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087
ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
4088
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095
test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
4099
POD2MAN=$ac_cv_path_POD2MAN
4100
if test -n "$POD2MAN"; then
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
4102
$as_echo "$POD2MAN" >&6; }
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105
$as_echo "no" >&6; }
4109
if test "x$POD2MAN" = "xno"; then
4110
# Require pod2man unless monit.1 already is built
4111
if test ! -f monit.1; then
4112
as_fn_error "pod2man is required to build the monit.1 man file." "$LINENO" 5
4115
d=`date '+%B %d. %Y'`
4116
POD2MANFLAGS="--center 'User Commands' --release '${d}' --date='www.mmonit.com' --lax"
4121
# ------------------------------------------------------------------------
4123
# ------------------------------------------------------------------------
4125
# Check whether --enable-static was given.
4126
if test "${enable_static+set}" = set; then :
4127
enableval=$enable_static; p=${PACKAGE-default}
4129
yes) enable_static=yes ;;
4130
no) enable_static=no ;;
4133
# Look at the argument we got. We use all the common list separators.
4134
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135
for pkg in $enableval; do
4137
if test "X$pkg" = "X$p"; then
4158
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4159
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4164
macro_version='2.2.6b'
4165
macro_revision='1.3017'
4179
ltmain="$ac_aux_dir/ltmain.sh"
4181
# Make sure we can run config.sub.
4182
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4183
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4186
$as_echo_n "checking build system type... " >&6; }
4187
if test "${ac_cv_build+set}" = set; then :
4188
$as_echo_n "(cached) " >&6
4190
ac_build_alias=$build_alias
4191
test "x$ac_build_alias" = x &&
4192
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4193
test "x$ac_build_alias" = x &&
4194
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4195
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4196
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4200
$as_echo "$ac_cv_build" >&6; }
4201
case $ac_cv_build in
4203
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4206
ac_save_IFS=$IFS; IFS='-'
4212
# Remember, the first character of IFS is used to create $*,
4213
# except with old shells:
4216
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4220
$as_echo_n "checking host system type... " >&6; }
4221
if test "${ac_cv_host+set}" = set; then :
4222
$as_echo_n "(cached) " >&6
4224
if test "x$host_alias" = x; then
4225
ac_cv_host=$ac_cv_build
4227
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4228
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4233
$as_echo "$ac_cv_host" >&6; }
4236
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4239
ac_save_IFS=$IFS; IFS='-'
4245
# Remember, the first character of IFS is used to create $*,
4246
# except with old shells:
4249
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4253
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4254
if test "${ac_cv_path_SED+set}" = set; then :
4255
$as_echo_n "(cached) " >&6
4257
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4258
for ac_i in 1 2 3 4 5 6 7; do
4259
ac_script="$ac_script$as_nl$ac_script"
4261
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4262
{ ac_script=; unset ac_script;}
4263
if test -z "$SED"; then
4264
ac_path_SED_found=false
4265
# Loop through the user's path and test for each of PROGNAME-LIST
4266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270
test -z "$as_dir" && as_dir=.
4271
for ac_prog in sed gsed; do
4272
for ac_exec_ext in '' $ac_executable_extensions; do
4273
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4274
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4275
# Check for GNU ac_path_SED and select it if it is found.
4276
# Check for GNU $ac_path_SED
4277
case `"$ac_path_SED" --version 2>&1` in
4279
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4282
$as_echo_n 0123456789 >"conftest.in"
4285
cat "conftest.in" "conftest.in" >"conftest.tmp"
4286
mv "conftest.tmp" "conftest.in"
4287
cp "conftest.in" "conftest.nl"
4288
$as_echo '' >> "conftest.nl"
4289
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291
as_fn_arith $ac_count + 1 && ac_count=$as_val
4292
if test $ac_count -gt ${ac_path_SED_max-0}; then
4293
# Best one so far, save it but keep looking for a better one
4294
ac_cv_path_SED="$ac_path_SED"
4295
ac_path_SED_max=$ac_count
4297
# 10*(2^10) chars as input seems more than enough
4298
test $ac_count -gt 10 && break
4300
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303
$ac_path_SED_found && break 3
4308
if test -z "$ac_cv_path_SED"; then
4309
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4317
$as_echo "$ac_cv_path_SED" >&6; }
4318
SED="$ac_cv_path_SED"
4321
test -z "$SED" && SED=sed
4322
Xsed="$SED -e 1s/^X//"
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4335
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4336
if test "${ac_cv_path_GREP+set}" = set; then :
4337
$as_echo_n "(cached) " >&6
4339
if test -z "$GREP"; then
4340
ac_path_GREP_found=false
4341
# Loop through the user's path and test for each of PROGNAME-LIST
4342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346
test -z "$as_dir" && as_dir=.
4347
for ac_prog in grep ggrep; do
4348
for ac_exec_ext in '' $ac_executable_extensions; do
4349
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4350
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4351
# Check for GNU ac_path_GREP and select it if it is found.
4352
# Check for GNU $ac_path_GREP
4353
case `"$ac_path_GREP" --version 2>&1` in
4355
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358
$as_echo_n 0123456789 >"conftest.in"
4361
cat "conftest.in" "conftest.in" >"conftest.tmp"
4362
mv "conftest.tmp" "conftest.in"
4363
cp "conftest.in" "conftest.nl"
4364
$as_echo 'GREP' >> "conftest.nl"
4365
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367
as_fn_arith $ac_count + 1 && ac_count=$as_val
4368
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4369
# Best one so far, save it but keep looking for a better one
4370
ac_cv_path_GREP="$ac_path_GREP"
4371
ac_path_GREP_max=$ac_count
4373
# 10*(2^10) chars as input seems more than enough
4374
test $ac_count -gt 10 && break
4376
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379
$ac_path_GREP_found && break 3
4384
if test -z "$ac_cv_path_GREP"; then
4385
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388
ac_cv_path_GREP=$GREP
4392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4393
$as_echo "$ac_cv_path_GREP" >&6; }
4394
GREP="$ac_cv_path_GREP"
4397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4398
$as_echo_n "checking for egrep... " >&6; }
4399
if test "${ac_cv_path_EGREP+set}" = set; then :
4400
$as_echo_n "(cached) " >&6
4402
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403
then ac_cv_path_EGREP="$GREP -E"
4405
if test -z "$EGREP"; then
4406
ac_path_EGREP_found=false
4407
# Loop through the user's path and test for each of PROGNAME-LIST
4408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412
test -z "$as_dir" && as_dir=.
4413
for ac_prog in egrep; do
4414
for ac_exec_ext in '' $ac_executable_extensions; do
4415
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4417
# Check for GNU ac_path_EGREP and select it if it is found.
4418
# Check for GNU $ac_path_EGREP
4419
case `"$ac_path_EGREP" --version 2>&1` in
4421
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424
$as_echo_n 0123456789 >"conftest.in"
4427
cat "conftest.in" "conftest.in" >"conftest.tmp"
4428
mv "conftest.tmp" "conftest.in"
4429
cp "conftest.in" "conftest.nl"
4430
$as_echo 'EGREP' >> "conftest.nl"
4431
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433
as_fn_arith $ac_count + 1 && ac_count=$as_val
4434
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435
# Best one so far, save it but keep looking for a better one
4436
ac_cv_path_EGREP="$ac_path_EGREP"
4437
ac_path_EGREP_max=$ac_count
4439
# 10*(2^10) chars as input seems more than enough
4440
test $ac_count -gt 10 && break
4442
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445
$ac_path_EGREP_found && break 3
4450
if test -z "$ac_cv_path_EGREP"; then
4451
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454
ac_cv_path_EGREP=$EGREP
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4460
$as_echo "$ac_cv_path_EGREP" >&6; }
4461
EGREP="$ac_cv_path_EGREP"
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4465
$as_echo_n "checking for fgrep... " >&6; }
4466
if test "${ac_cv_path_FGREP+set}" = set; then :
4467
$as_echo_n "(cached) " >&6
4469
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4470
then ac_cv_path_FGREP="$GREP -F"
4472
if test -z "$FGREP"; then
4473
ac_path_FGREP_found=false
4474
# Loop through the user's path and test for each of PROGNAME-LIST
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479
test -z "$as_dir" && as_dir=.
4480
for ac_prog in fgrep; do
4481
for ac_exec_ext in '' $ac_executable_extensions; do
4482
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4483
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4484
# Check for GNU ac_path_FGREP and select it if it is found.
4485
# Check for GNU $ac_path_FGREP
4486
case `"$ac_path_FGREP" --version 2>&1` in
4488
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4491
$as_echo_n 0123456789 >"conftest.in"
4494
cat "conftest.in" "conftest.in" >"conftest.tmp"
4495
mv "conftest.tmp" "conftest.in"
4496
cp "conftest.in" "conftest.nl"
4497
$as_echo 'FGREP' >> "conftest.nl"
4498
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500
as_fn_arith $ac_count + 1 && ac_count=$as_val
4501
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4502
# Best one so far, save it but keep looking for a better one
4503
ac_cv_path_FGREP="$ac_path_FGREP"
4504
ac_path_FGREP_max=$ac_count
4506
# 10*(2^10) chars as input seems more than enough
4507
test $ac_count -gt 10 && break
4509
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512
$ac_path_FGREP_found && break 3
4517
if test -z "$ac_cv_path_FGREP"; then
4518
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521
ac_cv_path_FGREP=$FGREP
4526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4527
$as_echo "$ac_cv_path_FGREP" >&6; }
4528
FGREP="$ac_cv_path_FGREP"
4531
test -z "$GREP" && GREP=grep
4551
# Check whether --with-gnu-ld was given.
4552
if test "${with_gnu_ld+set}" = set; then :
4553
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4559
if test "$GCC" = yes; then
4560
# Check if gcc -print-prog-name=ld gives a path.
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4562
$as_echo_n "checking for ld used by $CC... " >&6; }
4565
# gcc leaves a trailing carriage return which upsets mingw
4566
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4568
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4571
# Accept absolute paths.
4573
re_direlt='/[^/][^/]*/\.\./'
4574
# Canonicalize the pathname of ld
4575
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4576
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4577
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4579
test -z "$LD" && LD="$ac_prog"
4582
# If it fails, then pretend we aren't using GCC.
4586
# If it is relative, then search for the first ld in PATH.
4590
elif test "$with_gnu_ld" = yes; then
4591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4592
$as_echo_n "checking for GNU ld... " >&6; }
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4595
$as_echo_n "checking for non-GNU ld... " >&6; }
4597
if test "${lt_cv_path_LD+set}" = set; then :
4598
$as_echo_n "(cached) " >&6
4600
if test -z "$LD"; then
4601
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4602
for ac_dir in $PATH; do
4604
test -z "$ac_dir" && ac_dir=.
4605
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4606
lt_cv_path_LD="$ac_dir/$ac_prog"
4607
# Check to see if the program is GNU ld. I'd rather use --version,
4608
# but apparently some variants of GNU ld only accept -v.
4609
# Break only if it was the GNU/non-GNU ld that we prefer.
4610
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4611
*GNU* | *'with BFD'*)
4612
test "$with_gnu_ld" != no && break
4615
test "$with_gnu_ld" != yes && break
4622
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4627
if test -n "$LD"; then
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4629
$as_echo "$LD" >&6; }
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632
$as_echo "no" >&6; }
4634
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4636
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4637
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4638
$as_echo_n "(cached) " >&6
4640
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4641
case `$LD -v 2>&1 </dev/null` in
4642
*GNU* | *'with BFD'*)
4643
lt_cv_prog_gnu_ld=yes
4646
lt_cv_prog_gnu_ld=no
4650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4651
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4652
with_gnu_ld=$lt_cv_prog_gnu_ld
4662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4663
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4664
if test "${lt_cv_path_NM+set}" = set; then :
4665
$as_echo_n "(cached) " >&6
4667
if test -n "$NM"; then
4668
# Let the user override the test.
4671
lt_nm_to_check="${ac_tool_prefix}nm"
4672
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4673
lt_nm_to_check="$lt_nm_to_check nm"
4675
for lt_tmp_nm in $lt_nm_to_check; do
4676
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4677
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4679
test -z "$ac_dir" && ac_dir=.
4680
tmp_nm="$ac_dir/$lt_tmp_nm"
4681
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4682
# Check to see if the nm accepts a BSD-compat flag.
4683
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4684
# nm: unknown option "B" ignored
4685
# Tru64's nm complains that /dev/null is an invalid object file
4686
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4687
*/dev/null* | *'Invalid file or object type'*)
4688
lt_cv_path_NM="$tmp_nm -B"
4692
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4694
lt_cv_path_NM="$tmp_nm -p"
4698
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4699
continue # so that we can try to find one that supports BSD flags
4708
: ${lt_cv_path_NM=no}
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4712
$as_echo "$lt_cv_path_NM" >&6; }
4713
if test "$lt_cv_path_NM" != "no"; then
4716
# Didn't find any BSD compatible name lister, look for dumpbin.
4717
if test -n "$ac_tool_prefix"; then
4718
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4720
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723
$as_echo_n "checking for $ac_word... " >&6; }
4724
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4725
$as_echo_n "(cached) " >&6
4727
if test -n "$DUMPBIN"; then
4728
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734
test -z "$as_dir" && as_dir=.
4735
for ac_exec_ext in '' $ac_executable_extensions; do
4736
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4738
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747
DUMPBIN=$ac_cv_prog_DUMPBIN
4748
if test -n "$DUMPBIN"; then
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4750
$as_echo "$DUMPBIN" >&6; }
4752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753
$as_echo "no" >&6; }
4757
test -n "$DUMPBIN" && break
4760
if test -z "$DUMPBIN"; then
4761
ac_ct_DUMPBIN=$DUMPBIN
4762
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4764
# Extract the first word of "$ac_prog", so it can be a program name with args.
4765
set dummy $ac_prog; ac_word=$2
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767
$as_echo_n "checking for $ac_word... " >&6; }
4768
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4769
$as_echo_n "(cached) " >&6
4771
if test -n "$ac_ct_DUMPBIN"; then
4772
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778
test -z "$as_dir" && as_dir=.
4779
for ac_exec_ext in '' $ac_executable_extensions; do
4780
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4782
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4792
if test -n "$ac_ct_DUMPBIN"; then
4793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4794
$as_echo "$ac_ct_DUMPBIN" >&6; }
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797
$as_echo "no" >&6; }
4801
test -n "$ac_ct_DUMPBIN" && break
4804
if test "x$ac_ct_DUMPBIN" = x; then
4807
case $cross_compiling:$ac_tool_warned in
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811
ac_tool_warned=yes ;;
4813
DUMPBIN=$ac_ct_DUMPBIN
4818
if test "$DUMPBIN" != ":"; then
4822
test -z "$NM" && NM=nm
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4830
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4831
if test "${lt_cv_nm_interface+set}" = set; then :
4832
$as_echo_n "(cached) " >&6
4834
lt_cv_nm_interface="BSD nm"
4835
echo "int some_variable = 0;" > conftest.$ac_ext
4836
(eval echo "\"\$as_me:4836: $ac_compile\"" >&5)
4837
(eval "$ac_compile" 2>conftest.err)
4838
cat conftest.err >&5
4839
(eval echo "\"\$as_me:4839: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4840
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4841
cat conftest.err >&5
4842
(eval echo "\"\$as_me:4842: output\"" >&5)
4843
cat conftest.out >&5
4844
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4845
lt_cv_nm_interface="MS dumpbin"
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4850
$as_echo "$lt_cv_nm_interface" >&6; }
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4853
$as_echo_n "checking whether ln -s works... " >&6; }
4855
if test "$LN_S" = "ln -s"; then
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857
$as_echo "yes" >&6; }
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4860
$as_echo "no, using $LN_S" >&6; }
4863
# find the maximum length of command line arguments
4864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4865
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4866
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4867
$as_echo_n "(cached) " >&6
4874
# On DJGPP, this test can blow up pretty badly due to problems in libc
4875
# (any single argument exceeding 2000 bytes causes a buffer overrun
4876
# during glob expansion). Even if it were fixed, the result of this
4877
# check would be larger than it should be.
4878
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4882
# Under GNU Hurd, this test is not required because there is
4883
# no limit to the length of command line arguments.
4884
# Libtool will interpret -1 as no limit whatsoever
4885
lt_cv_sys_max_cmd_len=-1;
4888
cygwin* | mingw* | cegcc*)
4889
# On Win9x/ME, this test blows up -- it succeeds, but takes
4890
# about 5 minutes as the teststring grows exponentially.
4891
# Worse, since 9x/ME are not pre-emptively multitasking,
4892
# you end up with a "frozen" computer, even though with patience
4893
# the test eventually succeeds (with a max line length of 256k).
4894
# Instead, let's just punt: use the minimum linelength reported by
4895
# all of the supported platforms: 8192 (on NT/2K/XP).
4896
lt_cv_sys_max_cmd_len=8192;
4900
# On AmigaOS with pdksh, this test takes hours, literally.
4901
# So we just punt and use a minimum line length of 8192.
4902
lt_cv_sys_max_cmd_len=8192;
4905
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4906
# This has been around since 386BSD, at least. Likely further.
4907
if test -x /sbin/sysctl; then
4908
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4909
elif test -x /usr/sbin/sysctl; then
4910
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4912
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4914
# And add a safety zone
4915
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4920
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4921
lt_cv_sys_max_cmd_len=196608
4925
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4926
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4927
# nice to cause kernel panics so lets avoid the loop below.
4928
# First set a reasonable default.
4929
lt_cv_sys_max_cmd_len=16384
4931
if test -x /sbin/sysconfig; then
4932
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4933
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4938
lt_cv_sys_max_cmd_len=102400
4940
sysv5* | sco5v6* | sysv4.2uw2*)
4941
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4942
if test -n "$kargmax"; then
4943
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4945
lt_cv_sys_max_cmd_len=32768
4949
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4950
if test -n "$lt_cv_sys_max_cmd_len"; then
4951
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4952
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4954
# Make teststring a little bigger before we do anything with it.
4955
# a 1K string should be a reasonable start.
4956
for i in 1 2 3 4 5 6 7 8 ; do
4957
teststring=$teststring$teststring
4959
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4960
# If test is not a shell built-in, we'll probably end up computing a
4961
# maximum length that is only half of the actual maximum length, but
4963
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4964
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4965
test $i != 17 # 1/2 MB should be enough
4968
teststring=$teststring$teststring
4970
# Only check the string length outside the loop.
4971
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4973
# Add a significant safety factor because C++ compilers can tack on
4974
# massive amounts of additional arguments before passing them to the
4975
# linker. It appears as though 1/2 is a usable value.
4976
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983
if test -n $lt_cv_sys_max_cmd_len ; then
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4985
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4988
$as_echo "none" >&6; }
4990
max_cmd_len=$lt_cv_sys_max_cmd_len
5001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5002
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5003
# Try some XSI features
5006
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5008
&& eval 'test $(( 1 + 1 )) -eq 2 \
5009
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5012
$as_echo "$xsi_shell" >&6; }
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5016
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5018
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5020
&& lt_shell_append=yes
5021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5022
$as_echo "$lt_shell_append" >&6; }
5025
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035
# test EBCDIC or ASCII
5036
case `echo X|tr X '\101'` in
5037
A) # ASCII based system
5038
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5039
lt_SP2NL='tr \040 \012'
5040
lt_NL2SP='tr \015\012 \040\040'
5042
*) # EBCDIC based system
5043
lt_SP2NL='tr \100 \n'
5044
lt_NL2SP='tr \r\n \100\100'
5056
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5057
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5058
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5059
$as_echo_n "(cached) " >&6
5061
lt_cv_ld_reload_flag='-r'
5063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5064
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5065
reload_flag=$lt_cv_ld_reload_flag
5066
case $reload_flag in
5068
*) reload_flag=" $reload_flag" ;;
5070
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073
if test "$GCC" = yes; then
5074
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5076
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5089
if test -n "$ac_tool_prefix"; then
5090
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5091
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093
$as_echo_n "checking for $ac_word... " >&6; }
5094
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5095
$as_echo_n "(cached) " >&6
5097
if test -n "$OBJDUMP"; then
5098
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104
test -z "$as_dir" && as_dir=.
5105
for ac_exec_ext in '' $ac_executable_extensions; do
5106
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5108
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117
OBJDUMP=$ac_cv_prog_OBJDUMP
5118
if test -n "$OBJDUMP"; then
5119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5120
$as_echo "$OBJDUMP" >&6; }
5122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123
$as_echo "no" >&6; }
5128
if test -z "$ac_cv_prog_OBJDUMP"; then
5129
ac_ct_OBJDUMP=$OBJDUMP
5130
# Extract the first word of "objdump", so it can be a program name with args.
5131
set dummy objdump; ac_word=$2
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133
$as_echo_n "checking for $ac_word... " >&6; }
5134
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5135
$as_echo_n "(cached) " >&6
5137
if test -n "$ac_ct_OBJDUMP"; then
5138
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144
test -z "$as_dir" && as_dir=.
5145
for ac_exec_ext in '' $ac_executable_extensions; do
5146
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5148
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5158
if test -n "$ac_ct_OBJDUMP"; then
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5160
$as_echo "$ac_ct_OBJDUMP" >&6; }
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163
$as_echo "no" >&6; }
5166
if test "x$ac_ct_OBJDUMP" = x; then
5169
case $cross_compiling:$ac_tool_warned in
5171
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173
ac_tool_warned=yes ;;
5175
OBJDUMP=$ac_ct_OBJDUMP
5178
OBJDUMP="$ac_cv_prog_OBJDUMP"
5181
test -z "$OBJDUMP" && OBJDUMP=objdump
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5192
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5193
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5194
$as_echo_n "(cached) " >&6
5196
lt_cv_file_magic_cmd='$MAGIC_CMD'
5197
lt_cv_file_magic_test_file=
5198
lt_cv_deplibs_check_method='unknown'
5199
# Need to set the preceding variable on all platforms that support
5200
# interlibrary dependencies.
5201
# 'none' -- dependencies not supported.
5202
# `unknown' -- same as none, but documents that we really don't know.
5203
# 'pass_all' -- all dependencies passed with no checks.
5204
# 'test_compile' -- check by making test program.
5205
# 'file_magic [[regex]]' -- check by looking for files in library path
5206
# which responds to the $file_magic_cmd with a given extended regex.
5207
# If you have `file' or equivalent on your system and you're not sure
5208
# whether `pass_all' will *always* work, you probably want this one.
5212
lt_cv_deplibs_check_method=pass_all
5216
lt_cv_deplibs_check_method=pass_all
5220
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5221
lt_cv_file_magic_cmd='/usr/bin/file -L'
5222
lt_cv_file_magic_test_file=/shlib/libc.so
5226
# func_win32_libid is a shell function defined in ltmain.sh
5227
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5228
lt_cv_file_magic_cmd='func_win32_libid'
5232
# Base MSYS/MinGW do not provide the 'file' command needed by
5233
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5234
# unless we find 'file', for example because we are cross-compiling.
5235
if ( file / ) >/dev/null 2>&1; then
5236
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237
lt_cv_file_magic_cmd='func_win32_libid'
5239
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5240
lt_cv_file_magic_cmd='$OBJDUMP -f'
5245
# use the weaker test based on 'objdump'. See mingw*.
5246
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5247
lt_cv_file_magic_cmd='$OBJDUMP -f'
5250
darwin* | rhapsody*)
5251
lt_cv_deplibs_check_method=pass_all
5254
freebsd* | dragonfly*)
5255
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5258
# Not sure whether the presence of OpenBSD here was a mistake.
5259
# Let's accept both of them until this is cleared up.
5260
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5261
lt_cv_file_magic_cmd=/usr/bin/file
5262
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5266
lt_cv_deplibs_check_method=pass_all
5271
lt_cv_deplibs_check_method=pass_all
5274
hpux10.20* | hpux11*)
5275
lt_cv_file_magic_cmd=/usr/bin/file
5278
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5279
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5282
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]'
5283
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5286
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5287
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5293
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5294
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5297
irix5* | irix6* | nonstopux*)
5299
*-32|*"-32 ") libmagic=32-bit;;
5300
*-n32|*"-n32 ") libmagic=N32;;
5301
*-64|*"-64 ") libmagic=64-bit;;
5302
*) libmagic=never-match;;
5304
lt_cv_deplibs_check_method=pass_all
5307
# This must be Linux ELF.
5308
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5309
lt_cv_deplibs_check_method=pass_all
5312
netbsd* | netbsdelf*-gnu)
5313
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5314
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5316
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5321
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5322
lt_cv_file_magic_cmd=/usr/bin/file
5323
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5327
lt_cv_deplibs_check_method=pass_all
5331
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5332
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5334
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5338
osf3* | osf4* | osf5*)
5339
lt_cv_deplibs_check_method=pass_all
5343
lt_cv_deplibs_check_method=pass_all
5347
lt_cv_deplibs_check_method=pass_all
5350
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5351
lt_cv_deplibs_check_method=pass_all
5355
case $host_vendor in
5357
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]'
5358
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5361
lt_cv_deplibs_check_method=pass_all
5364
lt_cv_file_magic_cmd='/bin/file'
5365
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5368
lt_cv_file_magic_cmd='/bin/file'
5369
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5370
lt_cv_file_magic_test_file=/lib/libc.so
5373
lt_cv_deplibs_check_method=pass_all
5376
lt_cv_deplibs_check_method=pass_all
5382
lt_cv_deplibs_check_method=pass_all
5387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5388
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5389
file_magic_cmd=$lt_cv_file_magic_cmd
5390
deplibs_check_method=$lt_cv_deplibs_check_method
5391
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5404
if test -n "$ac_tool_prefix"; then
5405
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5406
set dummy ${ac_tool_prefix}ar; ac_word=$2
5407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408
$as_echo_n "checking for $ac_word... " >&6; }
5409
if test "${ac_cv_prog_AR+set}" = set; then :
5410
$as_echo_n "(cached) " >&6
5412
if test -n "$AR"; then
5413
ac_cv_prog_AR="$AR" # Let the user override the test.
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419
test -z "$as_dir" && as_dir=.
5420
for ac_exec_ext in '' $ac_executable_extensions; do
5421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422
ac_cv_prog_AR="${ac_tool_prefix}ar"
5423
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433
if test -n "$AR"; then
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5435
$as_echo "$AR" >&6; }
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438
$as_echo "no" >&6; }
5443
if test -z "$ac_cv_prog_AR"; then
5445
# Extract the first word of "ar", so it can be a program name with args.
5446
set dummy ar; ac_word=$2
5447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448
$as_echo_n "checking for $ac_word... " >&6; }
5449
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5450
$as_echo_n "(cached) " >&6
5452
if test -n "$ac_ct_AR"; then
5453
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459
test -z "$as_dir" && as_dir=.
5460
for ac_exec_ext in '' $ac_executable_extensions; do
5461
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462
ac_cv_prog_ac_ct_AR="ar"
5463
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5473
if test -n "$ac_ct_AR"; then
5474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5475
$as_echo "$ac_ct_AR" >&6; }
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478
$as_echo "no" >&6; }
5481
if test "x$ac_ct_AR" = x; then
5484
case $cross_compiling:$ac_tool_warned in
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488
ac_tool_warned=yes ;;
5496
test -z "$AR" && AR=ar
5497
test -z "$AR_FLAGS" && AR_FLAGS=cru
5509
if test -n "$ac_tool_prefix"; then
5510
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5511
set dummy ${ac_tool_prefix}strip; ac_word=$2
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513
$as_echo_n "checking for $ac_word... " >&6; }
5514
if test "${ac_cv_prog_STRIP+set}" = set; then :
5515
$as_echo_n "(cached) " >&6
5517
if test -n "$STRIP"; then
5518
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524
test -z "$as_dir" && as_dir=.
5525
for ac_exec_ext in '' $ac_executable_extensions; do
5526
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5528
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537
STRIP=$ac_cv_prog_STRIP
5538
if test -n "$STRIP"; then
5539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5540
$as_echo "$STRIP" >&6; }
5542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543
$as_echo "no" >&6; }
5548
if test -z "$ac_cv_prog_STRIP"; then
5550
# Extract the first word of "strip", so it can be a program name with args.
5551
set dummy strip; ac_word=$2
5552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553
$as_echo_n "checking for $ac_word... " >&6; }
5554
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5555
$as_echo_n "(cached) " >&6
5557
if test -n "$ac_ct_STRIP"; then
5558
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564
test -z "$as_dir" && as_dir=.
5565
for ac_exec_ext in '' $ac_executable_extensions; do
5566
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567
ac_cv_prog_ac_ct_STRIP="strip"
5568
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5578
if test -n "$ac_ct_STRIP"; then
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5580
$as_echo "$ac_ct_STRIP" >&6; }
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583
$as_echo "no" >&6; }
5586
if test "x$ac_ct_STRIP" = x; then
5589
case $cross_compiling:$ac_tool_warned in
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593
ac_tool_warned=yes ;;
5598
STRIP="$ac_cv_prog_STRIP"
5601
test -z "$STRIP" && STRIP=:
5608
if test -n "$ac_tool_prefix"; then
5609
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5610
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612
$as_echo_n "checking for $ac_word... " >&6; }
5613
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5614
$as_echo_n "(cached) " >&6
5616
if test -n "$RANLIB"; then
5617
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623
test -z "$as_dir" && as_dir=.
5624
for ac_exec_ext in '' $ac_executable_extensions; do
5625
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5627
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636
RANLIB=$ac_cv_prog_RANLIB
5637
if test -n "$RANLIB"; then
5638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5639
$as_echo "$RANLIB" >&6; }
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642
$as_echo "no" >&6; }
5647
if test -z "$ac_cv_prog_RANLIB"; then
5648
ac_ct_RANLIB=$RANLIB
5649
# Extract the first word of "ranlib", so it can be a program name with args.
5650
set dummy ranlib; ac_word=$2
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652
$as_echo_n "checking for $ac_word... " >&6; }
5653
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5654
$as_echo_n "(cached) " >&6
5656
if test -n "$ac_ct_RANLIB"; then
5657
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663
test -z "$as_dir" && as_dir=.
5664
for ac_exec_ext in '' $ac_executable_extensions; do
5665
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666
ac_cv_prog_ac_ct_RANLIB="ranlib"
5667
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677
if test -n "$ac_ct_RANLIB"; then
5678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5679
$as_echo "$ac_ct_RANLIB" >&6; }
5681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682
$as_echo "no" >&6; }
5685
if test "x$ac_ct_RANLIB" = x; then
5688
case $cross_compiling:$ac_tool_warned in
5690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692
ac_tool_warned=yes ;;
5694
RANLIB=$ac_ct_RANLIB
5697
RANLIB="$ac_cv_prog_RANLIB"
5700
test -z "$RANLIB" && RANLIB=:
5707
# Determine commands to create old-style static archives.
5708
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5709
old_postinstall_cmds='chmod 644 $oldlib'
5710
old_postuninstall_cmds=
5712
if test -n "$RANLIB"; then
5715
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5718
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5721
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5757
# If no C compiler was specified, use CC.
5760
# If no C compiler flags were specified, use CFLAGS.
5761
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5763
# Allow CC to be a program name with arguments.
5767
# Check for command to grab the raw symbol name followed by C symbol from nm.
5768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5769
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5770
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5771
$as_echo_n "(cached) " >&6
5774
# These are sane defaults that work on at least a few old systems.
5775
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5777
# Character class describing NM global symbol codes.
5778
symcode='[BCDEGRST]'
5780
# Regexp to match symbols that can be accessed directly from C.
5781
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5783
# Define system-specific variables.
5788
cygwin* | mingw* | pw32* | cegcc*)
5789
symcode='[ABCDGISTW]'
5792
if test "$host_cpu" = ia64; then
5793
symcode='[ABCDEGRST]'
5797
symcode='[BCDEGRST]'
5800
symcode='[BCDEGQRST]'
5811
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5819
# If we're using GNU nm, then use its standard symbol codes.
5820
case `$NM -V 2>&1` in
5821
*GNU* | *'with BFD'*)
5822
symcode='[ABCDGIRSTW]' ;;
5825
# Transform an extracted symbol line into a proper C declaration.
5826
# Some systems (esp. on ia64) link data and code symbols differently,
5827
# so use this general approach.
5828
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5830
# Transform an extracted symbol line into symbol name and symbol address
5831
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5832
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5834
# Handle CRLF in mingw tool chain
5838
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5842
# Try without a prefix underscore, then with it.
5843
for ac_symprfx in "" "_"; do
5845
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5846
symxfrm="\\1 $ac_symprfx\\2 \\2"
5848
# Write the raw and C identifiers.
5849
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5850
# Fake it for dumpbin and say T for any non-static function
5851
# and D for any global variable.
5852
# Also find C++ and __fastcall symbols from MSVC++,
5853
# which start with @ or ?.
5854
lt_cv_sys_global_symbol_pipe="$AWK '"\
5855
" {last_section=section; section=\$ 3};"\
5856
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5857
" \$ 0!~/External *\|/{next};"\
5858
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5859
" {if(hide[section]) next};"\
5860
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5861
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5862
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5863
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5864
" ' prfx=^$ac_symprfx"
5866
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5869
# Check to see that the pipe works correctly.
5873
cat > conftest.$ac_ext <<_LT_EOF
5878
void nm_test_func(void);
5879
void nm_test_func(void){}
5883
int main(){nm_test_var='a';nm_test_func();return(0);}
5886
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5887
(eval $ac_compile) 2>&5
5889
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890
test $ac_status = 0; }; then
5891
# Now try to grab the symbols.
5893
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5894
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5896
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897
test $ac_status = 0; } && test -s "$nlist"; then
5898
# Try sorting and uniquifying the output.
5899
if sort "$nlist" | uniq > "$nlist"T; then
5900
mv -f "$nlist"T "$nlist"
5905
# Make sure that we snagged all the symbols we need.
5906
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5907
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5908
cat <<_LT_EOF > conftest.$ac_ext
5914
# Now generate the symbol file.
5915
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5917
cat <<_LT_EOF >> conftest.$ac_ext
5919
/* The mapping between symbol names and symbols. */
5924
lt__PROGRAM__LTX_preloaded_symbols[] =
5926
{ "@PROGRAM@", (void *) 0 },
5928
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5929
cat <<\_LT_EOF >> conftest.$ac_ext
5933
/* This works around a problem in FreeBSD linker */
5934
#ifdef FREEBSD_WORKAROUND
5935
static const void *lt_preloaded_setup() {
5936
return lt__PROGRAM__LTX_preloaded_symbols;
5944
# Now try linking the two files.
5945
mv conftest.$ac_objext conftstm.$ac_objext
5946
lt_save_LIBS="$LIBS"
5947
lt_save_CFLAGS="$CFLAGS"
5948
LIBS="conftstm.$ac_objext"
5949
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5950
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5951
(eval $ac_link) 2>&5
5953
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5957
LIBS="$lt_save_LIBS"
5958
CFLAGS="$lt_save_CFLAGS"
5960
echo "cannot find nm_test_func in $nlist" >&5
5963
echo "cannot find nm_test_var in $nlist" >&5
5966
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5969
echo "$progname: failed program was:" >&5
5970
cat conftest.$ac_ext >&5
5972
rm -rf conftest* conftst*
5974
# Do not use the global_symbol_pipe unless it works.
5975
if test "$pipe_works" = yes; then
5978
lt_cv_sys_global_symbol_pipe=
5984
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5985
lt_cv_sys_global_symbol_to_cdecl=
5987
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5989
$as_echo "failed" >&6; }
5991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5992
$as_echo "ok" >&6; }
6017
# Check whether --enable-libtool-lock was given.
6018
if test "${enable_libtool_lock+set}" = set; then :
6019
enableval=$enable_libtool_lock;
6022
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6024
# Some flags need to be propagated to the compiler or linker for good
6028
# Find out which ABI we are using.
6029
echo 'int i;' > conftest.$ac_ext
6030
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6031
(eval $ac_compile) 2>&5
6033
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034
test $ac_status = 0; }; then
6035
case `/usr/bin/file conftest.$ac_objext` in
6047
# Find out which ABI we are using.
6048
echo '#line 6048 "configure"' > conftest.$ac_ext
6049
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6050
(eval $ac_compile) 2>&5
6052
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053
test $ac_status = 0; }; then
6054
if test "$lt_cv_prog_gnu_ld" = yes; then
6055
case `/usr/bin/file conftest.$ac_objext` in
6057
LD="${LD-ld} -melf32bsmip"
6060
LD="${LD-ld} -melf32bmipn32"
6063
LD="${LD-ld} -melf64bmip"
6067
case `/usr/bin/file conftest.$ac_objext` in
6083
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6084
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6085
# Find out which ABI we are using.
6086
echo 'int i;' > conftest.$ac_ext
6087
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6088
(eval $ac_compile) 2>&5
6090
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091
test $ac_status = 0; }; then
6092
case `/usr/bin/file conftest.o` in
6095
x86_64-*kfreebsd*-gnu)
6096
LD="${LD-ld} -m elf_i386_fbsd"
6099
LD="${LD-ld} -m elf_i386"
6101
ppc64-*linux*|powerpc64-*linux*)
6102
LD="${LD-ld} -m elf32ppclinux"
6105
LD="${LD-ld} -m elf_s390"
6108
LD="${LD-ld} -m elf32_sparc"
6114
x86_64-*kfreebsd*-gnu)
6115
LD="${LD-ld} -m elf_x86_64_fbsd"
6118
LD="${LD-ld} -m elf_x86_64"
6120
ppc*-*linux*|powerpc*-*linux*)
6121
LD="${LD-ld} -m elf64ppc"
6123
s390*-*linux*|s390*-*tpf*)
6124
LD="${LD-ld} -m elf64_s390"
6127
LD="${LD-ld} -m elf64_sparc"
6137
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6138
SAVE_CFLAGS="$CFLAGS"
6139
CFLAGS="$CFLAGS -belf"
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6141
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6142
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6143
$as_echo_n "(cached) " >&6
6146
ac_cpp='$CPP $CPPFLAGS'
6147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152
/* end confdefs.h. */
6162
if ac_fn_c_try_link "$LINENO"; then :
6163
lt_cv_cc_needs_belf=yes
6165
lt_cv_cc_needs_belf=no
6167
rm -f core conftest.err conftest.$ac_objext \
6168
conftest$ac_exeext conftest.$ac_ext
6170
ac_cpp='$CPP $CPPFLAGS'
6171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6177
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6178
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6179
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6180
CFLAGS="$SAVE_CFLAGS"
6184
# Find out which ABI we are using.
6185
echo 'int i;' > conftest.$ac_ext
6186
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6187
(eval $ac_compile) 2>&5
6189
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190
test $ac_status = 0; }; then
6191
case `/usr/bin/file conftest.o` in
6193
case $lt_cv_prog_gnu_ld in
6194
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6196
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6208
need_locks="$enable_libtool_lock"
6212
rhapsody* | darwin*)
6213
if test -n "$ac_tool_prefix"; then
6214
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6215
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217
$as_echo_n "checking for $ac_word... " >&6; }
6218
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6219
$as_echo_n "(cached) " >&6
6221
if test -n "$DSYMUTIL"; then
6222
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228
test -z "$as_dir" && as_dir=.
6229
for ac_exec_ext in '' $ac_executable_extensions; do
6230
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6232
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6242
if test -n "$DSYMUTIL"; then
6243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6244
$as_echo "$DSYMUTIL" >&6; }
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247
$as_echo "no" >&6; }
6252
if test -z "$ac_cv_prog_DSYMUTIL"; then
6253
ac_ct_DSYMUTIL=$DSYMUTIL
6254
# Extract the first word of "dsymutil", so it can be a program name with args.
6255
set dummy dsymutil; ac_word=$2
6256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257
$as_echo_n "checking for $ac_word... " >&6; }
6258
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6259
$as_echo_n "(cached) " >&6
6261
if test -n "$ac_ct_DSYMUTIL"; then
6262
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268
test -z "$as_dir" && as_dir=.
6269
for ac_exec_ext in '' $ac_executable_extensions; do
6270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6272
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6282
if test -n "$ac_ct_DSYMUTIL"; then
6283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6284
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287
$as_echo "no" >&6; }
6290
if test "x$ac_ct_DSYMUTIL" = x; then
6293
case $cross_compiling:$ac_tool_warned in
6295
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297
ac_tool_warned=yes ;;
6299
DSYMUTIL=$ac_ct_DSYMUTIL
6302
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6305
if test -n "$ac_tool_prefix"; then
6306
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6307
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309
$as_echo_n "checking for $ac_word... " >&6; }
6310
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6311
$as_echo_n "(cached) " >&6
6313
if test -n "$NMEDIT"; then
6314
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320
test -z "$as_dir" && as_dir=.
6321
for ac_exec_ext in '' $ac_executable_extensions; do
6322
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6324
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333
NMEDIT=$ac_cv_prog_NMEDIT
6334
if test -n "$NMEDIT"; then
6335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6336
$as_echo "$NMEDIT" >&6; }
6338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339
$as_echo "no" >&6; }
6344
if test -z "$ac_cv_prog_NMEDIT"; then
6345
ac_ct_NMEDIT=$NMEDIT
6346
# Extract the first word of "nmedit", so it can be a program name with args.
6347
set dummy nmedit; ac_word=$2
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349
$as_echo_n "checking for $ac_word... " >&6; }
6350
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6351
$as_echo_n "(cached) " >&6
6353
if test -n "$ac_ct_NMEDIT"; then
6354
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360
test -z "$as_dir" && as_dir=.
6361
for ac_exec_ext in '' $ac_executable_extensions; do
6362
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6364
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6374
if test -n "$ac_ct_NMEDIT"; then
6375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6376
$as_echo "$ac_ct_NMEDIT" >&6; }
6378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379
$as_echo "no" >&6; }
6382
if test "x$ac_ct_NMEDIT" = x; then
6385
case $cross_compiling:$ac_tool_warned in
6387
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389
ac_tool_warned=yes ;;
6391
NMEDIT=$ac_ct_NMEDIT
6394
NMEDIT="$ac_cv_prog_NMEDIT"
6397
if test -n "$ac_tool_prefix"; then
6398
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6399
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401
$as_echo_n "checking for $ac_word... " >&6; }
6402
if test "${ac_cv_prog_LIPO+set}" = set; then :
6403
$as_echo_n "(cached) " >&6
6405
if test -n "$LIPO"; then
6406
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412
test -z "$as_dir" && as_dir=.
6413
for ac_exec_ext in '' $ac_executable_extensions; do
6414
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6416
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425
LIPO=$ac_cv_prog_LIPO
6426
if test -n "$LIPO"; then
6427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6428
$as_echo "$LIPO" >&6; }
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431
$as_echo "no" >&6; }
6436
if test -z "$ac_cv_prog_LIPO"; then
6438
# Extract the first word of "lipo", so it can be a program name with args.
6439
set dummy lipo; ac_word=$2
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441
$as_echo_n "checking for $ac_word... " >&6; }
6442
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6443
$as_echo_n "(cached) " >&6
6445
if test -n "$ac_ct_LIPO"; then
6446
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452
test -z "$as_dir" && as_dir=.
6453
for ac_exec_ext in '' $ac_executable_extensions; do
6454
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455
ac_cv_prog_ac_ct_LIPO="lipo"
6456
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6466
if test -n "$ac_ct_LIPO"; then
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6468
$as_echo "$ac_ct_LIPO" >&6; }
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471
$as_echo "no" >&6; }
6474
if test "x$ac_ct_LIPO" = x; then
6477
case $cross_compiling:$ac_tool_warned in
6479
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481
ac_tool_warned=yes ;;
6486
LIPO="$ac_cv_prog_LIPO"
6489
if test -n "$ac_tool_prefix"; then
6490
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6491
set dummy ${ac_tool_prefix}otool; ac_word=$2
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493
$as_echo_n "checking for $ac_word... " >&6; }
6494
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6495
$as_echo_n "(cached) " >&6
6497
if test -n "$OTOOL"; then
6498
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504
test -z "$as_dir" && as_dir=.
6505
for ac_exec_ext in '' $ac_executable_extensions; do
6506
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6508
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517
OTOOL=$ac_cv_prog_OTOOL
6518
if test -n "$OTOOL"; then
6519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6520
$as_echo "$OTOOL" >&6; }
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523
$as_echo "no" >&6; }
6528
if test -z "$ac_cv_prog_OTOOL"; then
6530
# Extract the first word of "otool", so it can be a program name with args.
6531
set dummy otool; ac_word=$2
6532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533
$as_echo_n "checking for $ac_word... " >&6; }
6534
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6535
$as_echo_n "(cached) " >&6
6537
if test -n "$ac_ct_OTOOL"; then
6538
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544
test -z "$as_dir" && as_dir=.
6545
for ac_exec_ext in '' $ac_executable_extensions; do
6546
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547
ac_cv_prog_ac_ct_OTOOL="otool"
6548
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6558
if test -n "$ac_ct_OTOOL"; then
6559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6560
$as_echo "$ac_ct_OTOOL" >&6; }
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563
$as_echo "no" >&6; }
6566
if test "x$ac_ct_OTOOL" = x; then
6569
case $cross_compiling:$ac_tool_warned in
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573
ac_tool_warned=yes ;;
6578
OTOOL="$ac_cv_prog_OTOOL"
6581
if test -n "$ac_tool_prefix"; then
6582
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6583
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585
$as_echo_n "checking for $ac_word... " >&6; }
6586
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6587
$as_echo_n "(cached) " >&6
6589
if test -n "$OTOOL64"; then
6590
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596
test -z "$as_dir" && as_dir=.
6597
for ac_exec_ext in '' $ac_executable_extensions; do
6598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609
OTOOL64=$ac_cv_prog_OTOOL64
6610
if test -n "$OTOOL64"; then
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6612
$as_echo "$OTOOL64" >&6; }
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615
$as_echo "no" >&6; }
6620
if test -z "$ac_cv_prog_OTOOL64"; then
6621
ac_ct_OTOOL64=$OTOOL64
6622
# Extract the first word of "otool64", so it can be a program name with args.
6623
set dummy otool64; ac_word=$2
6624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625
$as_echo_n "checking for $ac_word... " >&6; }
6626
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6627
$as_echo_n "(cached) " >&6
6629
if test -n "$ac_ct_OTOOL64"; then
6630
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636
test -z "$as_dir" && as_dir=.
6637
for ac_exec_ext in '' $ac_executable_extensions; do
6638
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639
ac_cv_prog_ac_ct_OTOOL64="otool64"
6640
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6650
if test -n "$ac_ct_OTOOL64"; then
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6652
$as_echo "$ac_ct_OTOOL64" >&6; }
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655
$as_echo "no" >&6; }
6658
if test "x$ac_ct_OTOOL64" = x; then
6661
case $cross_compiling:$ac_tool_warned in
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665
ac_tool_warned=yes ;;
6667
OTOOL64=$ac_ct_OTOOL64
6670
OTOOL64="$ac_cv_prog_OTOOL64"
6699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6700
$as_echo_n "checking for -single_module linker flag... " >&6; }
6701
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6702
$as_echo_n "(cached) " >&6
6704
lt_cv_apple_cc_single_mod=no
6705
if test -z "${LT_MULTI_MODULE}"; then
6706
# By default we will add the -single_module flag. You can override
6707
# by either setting the environment variable LT_MULTI_MODULE
6708
# non-empty at configure time, or by adding -multi_module to the
6710
rm -rf libconftest.dylib*
6711
echo "int foo(void){return 1;}" > conftest.c
6712
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6713
-dynamiclib -Wl,-single_module conftest.c" >&5
6714
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6715
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6717
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6718
lt_cv_apple_cc_single_mod=yes
6720
cat conftest.err >&5
6722
rm -rf libconftest.dylib*
6726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6727
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6729
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6730
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6731
$as_echo_n "(cached) " >&6
6733
lt_cv_ld_exported_symbols_list=no
6734
save_LDFLAGS=$LDFLAGS
6735
echo "_main" > conftest.sym
6736
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738
/* end confdefs.h. */
6748
if ac_fn_c_try_link "$LINENO"; then :
6749
lt_cv_ld_exported_symbols_list=yes
6751
lt_cv_ld_exported_symbols_list=no
6753
rm -f core conftest.err conftest.$ac_objext \
6754
conftest$ac_exeext conftest.$ac_ext
6755
LDFLAGS="$save_LDFLAGS"
6758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6759
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6761
rhapsody* | darwin1.[012])
6762
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6764
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6765
darwin*) # darwin 5.x on
6766
# if running on 10.5 or later, the deployment target defaults
6767
# to the OS version, if on x86, and 10.4, the deployment
6768
# target defaults to 10.4. Don't you love it?
6769
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6770
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6771
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6773
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6775
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6779
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6780
_lt_dar_single_mod='$single_module'
6782
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6783
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6785
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6787
if test "$DSYMUTIL" != ":"; then
6788
_lt_dsymutil='~$DSYMUTIL $lib || :'
6796
ac_cpp='$CPP $CPPFLAGS'
6797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6801
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6802
# On Suns, sometimes $CPP names a directory.
6803
if test -n "$CPP" && test -d "$CPP"; then
6806
if test -z "$CPP"; then
6807
if test "${ac_cv_prog_CPP+set}" = set; then :
6808
$as_echo_n "(cached) " >&6
6810
# Double quotes because CPP needs to be expanded
6811
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6814
for ac_c_preproc_warn_flag in '' yes
6816
# Use a header file that comes with gcc, so configuring glibc
6817
# with a fresh cross-compiler works.
6818
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6819
# <limits.h> exists even on freestanding compilers.
6820
# On the NeXT, cc -E runs the code through the compiler's parser,
6821
# not just through cpp. "Syntax error" is here to catch this case.
6822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823
/* end confdefs.h. */
6825
# include <limits.h>
6827
# include <assert.h>
6831
if ac_fn_c_try_cpp "$LINENO"; then :
6834
# Broken: fails on valid input.
6837
rm -f conftest.err conftest.$ac_ext
6839
# OK, works on sane cases. Now check whether nonexistent headers
6840
# can be detected and how.
6841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842
/* end confdefs.h. */
6843
#include <ac_nonexistent.h>
6845
if ac_fn_c_try_cpp "$LINENO"; then :
6846
# Broken: success on invalid input.
6849
# Passes both tests.
6853
rm -f conftest.err conftest.$ac_ext
6856
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6857
rm -f conftest.err conftest.$ac_ext
6858
if $ac_preproc_ok; then :
6870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6871
$as_echo "$CPP" >&6; }
6873
for ac_c_preproc_warn_flag in '' yes
6875
# Use a header file that comes with gcc, so configuring glibc
6876
# with a fresh cross-compiler works.
6877
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6878
# <limits.h> exists even on freestanding compilers.
6879
# On the NeXT, cc -E runs the code through the compiler's parser,
6880
# not just through cpp. "Syntax error" is here to catch this case.
6881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882
/* end confdefs.h. */
6884
# include <limits.h>
6886
# include <assert.h>
6890
if ac_fn_c_try_cpp "$LINENO"; then :
6893
# Broken: fails on valid input.
6896
rm -f conftest.err conftest.$ac_ext
6898
# OK, works on sane cases. Now check whether nonexistent headers
6899
# can be detected and how.
6900
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901
/* end confdefs.h. */
6902
#include <ac_nonexistent.h>
6904
if ac_fn_c_try_cpp "$LINENO"; then :
6905
# Broken: success on invalid input.
6908
# Passes both tests.
6912
rm -f conftest.err conftest.$ac_ext
6915
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916
rm -f conftest.err conftest.$ac_ext
6917
if $ac_preproc_ok; then :
6920
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6921
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6922
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6923
See \`config.log' for more details." "$LINENO" 5; }
6927
ac_cpp='$CPP $CPPFLAGS'
6928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6934
$as_echo_n "checking for ANSI C header files... " >&6; }
6935
if test "${ac_cv_header_stdc+set}" = set; then :
6936
$as_echo_n "(cached) " >&6
6938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939
/* end confdefs.h. */
6953
if ac_fn_c_try_compile "$LINENO"; then :
6954
ac_cv_header_stdc=yes
6956
ac_cv_header_stdc=no
6958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960
if test $ac_cv_header_stdc = yes; then
6961
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6962
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963
/* end confdefs.h. */
6967
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6968
$EGREP "memchr" >/dev/null 2>&1; then :
6971
ac_cv_header_stdc=no
6977
if test $ac_cv_header_stdc = yes; then
6978
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980
/* end confdefs.h. */
6984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985
$EGREP "free" >/dev/null 2>&1; then :
6988
ac_cv_header_stdc=no
6994
if test $ac_cv_header_stdc = yes; then
6995
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6996
if test "$cross_compiling" = yes; then :
6999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000
/* end confdefs.h. */
7003
#if ((' ' & 0x0FF) == 0x020)
7004
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7005
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7007
# define ISLOWER(c) \
7008
(('a' <= (c) && (c) <= 'i') \
7009
|| ('j' <= (c) && (c) <= 'r') \
7010
|| ('s' <= (c) && (c) <= 'z'))
7011
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7014
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7019
for (i = 0; i < 256; i++)
7020
if (XOR (islower (i), ISLOWER (i))
7021
|| toupper (i) != TOUPPER (i))
7026
if ac_fn_c_try_run "$LINENO"; then :
7029
ac_cv_header_stdc=no
7031
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7032
conftest.$ac_objext conftest.beam conftest.$ac_ext
7037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7038
$as_echo "$ac_cv_header_stdc" >&6; }
7039
if test $ac_cv_header_stdc = yes; then
7041
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7045
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7046
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7047
inttypes.h stdint.h unistd.h
7049
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7050
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7052
eval as_val=\$$as_ac_Header
7053
if test "x$as_val" = x""yes; then :
7054
cat >>confdefs.h <<_ACEOF
7055
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063
for ac_header in dlfcn.h
7065
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7067
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7068
cat >>confdefs.h <<_ACEOF
7069
#define HAVE_DLFCN_H 1
7088
# Check whether --enable-shared was given.
7089
if test "${enable_shared+set}" = set; then :
7090
enableval=$enable_shared; p=${PACKAGE-default}
7092
yes) enable_shared=yes ;;
7093
no) enable_shared=no ;;
7096
# Look at the argument we got. We use all the common list separators.
7097
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7098
for pkg in $enableval; do
7100
if test "X$pkg" = "X$p"; then
7121
# Check whether --with-pic was given.
7122
if test "${with_pic+set}" = set; then :
7123
withval=$with_pic; pic_mode="$withval"
7129
test -z "$pic_mode" && pic_mode=default
7137
# Check whether --enable-fast-install was given.
7138
if test "${enable_fast_install+set}" = set; then :
7139
enableval=$enable_fast_install; p=${PACKAGE-default}
7141
yes) enable_fast_install=yes ;;
7142
no) enable_fast_install=no ;;
7144
enable_fast_install=no
7145
# Look at the argument we got. We use all the common list separators.
7146
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7147
for pkg in $enableval; do
7149
if test "X$pkg" = "X$p"; then
7150
enable_fast_install=yes
7157
enable_fast_install=yes
7170
# This can be used to rebuild libtool when needed
7171
LIBTOOL_DEPS="$ltmain"
7173
# Always use our own libtool.
7174
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7200
test -z "$LN_S" && LN_S="ln -s"
7215
if test -n "${ZSH_VERSION+set}" ; then
7216
setopt NO_GLOB_SUBST
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7220
$as_echo_n "checking for objdir... " >&6; }
7221
if test "${lt_cv_objdir+set}" = set; then :
7222
$as_echo_n "(cached) " >&6
7224
rm -f .libs 2>/dev/null
7225
mkdir .libs 2>/dev/null
7226
if test -d .libs; then
7229
# MS-DOS does not allow filenames that begin with a dot.
7232
rmdir .libs 2>/dev/null
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7235
$as_echo "$lt_cv_objdir" >&6; }
7236
objdir=$lt_cv_objdir
7242
cat >>confdefs.h <<_ACEOF
7243
#define LT_OBJDIR "$lt_cv_objdir/"
7264
# AIX sometimes has problems with the GCC collect2 program. For some
7265
# reason, if we set the COLLECT_NAMES environment variable, the problems
7266
# vanish in a puff of smoke.
7267
if test "X${COLLECT_NAMES+set}" != Xset; then
7269
export COLLECT_NAMES
7274
# Sed substitution that helps us do robust quoting. It backslashifies
7275
# metacharacters that are still active within double-quoted strings.
7276
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7278
# Same as above, but do not quote variable references.
7279
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7281
# Sed substitution to delay expansion of an escaped shell variable in a
7282
# double_quote_subst'ed string.
7283
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7285
# Sed substitution to delay expansion of an escaped single quote.
7286
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7288
# Sed substitution to avoid accidental globbing in evaled expressions
7289
no_glob_subst='s/\*/\\\*/g'
7293
can_build_shared=yes
7295
# All known linkers require a `.a' archive for static linking (except MSVC,
7296
# which needs '.lib').
7299
with_gnu_ld="$lt_cv_prog_gnu_ld"
7302
old_CFLAGS="$CFLAGS"
7304
# Set sane defaults for various variables
7305
test -z "$CC" && CC=cc
7306
test -z "$LTCC" && LTCC=$CC
7307
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7308
test -z "$LD" && LD=ld
7309
test -z "$ac_objext" && ac_objext=o
7311
for cc_temp in $compiler""; do
7313
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7314
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7319
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7322
# Only perform the check for file, if the check method requires it
7323
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7324
case $deplibs_check_method in
7326
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7328
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7329
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7330
$as_echo_n "(cached) " >&6
7334
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7337
lt_save_MAGIC_CMD="$MAGIC_CMD"
7338
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7339
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7340
for ac_dir in $ac_dummy; do
7342
test -z "$ac_dir" && ac_dir=.
7343
if test -f $ac_dir/${ac_tool_prefix}file; then
7344
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7345
if test -n "$file_magic_test_file"; then
7346
case $deplibs_check_method in
7348
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7349
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7351
$EGREP "$file_magic_regex" > /dev/null; then
7356
*** Warning: the command libtool uses to detect shared libraries,
7357
*** $file_magic_cmd, produces output that libtool cannot recognize.
7358
*** The result is that libtool may fail to recognize shared libraries
7359
*** as such. This will affect the creation of libtool libraries that
7360
*** depend on shared libraries, but programs linked with such libtool
7361
*** libraries will work regardless of this problem. Nevertheless, you
7362
*** may want to report the problem to your system manager and/or to
7363
*** bug-libtool@gnu.org
7373
MAGIC_CMD="$lt_save_MAGIC_CMD"
7378
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379
if test -n "$MAGIC_CMD"; then
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7381
$as_echo "$MAGIC_CMD" >&6; }
7383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384
$as_echo "no" >&6; }
7391
if test -z "$lt_cv_path_MAGIC_CMD"; then
7392
if test -n "$ac_tool_prefix"; then
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7394
$as_echo_n "checking for file... " >&6; }
7395
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7396
$as_echo_n "(cached) " >&6
7400
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7403
lt_save_MAGIC_CMD="$MAGIC_CMD"
7404
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406
for ac_dir in $ac_dummy; do
7408
test -z "$ac_dir" && ac_dir=.
7409
if test -f $ac_dir/file; then
7410
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7411
if test -n "$file_magic_test_file"; then
7412
case $deplibs_check_method in
7414
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417
$EGREP "$file_magic_regex" > /dev/null; then
7422
*** Warning: the command libtool uses to detect shared libraries,
7423
*** $file_magic_cmd, produces output that libtool cannot recognize.
7424
*** The result is that libtool may fail to recognize shared libraries
7425
*** as such. This will affect the creation of libtool libraries that
7426
*** depend on shared libraries, but programs linked with such libtool
7427
*** libraries will work regardless of this problem. Nevertheless, you
7428
*** may want to report the problem to your system manager and/or to
7429
*** bug-libtool@gnu.org
7439
MAGIC_CMD="$lt_save_MAGIC_CMD"
7444
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445
if test -n "$MAGIC_CMD"; then
7446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7447
$as_echo "$MAGIC_CMD" >&6; }
7449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450
$as_echo "no" >&6; }
7463
# Use C for the default configuration in the libtool script
7467
ac_cpp='$CPP $CPPFLAGS'
7468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473
# Source file extension for C test sources.
7476
# Object file extension for compiled C test sources.
7480
# Code to be used in simple compile tests
7481
lt_simple_compile_test_code="int some_variable = 0;"
7483
# Code to be used in simple link tests
7484
lt_simple_link_test_code='int main(){return(0);}'
7492
# If no C compiler was specified, use CC.
7495
# If no C compiler flags were specified, use CFLAGS.
7496
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
# Allow CC to be a program name with arguments.
7501
# Save the default compiler, since it gets overwritten when the other
7502
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7503
compiler_DEFAULT=$CC
7505
# save warnings/boilerplate of simple test code
7506
ac_outfile=conftest.$ac_objext
7507
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7508
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7509
_lt_compiler_boilerplate=`cat conftest.err`
7512
ac_outfile=conftest.$ac_objext
7513
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7514
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7515
_lt_linker_boilerplate=`cat conftest.err`
7519
if test -n "$compiler"; then
7521
lt_prog_compiler_no_builtin_flag=
7523
if test "$GCC" = yes; then
7524
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7527
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7528
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7529
$as_echo_n "(cached) " >&6
7531
lt_cv_prog_compiler_rtti_exceptions=no
7532
ac_outfile=conftest.$ac_objext
7533
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7534
lt_compiler_flag="-fno-rtti -fno-exceptions"
7535
# Insert the option either (1) after the last *FLAGS variable, or
7536
# (2) before a word containing "conftest.", or (3) at the end.
7537
# Note that $ac_compile itself does not contain backslashes and begins
7538
# with a dollar sign (not a hyphen), so the echo should work correctly.
7539
# The option is referenced via a variable to avoid confusing sed.
7540
lt_compile=`echo "$ac_compile" | $SED \
7541
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7542
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7543
-e 's:$: $lt_compiler_flag:'`
7544
(eval echo "\"\$as_me:7544: $lt_compile\"" >&5)
7545
(eval "$lt_compile" 2>conftest.err)
7547
cat conftest.err >&5
7548
echo "$as_me:7548: \$? = $ac_status" >&5
7549
if (exit $ac_status) && test -s "$ac_outfile"; then
7550
# The compiler can only warn and ignore the option if not recognized
7551
# So say no if there are warnings other than the usual output.
7552
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7553
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7554
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7555
lt_cv_prog_compiler_rtti_exceptions=yes
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7562
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7564
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7565
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7577
lt_prog_compiler_wl=
7578
lt_prog_compiler_pic=
7579
lt_prog_compiler_static=
7581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7582
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7584
if test "$GCC" = yes; then
7585
lt_prog_compiler_wl='-Wl,'
7586
lt_prog_compiler_static='-static'
7590
# All AIX code is PIC.
7591
if test "$host_cpu" = ia64; then
7592
# AIX 5 now supports IA64 processor
7593
lt_prog_compiler_static='-Bstatic'
7600
# see comment about AmigaOS4 .so support
7601
lt_prog_compiler_pic='-fPIC'
7604
# FIXME: we need at least 68020 code to build shared libraries, but
7605
# adding the `-m68020' flag to GCC prevents building anything better,
7607
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7612
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7613
# PIC is the default for these OSes.
7616
mingw* | cygwin* | pw32* | os2* | cegcc*)
7617
# This hack is so that the source file can tell whether it is being
7618
# built for inclusion in a dll (and should export symbols for example).
7619
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7620
# (--disable-auto-import) libraries
7621
lt_prog_compiler_pic='-DDLL_EXPORT'
7624
darwin* | rhapsody*)
7625
# PIC is the default on this platform
7626
# Common symbols not allowed in MH_DYLIB files
7627
lt_prog_compiler_pic='-fno-common'
7631
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7632
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7633
# sets the default TLS model and affects inlining.
7639
lt_prog_compiler_pic='-fPIC'
7645
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7646
# Instead, we relocate shared libraries at runtime.
7650
# Just because we use GCC doesn't mean we suddenly get shared libraries
7651
# on systems that don't support them.
7652
lt_prog_compiler_can_build_shared=no
7657
# QNX uses GNU C++, but need to define -shared option too, otherwise
7659
lt_prog_compiler_pic='-fPIC -shared'
7663
if test -d /usr/nec; then
7664
lt_prog_compiler_pic=-Kconform_pic
7669
lt_prog_compiler_pic='-fPIC'
7673
# PORTME Check for flag to pass linker flags through the system compiler.
7676
lt_prog_compiler_wl='-Wl,'
7677
if test "$host_cpu" = ia64; then
7678
# AIX 5 now supports IA64 processor
7679
lt_prog_compiler_static='-Bstatic'
7681
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7685
mingw* | cygwin* | pw32* | os2* | cegcc*)
7686
# This hack is so that the source file can tell whether it is being
7687
# built for inclusion in a dll (and should export symbols for example).
7688
lt_prog_compiler_pic='-DDLL_EXPORT'
7691
hpux9* | hpux10* | hpux11*)
7692
lt_prog_compiler_wl='-Wl,'
7693
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700
lt_prog_compiler_pic='+Z'
7703
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7704
lt_prog_compiler_static='${wl}-a ${wl}archive'
7707
irix5* | irix6* | nonstopux*)
7708
lt_prog_compiler_wl='-Wl,'
7709
# PIC (with -KPIC) is the default.
7710
lt_prog_compiler_static='-non_shared'
7713
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7714
case $cc_basename in
7715
# old Intel for x86_64 which still supported -KPIC.
7717
lt_prog_compiler_wl='-Wl,'
7718
lt_prog_compiler_pic='-KPIC'
7719
lt_prog_compiler_static='-static'
7721
# icc used to be incompatible with GCC.
7722
# ICC 10 doesn't accept -KPIC any more.
7724
lt_prog_compiler_wl='-Wl,'
7725
lt_prog_compiler_pic='-fPIC'
7726
lt_prog_compiler_static='-static'
7728
# Lahey Fortran 8.1.
7730
lt_prog_compiler_wl='-Wl,'
7731
lt_prog_compiler_pic='--shared'
7732
lt_prog_compiler_static='--static'
7734
pgcc* | pgf77* | pgf90* | pgf95*)
7735
# Portland Group compilers (*not* the Pentium gcc compiler,
7736
# which looks to be a dead project)
7737
lt_prog_compiler_wl='-Wl,'
7738
lt_prog_compiler_pic='-fpic'
7739
lt_prog_compiler_static='-Bstatic'
7742
lt_prog_compiler_wl='-Wl,'
7743
# All Alpha code is PIC.
7744
lt_prog_compiler_static='-non_shared'
7747
# IBM XL C 8.0/Fortran 10.1 on PPC
7748
lt_prog_compiler_wl='-Wl,'
7749
lt_prog_compiler_pic='-qpic'
7750
lt_prog_compiler_static='-qstaticlink'
7753
case `$CC -V 2>&1 | sed 5q` in
7756
lt_prog_compiler_pic='-KPIC'
7757
lt_prog_compiler_static='-Bstatic'
7758
lt_prog_compiler_wl='-Wl,'
7761
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7762
lt_prog_compiler_pic='-KPIC'
7763
lt_prog_compiler_static='-Bstatic'
7764
lt_prog_compiler_wl=''
7772
lt_prog_compiler_pic='-KPIC'
7773
lt_prog_compiler_static='-Bstatic'
7777
# QNX uses GNU C++, but need to define -shared option too, otherwise
7779
lt_prog_compiler_pic='-fPIC -shared'
7782
osf3* | osf4* | osf5*)
7783
lt_prog_compiler_wl='-Wl,'
7784
# All OSF/1 code is PIC.
7785
lt_prog_compiler_static='-non_shared'
7789
lt_prog_compiler_static='-non_shared'
7793
lt_prog_compiler_pic='-KPIC'
7794
lt_prog_compiler_static='-Bstatic'
7795
case $cc_basename in
7797
lt_prog_compiler_wl='-Qoption ld ';;
7799
lt_prog_compiler_wl='-Wl,';;
7804
lt_prog_compiler_wl='-Qoption ld '
7805
lt_prog_compiler_pic='-PIC'
7806
lt_prog_compiler_static='-Bstatic'
7809
sysv4 | sysv4.2uw2* | sysv4.3*)
7810
lt_prog_compiler_wl='-Wl,'
7811
lt_prog_compiler_pic='-KPIC'
7812
lt_prog_compiler_static='-Bstatic'
7816
if test -d /usr/nec ;then
7817
lt_prog_compiler_pic='-Kconform_pic'
7818
lt_prog_compiler_static='-Bstatic'
7822
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7823
lt_prog_compiler_wl='-Wl,'
7824
lt_prog_compiler_pic='-KPIC'
7825
lt_prog_compiler_static='-Bstatic'
7829
lt_prog_compiler_wl='-Wl,'
7830
lt_prog_compiler_can_build_shared=no
7834
lt_prog_compiler_pic='-pic'
7835
lt_prog_compiler_static='-Bstatic'
7839
lt_prog_compiler_can_build_shared=no
7845
# For platforms which do not support PIC, -DPIC is meaningless:
7847
lt_prog_compiler_pic=
7850
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7854
$as_echo "$lt_prog_compiler_pic" >&6; }
7862
# Check to make sure the PIC flag actually works.
7864
if test -n "$lt_prog_compiler_pic"; then
7865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7866
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7867
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7868
$as_echo_n "(cached) " >&6
7870
lt_cv_prog_compiler_pic_works=no
7871
ac_outfile=conftest.$ac_objext
7872
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7874
# Insert the option either (1) after the last *FLAGS variable, or
7875
# (2) before a word containing "conftest.", or (3) at the end.
7876
# Note that $ac_compile itself does not contain backslashes and begins
7877
# with a dollar sign (not a hyphen), so the echo should work correctly.
7878
# The option is referenced via a variable to avoid confusing sed.
7879
lt_compile=`echo "$ac_compile" | $SED \
7880
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882
-e 's:$: $lt_compiler_flag:'`
7883
(eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
7884
(eval "$lt_compile" 2>conftest.err)
7886
cat conftest.err >&5
7887
echo "$as_me:7887: \$? = $ac_status" >&5
7888
if (exit $ac_status) && test -s "$ac_outfile"; then
7889
# The compiler can only warn and ignore the option if not recognized
7890
# So say no if there are warnings other than the usual output.
7891
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7892
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7894
lt_cv_prog_compiler_pic_works=yes
7900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7901
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7903
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7904
case $lt_prog_compiler_pic in
7906
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7909
lt_prog_compiler_pic=
7910
lt_prog_compiler_can_build_shared=no
7921
# Check to make sure the static flag actually works.
7923
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7925
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7926
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7927
$as_echo_n "(cached) " >&6
7929
lt_cv_prog_compiler_static_works=no
7930
save_LDFLAGS="$LDFLAGS"
7931
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7932
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7933
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7934
# The linker can only warn and ignore the option if not recognized
7935
# So say no if there are warnings
7936
if test -s conftest.err; then
7937
# Append any errors to the config.log.
7938
cat conftest.err 1>&5
7939
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7940
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7941
if diff conftest.exp conftest.er2 >/dev/null; then
7942
lt_cv_prog_compiler_static_works=yes
7945
lt_cv_prog_compiler_static_works=yes
7949
LDFLAGS="$save_LDFLAGS"
7952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7953
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7955
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7958
lt_prog_compiler_static=
7967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7968
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7969
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7970
$as_echo_n "(cached) " >&6
7972
lt_cv_prog_compiler_c_o=no
7973
$RM -r conftest 2>/dev/null
7977
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7979
lt_compiler_flag="-o out/conftest2.$ac_objext"
7980
# Insert the option either (1) after the last *FLAGS variable, or
7981
# (2) before a word containing "conftest.", or (3) at the end.
7982
# Note that $ac_compile itself does not contain backslashes and begins
7983
# with a dollar sign (not a hyphen), so the echo should work correctly.
7984
lt_compile=`echo "$ac_compile" | $SED \
7985
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7986
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7987
-e 's:$: $lt_compiler_flag:'`
7988
(eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
7989
(eval "$lt_compile" 2>out/conftest.err)
7991
cat out/conftest.err >&5
7992
echo "$as_me:7992: \$? = $ac_status" >&5
7993
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7995
# The compiler can only warn and ignore the option if not recognized
7996
# So say no if there are warnings
7997
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7998
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7999
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8000
lt_cv_prog_compiler_c_o=yes
8005
# SGI C++ compiler will create directory out/ii_files/ for
8006
# template instantiation
8007
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8008
$RM out/* && rmdir out
8014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8015
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8023
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8024
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8025
$as_echo_n "(cached) " >&6
8027
lt_cv_prog_compiler_c_o=no
8028
$RM -r conftest 2>/dev/null
8032
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8034
lt_compiler_flag="-o out/conftest2.$ac_objext"
8035
# Insert the option either (1) after the last *FLAGS variable, or
8036
# (2) before a word containing "conftest.", or (3) at the end.
8037
# Note that $ac_compile itself does not contain backslashes and begins
8038
# with a dollar sign (not a hyphen), so the echo should work correctly.
8039
lt_compile=`echo "$ac_compile" | $SED \
8040
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042
-e 's:$: $lt_compiler_flag:'`
8043
(eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
8044
(eval "$lt_compile" 2>out/conftest.err)
8046
cat out/conftest.err >&5
8047
echo "$as_me:8047: \$? = $ac_status" >&5
8048
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8050
# The compiler can only warn and ignore the option if not recognized
8051
# So say no if there are warnings
8052
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8053
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8054
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8055
lt_cv_prog_compiler_c_o=yes
8060
# SGI C++ compiler will create directory out/ii_files/ for
8061
# template instantiation
8062
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8063
$RM out/* && rmdir out
8069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8070
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8075
hard_links="nottested"
8076
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8077
# do not overwrite the value of need_locks provided by the user
8078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8079
$as_echo_n "checking if we can lock with hard links... " >&6; }
8082
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8084
ln conftest.a conftest.b 2>&5 || hard_links=no
8085
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8087
$as_echo "$hard_links" >&6; }
8088
if test "$hard_links" = no; then
8089
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8090
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8103
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8106
allow_undefined_flag=
8107
always_export_symbols=no
8109
archive_expsym_cmds=
8110
compiler_needs_object=no
8111
enable_shared_with_static_runtimes=no
8112
export_dynamic_flag_spec=
8113
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8114
hardcode_automatic=no
8116
hardcode_direct_absolute=no
8117
hardcode_libdir_flag_spec=
8118
hardcode_libdir_flag_spec_ld=
8119
hardcode_libdir_separator=
8121
hardcode_shlibpath_var=unsupported
8123
link_all_deplibs=unknown
8126
old_archive_from_new_cmds=
8127
old_archive_from_expsyms_cmds=
8128
thread_safe_flag_spec=
8129
whole_archive_flag_spec=
8130
# include_expsyms should be a list of space-separated symbols to be *always*
8131
# included in the symbol list
8133
# exclude_expsyms can be an extended regexp of symbols to exclude
8134
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8135
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8136
# as well as any symbol that contains `d'.
8137
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8138
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8139
# platforms (ab)use it in PIC code, but their linkers get confused if
8140
# the symbol is explicitly referenced. Since portable code cannot
8141
# rely on this symbol name, it's probably fine to never include it in
8142
# preloaded symbol tables.
8143
# Exclude shared library initialization/finalization symbols.
8144
extract_expsyms_cmds=
8147
cygwin* | mingw* | pw32* | cegcc*)
8148
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8149
# When not using gcc, we currently assume that we are using
8150
# Microsoft Visual C++.
8151
if test "$GCC" != yes; then
8156
# we just hope/assume this is gcc and not c89 (= MSVC++)
8162
linux* | k*bsd*-gnu)
8168
if test "$with_gnu_ld" = yes; then
8169
# If archive_cmds runs LD, not CC, wlarc should be empty
8172
# Set some defaults for GNU ld with shared library support. These
8173
# are reset later if shared libraries are not supported. Putting them
8174
# here allows them to be overridden if necessary.
8175
runpath_var=LD_RUN_PATH
8176
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177
export_dynamic_flag_spec='${wl}--export-dynamic'
8178
# ancient GNU ld didn't support --whole-archive et. al.
8179
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8180
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8182
whole_archive_flag_spec=
8184
supports_anon_versioning=no
8185
case `$LD -v 2>&1` in
8186
*GNU\ gold*) supports_anon_versioning=yes ;;
8187
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190
*\ 2.11.*) ;; # other 2.11 versions
8191
*) supports_anon_versioning=yes ;;
8194
# See if GNU ld supports shared libraries.
8197
# On AIX/PPC, the GNU linker is very broken
8198
if test "$host_cpu" != ia64; then
8202
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203
*** to be unable to reliably create shared libraries on AIX.
8204
*** Therefore, libtool is disabling shared libraries support. If you
8205
*** really care for shared libraries, you may want to modify your PATH
8206
*** so that a non-GNU linker is found, and then restart.
8215
# see comment about AmigaOS4 .so support
8216
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217
archive_expsym_cmds=''
8220
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)'
8221
hardcode_libdir_flag_spec='-L$libdir'
8222
hardcode_minus_L=yes
8228
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8229
allow_undefined_flag=unsupported
8230
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8231
# support --undefined. This deserves some investigation. FIXME
8232
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238
cygwin* | mingw* | pw32* | cegcc*)
8239
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8240
# as there is no search path for DLLs.
8241
hardcode_libdir_flag_spec='-L$libdir'
8242
allow_undefined_flag=unsupported
8243
always_export_symbols=no
8244
enable_shared_with_static_runtimes=yes
8245
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8247
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8248
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8249
# If the export-symbols file already is a .def file (1st line
8250
# is EXPORTS), use it as is; otherwise, prepend...
8251
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8252
cp $export_symbols $output_objdir/$soname.def;
8254
echo EXPORTS > $output_objdir/$soname.def;
8255
cat $export_symbols >> $output_objdir/$soname.def;
8257
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8265
hardcode_shlibpath_var=no
8266
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8267
export_dynamic_flag_spec='${wl}-E'
8268
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8269
# Instead, shared libraries are loaded at an image base (0x10000000 by
8270
# default) and relocated if they conflict, which is a slow very memory
8271
# consuming and fragmenting process. To avoid this, we pick a random,
8272
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8273
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8274
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8275
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8278
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8280
if test "$host_os" = linux-dietlibc; then
8281
case $cc_basename in
8282
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8285
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8286
&& test "$tmp_diet" = no
8289
tmp_sharedflag='-shared'
8290
case $cc_basename,$host_cpu in
8291
pgcc*) # Portland Group C compiler
8292
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8293
tmp_addflag=' $pic_flag'
8295
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8296
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8297
tmp_addflag=' $pic_flag -Mnomain' ;;
8298
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8299
tmp_addflag=' -i_dynamic' ;;
8300
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8301
tmp_addflag=' -i_dynamic -nofor_main' ;;
8302
ifc* | ifort*) # Intel Fortran compiler
8303
tmp_addflag=' -nofor_main' ;;
8304
lf95*) # Lahey Fortran 8.1
8305
whole_archive_flag_spec=
8306
tmp_sharedflag='--shared' ;;
8307
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8308
tmp_sharedflag='-qmkshrobj'
8311
case `$CC -V 2>&1 | sed 5q` in
8312
*Sun\ C*) # Sun C 5.9
8313
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8314
compiler_needs_object=yes
8315
tmp_sharedflag='-G' ;;
8316
*Sun\ F*) # Sun Fortran 8.3
8317
tmp_sharedflag='-G' ;;
8319
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321
if test "x$supports_anon_versioning" = xyes; then
8322
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8323
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8324
echo "local: *; };" >> $output_objdir/$libname.ver~
8325
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8328
case $cc_basename in
8330
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8331
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8332
hardcode_libdir_flag_spec=
8333
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8334
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8335
if test "x$supports_anon_versioning" = xyes; then
8336
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8337
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8338
echo "local: *; };" >> $output_objdir/$libname.ver~
8339
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8348
netbsd* | netbsdelf*-gnu)
8349
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8350
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8353
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8359
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8363
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8364
*** create shared libraries on Solaris systems. Therefore, libtool
8365
*** is disabling shared libraries support. We urge you to upgrade GNU
8366
*** binutils to release 2.9.1 or newer. Another option is to modify
8367
*** your PATH or compiler configuration so that the native linker is
8368
*** used, and then restart.
8371
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8372
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8379
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8380
case `$LD -v 2>&1` in
8381
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8385
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8386
*** reliably create shared libraries on SCO systems. Therefore, libtool
8387
*** is disabling shared libraries support. We urge you to upgrade GNU
8388
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8389
*** your PATH or compiler configuration so that the native linker is
8390
*** used, and then restart.
8395
# For security reasons, it is highly recommended that you always
8396
# use absolute paths for naming shared libraries, and exclude the
8397
# DT_RUNPATH tag from executables and libraries. But doing so
8398
# requires that you compile everything twice, which is a pain.
8399
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8400
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8414
hardcode_shlibpath_var=no
8418
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8419
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8427
if test "$ld_shlibs" = no; then
8429
hardcode_libdir_flag_spec=
8430
export_dynamic_flag_spec=
8431
whole_archive_flag_spec=
8434
# PORTME fill in a description of your system's linker (not GNU ld)
8437
allow_undefined_flag=unsupported
8438
always_export_symbols=yes
8439
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'
8440
# Note: this linker hardcodes the directories in LIBPATH if there
8441
# are no directories specified by -L.
8442
hardcode_minus_L=yes
8443
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8444
# Neither direct hardcoding nor static linking is supported with a
8446
hardcode_direct=unsupported
8451
if test "$host_cpu" = ia64; then
8452
# On IA64, the linker does run time linking by default, so we don't
8453
# have to do anything special.
8454
aix_use_runtimelinking=no
8455
exp_sym_flag='-Bexport'
8458
# If we're using GNU nm, then we don't want the "-C" option.
8459
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8460
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8461
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'
8463
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'
8465
aix_use_runtimelinking=no
8467
# Test if we are trying to use run time linking or normal
8468
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8469
# need to do runtime linking.
8470
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8471
for ld_flag in $LDFLAGS; do
8472
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8473
aix_use_runtimelinking=yes
8480
exp_sym_flag='-bexport'
8481
no_entry_flag='-bnoentry'
8484
# When large executables or shared objects are built, AIX ld can
8485
# have problems creating the table of contents. If linking a library
8486
# or program results in "error TOC overflow" add -mminimal-toc to
8487
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8488
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8492
hardcode_direct_absolute=yes
8493
hardcode_libdir_separator=':'
8494
link_all_deplibs=yes
8495
file_list_spec='${wl}-f,'
8497
if test "$GCC" = yes; then
8498
case $host_os in aix4.[012]|aix4.[012].*)
8499
# We only want to do this on AIX 4.2 and lower, the check
8500
# below for broken collect2 doesn't work under 4.3+
8501
collect2name=`${CC} -print-prog-name=collect2`
8502
if test -f "$collect2name" &&
8503
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8505
# We have reworked collect2
8508
# We have old collect2
8509
hardcode_direct=unsupported
8510
# It fails to find uninstalled libraries when the uninstalled
8511
# path is not listed in the libpath. Setting hardcode_minus_L
8512
# to unsupported forces relinking
8513
hardcode_minus_L=yes
8514
hardcode_libdir_flag_spec='-L$libdir'
8515
hardcode_libdir_separator=
8519
shared_flag='-shared'
8520
if test "$aix_use_runtimelinking" = yes; then
8521
shared_flag="$shared_flag "'${wl}-G'
8526
if test "$host_cpu" = ia64; then
8527
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8528
# chokes on -Wl,-G. The following line is correct:
8531
if test "$aix_use_runtimelinking" = yes; then
8532
shared_flag='${wl}-G'
8534
shared_flag='${wl}-bM:SRE'
8539
export_dynamic_flag_spec='${wl}-bexpall'
8540
# It seems that -bexpall does not export symbols beginning with
8541
# underscore (_), so it is better to generate a list of symbols to export.
8542
always_export_symbols=yes
8543
if test "$aix_use_runtimelinking" = yes; then
8544
# Warning - without using the other runtime loading flags (-brtl),
8545
# -berok will link without error, but may produce a broken library.
8546
allow_undefined_flag='-berok'
8547
# Determine the default libpath from the value encoded in an
8549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550
/* end confdefs.h. */
8560
if ac_fn_c_try_link "$LINENO"; then :
8562
lt_aix_libpath_sed='
8563
/Import File Strings/,/^$/ {
8569
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8570
# Check for a 64-bit object if we didn't find anything.
8571
if test -z "$aix_libpath"; then
8572
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575
rm -f core conftest.err conftest.$ac_objext \
8576
conftest$ac_exeext conftest.$ac_ext
8577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8579
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8580
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8582
if test "$host_cpu" = ia64; then
8583
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8584
allow_undefined_flag="-z nodefs"
8585
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8587
# Determine the default libpath from the value encoded in an
8589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590
/* end confdefs.h. */
8600
if ac_fn_c_try_link "$LINENO"; then :
8602
lt_aix_libpath_sed='
8603
/Import File Strings/,/^$/ {
8609
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8610
# Check for a 64-bit object if we didn't find anything.
8611
if test -z "$aix_libpath"; then
8612
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615
rm -f core conftest.err conftest.$ac_objext \
8616
conftest$ac_exeext conftest.$ac_ext
8617
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8619
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8620
# Warning - without using the other run time loading flags,
8621
# -berok will link without error, but may produce a broken library.
8622
no_undefined_flag=' ${wl}-bernotok'
8623
allow_undefined_flag=' ${wl}-berok'
8624
# Exported symbols can be pulled into shared objects from archives
8625
whole_archive_flag_spec='$convenience'
8626
archive_cmds_need_lc=yes
8627
# This is similar to how AIX traditionally builds its shared libraries.
8628
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8636
# see comment about AmigaOS4 .so support
8637
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638
archive_expsym_cmds=''
8641
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)'
8642
hardcode_libdir_flag_spec='-L$libdir'
8643
hardcode_minus_L=yes
8649
export_dynamic_flag_spec=-rdynamic
8652
cygwin* | mingw* | pw32* | cegcc*)
8653
# When not using gcc, we currently assume that we are using
8654
# Microsoft Visual C++.
8655
# hardcode_libdir_flag_spec is actually meaningless, as there is
8656
# no search path for DLLs.
8657
hardcode_libdir_flag_spec=' '
8658
allow_undefined_flag=unsupported
8659
# Tell ltmain to make .lib files, not .a files.
8661
# Tell ltmain to make .dll files, not .so files.
8663
# FIXME: Setting linknames here is a bad hack.
8664
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8665
# The linker will automatically build a .lib file if we build a DLL.
8666
old_archive_from_new_cmds='true'
8667
# FIXME: Should let the user specify the lib program.
8668
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8669
fix_srcfile_path='`cygpath -w "$srcfile"`'
8670
enable_shared_with_static_runtimes=yes
8673
darwin* | rhapsody*)
8676
archive_cmds_need_lc=no
8678
hardcode_automatic=yes
8679
hardcode_shlibpath_var=unsupported
8680
whole_archive_flag_spec=''
8681
link_all_deplibs=yes
8682
allow_undefined_flag="$_lt_dar_allow_undefined"
8683
case $cc_basename in
8684
ifort*) _lt_dar_can_shared=yes ;;
8685
*) _lt_dar_can_shared=$GCC ;;
8687
if test "$_lt_dar_can_shared" = "yes"; then
8688
output_verbose_link_cmd=echo
8689
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8690
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8691
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8692
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8701
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702
hardcode_libdir_flag_spec='-L$libdir'
8703
hardcode_shlibpath_var=no
8710
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8711
# support. Future versions do this automatically, but an explicit c++rt0.o
8712
# does not break anything, and helps significantly (at the cost of a little
8715
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8716
hardcode_libdir_flag_spec='-R$libdir'
8718
hardcode_shlibpath_var=no
8721
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8723
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8725
hardcode_minus_L=yes
8726
hardcode_shlibpath_var=no
8729
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8730
freebsd* | dragonfly*)
8731
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8732
hardcode_libdir_flag_spec='-R$libdir'
8734
hardcode_shlibpath_var=no
8738
if test "$GCC" = yes; then
8739
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'
8741
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'
8743
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8744
hardcode_libdir_separator=:
8747
# hardcode_minus_L: Not really in the search PATH,
8748
# but as the default location of the library.
8749
hardcode_minus_L=yes
8750
export_dynamic_flag_spec='${wl}-E'
8754
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8755
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8757
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8759
if test "$with_gnu_ld" = no; then
8760
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761
hardcode_libdir_flag_spec_ld='+b $libdir'
8762
hardcode_libdir_separator=:
8764
hardcode_direct_absolute=yes
8765
export_dynamic_flag_spec='${wl}-E'
8766
# hardcode_minus_L: Not really in the search PATH,
8767
# but as the default location of the library.
8768
hardcode_minus_L=yes
8773
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8776
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8782
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8788
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8794
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8798
if test "$with_gnu_ld" = no; then
8799
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8800
hardcode_libdir_separator=:
8805
hardcode_shlibpath_var=no
8809
hardcode_direct_absolute=yes
8810
export_dynamic_flag_spec='${wl}-E'
8812
# hardcode_minus_L: Not really in the search PATH,
8813
# but as the default location of the library.
8814
hardcode_minus_L=yes
8820
irix5* | irix6* | nonstopux*)
8821
if test "$GCC" = yes; then
8822
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8823
# Try to use the -exported_symbol ld option, if it does not
8824
# work, assume that -exports_file does not work either and
8825
# implicitly export all symbols.
8826
save_LDFLAGS="$LDFLAGS"
8827
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829
/* end confdefs.h. */
8832
if ac_fn_c_try_link "$LINENO"; then :
8833
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8836
rm -f core conftest.err conftest.$ac_objext \
8837
conftest$ac_exeext conftest.$ac_ext
8838
LDFLAGS="$save_LDFLAGS"
8840
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8841
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8843
archive_cmds_need_lc='no'
8844
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845
hardcode_libdir_separator=:
8847
link_all_deplibs=yes
8850
netbsd* | netbsdelf*-gnu)
8851
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8852
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8854
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8856
hardcode_libdir_flag_spec='-R$libdir'
8858
hardcode_shlibpath_var=no
8862
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865
hardcode_libdir_separator=:
8866
hardcode_shlibpath_var=no
8873
if test -f /usr/libexec/ld.so; then
8875
hardcode_shlibpath_var=no
8876
hardcode_direct_absolute=yes
8877
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8878
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8879
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8880
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881
export_dynamic_flag_spec='${wl}-E'
8884
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8885
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8886
hardcode_libdir_flag_spec='-R$libdir'
8889
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8890
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900
hardcode_libdir_flag_spec='-L$libdir'
8901
hardcode_minus_L=yes
8902
allow_undefined_flag=unsupported
8903
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'
8904
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8908
if test "$GCC" = yes; then
8909
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8910
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8912
allow_undefined_flag=' -expect_unresolved \*'
8913
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8915
archive_cmds_need_lc='no'
8916
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917
hardcode_libdir_separator=:
8920
osf4* | osf5*) # as osf3* with the addition of -msym flag
8921
if test "$GCC" = yes; then
8922
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8923
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8924
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8926
allow_undefined_flag=' -expect_unresolved \*'
8927
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8928
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8929
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8931
# Both c and cxx compiler support -rpath directly
8932
hardcode_libdir_flag_spec='-rpath $libdir'
8934
archive_cmds_need_lc='no'
8935
hardcode_libdir_separator=:
8939
no_undefined_flag=' -z defs'
8940
if test "$GCC" = yes; then
8942
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8944
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8946
case `$CC -V 2>&1` in
8949
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8955
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8956
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8961
hardcode_libdir_flag_spec='-R$libdir'
8962
hardcode_shlibpath_var=no
8964
solaris2.[0-5] | solaris2.[0-5].*) ;;
8966
# The compiler driver will combine and reorder linker options,
8967
# but understands `-z linker_flag'. GCC discards it without `$wl',
8968
# but is careful enough not to reorder.
8969
# Supported since Solaris 2.6 (maybe 2.5.1?)
8970
if test "$GCC" = yes; then
8971
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8973
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8977
link_all_deplibs=yes
8981
if test "x$host_vendor" = xsequent; then
8982
# Use $CC to link under sequent, because it throws in some extra .o
8983
# files that make .init and .fini sections work.
8984
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8986
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8988
hardcode_libdir_flag_spec='-L$libdir'
8990
hardcode_minus_L=yes
8991
hardcode_shlibpath_var=no
8995
case $host_vendor in
8997
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998
hardcode_direct=yes # is this really true???
9001
## LD is ld it makes a PLAMLIB
9002
## CC just makes a GrossModule.
9003
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9004
reload_cmds='$CC -r -o $output$reload_objs'
9008
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9012
runpath_var='LD_RUN_PATH'
9013
hardcode_shlibpath_var=no
9017
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018
hardcode_shlibpath_var=no
9019
export_dynamic_flag_spec='-Bexport'
9023
if test -d /usr/nec; then
9024
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025
hardcode_shlibpath_var=no
9026
runpath_var=LD_RUN_PATH
9027
hardcode_runpath_var=yes
9032
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9033
no_undefined_flag='${wl}-z,text'
9034
archive_cmds_need_lc=no
9035
hardcode_shlibpath_var=no
9036
runpath_var='LD_RUN_PATH'
9038
if test "$GCC" = yes; then
9039
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9040
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9043
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047
sysv5* | sco3.2v5* | sco5v6*)
9048
# Note: We can NOT use -z defs as we might desire, because we do not
9049
# link with -lc, and that would cause any symbols used from libc to
9050
# always be unresolved, which means just about no library would
9051
# ever link correctly. If we're not using GNU ld we use -z text
9052
# though, which does catch some bad symbols but isn't as heavy-handed
9054
no_undefined_flag='${wl}-z,text'
9055
allow_undefined_flag='${wl}-z,nodefs'
9056
archive_cmds_need_lc=no
9057
hardcode_shlibpath_var=no
9058
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9059
hardcode_libdir_separator=':'
9060
link_all_deplibs=yes
9061
export_dynamic_flag_spec='${wl}-Bexport'
9062
runpath_var='LD_RUN_PATH'
9064
if test "$GCC" = yes; then
9065
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9069
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075
hardcode_libdir_flag_spec='-L$libdir'
9076
hardcode_shlibpath_var=no
9084
if test x$host_vendor = xsni; then
9086
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9087
export_dynamic_flag_spec='${wl}-Blargedynsym'
9093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9094
$as_echo "$ld_shlibs" >&6; }
9095
test "$ld_shlibs" = no && can_build_shared=no
9097
with_gnu_ld=$with_gnu_ld
9114
# Do we need to explicitly link libc?
9116
case "x$archive_cmds_need_lc" in
9118
# Assume -lc should be added
9119
archive_cmds_need_lc=yes
9121
if test "$enable_shared" = yes && test "$GCC" = yes; then
9122
case $archive_cmds in
9124
# FIXME: we may have to deal with multi-command sequences.
9127
# Test whether the compiler implicitly links with -lc since on some
9128
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9129
# to ld, don't add -lc before -lgcc.
9130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9131
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9133
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9136
(eval $ac_compile) 2>&5
9138
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9139
test $ac_status = 0; } 2>conftest.err; then
9142
libobjs=conftest.$ac_objext
9144
wl=$lt_prog_compiler_wl
9145
pic_flag=$lt_prog_compiler_pic
9151
lt_save_allow_undefined_flag=$allow_undefined_flag
9152
allow_undefined_flag=
9153
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9154
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9156
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9157
test $ac_status = 0; }
9159
archive_cmds_need_lc=no
9161
archive_cmds_need_lc=yes
9163
allow_undefined_flag=$lt_save_allow_undefined_flag
9165
cat conftest.err 1>&5
9168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9169
$as_echo "$archive_cmds_need_lc" >&6; }
9332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9333
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9335
if test "$GCC" = yes; then
9337
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9338
*) lt_awk_arg="/^libraries:/" ;;
9340
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9342
# if the path contains ";" then we assume it to be the separator
9343
# otherwise default to the standard path separator (i.e. ":") - it is
9344
# assumed that no part of a normal pathname contains ";" but that should
9345
# okay in the real world where ";" in dirpaths is itself problematic.
9346
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9348
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9350
# Ok, now we have the path, separated by spaces, we can step through it
9351
# and add multilib dir if necessary.
9352
lt_tmp_lt_search_path_spec=
9353
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9354
for lt_sys_path in $lt_search_path_spec; do
9355
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9356
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9358
test -d "$lt_sys_path" && \
9359
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9362
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9363
BEGIN {RS=" "; FS="/|\n";} {
9366
for (lt_i = NF; lt_i > 0; lt_i--) {
9367
if ($lt_i != "" && $lt_i != ".") {
9368
if ($lt_i == "..") {
9371
if (lt_count == 0) {
9372
lt_foo="/" $lt_i lt_foo;
9379
if (lt_foo != "") { lt_freq[lt_foo]++; }
9380
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9382
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9384
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9387
libname_spec='lib$name'
9395
shlibpath_overrides_runpath=unknown
9397
dynamic_linker="$host_os ld.so"
9398
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9399
need_lib_prefix=unknown
9400
hardcode_into_libs=no
9402
# when you set need_version to no, make sure it does not cause -set_version
9403
# flags to be left without arguments
9404
need_version=unknown
9409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9410
shlibpath_var=LIBPATH
9412
# AIX 3 has no versioning support, so we append a major version to the name.
9413
soname_spec='${libname}${release}${shared_ext}$major'
9420
hardcode_into_libs=yes
9421
if test "$host_cpu" = ia64; then
9422
# AIX 5 supports IA64
9423
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9424
shlibpath_var=LD_LIBRARY_PATH
9426
# With GCC up to 2.95.x, collect2 would create an import file
9427
# for dependence libraries. The import file would start with
9428
# the line `#! .'. This would cause the generated library to
9429
# depend on `.', always an invalid library. This was fixed in
9430
# development snapshots of GCC prior to 3.0.
9432
aix4 | aix4.[01] | aix4.[01].*)
9433
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9435
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9442
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9443
# soname into executable. Probably we can add versioning support to
9444
# collect2, so additional links can be useful in future.
9445
if test "$aix_use_runtimelinking" = yes; then
9446
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9447
# instead of lib<name>.a to let people know that these are not
9448
# typical AIX shared libraries.
9449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451
# We preserve .a as extension for shared libraries through AIX4.2
9452
# and later when we are not doing run time linking.
9453
library_names_spec='${libname}${release}.a $libname.a'
9454
soname_spec='${libname}${release}${shared_ext}$major'
9456
shlibpath_var=LIBPATH
9463
# Since July 2007 AmigaOS4 officially supports .so libraries.
9464
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468
library_names_spec='$libname.ixlibrary $libname.a'
9469
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9470
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'
9476
library_names_spec='${libname}${shared_ext}'
9477
dynamic_linker="$host_os ld.so"
9478
shlibpath_var=LIBRARY_PATH
9484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485
soname_spec='${libname}${release}${shared_ext}$major'
9486
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9487
shlibpath_var=LD_LIBRARY_PATH
9488
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9489
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9490
# the default ld.so.conf also contains /usr/contrib/lib and
9491
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9492
# libtool to hard-code these into programs
9495
cygwin* | mingw* | pw32* | cegcc*)
9496
version_type=windows
9501
case $GCC,$host_os in
9502
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9503
library_names_spec='$libname.dll.a'
9504
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9505
postinstall_cmds='base_file=`basename \${file}`~
9506
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9507
dldir=$destdir/`dirname \$dlpath`~
9508
test -d \$dldir || mkdir -p \$dldir~
9509
$install_prog $dir/$dlname \$dldir/$dlname~
9510
chmod a+x \$dldir/$dlname~
9511
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9512
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9514
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9515
dlpath=$dir/\$dldll~
9517
shlibpath_overrides_runpath=yes
9521
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9522
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9526
# MinGW DLLs use traditional 'lib' prefix
9527
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9529
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9530
# It is most probably a Windows format PATH printed by
9531
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9532
# path with ; separators, and with drive letters. We can handle the
9533
# drive letters (cygwin fileutils understands them), so leave them,
9534
# especially as we might pass files found there to a mingw objdump,
9535
# which wouldn't understand a cygwinified path. Ahh.
9536
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9538
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9542
# pw32 DLLs use 'pw' prefix rather than 'lib'
9543
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552
dynamic_linker='Win32 ld.exe'
9553
# FIXME: first we should search . and the directory the executable is in
9557
darwin* | rhapsody*)
9558
dynamic_linker="$host_os dyld"
9562
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9563
soname_spec='${libname}${release}${major}$shared_ext'
9564
shlibpath_overrides_runpath=yes
9565
shlibpath_var=DYLD_LIBRARY_PATH
9566
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9568
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9569
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9577
soname_spec='${libname}${release}${shared_ext}$major'
9578
shlibpath_var=LD_LIBRARY_PATH
9585
freebsd* | dragonfly*)
9586
# DragonFly does not have aout. When/if they implement a new
9587
# versioning mechanism, adjust this.
9588
if test -x /usr/bin/objformat; then
9589
objformat=`/usr/bin/objformat`
9592
freebsd[123]*) objformat=aout ;;
9596
version_type=freebsd-$objformat
9597
case $version_type in
9599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9604
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9608
shlibpath_var=LD_LIBRARY_PATH
9611
shlibpath_overrides_runpath=yes
9613
freebsd3.[01]* | freebsdelf3.[01]*)
9614
shlibpath_overrides_runpath=yes
9615
hardcode_into_libs=yes
9617
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9618
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9619
shlibpath_overrides_runpath=no
9620
hardcode_into_libs=yes
9622
*) # from 4.6 on, and DragonFly
9623
shlibpath_overrides_runpath=yes
9624
hardcode_into_libs=yes
9633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9634
soname_spec='${libname}${release}${shared_ext}$major'
9635
shlibpath_var=LD_LIBRARY_PATH
9636
hardcode_into_libs=yes
9639
hpux9* | hpux10* | hpux11*)
9640
# Give a soname corresponding to the major version so that dld.sl refuses to
9641
# link against other versions.
9648
hardcode_into_libs=yes
9649
dynamic_linker="$host_os dld.so"
9650
shlibpath_var=LD_LIBRARY_PATH
9651
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653
soname_spec='${libname}${release}${shared_ext}$major'
9654
if test "X$HPUX_IA64_MODE" = X32; then
9655
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9657
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9659
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9663
hardcode_into_libs=yes
9664
dynamic_linker="$host_os dld.sl"
9665
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9666
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668
soname_spec='${libname}${release}${shared_ext}$major'
9669
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9670
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9674
dynamic_linker="$host_os dld.sl"
9675
shlibpath_var=SHLIB_PATH
9676
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678
soname_spec='${libname}${release}${shared_ext}$major'
9681
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9682
postinstall_cmds='chmod 555 $lib'
9689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9690
soname_spec='${libname}${release}${shared_ext}$major'
9691
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9692
shlibpath_var=LD_LIBRARY_PATH
9693
shlibpath_overrides_runpath=no
9694
hardcode_into_libs=yes
9697
irix5* | irix6* | nonstopux*)
9699
nonstopux*) version_type=nonstopux ;;
9701
if test "$lt_cv_prog_gnu_ld" = yes; then
9709
soname_spec='${libname}${release}${shared_ext}$major'
9710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9712
irix5* | nonstopux*)
9716
case $LD in # libtool.m4 will add one of these switches to LD
9717
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9718
libsuff= shlibsuff= libmagic=32-bit;;
9719
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9720
libsuff=32 shlibsuff=N32 libmagic=N32;;
9721
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9722
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9723
*) libsuff= shlibsuff= libmagic=never-match;;
9727
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9728
shlibpath_overrides_runpath=no
9729
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9730
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9731
hardcode_into_libs=yes
9734
# No shared lib support for Linux oldld, aout, or coff.
9735
linux*oldld* | linux*aout* | linux*coff*)
9739
# This must be Linux ELF.
9740
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745
soname_spec='${libname}${release}${shared_ext}$major'
9746
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9747
shlibpath_var=LD_LIBRARY_PATH
9748
shlibpath_overrides_runpath=no
9749
# Some binutils ld are patched to set DT_RUNPATH
9750
save_LDFLAGS=$LDFLAGS
9752
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9753
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755
/* end confdefs.h. */
9765
if ac_fn_c_try_link "$LINENO"; then :
9766
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9767
shlibpath_overrides_runpath=yes
9770
rm -f core conftest.err conftest.$ac_objext \
9771
conftest$ac_exeext conftest.$ac_ext
9772
LDFLAGS=$save_LDFLAGS
9775
# This implies no fast_install, which is unacceptable.
9776
# Some rework will be needed to allow for fast_install
9777
# before this can be enabled.
9778
hardcode_into_libs=yes
9780
# Append ld.so.conf contents to the search path
9781
if test -f /etc/ld.so.conf; then
9782
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9783
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9786
# We used to test for /lib/ld.so.1 and disable shared libraries on
9787
# powerpc, because MkLinux only supported shared libraries with the
9788
# GNU dynamic linker. Since this was broken with cross compilers,
9789
# most powerpc-linux boxes support dynamic linking these days and
9790
# people can always --disable-shared, the test was removed, and we
9791
# assume the GNU/Linux dynamic linker is in use.
9792
dynamic_linker='GNU/Linux ld.so'
9799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800
soname_spec='${libname}${release}${shared_ext}$major'
9801
shlibpath_var=LD_LIBRARY_PATH
9802
shlibpath_overrides_runpath=no
9803
hardcode_into_libs=yes
9804
dynamic_linker='NetBSD ld.elf_so'
9811
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9812
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9813
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9814
dynamic_linker='NetBSD (a.out) ld.so'
9816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9817
soname_spec='${libname}${release}${shared_ext}$major'
9818
dynamic_linker='NetBSD ld.elf_so'
9820
shlibpath_var=LD_LIBRARY_PATH
9821
shlibpath_overrides_runpath=yes
9822
hardcode_into_libs=yes
9827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828
shlibpath_var=LD_LIBRARY_PATH
9829
shlibpath_overrides_runpath=yes
9836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837
soname_spec='${libname}${release}${shared_ext}$major'
9838
shlibpath_var=LD_LIBRARY_PATH
9839
shlibpath_overrides_runpath=no
9840
hardcode_into_libs=yes
9841
dynamic_linker='ldqnx.so'
9846
sys_lib_dlsearch_path_spec="/usr/lib"
9848
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9850
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9851
*) need_version=no ;;
9853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9854
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9855
shlibpath_var=LD_LIBRARY_PATH
9856
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9858
openbsd2.[89] | openbsd2.[89].*)
9859
shlibpath_overrides_runpath=no
9862
shlibpath_overrides_runpath=yes
9866
shlibpath_overrides_runpath=yes
9871
libname_spec='$name'
9874
library_names_spec='$libname${shared_ext} $libname.a'
9875
dynamic_linker='OS/2 ld.exe'
9876
shlibpath_var=LIBPATH
9879
osf3* | osf4* | osf5*)
9883
soname_spec='${libname}${release}${shared_ext}$major'
9884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885
shlibpath_var=LD_LIBRARY_PATH
9886
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9887
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899
soname_spec='${libname}${release}${shared_ext}$major'
9900
shlibpath_var=LD_LIBRARY_PATH
9901
shlibpath_overrides_runpath=yes
9902
hardcode_into_libs=yes
9903
# ldd complains unless libraries are executable
9904
postinstall_cmds='chmod +x $lib'
9909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9910
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9911
shlibpath_var=LD_LIBRARY_PATH
9912
shlibpath_overrides_runpath=yes
9913
if test "$with_gnu_ld" = yes; then
9921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922
soname_spec='${libname}${release}${shared_ext}$major'
9923
shlibpath_var=LD_LIBRARY_PATH
9924
case $host_vendor in
9926
shlibpath_overrides_runpath=no
9928
runpath_var=LD_RUN_PATH
9936
shlibpath_overrides_runpath=no
9937
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9943
if test -d /usr/nec ;then
9945
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9946
soname_spec='$libname${shared_ext}.$major'
9947
shlibpath_var=LD_LIBRARY_PATH
9951
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9952
version_type=freebsd-elf
9955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9956
soname_spec='${libname}${release}${shared_ext}$major'
9957
shlibpath_var=LD_LIBRARY_PATH
9958
shlibpath_overrides_runpath=yes
9959
hardcode_into_libs=yes
9960
if test "$with_gnu_ld" = yes; then
9961
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9963
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9966
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9970
sys_lib_dlsearch_path_spec='/usr/lib'
9974
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979
shlibpath_var=LD_LIBRARY_PATH
9980
shlibpath_overrides_runpath=no
9981
hardcode_into_libs=yes
9986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987
soname_spec='${libname}${release}${shared_ext}$major'
9988
shlibpath_var=LD_LIBRARY_PATH
9995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9996
$as_echo "$dynamic_linker" >&6; }
9997
test "$dynamic_linker" = no && can_build_shared=no
9999
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10000
if test "$GCC" = yes; then
10001
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10004
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10005
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10007
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10008
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10098
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10100
if test -n "$hardcode_libdir_flag_spec" ||
10101
test -n "$runpath_var" ||
10102
test "X$hardcode_automatic" = "Xyes" ; then
10104
# We can hardcode non-existent directories.
10105
if test "$hardcode_direct" != no &&
10106
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10107
# have to relink, otherwise we might link with an installed library
10108
# when we should be linking with a yet-to-be-installed one
10109
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10110
test "$hardcode_minus_L" != no; then
10111
# Linking always hardcodes the temporary library directory.
10112
hardcode_action=relink
10114
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10115
hardcode_action=immediate
10118
# We cannot hardcode anything, or else we can only hardcode existing
10120
hardcode_action=unsupported
10122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10123
$as_echo "$hardcode_action" >&6; }
10125
if test "$hardcode_action" = relink ||
10126
test "$inherit_rpath" = yes; then
10127
# Fast installation is not supported
10128
enable_fast_install=no
10129
elif test "$shlibpath_overrides_runpath" = yes ||
10130
test "$enable_shared" = no; then
10131
# Fast installation is not necessary
10132
enable_fast_install=needless
10140
if test "x$enable_dlopen" != xyes; then
10141
enable_dlopen=unknown
10142
enable_dlopen_self=unknown
10143
enable_dlopen_self_static=unknown
10150
lt_cv_dlopen="load_add_on"
10152
lt_cv_dlopen_self=yes
10155
mingw* | pw32* | cegcc*)
10156
lt_cv_dlopen="LoadLibrary"
10161
lt_cv_dlopen="dlopen"
10166
# if libdl is installed we need to link against it
10167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10168
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10169
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10170
$as_echo_n "(cached) " >&6
10172
ac_check_lib_save_LIBS=$LIBS
10174
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175
/* end confdefs.h. */
10177
/* Override any GCC internal prototype to avoid an error.
10178
Use char because int might match the return type of a GCC
10179
builtin and then its argument prototype would still apply. */
10192
if ac_fn_c_try_link "$LINENO"; then :
10193
ac_cv_lib_dl_dlopen=yes
10195
ac_cv_lib_dl_dlopen=no
10197
rm -f core conftest.err conftest.$ac_objext \
10198
conftest$ac_exeext conftest.$ac_ext
10199
LIBS=$ac_check_lib_save_LIBS
10201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10202
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10203
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10204
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207
lt_cv_dlopen="dyld"
10209
lt_cv_dlopen_self=yes
10216
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10217
if test "x$ac_cv_func_shl_load" = x""yes; then :
10218
lt_cv_dlopen="shl_load"
10220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10221
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10222
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10223
$as_echo_n "(cached) " >&6
10225
ac_check_lib_save_LIBS=$LIBS
10227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228
/* end confdefs.h. */
10230
/* Override any GCC internal prototype to avoid an error.
10231
Use char because int might match the return type of a GCC
10232
builtin and then its argument prototype would still apply. */
10240
return shl_load ();
10245
if ac_fn_c_try_link "$LINENO"; then :
10246
ac_cv_lib_dld_shl_load=yes
10248
ac_cv_lib_dld_shl_load=no
10250
rm -f core conftest.err conftest.$ac_objext \
10251
conftest$ac_exeext conftest.$ac_ext
10252
LIBS=$ac_check_lib_save_LIBS
10254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10255
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10256
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10257
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10259
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10260
if test "x$ac_cv_func_dlopen" = x""yes; then :
10261
lt_cv_dlopen="dlopen"
10263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10264
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10265
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10266
$as_echo_n "(cached) " >&6
10268
ac_check_lib_save_LIBS=$LIBS
10270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271
/* end confdefs.h. */
10273
/* Override any GCC internal prototype to avoid an error.
10274
Use char because int might match the return type of a GCC
10275
builtin and then its argument prototype would still apply. */
10288
if ac_fn_c_try_link "$LINENO"; then :
10289
ac_cv_lib_dl_dlopen=yes
10291
ac_cv_lib_dl_dlopen=no
10293
rm -f core conftest.err conftest.$ac_objext \
10294
conftest$ac_exeext conftest.$ac_ext
10295
LIBS=$ac_check_lib_save_LIBS
10297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10298
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10299
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10300
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10303
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10304
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10305
$as_echo_n "(cached) " >&6
10307
ac_check_lib_save_LIBS=$LIBS
10308
LIBS="-lsvld $LIBS"
10309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310
/* end confdefs.h. */
10312
/* Override any GCC internal prototype to avoid an error.
10313
Use char because int might match the return type of a GCC
10314
builtin and then its argument prototype would still apply. */
10327
if ac_fn_c_try_link "$LINENO"; then :
10328
ac_cv_lib_svld_dlopen=yes
10330
ac_cv_lib_svld_dlopen=no
10332
rm -f core conftest.err conftest.$ac_objext \
10333
conftest$ac_exeext conftest.$ac_ext
10334
LIBS=$ac_check_lib_save_LIBS
10336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10337
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10338
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10339
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10342
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10343
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10344
$as_echo_n "(cached) " >&6
10346
ac_check_lib_save_LIBS=$LIBS
10348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349
/* end confdefs.h. */
10351
/* Override any GCC internal prototype to avoid an error.
10352
Use char because int might match the return type of a GCC
10353
builtin and then its argument prototype would still apply. */
10361
return dld_link ();
10366
if ac_fn_c_try_link "$LINENO"; then :
10367
ac_cv_lib_dld_dld_link=yes
10369
ac_cv_lib_dld_dld_link=no
10371
rm -f core conftest.err conftest.$ac_objext \
10372
conftest$ac_exeext conftest.$ac_ext
10373
LIBS=$ac_check_lib_save_LIBS
10375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10376
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10377
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10378
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10399
if test "x$lt_cv_dlopen" != xno; then
10405
case $lt_cv_dlopen in
10407
save_CPPFLAGS="$CPPFLAGS"
10408
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10410
save_LDFLAGS="$LDFLAGS"
10411
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10414
LIBS="$lt_cv_dlopen_libs $LIBS"
10416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10417
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10418
if test "${lt_cv_dlopen_self+set}" = set; then :
10419
$as_echo_n "(cached) " >&6
10421
if test "$cross_compiling" = yes; then :
10422
lt_cv_dlopen_self=cross
10424
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10425
lt_status=$lt_dlunknown
10426
cat > conftest.$ac_ext <<_LT_EOF
10427
#line 10427 "configure"
10428
#include "confdefs.h"
10437
# define LT_DLGLOBAL RTLD_GLOBAL
10440
# define LT_DLGLOBAL DL_GLOBAL
10442
# define LT_DLGLOBAL 0
10446
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10447
find out it does not work in some platform. */
10448
#ifndef LT_DLLAZY_OR_NOW
10450
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10453
# define LT_DLLAZY_OR_NOW DL_LAZY
10456
# define LT_DLLAZY_OR_NOW RTLD_NOW
10459
# define LT_DLLAZY_OR_NOW DL_NOW
10461
# define LT_DLLAZY_OR_NOW 0
10468
void fnord() { int i=42;}
10471
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472
int status = $lt_dlunknown;
10476
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478
/* dlclose (self); */
10486
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10487
(eval $ac_link) 2>&5
10489
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10490
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10491
(./conftest; exit; ) >&5 2>/dev/null
10493
case x$lt_status in
10494
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10495
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10496
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10499
# compilation failed
10500
lt_cv_dlopen_self=no
10507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10508
$as_echo "$lt_cv_dlopen_self" >&6; }
10510
if test "x$lt_cv_dlopen_self" = xyes; then
10511
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10513
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10514
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10515
$as_echo_n "(cached) " >&6
10517
if test "$cross_compiling" = yes; then :
10518
lt_cv_dlopen_self_static=cross
10520
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10521
lt_status=$lt_dlunknown
10522
cat > conftest.$ac_ext <<_LT_EOF
10523
#line 10523 "configure"
10524
#include "confdefs.h"
10533
# define LT_DLGLOBAL RTLD_GLOBAL
10536
# define LT_DLGLOBAL DL_GLOBAL
10538
# define LT_DLGLOBAL 0
10542
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10543
find out it does not work in some platform. */
10544
#ifndef LT_DLLAZY_OR_NOW
10546
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10549
# define LT_DLLAZY_OR_NOW DL_LAZY
10552
# define LT_DLLAZY_OR_NOW RTLD_NOW
10555
# define LT_DLLAZY_OR_NOW DL_NOW
10557
# define LT_DLLAZY_OR_NOW 0
10564
void fnord() { int i=42;}
10567
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10568
int status = $lt_dlunknown;
10572
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10573
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10574
/* dlclose (self); */
10582
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10583
(eval $ac_link) 2>&5
10585
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10586
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10587
(./conftest; exit; ) >&5 2>/dev/null
10589
case x$lt_status in
10590
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10591
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10592
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10595
# compilation failed
10596
lt_cv_dlopen_self_static=no
10603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10604
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10607
CPPFLAGS="$save_CPPFLAGS"
10608
LDFLAGS="$save_LDFLAGS"
10613
case $lt_cv_dlopen_self in
10614
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10615
*) enable_dlopen_self=unknown ;;
10618
case $lt_cv_dlopen_self_static in
10619
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10620
*) enable_dlopen_self_static=unknown ;;
10642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10643
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10644
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10645
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10646
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648
$as_echo "yes" >&6; }
10650
# FIXME - insert some real tests, host_os isn't really good enough
10653
if test -n "$STRIP" ; then
10654
striplib="$STRIP -x"
10655
old_striplib="$STRIP -S"
10656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657
$as_echo "yes" >&6; }
10659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660
$as_echo "no" >&6; }
10664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665
$as_echo "no" >&6; }
10681
# Report which library types will actually be built
10682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10683
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10685
$as_echo "$can_build_shared" >&6; }
10687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10688
$as_echo_n "checking whether to build shared libraries... " >&6; }
10689
test "$can_build_shared" = "no" && enable_shared=no
10691
# On AIX, shared libraries and static libraries use the same namespace, and
10692
# are all built from PIC.
10695
test "$enable_shared" = yes && enable_static=no
10696
if test -n "$RANLIB"; then
10697
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10698
postinstall_cmds='$RANLIB $lib'
10703
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10704
test "$enable_shared" = yes && enable_static=no
10708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10709
$as_echo "$enable_shared" >&6; }
10711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10712
$as_echo_n "checking whether to build static libraries... " >&6; }
10713
# Make sure either enable_shared or enable_static is yes.
10714
test "$enable_shared" = yes || enable_static=yes
10715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10716
$as_echo "$enable_static" >&6; }
10723
ac_cpp='$CPP $CPPFLAGS'
10724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10742
ac_config_commands="$ac_config_commands libtool"
10747
# Only expand once:
10752
# ---------------------------------------------------------------------------
10754
# ---------------------------------------------------------------------------
10756
# Check whether --enable-optimized was given.
10757
if test "${enable_optimized+set}" = set; then :
10758
enableval=$enable_optimized;
10759
CFLAGS=`echo $CFLAGS|sed 's/-O.//'`
10760
if test "x$enableval" = "xyes" ; then
10761
CFLAGS=`echo $CFLAGS|sed 's/-g//'`
10762
CFLAGS="$CFLAGS -O3"
10777
# ------------------------------------------------------------------------
10779
# ------------------------------------------------------------------------
10781
# Check for libraries
10782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10783
$as_echo_n "checking for socket in -lsocket... " >&6; }
10784
if test "${ac_cv_lib_socket_socket+set}" = set; then :
10785
$as_echo_n "(cached) " >&6
10787
ac_check_lib_save_LIBS=$LIBS
10788
LIBS="-lsocket $LIBS"
10789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790
/* end confdefs.h. */
10792
/* Override any GCC internal prototype to avoid an error.
10793
Use char because int might match the return type of a GCC
10794
builtin and then its argument prototype would still apply. */
10807
if ac_fn_c_try_link "$LINENO"; then :
10808
ac_cv_lib_socket_socket=yes
10810
ac_cv_lib_socket_socket=no
10812
rm -f core conftest.err conftest.$ac_objext \
10813
conftest$ac_exeext conftest.$ac_ext
10814
LIBS=$ac_check_lib_save_LIBS
10816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10817
$as_echo "$ac_cv_lib_socket_socket" >&6; }
10818
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10819
cat >>confdefs.h <<_ACEOF
10820
#define HAVE_LIBSOCKET 1
10823
LIBS="-lsocket $LIBS"
10827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
10828
$as_echo_n "checking for socket in -linet... " >&6; }
10829
if test "${ac_cv_lib_inet_socket+set}" = set; then :
10830
$as_echo_n "(cached) " >&6
10832
ac_check_lib_save_LIBS=$LIBS
10833
LIBS="-linet $LIBS"
10834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835
/* end confdefs.h. */
10837
/* Override any GCC internal prototype to avoid an error.
10838
Use char because int might match the return type of a GCC
10839
builtin and then its argument prototype would still apply. */
10852
if ac_fn_c_try_link "$LINENO"; then :
10853
ac_cv_lib_inet_socket=yes
10855
ac_cv_lib_inet_socket=no
10857
rm -f core conftest.err conftest.$ac_objext \
10858
conftest$ac_exeext conftest.$ac_ext
10859
LIBS=$ac_check_lib_save_LIBS
10861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
10862
$as_echo "$ac_cv_lib_inet_socket" >&6; }
10863
if test "x$ac_cv_lib_inet_socket" = x""yes; then :
10864
cat >>confdefs.h <<_ACEOF
10865
#define HAVE_LIBINET 1
10868
LIBS="-linet $LIBS"
10872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
10873
$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
10874
if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
10875
$as_echo_n "(cached) " >&6
10877
ac_check_lib_save_LIBS=$LIBS
10879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880
/* end confdefs.h. */
10882
/* Override any GCC internal prototype to avoid an error.
10883
Use char because int might match the return type of a GCC
10884
builtin and then its argument prototype would still apply. */
10892
return inet_addr ();
10897
if ac_fn_c_try_link "$LINENO"; then :
10898
ac_cv_lib_nsl_inet_addr=yes
10900
ac_cv_lib_nsl_inet_addr=no
10902
rm -f core conftest.err conftest.$ac_objext \
10903
conftest$ac_exeext conftest.$ac_ext
10904
LIBS=$ac_check_lib_save_LIBS
10906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
10907
$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
10908
if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
10909
cat >>confdefs.h <<_ACEOF
10910
#define HAVE_LIBNSL 1
10917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
10918
$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
10919
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
10920
$as_echo_n "(cached) " >&6
10922
ac_check_lib_save_LIBS=$LIBS
10923
LIBS="-lresolv $LIBS"
10924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925
/* end confdefs.h. */
10927
/* Override any GCC internal prototype to avoid an error.
10928
Use char because int might match the return type of a GCC
10929
builtin and then its argument prototype would still apply. */
10937
return inet_aton ();
10942
if ac_fn_c_try_link "$LINENO"; then :
10943
ac_cv_lib_resolv_inet_aton=yes
10945
ac_cv_lib_resolv_inet_aton=no
10947
rm -f core conftest.err conftest.$ac_objext \
10948
conftest$ac_exeext conftest.$ac_ext
10949
LIBS=$ac_check_lib_save_LIBS
10951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
10952
$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
10953
if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
10954
cat >>confdefs.h <<_ACEOF
10955
#define HAVE_LIBRESOLV 1
10958
LIBS="-lresolv $LIBS"
10962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
10963
$as_echo_n "checking for crypt in -lc... " >&6; }
10964
if test "${ac_cv_lib_c_crypt+set}" = set; then :
10965
$as_echo_n "(cached) " >&6
10967
ac_check_lib_save_LIBS=$LIBS
10969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970
/* end confdefs.h. */
10972
/* Override any GCC internal prototype to avoid an error.
10973
Use char because int might match the return type of a GCC
10974
builtin and then its argument prototype would still apply. */
10987
if ac_fn_c_try_link "$LINENO"; then :
10988
ac_cv_lib_c_crypt=yes
10990
ac_cv_lib_c_crypt=no
10992
rm -f core conftest.err conftest.$ac_objext \
10993
conftest$ac_exeext conftest.$ac_ext
10994
LIBS=$ac_check_lib_save_LIBS
10996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
10997
$as_echo "$ac_cv_lib_c_crypt" >&6; }
10998
if test "x$ac_cv_lib_c_crypt" = x""yes; then :
11001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11002
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
11003
if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
11004
$as_echo_n "(cached) " >&6
11006
ac_check_lib_save_LIBS=$LIBS
11007
LIBS="-lcrypt $LIBS"
11008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009
/* end confdefs.h. */
11011
/* Override any GCC internal prototype to avoid an error.
11012
Use char because int might match the return type of a GCC
11013
builtin and then its argument prototype would still apply. */
11026
if ac_fn_c_try_link "$LINENO"; then :
11027
ac_cv_lib_crypt_crypt=yes
11029
ac_cv_lib_crypt_crypt=no
11031
rm -f core conftest.err conftest.$ac_objext \
11032
conftest$ac_exeext conftest.$ac_ext
11033
LIBS=$ac_check_lib_save_LIBS
11035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11036
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11037
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
11038
cat >>confdefs.h <<_ACEOF
11039
#define HAVE_LIBCRYPT 1
11042
LIBS="-lcrypt $LIBS"
11049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11050
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11051
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
11052
$as_echo_n "(cached) " >&6
11054
ac_check_lib_save_LIBS=$LIBS
11055
LIBS="-lpthread $LIBS"
11056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057
/* end confdefs.h. */
11059
/* Override any GCC internal prototype to avoid an error.
11060
Use char because int might match the return type of a GCC
11061
builtin and then its argument prototype would still apply. */
11065
char pthread_create ();
11069
return pthread_create ();
11074
if ac_fn_c_try_link "$LINENO"; then :
11075
ac_cv_lib_pthread_pthread_create=yes
11077
ac_cv_lib_pthread_pthread_create=no
11079
rm -f core conftest.err conftest.$ac_objext \
11080
conftest$ac_exeext conftest.$ac_ext
11081
LIBS=$ac_check_lib_save_LIBS
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
11084
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
11085
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
11086
cat >>confdefs.h <<_ACEOF
11087
#define HAVE_LIBPTHREAD 1
11090
LIBS="-lpthread $LIBS"
11093
as_fn_error "POSIX thread library is required" "$LINENO" 5
11097
# ------------------------------------------------------------------------
11099
# ------------------------------------------------------------------------
11101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11102
$as_echo_n "checking for ANSI C header files... " >&6; }
11103
if test "${ac_cv_header_stdc+set}" = set; then :
11104
$as_echo_n "(cached) " >&6
11106
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107
/* end confdefs.h. */
11108
#include <stdlib.h>
11109
#include <stdarg.h>
11110
#include <string.h>
11121
if ac_fn_c_try_compile "$LINENO"; then :
11122
ac_cv_header_stdc=yes
11124
ac_cv_header_stdc=no
11126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128
if test $ac_cv_header_stdc = yes; then
11129
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11130
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131
/* end confdefs.h. */
11132
#include <string.h>
11135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136
$EGREP "memchr" >/dev/null 2>&1; then :
11139
ac_cv_header_stdc=no
11145
if test $ac_cv_header_stdc = yes; then
11146
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148
/* end confdefs.h. */
11149
#include <stdlib.h>
11152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11153
$EGREP "free" >/dev/null 2>&1; then :
11156
ac_cv_header_stdc=no
11162
if test $ac_cv_header_stdc = yes; then
11163
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11164
if test "$cross_compiling" = yes; then :
11167
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168
/* end confdefs.h. */
11170
#include <stdlib.h>
11171
#if ((' ' & 0x0FF) == 0x020)
11172
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11173
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11175
# define ISLOWER(c) \
11176
(('a' <= (c) && (c) <= 'i') \
11177
|| ('j' <= (c) && (c) <= 'r') \
11178
|| ('s' <= (c) && (c) <= 'z'))
11179
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11182
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11187
for (i = 0; i < 256; i++)
11188
if (XOR (islower (i), ISLOWER (i))
11189
|| toupper (i) != TOUPPER (i))
11194
if ac_fn_c_try_run "$LINENO"; then :
11197
ac_cv_header_stdc=no
11199
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11200
conftest.$ac_objext conftest.beam conftest.$ac_ext
11205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11206
$as_echo "$ac_cv_header_stdc" >&6; }
11207
if test $ac_cv_header_stdc = yes; then
11209
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11214
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11215
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11216
$as_echo_n "(cached) " >&6
11218
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219
/* end confdefs.h. */
11220
#include <sys/types.h>
11221
#include <sys/wait.h>
11222
#ifndef WEXITSTATUS
11223
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11226
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11234
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11239
if ac_fn_c_try_compile "$LINENO"; then :
11240
ac_cv_header_sys_wait_h=yes
11242
ac_cv_header_sys_wait_h=no
11244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11247
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11248
if test $ac_cv_header_sys_wait_h = yes; then
11250
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11255
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11256
if test "${ac_cv_header_stat_broken+set}" = set; then :
11257
$as_echo_n "(cached) " >&6
11259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260
/* end confdefs.h. */
11261
#include <sys/types.h>
11262
#include <sys/stat.h>
11264
#if defined S_ISBLK && defined S_IFDIR
11265
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11268
#if defined S_ISBLK && defined S_IFCHR
11269
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11272
#if defined S_ISLNK && defined S_IFREG
11273
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11276
#if defined S_ISSOCK && defined S_IFREG
11277
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11281
if ac_fn_c_try_compile "$LINENO"; then :
11282
ac_cv_header_stat_broken=no
11284
ac_cv_header_stat_broken=yes
11286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11289
$as_echo "$ac_cv_header_stat_broken" >&6; }
11290
if test $ac_cv_header_stat_broken = yes; then
11292
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11297
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11298
if test "${ac_cv_header_time+set}" = set; then :
11299
$as_echo_n "(cached) " >&6
11301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302
/* end confdefs.h. */
11303
#include <sys/types.h>
11304
#include <sys/time.h>
11310
if ((struct tm *) 0)
11316
if ac_fn_c_try_compile "$LINENO"; then :
11317
ac_cv_header_time=yes
11319
ac_cv_header_time=no
11321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11324
$as_echo "$ac_cv_header_time" >&6; }
11325
if test $ac_cv_header_time = yes; then
11327
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11363
netinet/in_systm.h \
11365
security/pam_appl.h \
11414
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11415
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11416
eval as_val=\$$as_ac_Header
11417
if test "x$as_val" = x""yes; then :
11418
cat >>confdefs.h <<_ACEOF
11419
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11432
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11433
#ifdef HAVE_SYS_PROTOSW_H
11434
#include <sys/protosw.h>
11438
eval as_val=\$$as_ac_Header
11439
if test "x$as_val" = x""yes; then :
11440
cat >>confdefs.h <<_ACEOF
11441
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11453
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11454
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11455
#ifdef HAVE_SYS_TYPES_H
11456
#include <sys/types.h>
11458
#if HAVE_NETINET_IN_SYSTM_H
11459
#include <netinet/in_systm.h>
11461
#if HAVE_NETINET_IN_SYSTM_H
11462
#include <netinet/in.h>
11466
eval as_val=\$$as_ac_Header
11467
if test "x$as_val" = x""yes; then :
11468
cat >>confdefs.h <<_ACEOF
11469
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479
netinet/ip_icmp.h \
11482
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11484
#ifdef HAVE_SYS_TYPES_H
11485
#include <sys/types.h>
11487
#if HAVE_SYS_SOCKET_H
11488
#include <sys/socket.h>
11490
#if HAVE_NETINET_IN_SYSTM_H
11491
#include <netinet/in.h>
11493
#if HAVE_NETINET_IN_SYSTM_H
11494
#include <netinet/in_systm.h>
11496
#if HAVE_NETINET_IP_H
11497
#include <netinet/ip.h>
11501
eval as_val=\$$as_ac_Header
11502
if test "x$as_val" = x""yes; then :
11503
cat >>confdefs.h <<_ACEOF
11504
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11522
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11523
#ifdef HAVE_SYS_PARAM_H
11524
#include <sys/param.h>
11528
eval as_val=\$$as_ac_Header
11529
if test "x$as_val" = x""yes; then :
11530
cat >>confdefs.h <<_ACEOF
11531
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11540
machine/vmparam.h \
11547
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11549
#ifdef HAVE_SYS_PARAM_H
11550
#include <sys/param.h>
11552
#ifdef HAVE_SYS_QUEUE_H
11553
#include <sys/queue.h>
11555
#ifdef HAVE_SYS_LOCK_H
11556
#include <sys/lock.h>
11558
#ifdef HAVE_SYS_MUTEX_H
11559
#include <sys/mutex.h>
11561
#ifdef HAVE_VM_VM_H
11564
#ifdef HAVE_VM_PMAP_H
11565
#include <vm/pmap.h>
11569
eval as_val=\$$as_ac_Header
11570
if test "x$as_val" = x""yes; then :
11571
cat >>confdefs.h <<_ACEOF
11572
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581
sys/resourcevar.h \
11584
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11586
#ifdef HAVE_SYS_TIME_H
11587
#include <sys/time.h>
11589
#ifdef HAVE_SYS_RESOURCE_H
11590
#include <sys/resource.h>
11594
eval as_val=\$$as_ac_Header
11595
if test "x$as_val" = x""yes; then :
11596
cat >>confdefs.h <<_ACEOF
11597
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11612
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
11613
#ifdef HAVE_SYS_TIME_H
11614
#include <sys/time.h>
11616
#ifdef HAVE_SYS_LOCK_H
11617
#include <sys/lock.h>
11619
#ifdef HAVE_SYS_TREE_H
11620
#include <sys/tree.h>
11622
#ifdef HAVE_UVM_UVM_EXTERN_H
11623
#include <uvm/uvm_extern.h>
11627
eval as_val=\$$as_ac_Header
11628
if test "x$as_val" = x""yes; then :
11629
cat >>confdefs.h <<_ACEOF
11630
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11640
if test "x$ac_cv_type_mode_t" = x""yes; then :
11644
cat >>confdefs.h <<_ACEOF
11650
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11651
if test "x$ac_cv_type_pid_t" = x""yes; then :
11655
cat >>confdefs.h <<_ACEOF
11661
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11662
if test "x$ac_cv_type_size_t" = x""yes; then :
11666
cat >>confdefs.h <<_ACEOF
11667
#define size_t unsigned int
11672
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11673
if test "x$ac_cv_type_pid_t" = x""yes; then :
11677
cat >>confdefs.h <<_ACEOF
11683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11684
$as_echo_n "checking return type of signal handlers... " >&6; }
11685
if test "${ac_cv_type_signal+set}" = set; then :
11686
$as_echo_n "(cached) " >&6
11688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689
/* end confdefs.h. */
11690
#include <sys/types.h>
11691
#include <signal.h>
11696
return *(signal (0, 0)) (0) == 1;
11701
if ac_fn_c_try_compile "$LINENO"; then :
11702
ac_cv_type_signal=int
11704
ac_cv_type_signal=void
11706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11709
$as_echo "$ac_cv_type_signal" >&6; }
11711
cat >>confdefs.h <<_ACEOF
11712
#define RETSIGTYPE $ac_cv_type_signal
11717
# Check for structures.
11718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11719
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11720
if test "${ac_cv_struct_tm+set}" = set; then :
11721
$as_echo_n "(cached) " >&6
11723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724
/* end confdefs.h. */
11725
#include <sys/types.h>
11732
int *p = &tm.tm_sec;
11738
if ac_fn_c_try_compile "$LINENO"; then :
11739
ac_cv_struct_tm=time.h
11741
ac_cv_struct_tm=sys/time.h
11743
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11746
$as_echo "$ac_cv_struct_tm" >&6; }
11747
if test $ac_cv_struct_tm = sys/time.h; then
11749
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11753
ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
11754
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11756
cat >>confdefs.h <<_ACEOF
11757
#define HAVE_STRUCT_TM_TM_GMTOFF 1
11765
# ------------------------------------------------------------------------
11767
# ------------------------------------------------------------------------
11769
# Checks for library functions.
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
11771
$as_echo_n "checking for error_at_line... " >&6; }
11772
if test "${ac_cv_lib_error_at_line+set}" = set; then :
11773
$as_echo_n "(cached) " >&6
11775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776
/* end confdefs.h. */
11781
error_at_line (0, 0, "", 0, "an error occurred");
11786
if ac_fn_c_try_link "$LINENO"; then :
11787
ac_cv_lib_error_at_line=yes
11789
ac_cv_lib_error_at_line=no
11791
rm -f core conftest.err conftest.$ac_objext \
11792
conftest$ac_exeext conftest.$ac_ext
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
11795
$as_echo "$ac_cv_lib_error_at_line" >&6; }
11796
if test $ac_cv_lib_error_at_line = no; then
11797
case " $LIBOBJS " in
11798
*" error.$ac_objext "* ) ;;
11799
*) LIBOBJS="$LIBOBJS error.$ac_objext"
11805
for ac_header in vfork.h
11807
ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11808
if test "x$ac_cv_header_vfork_h" = x""yes; then :
11809
cat >>confdefs.h <<_ACEOF
11810
#define HAVE_VFORK_H 1
11817
for ac_func in fork vfork
11819
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11820
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11821
eval as_val=\$$as_ac_var
11822
if test "x$as_val" = x""yes; then :
11823
cat >>confdefs.h <<_ACEOF
11824
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11830
if test "x$ac_cv_func_fork" = xyes; then
11831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11832
$as_echo_n "checking for working fork... " >&6; }
11833
if test "${ac_cv_func_fork_works+set}" = set; then :
11834
$as_echo_n "(cached) " >&6
11836
if test "$cross_compiling" = yes; then :
11837
ac_cv_func_fork_works=cross
11839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840
/* end confdefs.h. */
11841
$ac_includes_default
11846
/* By Ruediger Kuhlmann. */
11847
return fork () < 0;
11853
if ac_fn_c_try_run "$LINENO"; then :
11854
ac_cv_func_fork_works=yes
11856
ac_cv_func_fork_works=no
11858
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11859
conftest.$ac_objext conftest.beam conftest.$ac_ext
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11864
$as_echo "$ac_cv_func_fork_works" >&6; }
11867
ac_cv_func_fork_works=$ac_cv_func_fork
11869
if test "x$ac_cv_func_fork_works" = xcross; then
11871
*-*-amigaos* | *-*-msdosdjgpp*)
11872
# Override, as these systems have only a dummy fork() stub
11873
ac_cv_func_fork_works=no
11876
ac_cv_func_fork_works=yes
11879
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11880
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11882
ac_cv_func_vfork_works=$ac_cv_func_vfork
11883
if test "x$ac_cv_func_vfork" = xyes; then
11884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11885
$as_echo_n "checking for working vfork... " >&6; }
11886
if test "${ac_cv_func_vfork_works+set}" = set; then :
11887
$as_echo_n "(cached) " >&6
11889
if test "$cross_compiling" = yes; then :
11890
ac_cv_func_vfork_works=cross
11892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893
/* end confdefs.h. */
11894
/* Thanks to Paul Eggert for this test. */
11895
$ac_includes_default
11896
#include <sys/wait.h>
11897
#ifdef HAVE_VFORK_H
11898
# include <vfork.h>
11900
/* On some sparc systems, changes by the child to local and incoming
11901
argument registers are propagated back to the parent. The compiler
11902
is told about this with #include <vfork.h>, but some compilers
11903
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11904
static variable whose address is put into a register that is
11905
clobbered by the vfork. */
11908
sparc_address_test (int arg)
11910
sparc_address_test (arg) int arg;
11913
static pid_t child;
11931
pid_t parent = getpid ();
11934
sparc_address_test (0);
11939
/* Here is another test for sparc vfork register problems. This
11940
test uses lots of local variables, at least as many local
11941
variables as main has allocated so far including compiler
11942
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11943
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11944
reuse the register of parent for one of the local variables,
11945
since it will think that parent can't possibly be used any more
11946
in this routine. Assigning to the local variable will thus
11947
munge parent in the parent process. */
11949
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11950
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11951
/* Convince the compiler that p..p7 are live; otherwise, it might
11952
use the same hardware register for all 8 local variables. */
11953
if (p != p1 || p != p2 || p != p3 || p != p4
11954
|| p != p5 || p != p6 || p != p7)
11957
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11958
from child file descriptors. If the child closes a descriptor
11959
before it execs or exits, this munges the parent's descriptor
11960
as well. Test for this by closing stdout in the child. */
11961
_exit(close(fileno(stdout)) != 0);
11966
while (wait(&status) != child)
11969
/* Was there some problem with vforking? */
11972
/* Did the child fail? (This shouldn't happen.) */
11975
/* Did the vfork/compiler bug occur? */
11976
|| parent != getpid()
11978
/* Did the file descriptor bug occur? */
11979
|| fstat(fileno(stdout), &st) != 0
11984
if ac_fn_c_try_run "$LINENO"; then :
11985
ac_cv_func_vfork_works=yes
11987
ac_cv_func_vfork_works=no
11989
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11990
conftest.$ac_objext conftest.beam conftest.$ac_ext
11994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11995
$as_echo "$ac_cv_func_vfork_works" >&6; }
11998
if test "x$ac_cv_func_fork_works" = xcross; then
11999
ac_cv_func_vfork_works=$ac_cv_func_vfork
12000
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12001
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12004
if test "x$ac_cv_func_vfork_works" = xyes; then
12006
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12010
$as_echo "#define vfork fork" >>confdefs.h
12013
if test "x$ac_cv_func_fork_works" = xyes; then
12015
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12020
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12021
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
12022
$as_echo_n "(cached) " >&6
12024
rm -f conftest.sym conftest.file
12025
echo >conftest.file
12026
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12027
if test "$cross_compiling" = yes; then :
12028
ac_cv_func_lstat_dereferences_slashed_symlink=no
12030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031
/* end confdefs.h. */
12032
$ac_includes_default
12037
/* Linux will dereference the symlink and fail, as required by POSIX.
12038
That is better in the sense that it means we will not
12039
have to compile and use the lstat wrapper. */
12040
return lstat ("conftest.sym/", &sbuf) == 0;
12045
if ac_fn_c_try_run "$LINENO"; then :
12046
ac_cv_func_lstat_dereferences_slashed_symlink=yes
12048
ac_cv_func_lstat_dereferences_slashed_symlink=no
12050
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051
conftest.$ac_objext conftest.beam conftest.$ac_ext
12055
# If the `ln -s' command failed, then we probably don't even
12056
# have an lstat function.
12057
ac_cv_func_lstat_dereferences_slashed_symlink=no
12059
rm -f conftest.sym conftest.file
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12063
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12065
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12067
cat >>confdefs.h <<_ACEOF
12068
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12072
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
12073
case " $LIBOBJS " in
12074
*" lstat.$ac_objext "* ) ;;
12075
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12082
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
12083
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
12084
$as_echo_n "(cached) " >&6
12086
if test "$cross_compiling" = yes; then :
12087
ac_cv_func_stat_empty_string_bug=yes
12089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090
/* end confdefs.h. */
12091
$ac_includes_default
12096
return stat ("", &sbuf) == 0;
12101
if ac_fn_c_try_run "$LINENO"; then :
12102
ac_cv_func_stat_empty_string_bug=no
12104
ac_cv_func_stat_empty_string_bug=yes
12106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12107
conftest.$ac_objext conftest.beam conftest.$ac_ext
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12112
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12113
if test $ac_cv_func_stat_empty_string_bug = yes; then
12114
case " $LIBOBJS " in
12115
*" stat.$ac_objext "* ) ;;
12116
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
12121
cat >>confdefs.h <<_ACEOF
12122
#define HAVE_STAT_EMPTY_STRING_BUG 1
12127
for ac_func in strftime
12129
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12130
if test "x$ac_cv_func_strftime" = x""yes; then :
12131
cat >>confdefs.h <<_ACEOF
12132
#define HAVE_STRFTIME 1
12136
# strftime is in -lintl on SCO UNIX.
12137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12138
$as_echo_n "checking for strftime in -lintl... " >&6; }
12139
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12140
$as_echo_n "(cached) " >&6
12142
ac_check_lib_save_LIBS=$LIBS
12143
LIBS="-lintl $LIBS"
12144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145
/* end confdefs.h. */
12147
/* Override any GCC internal prototype to avoid an error.
12148
Use char because int might match the return type of a GCC
12149
builtin and then its argument prototype would still apply. */
12157
return strftime ();
12162
if ac_fn_c_try_link "$LINENO"; then :
12163
ac_cv_lib_intl_strftime=yes
12165
ac_cv_lib_intl_strftime=no
12167
rm -f core conftest.err conftest.$ac_objext \
12168
conftest$ac_exeext conftest.$ac_ext
12169
LIBS=$ac_check_lib_save_LIBS
12171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12172
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12173
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12174
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12176
LIBS="-lintl $LIBS"
12182
for ac_func in statfs
12184
ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
12185
if test "x$ac_cv_func_statfs" = x""yes; then :
12186
cat >>confdefs.h <<_ACEOF
12187
#define HAVE_STATFS 1
12193
for ac_func in statvfs
12195
ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
12196
if test "x$ac_cv_func_statvfs" = x""yes; then :
12197
cat >>confdefs.h <<_ACEOF
12198
#define HAVE_STATVFS 1
12204
for ac_func in setlocale
12206
ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12207
if test "x$ac_cv_func_setlocale" = x""yes; then :
12208
cat >>confdefs.h <<_ACEOF
12209
#define HAVE_SETLOCALE 1
12215
for ac_func in getaddrinfo
12217
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12218
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
12219
cat >>confdefs.h <<_ACEOF
12220
#define HAVE_GETADDRINFO 1
12226
for ac_func in syslog
12228
ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12229
if test "x$ac_cv_func_syslog" = x""yes; then :
12230
cat >>confdefs.h <<_ACEOF
12231
#define HAVE_SYSLOG 1
12237
for ac_func in vsyslog
12239
ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
12240
if test "x$ac_cv_func_vsyslog" = x""yes; then :
12241
cat >>confdefs.h <<_ACEOF
12242
#define HAVE_VSYSLOG 1
12248
for ac_func in backtrace
12250
ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
12251
if test "x$ac_cv_func_backtrace" = x""yes; then :
12252
cat >>confdefs.h <<_ACEOF
12253
#define HAVE_BACKTRACE 1
12259
for ac_func in getloadavg
12261
ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12262
if test "x$ac_cv_func_getloadavg" = x""yes; then :
12263
cat >>confdefs.h <<_ACEOF
12264
#define HAVE_GETLOADAVG 1
12272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOL_IP" >&5
12273
$as_echo_n "checking for SOL_IP... " >&6; }
12274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275
/* end confdefs.h. */
12278
#include <sys/socket.h>
12282
int level = SOL_IP;
12287
if ac_fn_c_try_compile "$LINENO"; then :
12288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12289
$as_echo "yes" >&6; }
12291
$as_echo "#define HAVE_SOL_IP 1" >>confdefs.h
12294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295
$as_echo "no" >&6; }
12297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12300
$as_echo_n "checking for va_copy... " >&6; }
12301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302
/* end confdefs.h. */
12304
#include <stdarg.h>
12312
va_copy(ap, ap_copy);
12318
if ac_fn_c_try_link "$LINENO"; then :
12320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321
$as_echo "yes" >&6; }
12323
$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329
$as_echo "no" >&6; }
12332
rm -f core conftest.err conftest.$ac_objext \
12333
conftest$ac_exeext conftest.$ac_ext
12336
# ------------------------------------------------------------------------
12338
# ------------------------------------------------------------------------
12340
# Compiler characteristics
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12342
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12343
if test "${ac_cv_c_const+set}" = set; then :
12344
$as_echo_n "(cached) " >&6
12346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347
/* end confdefs.h. */
12352
/* FIXME: Include the comments suggested by Paul. */
12353
#ifndef __cplusplus
12354
/* Ultrix mips cc rejects this. */
12355
typedef int charset[2];
12357
/* SunOS 4.1.1 cc rejects this. */
12358
char const *const *pcpcc;
12360
/* NEC SVR4.0.2 mips cc rejects this. */
12361
struct point {int x, y;};
12362
static struct point const zero = {0,0};
12363
/* AIX XL C 1.02.0.0 rejects this.
12364
It does not let you subtract one const X* pointer from another in
12365
an arm of an if-expression whose if-part is not a constant
12367
const char *g = "string";
12368
pcpcc = &g + (g ? g-g : 0);
12369
/* HPUX 7.0 cc rejects these. */
12371
ppc = (char**) pcpcc;
12372
pcpcc = (char const *const *) ppc;
12373
{ /* SCO 3.2v4 cc rejects this. */
12375
char const *s = 0 ? (char *) 0 : (char const *) 0;
12380
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12381
int x[] = {25, 17};
12382
const int *foo = &x[0];
12385
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12386
typedef const int *iptr;
12390
{ /* AIX XL C 1.02.0.0 rejects this saying
12391
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12392
struct s { int j; const int *ap[3]; };
12393
struct s *b; b->j = 5;
12395
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12396
const int foo = 10;
12397
if (!foo) return 0;
12399
return !cs[0] && !zero.x;
12406
if ac_fn_c_try_compile "$LINENO"; then :
12411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12414
$as_echo "$ac_cv_c_const" >&6; }
12415
if test $ac_cv_c_const = no; then
12417
$as_echo "#define const /**/" >>confdefs.h
12421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12422
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12423
if test "${ac_cv_c_bigendian+set}" = set; then :
12424
$as_echo_n "(cached) " >&6
12426
ac_cv_c_bigendian=unknown
12427
# See if we're dealing with a universal compiler.
12428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429
/* end confdefs.h. */
12430
#ifndef __APPLE_CC__
12431
not a universal capable compiler
12436
if ac_fn_c_try_compile "$LINENO"; then :
12438
# Check for potential -arch flags. It is not universal unless
12439
# there are at least two -arch flags with different values.
12442
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12443
if test -n "$ac_prev"; then
12445
i?86 | x86_64 | ppc | ppc64)
12446
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12449
ac_cv_c_bigendian=universal
12455
elif test "x$ac_word" = "x-arch"; then
12460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461
if test $ac_cv_c_bigendian = unknown; then
12462
# See if sys/param.h defines the BYTE_ORDER macro.
12463
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464
/* end confdefs.h. */
12465
#include <sys/types.h>
12466
#include <sys/param.h>
12471
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12472
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12474
bogus endian macros
12481
if ac_fn_c_try_compile "$LINENO"; then :
12482
# It does; now see whether it defined to BIG_ENDIAN or not.
12483
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484
/* end confdefs.h. */
12485
#include <sys/types.h>
12486
#include <sys/param.h>
12491
#if BYTE_ORDER != BIG_ENDIAN
12499
if ac_fn_c_try_compile "$LINENO"; then :
12500
ac_cv_c_bigendian=yes
12502
ac_cv_c_bigendian=no
12504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508
if test $ac_cv_c_bigendian = unknown; then
12509
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12510
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511
/* end confdefs.h. */
12512
#include <limits.h>
12517
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12518
bogus endian macros
12525
if ac_fn_c_try_compile "$LINENO"; then :
12526
# It does; now see whether it defined to _BIG_ENDIAN or not.
12527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528
/* end confdefs.h. */
12529
#include <limits.h>
12534
#ifndef _BIG_ENDIAN
12542
if ac_fn_c_try_compile "$LINENO"; then :
12543
ac_cv_c_bigendian=yes
12545
ac_cv_c_bigendian=no
12547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551
if test $ac_cv_c_bigendian = unknown; then
12552
# Compile a test program.
12553
if test "$cross_compiling" = yes; then :
12554
# Try to guess by grepping values from an object file.
12555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556
/* end confdefs.h. */
12557
short int ascii_mm[] =
12558
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12559
short int ascii_ii[] =
12560
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12561
int use_ascii (int i) {
12562
return ascii_mm[i] + ascii_ii[i];
12564
short int ebcdic_ii[] =
12565
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12566
short int ebcdic_mm[] =
12567
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12568
int use_ebcdic (int i) {
12569
return ebcdic_mm[i] + ebcdic_ii[i];
12576
return use_ascii (foo) == use_ebcdic (foo);
12581
if ac_fn_c_try_compile "$LINENO"; then :
12582
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12583
ac_cv_c_bigendian=yes
12585
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12586
if test "$ac_cv_c_bigendian" = unknown; then
12587
ac_cv_c_bigendian=no
12589
# finding both strings is unlikely to happen, but who knows?
12590
ac_cv_c_bigendian=unknown
12594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597
/* end confdefs.h. */
12598
$ac_includes_default
12603
/* Are we little or big endian? From Harbison&Steele. */
12607
char c[sizeof (long int)];
12610
return u.c[sizeof (long int) - 1] == 1;
12616
if ac_fn_c_try_run "$LINENO"; then :
12617
ac_cv_c_bigendian=no
12619
ac_cv_c_bigendian=yes
12621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12622
conftest.$ac_objext conftest.beam conftest.$ac_ext
12627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12628
$as_echo "$ac_cv_c_bigendian" >&6; }
12629
case $ac_cv_c_bigendian in #(
12631
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12637
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12641
as_fn_error "unknown endianness
12642
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12646
# If the compiler is gcc, tune warnings and make the char type unsigned
12647
# and enable C99 support
12648
if test "x$GCC" = "xyes"; then
12649
CFLAGS="$CFLAGS -Wall -Wunused -Wno-unused-label -funsigned-char";
12651
CFLAGS="$CFLAGS -D_GNU_SOURCE -std=c99"
12652
# does this compiler support -Wno-pointer-sign ?
12653
svd_CFLAGS="$CFLAGS"
12654
CFLAGS="-Wno-pointer-sign $CFLAGS"
12655
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656
/* end confdefs.h. */
12666
if ac_fn_c_try_compile "$LINENO"; then :
12669
CFLAGS="$svd_CFLAGS"
12671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672
# does this compiler support -Wno-address ?
12673
svd_CFLAGS="$CFLAGS"
12674
CFLAGS="-Wno-address $CFLAGS"
12675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676
/* end confdefs.h. */
12686
if ac_fn_c_try_compile "$LINENO"; then :
12689
CFLAGS="$svd_CFLAGS"
12691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695
# ------------------------------------------------------------------------
12697
# ------------------------------------------------------------------------
12699
# Find the right directory to put the root-mode PID file in
12700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
12701
$as_echo_n "checking pid file location... " >&6; }
12702
if test -d "/var/run"
12705
elif test -d "/etc"
12711
cat >>confdefs.h <<_ACEOF
12712
#define PIDDIR "$piddir"
12715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $piddir" >&5
12716
$as_echo "$piddir" >&6; }
12718
# Test mounted filesystem description file
12719
if test -f "/etc/mtab"
12722
$as_echo "#define HAVE_MTAB 1" >>confdefs.h
12724
elif test -f "/etc/mnttab"; then
12726
$as_echo "#define HAVE_MNTTAB 1" >>confdefs.h
12730
# ------------------------------------------------------------------------
12731
# Architecture/OS detection
12732
# ------------------------------------------------------------------------
12734
# Backward compatibility until we get ride of arch settings
12735
architecture=`uname`
12736
if test "$architecture" = "SunOS"
12739
CFLAGS="$CFLAGS -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D__EXTENSIONS__ -m64"
12740
LDFLAGS="$LDFLAGS -m64"
12743
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
12745
if test `uname -m` = "i86pc"
12747
if test "x$GCC" = "xyes"
12749
CFLAGS="$CFLAGS -mtune=opteron"
12750
LDFLAGS="$LDFLAGS -mtune=opteron"
12752
CFLAGS="$CFLAGS -xarch=sse2"
12753
LDFLAGS="$LDFLAGS -xarch=sse2"
12756
if test "x$GCC" = "xyes"
12758
CFLAGS="$CFLAGS -mtune=v9"
12759
LDFLAGS="$LDFLAGS -mtune=v9"
12761
CFLAGS="$CFLAGS -xarch=sparc"
12762
LDFLAGS="$LDFLAGS -xarch=sparc"
12765
elif test "$architecture" = "Linux"
12768
CFLAGS="$CFLAGS -D _REENTRANT"
12769
LDFLAGS="$LDFLAGS -rdynamic"
12770
if test `uname -r | awk -F '.' '{print$1$2}'` -ge "26"
12773
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
12776
elif test "$architecture" = "HP-UX"
12779
CFLAGS="$CFLAGS -D _REENTRANT"
12781
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
12783
elif test "$architecture" = "OpenBSD"
12786
CFLAGS="$CFLAGS -D _REENTRANT"
12788
use_pam=0 # No PAM on OpenBSD (supports BSD Auth API instead of PAM)
12789
elif test "$architecture" = "FreeBSD"
12792
CFLAGS="$CFLAGS -D _REENTRANT"
12794
elif test "$architecture" = "GNU/kFreeBSD"
12797
CFLAGS="$CFLAGS -D _REENTRANT"
12799
elif test "$architecture" = "NetBSD"
12802
CFLAGS="$CFLAGS -D _REENTRANT"
12804
elif test "$architecture" = "Darwin"
12807
CFLAGS="$CFLAGS -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED"
12809
LIBS="$LIBS -framework System -multiply_defined suppress"
12810
elif test "$architecture" = "AIX"
12813
CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT"
12818
LIBS="$LIBS -lperfstat"
12820
$as_echo "#define HAVE_CPU_WAIT 1" >>confdefs.h
12823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Architecture not supported: ${architecture}" >&5
12824
$as_echo "$as_me: WARNING: Architecture not supported: ${architecture}" >&2;}
12825
CFLAGS="$CFLAGS -D _REENTRANT"
12830
# ------------------------------------------------------------------------
12832
# ------------------------------------------------------------------------
12834
# Test for kvm libs
12836
if test "$test_kvm"; then
12837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12838
$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12839
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12840
$as_echo_n "(cached) " >&6
12842
ac_check_lib_save_LIBS=$LIBS
12844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845
/* end confdefs.h. */
12847
/* Override any GCC internal prototype to avoid an error.
12848
Use char because int might match the return type of a GCC
12849
builtin and then its argument prototype would still apply. */
12857
return kvm_open ();
12862
if ac_fn_c_try_link "$LINENO"; then :
12863
ac_cv_lib_kvm_kvm_open=yes
12865
ac_cv_lib_kvm_kvm_open=no
12867
rm -f core conftest.err conftest.$ac_objext \
12868
conftest$ac_exeext conftest.$ac_ext
12869
LIBS=$ac_check_lib_save_LIBS
12871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12872
$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12873
if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12877
if test "$kvm_libs"
12879
LIBS="$LIBS $kvm_libs"
12883
if test "$test_kstat"; then
12884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12885
$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12886
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12887
$as_echo_n "(cached) " >&6
12889
ac_check_lib_save_LIBS=$LIBS
12890
LIBS="-lkstat $LIBS"
12891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892
/* end confdefs.h. */
12894
/* Override any GCC internal prototype to avoid an error.
12895
Use char because int might match the return type of a GCC
12896
builtin and then its argument prototype would still apply. */
12900
char kstat_open ();
12904
return kstat_open ();
12909
if ac_fn_c_try_link "$LINENO"; then :
12910
ac_cv_lib_kstat_kstat_open=yes
12912
ac_cv_lib_kstat_kstat_open=no
12914
rm -f core conftest.err conftest.$ac_objext \
12915
conftest$ac_exeext conftest.$ac_ext
12916
LIBS=$ac_check_lib_save_LIBS
12918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12919
$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12920
if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12921
kstat_libs="-lkstat"
12924
if test "$kstat_libs"
12926
LIBS="$LIBS $kstat_libs"
12931
# ------------------------------------------------------------------------
12933
# ------------------------------------------------------------------------
12935
# Check if we want to have large files support
12936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for large files support" >&5
12937
$as_echo_n "checking for large files support... " >&6; }
12939
# Check whether --with-largefiles was given.
12940
if test "${with_largefiles+set}" = set; then :
12941
withval=$with_largefiles;
12942
if test "x$withval" = "xno" ; then
12944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12945
$as_echo "disabled" >&6; }
12947
if test "x$withval" = "xyes" ; then
12949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12950
$as_echo "enabled" >&6; }
12955
if test `uname` = "AIX"
12958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12959
$as_echo "disabled" >&6; }
12962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12963
$as_echo "enabled" >&6; }
12970
# Settings for largefiles support
12971
if test "$use_largefiles" = 1; then
12972
# Check whether --enable-largefile was given.
12973
if test "${enable_largefile+set}" = set; then :
12974
enableval=$enable_largefile;
12977
if test "$enable_largefile" != no; then
12979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12980
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12981
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12982
$as_echo_n "(cached) " >&6
12984
ac_cv_sys_largefile_CC=no
12985
if test "$GCC" != yes; then
12988
# IRIX 6.2 and later do not support large files by default,
12989
# so use the C compiler's -n32 option if that helps.
12990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991
/* end confdefs.h. */
12992
#include <sys/types.h>
12993
/* Check that off_t can represent 2**63 - 1 correctly.
12994
We can't simply define LARGE_OFF_T to be 9223372036854775807,
12995
since some C++ compilers masquerading as C compilers
12996
incorrectly reject 9223372036854775807. */
12997
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12998
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12999
&& LARGE_OFF_T % 2147483647 == 1)
13009
if ac_fn_c_try_compile "$LINENO"; then :
13012
rm -f core conftest.err conftest.$ac_objext
13014
if ac_fn_c_try_compile "$LINENO"; then :
13015
ac_cv_sys_largefile_CC=' -n32'; break
13017
rm -f core conftest.err conftest.$ac_objext
13021
rm -f conftest.$ac_ext
13024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13025
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13026
if test "$ac_cv_sys_largefile_CC" != no; then
13027
CC=$CC$ac_cv_sys_largefile_CC
13030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13031
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13032
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
13033
$as_echo_n "(cached) " >&6
13036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037
/* end confdefs.h. */
13038
#include <sys/types.h>
13039
/* Check that off_t can represent 2**63 - 1 correctly.
13040
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13041
since some C++ compilers masquerading as C compilers
13042
incorrectly reject 9223372036854775807. */
13043
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13044
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13045
&& LARGE_OFF_T % 2147483647 == 1)
13055
if ac_fn_c_try_compile "$LINENO"; then :
13056
ac_cv_sys_file_offset_bits=no; break
13058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060
/* end confdefs.h. */
13061
#define _FILE_OFFSET_BITS 64
13062
#include <sys/types.h>
13063
/* Check that off_t can represent 2**63 - 1 correctly.
13064
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13065
since some C++ compilers masquerading as C compilers
13066
incorrectly reject 9223372036854775807. */
13067
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13068
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13069
&& LARGE_OFF_T % 2147483647 == 1)
13079
if ac_fn_c_try_compile "$LINENO"; then :
13080
ac_cv_sys_file_offset_bits=64; break
13082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083
ac_cv_sys_file_offset_bits=unknown
13087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13088
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13089
case $ac_cv_sys_file_offset_bits in #(
13092
cat >>confdefs.h <<_ACEOF
13093
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13098
if test $ac_cv_sys_file_offset_bits = unknown; then
13099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13100
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13101
if test "${ac_cv_sys_large_files+set}" = set; then :
13102
$as_echo_n "(cached) " >&6
13105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106
/* end confdefs.h. */
13107
#include <sys/types.h>
13108
/* Check that off_t can represent 2**63 - 1 correctly.
13109
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13110
since some C++ compilers masquerading as C compilers
13111
incorrectly reject 9223372036854775807. */
13112
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13113
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13114
&& LARGE_OFF_T % 2147483647 == 1)
13124
if ac_fn_c_try_compile "$LINENO"; then :
13125
ac_cv_sys_large_files=no; break
13127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129
/* end confdefs.h. */
13130
#define _LARGE_FILES 1
13131
#include <sys/types.h>
13132
/* Check that off_t can represent 2**63 - 1 correctly.
13133
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13134
since some C++ compilers masquerading as C compilers
13135
incorrectly reject 9223372036854775807. */
13136
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13137
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13138
&& LARGE_OFF_T % 2147483647 == 1)
13148
if ac_fn_c_try_compile "$LINENO"; then :
13149
ac_cv_sys_large_files=1; break
13151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152
ac_cv_sys_large_files=unknown
13156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13157
$as_echo "$ac_cv_sys_large_files" >&6; }
13158
case $ac_cv_sys_large_files in #(
13161
cat >>confdefs.h <<_ACEOF
13162
#define _LARGE_FILES $ac_cv_sys_large_files
13173
# ------------------------------------------------------------------------
13175
# ------------------------------------------------------------------------
13177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
13178
$as_echo_n "checking for PAM support... " >&6; }
13180
# Check whether --with-pam was given.
13181
if test "${with_pam+set}" = set; then :
13183
if test "x$withval" = "xno" ; then
13185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13186
$as_echo "disabled" >&6; }
13188
if test "x$withval" = "xyes" ; then
13190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13191
$as_echo "enabled" >&6; }
13196
if test "x$use_pam" = "x" ; then
13198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13199
$as_echo "enabled" >&6; }
13206
if test "$use_pam" = "1"; then
13207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
13208
$as_echo_n "checking for pam_start in -lpam... " >&6; }
13209
if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
13210
$as_echo_n "(cached) " >&6
13212
ac_check_lib_save_LIBS=$LIBS
13214
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215
/* end confdefs.h. */
13217
/* Override any GCC internal prototype to avoid an error.
13218
Use char because int might match the return type of a GCC
13219
builtin and then its argument prototype would still apply. */
13227
return pam_start ();
13232
if ac_fn_c_try_link "$LINENO"; then :
13233
ac_cv_lib_pam_pam_start=yes
13235
ac_cv_lib_pam_pam_start=no
13237
rm -f core conftest.err conftest.$ac_objext \
13238
conftest$ac_exeext conftest.$ac_ext
13239
LIBS=$ac_check_lib_save_LIBS
13241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
13242
$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
13243
if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
13244
cat >>confdefs.h <<_ACEOF
13245
#define HAVE_LIBPAM 1
13251
as_fn_error "PAM enabled but headers or library not found, install the PAM development support or run configure --without-pam" "$LINENO" 5
13257
# ------------------------------------------------------------------------
13259
# ------------------------------------------------------------------------
13261
# Check for ssl includes
13262
checksslincldir() { :
13263
if test -f "$1/openssl/ssl.h"; then
13270
# Check for ssl libraries
13271
checkssllibdirdynamic() { :
13272
CRYPTOLIB=`ls -1 $1/libcrypto.so* $1/libcrypto.dylib* 2>/dev/null | wc -l`
13273
SSLLIB=`ls -1 $1/libssl.so* $1/libssl.dylib* 2>/dev/null | wc -l`
13274
if test "(" $CRYPTOLIB -gt 0 -a $SSLLIB -gt 0 ")"
13282
checkssllibdirstatic() { :
13283
if test "(" -f "$1/libcrypto.a" ")" -a \
13284
"(" -f "$1/libssl.a" ")" ; then
13291
# Check if we want to have SSL
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static SSL support" >&5
13294
$as_echo_n "checking for static SSL support... " >&6; }
13297
# Check whether --with-ssl-static was given.
13298
if test "${with_ssl_static+set}" = set; then :
13299
withval=$with_ssl_static;
13300
for dir in "$withval" "$withval/include"; do
13301
checksslincldir "$dir"
13303
for dir in "$withval" "$withval/lib"; do
13304
checkssllibdirstatic "$dir" && break 2
13307
LDFLAGS="`echo $LDFLAGS | sed -e 's/-rdynamic/-ldl/g'`"
13308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13309
$as_echo "enabled" >&6; }
13311
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13315
CFLAGS="$CFLAGS -I$sslincldir"
13316
LIBS="$LIBS $ssllibdir/libssl.a $ssllibdir/libcrypto.a"
13321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13322
$as_echo "disabled" >&6; }
13328
if test "$use_sslstatic" = "0"
13330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support" >&5
13331
$as_echo_n "checking for SSL support... " >&6; }
13334
# Check whether --with-ssl was given.
13335
if test "${with_ssl+set}" = set; then :
13337
if test "x$withval" = "xno" ; then
13339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13340
$as_echo "disabled" >&6; }
13342
if test "x$withval" = "xyes" ; then
13344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13345
$as_echo "enabled" >&6; }
13351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13352
$as_echo "enabled" >&6; }
13359
# Check for SSL directory
13360
if test "$use_ssl" = "1"; then
13363
# Check whether --with-ssl-dir was given.
13364
if test "${with_ssl_dir+set}" = set; then :
13365
withval=$with_ssl_dir;
13366
for dir in "$withval" "$withval/include"; do
13367
checksslincldir "$dir"
13369
for dir in "$withval" "$withval/lib"; do
13370
checkssllibdirdynamic "$dir" && break 2
13377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL include directory" >&5
13378
$as_echo_n "checking for SSL include directory... " >&6; }
13380
# Check whether --with-ssl-incl-dir was given.
13381
if test "${with_ssl_incl_dir+set}" = set; then :
13382
withval=$with_ssl_incl_dir;
13383
checksslincldir "$withval"
13387
if test -z "$sslincldir"; then
13388
for maindir in /usr /usr/local /usr/lib /usr/pkg /var /opt /usr/sfw /opt/csw /opt/freeware; do
13389
for dir in "$maindir/include"\
13390
"$maindir/include/openssl"\
13391
"$maindir/include/ssl"\
13392
"$maindir/ssl/include"; do
13393
checksslincldir $dir && break 2
13401
if test -z "$sslincldir"; then
13402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13403
$as_echo "Not found" >&6; }
13405
echo "Couldn't find your SSL header files."
13406
echo "Use --with-ssl-incl-dir option to fix this problem or disable"
13407
echo "the SSL support with --without-ssl"
13411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sslincldir" >&5
13412
$as_echo "$sslincldir" >&6; }
13414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library directory" >&5
13415
$as_echo_n "checking for SSL library directory... " >&6; }
13417
# Check whether --with-ssl-lib-dir was given.
13418
if test "${with_ssl_lib_dir+set}" = set; then :
13419
withval=$with_ssl_lib_dir;
13420
checkssllibdirdynamic "$withval"
13424
if test -z "$ssllibdir"; then
13425
for maindir in "" \
13434
for dir in $maindir \
13438
$maindir/lib/openssl \
13442
$maindir/lib/64/openssl \
13443
$maindir/lib/64/ssl \
13444
$maindir/ssl/lib/64 \
13446
$maindir/lib64/openssl \
13447
$maindir/lib64/ssl \
13448
$maindir/ssl/lib64 \
13449
$maindir/lib/${build} \
13450
$maindir/lib/${build_alias}; do
13451
checkssllibdirdynamic $dir && break 2
13459
if test -z "$ssllibdir"; then
13460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13461
$as_echo "Not found" >&6; }
13463
echo "Couldn't find your SSL library files."
13464
echo "Use --with-ssl-lib-dir option to fix this problem or disable the"
13465
echo "SSL support with --without-ssl"
13469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssllibdir" >&5
13470
$as_echo "$ssllibdir" >&6; }
13473
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13479
# Add SSL includes and libraries
13480
if test "$sslincldir" -a "$ssllibdir"
13482
if test "x$ARCH" = "xDARWIN"; then
13483
# Darwin already knows about ssldirs
13484
LIBS="$LIBS -lssl -lcrypto"
13485
elif test -f "/usr/kerberos/include/krb5.h"; then
13486
# Redhat 9 compilation fix:
13487
CFLAGS="$CFLAGS -I$sslincldir -I/usr/kerberos/include"
13488
LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
13490
CFLAGS="$CFLAGS -I$sslincldir"
13491
LIBS="$LIBS -L$ssllibdir -lssl -lcrypto"
13496
# ------------------------------------------------------------------------
13498
# ------------------------------------------------------------------------
13502
ac_config_headers="$ac_config_headers src/config.h"
13504
ac_config_files="$ac_config_files Makefile"
13506
ac_config_files="$ac_config_files contrib/monit.upstart"
13508
ac_config_files="$ac_config_files contrib/monit.service"
13511
cat >confcache <<\_ACEOF
13512
# This file is a shell script that caches the results of configure
13513
# tests run on this system so they can be shared between configure
13514
# scripts and configure runs, see configure's option --config-cache.
13515
# It is not useful on other systems. If it contains results you don't
13516
# want to keep, you may remove or edit it.
13518
# config.status only pays attention to the cache file if you give it
13519
# the --recheck option to rerun configure.
13521
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13522
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13523
# following values.
13527
# The following way of writing the cache mishandles newlines in values,
13528
# but we know of no workaround that is simple, portable, and efficient.
13529
# So, we kill variables containing newlines.
13530
# Ultrix sh set writes to stderr and can't be redirected directly,
13531
# and sets the high bit in the cache file unless we assign to the vars.
13533
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13534
eval ac_val=\$$ac_var
13538
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13539
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13542
_ | IFS | as_nl) ;; #(
13543
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13544
*) { eval $ac_var=; unset $ac_var;} ;;
13550
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13551
*${as_nl}ac_space=\ *)
13552
# `set' does not quote correctly, so add quotes: double-quote
13553
# substitution turns \\\\ into \\, and sed turns \\ into \.
13556
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13559
# `set' quotes correctly as required by POSIX, so do not add quotes.
13560
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13569
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13571
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13573
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13574
if test -w "$cache_file"; then
13575
test "x$cache_file" != "x/dev/null" &&
13576
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13577
$as_echo "$as_me: updating cache $cache_file" >&6;}
13578
cat confcache >$cache_file
13580
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13581
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13586
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13587
# Let make expand exec_prefix.
13588
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13590
DEFS=-DHAVE_CONFIG_H
13594
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13595
# 1. Remove the extension, and $U if already installed.
13596
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13597
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13598
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13599
# will be set to the directory where LIBOBJS objects are built.
13600
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13601
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13603
LIBOBJS=$ac_libobjs
13605
LTLIBOBJS=$ac_ltlibobjs
13608
if test -n "$EXEEXT"; then
13610
am__EXEEXT_FALSE='#'
13612
am__EXEEXT_TRUE='#'
13616
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13617
as_fn_error "conditional \"AMDEP\" was never defined.
13618
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13620
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13621
as_fn_error "conditional \"am__fastdepCC\" was never defined.
13622
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13626
: ${CONFIG_STATUS=./config.status}
13628
ac_clean_files_save=$ac_clean_files
13629
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13630
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13631
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13633
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13635
# Generated by $as_me.
13636
# Run this file to recreate the current configuration.
13637
# Compiler output produced by configure, useful for debugging
13638
# configure, is in config.log if it exists.
13641
ac_cs_recheck=false
13644
SHELL=\${CONFIG_SHELL-$SHELL}
13647
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13648
## -------------------- ##
13649
## M4sh Initialization. ##
13650
## -------------------- ##
13652
# Be more Bourne compatible
13653
DUALCASE=1; export DUALCASE # for MKS sh
13654
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13657
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13658
# is contrary to our usage. Disable this feature.
13659
alias -g '${1+"$@"}'='"$@"'
13660
setopt NO_GLOB_SUBST
13662
case `(set -o) 2>/dev/null` in #(
13674
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13675
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13676
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13677
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13678
# Prefer a ksh shell builtin over an external printf program on Solaris,
13679
# but without wasting forks for bash or zsh.
13680
if test -z "$BASH_VERSION$ZSH_VERSION" \
13681
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13682
as_echo='print -r --'
13683
as_echo_n='print -rn --'
13684
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13685
as_echo='printf %s\n'
13686
as_echo_n='printf %s'
13688
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13689
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13690
as_echo_n='/usr/ucb/echo -n'
13692
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13693
as_echo_n_body='eval
13697
expr "X$arg" : "X\\(.*\\)$as_nl";
13698
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13700
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13702
export as_echo_n_body
13703
as_echo_n='sh -c $as_echo_n_body as_echo'
13705
export as_echo_body
13706
as_echo='sh -c $as_echo_body as_echo'
13709
# The user is always right.
13710
if test "${PATH_SEPARATOR+set}" != set; then
13712
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13713
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13720
# We need space, tab and new line, in precisely that order. Quoting is
13721
# there to prevent editors from complaining about space-tab.
13722
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13723
# splitting by setting IFS to empty value.)
13726
# Find who we are. Look in the path if we contain no directory separator.
13728
*[\\/]* ) as_myself=$0 ;;
13729
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730
for as_dir in $PATH
13733
test -z "$as_dir" && as_dir=.
13734
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13740
# We did not find ourselves, most probably we were run as `sh COMMAND'
13741
# in which case we are not to be found in the path.
13742
if test "x$as_myself" = x; then
13745
if test ! -f "$as_myself"; then
13746
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13750
# Unset variables that we do not need and which cause bugs (e.g. in
13751
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13752
# suppresses any "Segmentation fault" message there. '((' could
13753
# trigger a bug in pdksh 5.2.14.
13754
for as_var in BASH_ENV ENV MAIL MAILPATH
13755
do eval test x\${$as_var+set} = xset \
13756
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13769
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13772
# as_fn_error ERROR [LINENO LOG_FD]
13773
# ---------------------------------
13774
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13775
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13776
# script with status $?, using 1 if that was 0.
13779
as_status=$?; test $as_status -eq 0 && as_status=1
13781
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13782
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13784
$as_echo "$as_me: error: $1" >&2
13785
as_fn_exit $as_status
13789
# as_fn_set_status STATUS
13790
# -----------------------
13791
# Set $? to STATUS, without forking.
13792
as_fn_set_status ()
13795
} # as_fn_set_status
13797
# as_fn_exit STATUS
13798
# -----------------
13799
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13803
as_fn_set_status $1
13809
# Portably unset VAR.
13812
{ eval $1=; unset $1;}
13814
as_unset=as_fn_unset
13815
# as_fn_append VAR VALUE
13816
# ----------------------
13817
# Append the text in VALUE to the end of the definition contained in VAR. Take
13818
# advantage of any shell optimizations that allow amortized linear growth over
13819
# repeated appends, instead of the typical quadratic growth present in naive
13821
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13822
eval 'as_fn_append ()
13833
# as_fn_arith ARG...
13834
# ------------------
13835
# Perform arithmetic evaluation on the ARGs, and store the result in the
13836
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13837
# must be portable across $(()) and expr.
13838
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13839
eval 'as_fn_arith ()
13846
as_val=`expr "$@" || test $? -eq 1`
13851
if expr a : '\(a\)' >/dev/null 2>&1 &&
13852
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13858
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13859
as_basename=basename
13864
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13870
as_me=`$as_basename -- "$0" ||
13871
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13872
X"$0" : 'X\(//\)$' \| \
13873
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13875
sed '/^.*\/\([^/][^/]*\)\/*$/{
13889
# Avoid depending upon Character Ranges.
13890
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13891
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13892
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13893
as_cr_digits='0123456789'
13894
as_cr_alnum=$as_cr_Letters$as_cr_digits
13896
ECHO_C= ECHO_N= ECHO_T=
13897
case `echo -n x` in #(((((
13899
case `echo 'xy\c'` in
13900
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13902
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13909
rm -f conf$$ conf$$.exe conf$$.file
13910
if test -d conf$$.dir; then
13911
rm -f conf$$.dir/conf$$.file
13914
mkdir conf$$.dir 2>/dev/null
13916
if (echo >conf$$.file) 2>/dev/null; then
13917
if ln -s conf$$.file conf$$ 2>/dev/null; then
13919
# ... but there are two gotchas:
13920
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13921
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13922
# In both cases, we have to default to `cp -p'.
13923
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13925
elif ln conf$$.file conf$$ 2>/dev/null; then
13933
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13934
rmdir conf$$.dir 2>/dev/null
13939
# Create "$as_dir" as a directory, including parents if necessary.
13944
-*) as_dir=./$as_dir;;
13946
test -d "$as_dir" || eval $as_mkdir_p || {
13950
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13951
*) as_qdir=$as_dir;;
13953
as_dirs="'$as_qdir' $as_dirs"
13954
as_dir=`$as_dirname -- "$as_dir" ||
13955
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13956
X"$as_dir" : 'X\(//\)[^/]' \| \
13957
X"$as_dir" : 'X\(//\)$' \| \
13958
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13959
$as_echo X"$as_dir" |
13960
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13964
/^X\(\/\/\)[^/].*/{
13977
test -d "$as_dir" && break
13979
test -z "$as_dirs" || eval "mkdir $as_dirs"
13980
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13984
if mkdir -p . 2>/dev/null; then
13985
as_mkdir_p='mkdir -p "$as_dir"'
13987
test -d ./-p && rmdir ./-p
13991
if test -x / >/dev/null 2>&1; then
13992
as_test_x='test -x'
13994
if ls -dL / >/dev/null 2>&1; then
14001
if test -d "$1"; then
14007
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14008
???[sx]*):;;*)false;;esac;fi
14012
as_executable_p=$as_test_x
14014
# Sed expression to map a string onto a valid CPP name.
14015
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14017
# Sed expression to map a string onto a valid variable name.
14018
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14022
## ----------------------------------- ##
14023
## Main body of $CONFIG_STATUS script. ##
14024
## ----------------------------------- ##
14026
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14029
# Save the log message, to keep $0 and so on meaningful, and to
14030
# report actual input values of CONFIG_FILES etc. instead of their
14031
# values after options handling.
14033
This file was extended by monit $as_me 5.5, which was
14034
generated by GNU Autoconf 2.65. Invocation command line was
14036
CONFIG_FILES = $CONFIG_FILES
14037
CONFIG_HEADERS = $CONFIG_HEADERS
14038
CONFIG_LINKS = $CONFIG_LINKS
14039
CONFIG_COMMANDS = $CONFIG_COMMANDS
14042
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14047
case $ac_config_files in *"
14048
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14051
case $ac_config_headers in *"
14052
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14056
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14057
# Files that config.status was made for.
14058
config_files="$ac_config_files"
14059
config_headers="$ac_config_headers"
14060
config_commands="$ac_config_commands"
14064
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066
\`$as_me' instantiates files and other configuration actions
14067
from templates according to the current configuration. Unless the files
14068
and actions are specified as TAGs, all are instantiated by default.
14070
Usage: $0 [OPTION]... [TAG]...
14072
-h, --help print this help, then exit
14073
-V, --version print version number and configuration settings, then exit
14074
--config print configuration, then exit
14075
-q, --quiet, --silent
14076
do not print progress messages
14077
-d, --debug don't remove temporary files
14078
--recheck update $as_me by reconfiguring in the same conditions
14079
--file=FILE[:TEMPLATE]
14080
instantiate the configuration file FILE
14081
--header=FILE[:TEMPLATE]
14082
instantiate the configuration header FILE
14084
Configuration files:
14087
Configuration headers:
14090
Configuration commands:
14093
Report bugs to <monit-general@nongnu.org>."
14096
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14097
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14099
monit config.status 5.5
14100
configured by $0, generated by GNU Autoconf 2.65,
14101
with options \\"\$ac_cs_config\\"
14103
Copyright (C) 2009 Free Software Foundation, Inc.
14104
This config.status script is free software; the Free Software Foundation
14105
gives unlimited permission to copy, distribute and modify it."
14112
test -n "\$AWK" || AWK=awk
14115
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14116
# The default lists apply if the user does not specify any file.
14122
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14123
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14134
# Handling of the options.
14135
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14137
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14138
$as_echo "$ac_cs_version"; exit ;;
14139
--config | --confi | --conf | --con | --co | --c )
14140
$as_echo "$ac_cs_config"; exit ;;
14141
--debug | --debu | --deb | --de | --d | -d )
14143
--file | --fil | --fi | --f )
14146
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14148
as_fn_append CONFIG_FILES " '$ac_optarg'"
14149
ac_need_defaults=false;;
14150
--header | --heade | --head | --hea )
14153
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14155
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14156
ac_need_defaults=false;;
14158
# Conflict between --help and --header
14159
as_fn_error "ambiguous option: \`$1'
14160
Try \`$0 --help' for more information.";;
14161
--help | --hel | -h )
14162
$as_echo "$ac_cs_usage"; exit ;;
14163
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14164
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14167
# This is an error.
14168
-*) as_fn_error "unrecognized option: \`$1'
14169
Try \`$0 --help' for more information." ;;
14171
*) as_fn_append ac_config_targets " $1"
14172
ac_need_defaults=false ;;
14178
ac_configure_extra_args=
14180
if $ac_cs_silent; then
14182
ac_configure_extra_args="$ac_configure_extra_args --silent"
14186
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14187
if \$ac_cs_recheck; then
14188
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14190
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14191
CONFIG_SHELL='$SHELL'
14192
export CONFIG_SHELL
14197
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14202
## Running $as_me. ##
14208
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14212
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14215
# The HP-UX ksh and POSIX shell print the target directory to stdout
14216
# if CDPATH is set.
14217
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14219
sed_quote_subst='$sed_quote_subst'
14220
double_quote_subst='$double_quote_subst'
14221
delay_variable_subst='$delay_variable_subst'
14222
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14223
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14224
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14225
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14226
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14227
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14228
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14229
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14230
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14231
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14232
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14233
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14234
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14235
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14236
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14237
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14238
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14239
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14240
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14241
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14242
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14243
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14244
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14245
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14246
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14247
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14248
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14249
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14250
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14251
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14252
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14253
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14254
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14255
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14256
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14257
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14258
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14259
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14260
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14261
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14262
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14263
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14264
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14265
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14266
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"`'
14267
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14268
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14269
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14270
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14271
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14272
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14273
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14274
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14275
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14276
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14277
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14278
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14279
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14280
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14281
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14282
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14283
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14284
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14285
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14286
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14287
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14288
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14289
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14290
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14291
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14292
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14293
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14294
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14295
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14296
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14297
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14298
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14299
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14300
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14301
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14302
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14303
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14304
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14305
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14306
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14307
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14308
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14309
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14310
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14311
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14312
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14313
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14314
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14315
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14316
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14317
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14318
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14319
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14320
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14321
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14322
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14323
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14324
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14325
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14326
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14327
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14328
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14329
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14330
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14331
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14332
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14333
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14334
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14335
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14336
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14337
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14338
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14339
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14342
LTCFLAGS='$LTCFLAGS'
14343
compiler='$compiler_DEFAULT'
14345
# Quote evaled strings.
14357
deplibs_check_method \
14366
lt_cv_sys_global_symbol_pipe \
14367
lt_cv_sys_global_symbol_to_cdecl \
14368
lt_cv_sys_global_symbol_to_c_name_address \
14369
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14372
lt_prog_compiler_no_builtin_flag \
14373
lt_prog_compiler_wl \
14374
lt_prog_compiler_pic \
14375
lt_prog_compiler_static \
14376
lt_cv_prog_compiler_c_o \
14384
export_dynamic_flag_spec \
14385
whole_archive_flag_spec \
14386
compiler_needs_object \
14388
allow_undefined_flag \
14389
no_undefined_flag \
14390
hardcode_libdir_flag_spec \
14391
hardcode_libdir_flag_spec_ld \
14392
hardcode_libdir_separator \
14397
variables_saved_for_relink \
14399
library_names_spec \
14404
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14405
*[\\\\\\\`\\"\\\$]*)
14406
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14409
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14414
# Double-quote double-evaled strings.
14415
for var in reload_cmds \
14416
old_postinstall_cmds \
14417
old_postuninstall_cmds \
14419
extract_expsyms_cmds \
14420
old_archive_from_new_cmds \
14421
old_archive_from_expsyms_cmds \
14423
archive_expsym_cmds \
14425
module_expsym_cmds \
14426
export_symbols_cmds \
14429
postuninstall_cmds \
14431
sys_lib_search_path_spec \
14432
sys_lib_dlsearch_path_spec; do
14433
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14434
*[\\\\\\\`\\"\\\$]*)
14435
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14438
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14443
# Fix-up fallback echo if it was mangled by the above quoting rules.
14445
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14449
ac_aux_dir='$ac_aux_dir'
14450
xsi_shell='$xsi_shell'
14451
lt_shell_append='$lt_shell_append'
14453
# See if we are running on zsh, and set the options which allow our
14454
# commands through without removal of \ escapes INIT.
14455
if test -n "\${ZSH_VERSION+set}" ; then
14456
setopt NO_GLOB_SUBST
14462
TIMESTAMP='$TIMESTAMP'
14471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473
# Handling of arguments.
14474
for ac_config_target in $ac_config_targets
14476
case $ac_config_target in
14477
"libtool_patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_patch" ;;
14478
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14479
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14480
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14481
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14482
"contrib/monit.upstart") CONFIG_FILES="$CONFIG_FILES contrib/monit.upstart" ;;
14483
"contrib/monit.service") CONFIG_FILES="$CONFIG_FILES contrib/monit.service" ;;
14485
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14490
# If the user did not use the arguments to specify the items to instantiate,
14491
# then the envvar interface is used. Set only those that are not.
14492
# We use the long form for the default assignment because of an extremely
14493
# bizarre bug on SunOS 4.1.3.
14494
if $ac_need_defaults; then
14495
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14496
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14497
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14500
# Have a temporary directory for convenience. Make it in the build tree
14501
# simply because there is no reason against having it here, and in addition,
14502
# creating and moving files from /tmp can sometimes cause problems.
14503
# Hook for its removal unless debugging.
14504
# Note that there is a small window in which the directory will not be cleaned:
14505
# after its creation but before its name has been assigned to `$tmp'.
14509
trap 'exit_status=$?
14510
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14512
trap 'as_fn_exit 1' 1 2 13 15
14514
# Create a (secure) tmp directory for tmp files.
14517
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14518
test -n "$tmp" && test -d "$tmp"
14521
tmp=./conf$$-$RANDOM
14522
(umask 077 && mkdir "$tmp")
14523
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14525
# Set up the scripts for CONFIG_FILES section.
14526
# No need to generate them if there are no CONFIG_FILES.
14527
# This happens for instance with `./config.status config.h'.
14528
if test -n "$CONFIG_FILES"; then
14531
ac_cr=`echo X | tr X '\015'`
14532
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14533
# But we know of no other shell where ac_cr would be empty at this
14534
# point, so we can use a bashism as a fallback.
14535
if test "x$ac_cr" = x; then
14536
eval ac_cr=\$\'\\r\'
14538
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14539
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14542
ac_cs_awk_cr=$ac_cr
14545
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14550
echo "cat >conf$$subs.awk <<_ACEOF" &&
14551
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14553
} >conf$$subs.sh ||
14554
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14555
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14557
for ac_last_try in false false false false false :; do
14558
. ./conf$$subs.sh ||
14559
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14561
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14562
if test $ac_delim_n = $ac_delim_num; then
14564
elif $ac_last_try; then
14565
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14567
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14570
rm -f conf$$subs.sh
14572
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14573
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14577
s/^/S["/; s/!.*/"]=/
14587
s/\(.\{148\}\)..*/\1/
14589
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14594
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14601
s/\(.\{148\}\)..*/\1/
14603
s/["\\]/\\&/g; s/^/"/; s/$/"/
14607
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14612
' <conf$$subs.awk | sed '
14617
' >>$CONFIG_STATUS || ac_write_fail=1
14618
rm -f conf$$subs.awk
14619
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14621
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14622
for (key in S) S_is_set[key] = 1
14628
nfields = split(line, field, "@")
14630
len = length(field[1])
14631
for (i = 2; i < nfields; i++) {
14633
keylen = length(key)
14634
if (S_is_set[key]) {
14636
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14637
len += length(value) + length(field[++i])
14648
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14649
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14650
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14653
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14654
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
14657
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14658
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14659
# trailing colons and then remove the whole line if VPATH becomes empty
14660
# (actually we leave an empty line to preserve line numbers).
14661
if test "x$srcdir" = x.; then
14662
ac_vpsub='/^[ ]*VPATH[ ]*=/{
14663
s/:*\$(srcdir):*/:/
14664
s/:*\${srcdir}:*/:/
14666
s/^\([^=]*=[ ]*\):*/\1/
14672
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14673
fi # test -n "$CONFIG_FILES"
14675
# Set up the scripts for CONFIG_HEADERS section.
14676
# No need to generate them if there are no CONFIG_HEADERS.
14677
# This happens for instance with `./config.status Makefile'.
14678
if test -n "$CONFIG_HEADERS"; then
14679
cat >"$tmp/defines.awk" <<\_ACAWK ||
14683
# Transform confdefs.h into an awk script `defines.awk', embedded as
14684
# here-document in config.status, that substitutes the proper values into
14685
# config.h.in to produce config.h.
14687
# Create a delimiter string that does not exist in confdefs.h, to ease
14688
# handling of long lines.
14690
for ac_last_try in false false :; do
14691
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14692
if test -z "$ac_t"; then
14694
elif $ac_last_try; then
14695
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14697
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14701
# For the awk script, D is an array of macro values keyed by name,
14702
# likewise P contains macro parameters if any. Preserve backslash
14703
# newline sequences.
14705
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14707
s/.\{148\}/&'"$ac_delim"'/g
14710
s/^[ ]*#[ ]*define[ ][ ]*/ /
14717
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14719
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14723
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14724
D["\1"]=" \3\\\\\\n"\\/p
14726
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14731
s/.\{148\}/&'"$ac_delim"'/g
14736
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14739
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14741
' <confdefs.h | sed '
14742
s/'"$ac_delim"'/"\\\
14743
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14745
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14746
for (key in D) D_is_set[key] = 1
14749
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14751
split(line, arg, " ")
14752
if (arg[1] == "#") {
14756
defundef = substr(arg[1], 2)
14759
split(mac1, mac2, "(") #)
14761
prefix = substr(line, 1, index(line, defundef) - 1)
14762
if (D_is_set[macro]) {
14763
# Preserve the white space surrounding the "#".
14764
print prefix "define", macro P[macro] D[macro]
14767
# Replace #undef with comments. This is necessary, for example,
14768
# in the case of _POSIX_SOURCE, which is predefined and required
14769
# on some systems where configure will not decide to define it.
14770
if (defundef == "undef") {
14771
print "/*", prefix defundef, macro, "*/"
14779
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14780
as_fn_error "could not setup config headers machinery" "$LINENO" 5
14781
fi # test -n "$CONFIG_HEADERS"
14784
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14789
:[FHLC]) ac_mode=$ac_tag; continue;;
14791
case $ac_mode$ac_tag in
14793
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14794
:[FH]-) ac_tag=-:-;;
14795
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14812
-) ac_f="$tmp/stdin";;
14813
*) # Look for the file first in the build tree, then in the source tree
14814
# (if the path is not absolute). The absolute path cannot be DOS-style,
14815
# because $ac_f cannot contain `:'.
14819
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14821
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14823
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14824
as_fn_append ac_file_inputs " '$ac_f'"
14827
# Let's still pretend it is `configure' which instantiates (i.e., don't
14828
# use $as_me), people would be surprised to read:
14829
# /* config.h. Generated by config.status. */
14830
configure_input='Generated from '`
14831
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14833
if test x"$ac_file" != x-; then
14834
configure_input="$ac_file. $configure_input"
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14836
$as_echo "$as_me: creating $ac_file" >&6;}
14838
# Neutralize special characters interpreted by sed in replacement strings.
14839
case $configure_input in #(
14840
*\&* | *\|* | *\\* )
14841
ac_sed_conf_input=`$as_echo "$configure_input" |
14842
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14843
*) ac_sed_conf_input=$configure_input;;
14847
*:-:* | *:-) cat >"$tmp/stdin" \
14848
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14853
ac_dir=`$as_dirname -- "$ac_file" ||
14854
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14855
X"$ac_file" : 'X\(//\)[^/]' \| \
14856
X"$ac_file" : 'X\(//\)$' \| \
14857
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14858
$as_echo X"$ac_file" |
14859
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14863
/^X\(\/\/\)[^/].*/{
14876
as_dir="$ac_dir"; as_fn_mkdir_p
14880
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14882
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14883
# A ".." for each directory in $ac_dir_suffix.
14884
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14885
case $ac_top_builddir_sub in
14886
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14887
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14890
ac_abs_top_builddir=$ac_pwd
14891
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14892
# for backward compatibility:
14893
ac_top_builddir=$ac_top_build_prefix
14896
.) # We are building in place.
14898
ac_top_srcdir=$ac_top_builddir_sub
14899
ac_abs_top_srcdir=$ac_pwd ;;
14900
[\\/]* | ?:[\\/]* ) # Absolute name.
14901
ac_srcdir=$srcdir$ac_dir_suffix;
14902
ac_top_srcdir=$srcdir
14903
ac_abs_top_srcdir=$srcdir ;;
14904
*) # Relative name.
14905
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14906
ac_top_srcdir=$ac_top_build_prefix$srcdir
14907
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14909
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14919
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14920
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14922
ac_MKDIR_P=$MKDIR_P
14924
[\\/$]* | ?:[\\/]* ) ;;
14925
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14929
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14930
# If the template does not know about datarootdir, expand it.
14931
# FIXME: This hack should be removed a few years after 2.60.
14932
ac_datarootdir_hack=; ac_datarootdir_seen=
14943
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14944
*datarootdir*) ac_datarootdir_seen=yes;;
14945
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14947
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14950
ac_datarootdir_hack='
14951
s&@datadir@&$datadir&g
14952
s&@docdir@&$docdir&g
14953
s&@infodir@&$infodir&g
14954
s&@localedir@&$localedir&g
14955
s&@mandir@&$mandir&g
14956
s&\\\${datarootdir}&$datarootdir&g' ;;
14960
# Neutralize VPATH when `$srcdir' = `.'.
14961
# Shell code in configure.ac might set extrasub.
14962
# FIXME: do we really want to maintain this feature?
14963
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964
ac_sed_extra="$ac_vpsub
14967
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14970
s|@configure_input@|$ac_sed_conf_input|;t t
14971
s&@top_builddir@&$ac_top_builddir_sub&;t t
14972
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14973
s&@srcdir@&$ac_srcdir&;t t
14974
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14975
s&@top_srcdir@&$ac_top_srcdir&;t t
14976
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14977
s&@builddir@&$ac_builddir&;t t
14978
s&@abs_builddir@&$ac_abs_builddir&;t t
14979
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14980
s&@INSTALL@&$ac_INSTALL&;t t
14981
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14982
$ac_datarootdir_hack
14984
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14985
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14987
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14988
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14989
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14990
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14991
which seems to be undefined. Please make sure it is defined." >&5
14992
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14993
which seems to be undefined. Please make sure it is defined." >&2;}
14997
-) cat "$tmp/out" && rm -f "$tmp/out";;
14998
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15000
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15006
if test x"$ac_file" != x-; then
15008
$as_echo "/* $configure_input */" \
15009
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15010
} >"$tmp/config.h" \
15011
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15012
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15013
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15014
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15017
mv "$tmp/config.h" "$ac_file" \
15018
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15021
$as_echo "/* $configure_input */" \
15022
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15023
|| as_fn_error "could not create -" "$LINENO" 5
15025
# Compute "$ac_file"'s index in $config_headers.
15028
for _am_header in $config_headers :; do
15029
case $_am_header in
15030
$_am_arg | $_am_arg:* )
15033
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15036
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15037
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15038
X"$_am_arg" : 'X\(//\)[^/]' \| \
15039
X"$_am_arg" : 'X\(//\)$' \| \
15040
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15041
$as_echo X"$_am_arg" |
15042
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046
/^X\(\/\/\)[^/].*/{
15058
s/.*/./; q'`/stamp-h$_am_stamp_count
15061
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15062
$as_echo "$as_me: executing $ac_file commands" >&6;}
15067
case $ac_file$ac_mode in
15068
"libtool_patch":C) test `uname` = "OpenBSD" && perl -p -i -e "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool ;;
15069
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15070
# Autoconf 2.62 quotes --file arguments for eval, but not when files
15071
# are listed without --file. Let's play safe and only enable the eval
15072
# if we detect the quoting.
15073
case $CONFIG_FILES in
15074
*\'*) eval set x "$CONFIG_FILES" ;;
15075
*) set x $CONFIG_FILES ;;
15080
# Strip MF so we end up with the name of the file.
15081
mf=`echo "$mf" | sed -e 's/:.*$//'`
15082
# Check whether this is an Automake generated Makefile or not.
15083
# We used to match only the files named `Makefile.in', but
15084
# some people rename them; so instead we look at the file content.
15085
# Grep'ing the first line is not enough: some people post-process
15086
# each Makefile.in and add a new line on top of each file to say so.
15087
# Grep'ing the whole file is not good either: AIX grep has a line
15088
# limit of 2048, but all sed's we know have understand at least 4000.
15089
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15090
dirpart=`$as_dirname -- "$mf" ||
15091
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15092
X"$mf" : 'X\(//\)[^/]' \| \
15093
X"$mf" : 'X\(//\)$' \| \
15094
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15096
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100
/^X\(\/\/\)[^/].*/{
15116
# Extract the definition of DEPDIR, am__include, and am__quote
15117
# from the Makefile without running `make'.
15118
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15119
test -z "$DEPDIR" && continue
15120
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15121
test -z "am__include" && continue
15122
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15123
# When using ansi2knr, U may be empty or an underscore; expand it
15124
U=`sed -n 's/^U = //p' < "$mf"`
15125
# Find all dependency output files, they are included files with
15126
# $(DEPDIR) in their names. We invoke sed twice because it is the
15127
# simplest approach to changing $(DEPDIR) to its actual value in the
15129
for file in `sed -n "
15130
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15131
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15132
# Make sure the directory exists.
15133
test -f "$dirpart/$file" && continue
15134
fdir=`$as_dirname -- "$file" ||
15135
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15136
X"$file" : 'X\(//\)[^/]' \| \
15137
X"$file" : 'X\(//\)$' \| \
15138
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15139
$as_echo X"$file" |
15140
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15144
/^X\(\/\/\)[^/].*/{
15157
as_dir=$dirpart/$fdir; as_fn_mkdir_p
15158
# echo "creating $dirpart/$file"
15159
echo '# dummy' > "$dirpart/$file"
15166
# See if we are running on zsh, and set the options which allow our
15167
# commands through without removal of \ escapes.
15168
if test -n "${ZSH_VERSION+set}" ; then
15169
setopt NO_GLOB_SUBST
15172
cfgfile="${ofile}T"
15173
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15176
cat <<_LT_EOF >> "$cfgfile"
15179
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15180
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15181
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15182
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15184
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15185
# 2006, 2007, 2008 Free Software Foundation, Inc.
15186
# Written by Gordon Matzigkeit, 1996
15188
# This file is part of GNU Libtool.
15190
# GNU Libtool is free software; you can redistribute it and/or
15191
# modify it under the terms of the GNU General Public License as
15192
# published by the Free Software Foundation; either version 2 of
15193
# the License, or (at your option) any later version.
15195
# As a special exception to the GNU General Public License,
15196
# if you distribute this file as part of a program or library that
15197
# is built using GNU Libtool, you may include this file under the
15198
# same distribution terms that you use for the rest of that program.
15200
# GNU Libtool is distributed in the hope that it will be useful,
15201
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15202
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15203
# GNU General Public License for more details.
15205
# You should have received a copy of the GNU General Public License
15206
# along with GNU Libtool; see the file COPYING. If not, a copy
15207
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15208
# obtained by writing to the Free Software Foundation, Inc.,
15209
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15212
# The names of the tagged configurations supported by this script.
15215
# ### BEGIN LIBTOOL CONFIG
15217
# Whether or not to build static libraries.
15218
build_old_libs=$enable_static
15220
# Which release of libtool.m4 was used?
15221
macro_version=$macro_version
15222
macro_revision=$macro_revision
15224
# Whether or not to build shared libraries.
15225
build_libtool_libs=$enable_shared
15227
# What type of objects to build.
15230
# Whether or not to optimize for fast installation.
15231
fast_install=$enable_fast_install
15234
host_alias=$host_alias
15238
# The build system.
15239
build_alias=$build_alias
15243
# A sed program that does not truncate output.
15246
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15247
Xsed="\$SED -e 1s/^X//"
15249
# A grep program that handles long lines.
15255
# A literal string matcher.
15258
# A BSD- or MS-compatible name lister.
15261
# Whether we need soft or hard links.
15264
# What is the maximum length of a command?
15265
max_cmd_len=$max_cmd_len
15267
# Object file suffix (normally "o").
15270
# Executable file suffix (normally "").
15273
# whether the shell understands "unset".
15276
# turn spaces into newlines.
15279
# turn newlines into spaces.
15282
# How to create reloadable object files.
15283
reload_flag=$lt_reload_flag
15284
reload_cmds=$lt_reload_cmds
15286
# An object symbol dumper.
15287
OBJDUMP=$lt_OBJDUMP
15289
# Method to check whether dependent libraries are shared objects.
15290
deplibs_check_method=$lt_deplibs_check_method
15292
# Command to use when deplibs_check_method == "file_magic".
15293
file_magic_cmd=$lt_file_magic_cmd
15297
AR_FLAGS=$lt_AR_FLAGS
15299
# A symbol stripping program.
15302
# Commands used to install an old-style archive.
15304
old_postinstall_cmds=$lt_old_postinstall_cmds
15305
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15310
# LTCC compiler flags.
15311
LTCFLAGS=$lt_CFLAGS
15313
# Take the output of nm and produce a listing of raw symbols and C names.
15314
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15316
# Transform the output of nm in a proper C declaration.
15317
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15319
# Transform the output of nm in a C name address pair.
15320
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15322
# Transform the output of nm in a C name address pair when lib prefix is needed.
15323
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15325
# The name of the directory that contains temporary libtool files.
15328
# Shell to use when invoking shell scripts.
15331
# An echo program that does not interpret backslashes.
15334
# Used to examine libraries when file_magic_cmd begins with "file".
15335
MAGIC_CMD=$MAGIC_CMD
15337
# Must we lock files when doing compilation?
15338
need_locks=$lt_need_locks
15340
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15341
DSYMUTIL=$lt_DSYMUTIL
15343
# Tool to change global to local symbols on Mac OS X.
15346
# Tool to manipulate fat objects and archives on Mac OS X.
15349
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15352
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15353
OTOOL64=$lt_OTOOL64
15355
# Old archive suffix (normally "a").
15358
# Shared library suffix (normally ".so").
15359
shrext_cmds=$lt_shrext_cmds
15361
# The commands to extract the exported symbol list from a shared archive.
15362
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15364
# Variables whose values should be saved in libtool wrapper scripts and
15365
# restored at link time.
15366
variables_saved_for_relink=$lt_variables_saved_for_relink
15368
# Do we need the "lib" prefix for modules?
15369
need_lib_prefix=$need_lib_prefix
15371
# Do we need a version for libraries?
15372
need_version=$need_version
15374
# Library versioning type.
15375
version_type=$version_type
15377
# Shared library runtime path variable.
15378
runpath_var=$runpath_var
15380
# Shared library path variable.
15381
shlibpath_var=$shlibpath_var
15383
# Is shlibpath searched before the hard-coded library search path?
15384
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15386
# Format of library name prefix.
15387
libname_spec=$lt_libname_spec
15389
# List of archive names. First name is the real one, the rest are links.
15390
# The last name is the one that the linker finds with -lNAME
15391
library_names_spec=$lt_library_names_spec
15393
# The coded name of the library, if different from the real name.
15394
soname_spec=$lt_soname_spec
15396
# Command to use after installation of a shared archive.
15397
postinstall_cmds=$lt_postinstall_cmds
15399
# Command to use after uninstallation of a shared archive.
15400
postuninstall_cmds=$lt_postuninstall_cmds
15402
# Commands used to finish a libtool library installation in a directory.
15403
finish_cmds=$lt_finish_cmds
15405
# As "finish_cmds", except a single script fragment to be evaled but
15407
finish_eval=$lt_finish_eval
15409
# Whether we should hardcode library paths into libraries.
15410
hardcode_into_libs=$hardcode_into_libs
15412
# Compile-time system search path for libraries.
15413
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15415
# Run-time system search path for libraries.
15416
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15418
# Whether dlopen is supported.
15419
dlopen_support=$enable_dlopen
15421
# Whether dlopen of programs is supported.
15422
dlopen_self=$enable_dlopen_self
15424
# Whether dlopen of statically linked programs is supported.
15425
dlopen_self_static=$enable_dlopen_self_static
15427
# Commands to strip libraries.
15428
old_striplib=$lt_old_striplib
15429
striplib=$lt_striplib
15432
# The linker used to build libraries.
15435
# Commands used to build an old-style archive.
15436
old_archive_cmds=$lt_old_archive_cmds
15438
# A language specific compiler.
15441
# Is the compiler the GNU compiler?
15444
# Compiler flag to turn off builtin functions.
15445
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15447
# How to pass a linker flag through the compiler.
15448
wl=$lt_lt_prog_compiler_wl
15450
# Additional compiler flags for building library objects.
15451
pic_flag=$lt_lt_prog_compiler_pic
15453
# Compiler flag to prevent dynamic linking.
15454
link_static_flag=$lt_lt_prog_compiler_static
15456
# Does compiler simultaneously support -c and -o options?
15457
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15459
# Whether or not to add -lc for building shared libraries.
15460
build_libtool_need_lc=$archive_cmds_need_lc
15462
# Whether or not to disallow shared libs when runtime libs are static.
15463
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15465
# Compiler flag to allow reflexive dlopens.
15466
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15468
# Compiler flag to generate shared objects directly from archives.
15469
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15471
# Whether the compiler copes with passing no objects directly.
15472
compiler_needs_object=$lt_compiler_needs_object
15474
# Create an old-style archive from a shared archive.
15475
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15477
# Create a temporary old-style archive to link instead of a shared archive.
15478
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15480
# Commands used to build a shared archive.
15481
archive_cmds=$lt_archive_cmds
15482
archive_expsym_cmds=$lt_archive_expsym_cmds
15484
# Commands used to build a loadable module if different from building
15485
# a shared archive.
15486
module_cmds=$lt_module_cmds
15487
module_expsym_cmds=$lt_module_expsym_cmds
15489
# Whether we are building with GNU ld or not.
15490
with_gnu_ld=$lt_with_gnu_ld
15492
# Flag that allows shared libraries with undefined symbols to be built.
15493
allow_undefined_flag=$lt_allow_undefined_flag
15495
# Flag that enforces no undefined symbols.
15496
no_undefined_flag=$lt_no_undefined_flag
15498
# Flag to hardcode \$libdir into a binary during linking.
15499
# This must work even if \$libdir does not exist
15500
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15502
# If ld is used when linking, flag to hardcode \$libdir into a binary
15503
# during linking. This must work even if \$libdir does not exist.
15504
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15506
# Whether we need a single "-rpath" flag with a separated argument.
15507
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15509
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15510
# DIR into the resulting binary.
15511
hardcode_direct=$hardcode_direct
15513
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15514
# DIR into the resulting binary and the resulting library dependency is
15515
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15516
# library is relocated.
15517
hardcode_direct_absolute=$hardcode_direct_absolute
15519
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15520
# into the resulting binary.
15521
hardcode_minus_L=$hardcode_minus_L
15523
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15524
# into the resulting binary.
15525
hardcode_shlibpath_var=$hardcode_shlibpath_var
15527
# Set to "yes" if building a shared library automatically hardcodes DIR
15528
# into the library and all subsequent libraries and executables linked
15530
hardcode_automatic=$hardcode_automatic
15532
# Set to yes if linker adds runtime paths of dependent libraries
15533
# to runtime path list.
15534
inherit_rpath=$inherit_rpath
15536
# Whether libtool must link a program against all its dependency libraries.
15537
link_all_deplibs=$link_all_deplibs
15539
# Fix the shell variable \$srcfile for the compiler.
15540
fix_srcfile_path=$lt_fix_srcfile_path
15542
# Set to "yes" if exported symbols are required.
15543
always_export_symbols=$always_export_symbols
15545
# The commands to list exported symbols.
15546
export_symbols_cmds=$lt_export_symbols_cmds
15548
# Symbols that should not be listed in the preloaded symbols.
15549
exclude_expsyms=$lt_exclude_expsyms
15551
# Symbols that must always be exported.
15552
include_expsyms=$lt_include_expsyms
15554
# Commands necessary for linking programs (against libraries) with templates.
15555
prelink_cmds=$lt_prelink_cmds
15557
# Specify filename containing input files.
15558
file_list_spec=$lt_file_list_spec
15560
# How to hardcode a shared library path into an executable.
15561
hardcode_action=$hardcode_action
15563
# ### END LIBTOOL CONFIG
15569
cat <<\_LT_EOF >> "$cfgfile"
15570
# AIX sometimes has problems with the GCC collect2 program. For some
15571
# reason, if we set the COLLECT_NAMES environment variable, the problems
15572
# vanish in a puff of smoke.
15573
if test "X${COLLECT_NAMES+set}" != Xset; then
15575
export COLLECT_NAMES
15582
ltmain="$ac_aux_dir/ltmain.sh"
15585
# We use sed instead of cat because bash on DJGPP gets confused if
15586
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15587
# text mode, it properly converts lines to CR/LF. This bash problem
15588
# is reportedly fixed, but why not run on old versions too?
15589
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15590
|| (rm -f "$cfgfile"; exit 1)
15594
cat << \_LT_EOF >> "$cfgfile"
15596
# func_dirname file append nondir_replacement
15597
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15598
# otherwise set result to NONDIR_REPLACEMENT.
15602
*/*) func_dirname_result="${1%/*}${2}" ;;
15603
* ) func_dirname_result="${3}" ;;
15607
# func_basename file
15610
func_basename_result="${1##*/}"
15613
# func_dirname_and_basename file append nondir_replacement
15614
# perform func_basename and func_dirname in a single function
15616
# dirname: Compute the dirname of FILE. If nonempty,
15617
# add APPEND to the result, otherwise set result
15618
# to NONDIR_REPLACEMENT.
15619
# value returned in "$func_dirname_result"
15620
# basename: Compute filename of FILE.
15621
# value retuned in "$func_basename_result"
15622
# Implementation must be kept synchronized with func_dirname
15623
# and func_basename. For efficiency, we do not delegate to
15624
# those functions but instead duplicate the functionality here.
15625
func_dirname_and_basename ()
15628
*/*) func_dirname_result="${1%/*}${2}" ;;
15629
* ) func_dirname_result="${3}" ;;
15631
func_basename_result="${1##*/}"
15634
# func_stripname prefix suffix name
15635
# strip PREFIX and SUFFIX off of NAME.
15636
# PREFIX and SUFFIX must not contain globbing or regex special
15637
# characters, hashes, percent signs, but SUFFIX may contain a leading
15638
# dot (in which case that matches only a dot).
15641
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15642
# positional parameters, so assign one to ordinary parameter first.
15643
func_stripname_result=${3}
15644
func_stripname_result=${func_stripname_result#"${1}"}
15645
func_stripname_result=${func_stripname_result%"${2}"}
15651
func_opt_split_opt=${1%%=*}
15652
func_opt_split_arg=${1#*=}
15659
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15660
*) func_lo2o_result=${1} ;;
15664
# func_xform libobj-or-source
15667
func_xform_result=${1%.*}.lo
15670
# func_arith arithmetic-term...
15673
func_arith_result=$(( $* ))
15677
# STRING may not start with a hyphen.
15680
func_len_result=${#1}
15685
*) # Bourne compatible functions.
15686
cat << \_LT_EOF >> "$cfgfile"
15688
# func_dirname file append nondir_replacement
15689
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15690
# otherwise set result to NONDIR_REPLACEMENT.
15693
# Extract subdirectory from the argument.
15694
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15695
if test "X$func_dirname_result" = "X${1}"; then
15696
func_dirname_result="${3}"
15698
func_dirname_result="$func_dirname_result${2}"
15702
# func_basename file
15705
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15709
# func_stripname prefix suffix name
15710
# strip PREFIX and SUFFIX off of NAME.
15711
# PREFIX and SUFFIX must not contain globbing or regex special
15712
# characters, hashes, percent signs, but SUFFIX may contain a leading
15713
# dot (in which case that matches only a dot).
15714
# func_strip_suffix prefix name
15718
.*) func_stripname_result=`$ECHO "X${3}" \
15719
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15720
*) func_stripname_result=`$ECHO "X${3}" \
15721
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15726
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15727
my_sed_long_arg='1s/^-[^=]*=//'
15732
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15733
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15739
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15742
# func_xform libobj-or-source
15745
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15748
# func_arith arithmetic-term...
15751
func_arith_result=`expr "$@"`
15755
# STRING may not start with a hyphen.
15758
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15764
case $lt_shell_append in
15766
cat << \_LT_EOF >> "$cfgfile"
15768
# func_append var value
15769
# Append VALUE to the end of shell variable VAR.
15777
cat << \_LT_EOF >> "$cfgfile"
15779
# func_append var value
15780
# Append VALUE to the end of shell variable VAR.
15791
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15792
|| (rm -f "$cfgfile"; exit 1)
15794
mv -f "$cfgfile" "$ofile" ||
15795
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15806
ac_clean_files=$ac_clean_files_save
15808
test $ac_write_fail = 0 ||
15809
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15812
# configure is writing to config.log, and then calls config.status.
15813
# config.status does its own redirection, appending to config.log.
15814
# Unfortunately, on DOS this fails, as config.log is still kept open
15815
# by configure, so config.status won't be able to write to it; its
15816
# output is simply discarded. So we exec the FD to /dev/null,
15817
# effectively closing config.log, so it can be properly (re)opened and
15818
# appended to by config.status. When coming back to configure, we
15819
# need to make the FD available again.
15820
if test "$no_create" != yes; then
15822
ac_config_status_args=
15823
test "$silent" = yes &&
15824
ac_config_status_args="$ac_config_status_args --quiet"
15826
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15828
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15829
# would make configure fail if this is the last instruction.
15830
$ac_cs_success || as_fn_exit $?
15834
# CONFIG_SUBDIRS section.
15836
if test "$no_recursion" != yes; then
15838
# Remove --cache-file, --srcdir, and --disable-option-checking arguments
15839
# so they do not pile up.
15840
ac_sub_configure_args=
15842
eval "set x $ac_configure_args"
15846
if test -n "$ac_prev"; then
15851
-cache-file | --cache-file | --cache-fil | --cache-fi \
15852
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15853
ac_prev=cache_file ;;
15854
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15855
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15858
--config-cache | -C)
15860
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15862
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15864
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15866
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15868
--disable-option-checking)
15872
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15874
as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15878
# Always prepend --prefix to ensure using the same prefix
15879
# in subdir configurations.
15880
ac_arg="--prefix=$prefix"
15882
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15884
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15887
if test "$silent" = yes; then
15888
ac_sub_configure_args="--silent $ac_sub_configure_args"
15891
# Always prepend --disable-option-checking to silence warnings, since
15892
# different subdirs can have different --enable and --with options.
15893
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15896
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15898
# Do not complain, so a configure script can configure whichever
15899
# parts of a large source tree are present.
15900
test -d "$srcdir/$ac_dir" || continue
15902
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15903
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15904
$as_echo "$ac_msg" >&6
15905
as_dir="$ac_dir"; as_fn_mkdir_p
15909
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15911
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15912
# A ".." for each directory in $ac_dir_suffix.
15913
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15914
case $ac_top_builddir_sub in
15915
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15916
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15919
ac_abs_top_builddir=$ac_pwd
15920
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15921
# for backward compatibility:
15922
ac_top_builddir=$ac_top_build_prefix
15925
.) # We are building in place.
15927
ac_top_srcdir=$ac_top_builddir_sub
15928
ac_abs_top_srcdir=$ac_pwd ;;
15929
[\\/]* | ?:[\\/]* ) # Absolute name.
15930
ac_srcdir=$srcdir$ac_dir_suffix;
15931
ac_top_srcdir=$srcdir
15932
ac_abs_top_srcdir=$srcdir ;;
15933
*) # Relative name.
15934
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15935
ac_top_srcdir=$ac_top_build_prefix$srcdir
15936
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15938
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15943
# Check for guested configure; otherwise get Cygnus style configure.
15944
if test -f "$ac_srcdir/configure.gnu"; then
15945
ac_sub_configure=$ac_srcdir/configure.gnu
15946
elif test -f "$ac_srcdir/configure"; then
15947
ac_sub_configure=$ac_srcdir/configure
15948
elif test -f "$ac_srcdir/configure.in"; then
15949
# This should be Cygnus configure.
15950
ac_sub_configure=$ac_aux_dir/configure
15952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15953
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15957
# The recursion is here.
15958
if test -n "$ac_sub_configure"; then
15959
# Make the cache file name correct relative to the subdirectory.
15960
case $cache_file in
15961
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15962
*) # Relative name.
15963
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15966
{ $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15967
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15968
# The eval makes quoting arguments work.
15969
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15970
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15971
as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15977
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15978
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15979
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15984
echo "Monit Build Information:"
15986
echo " Architecture: ${ARCH}"
15987
if test "$use_sslstatic" = "1" -o "$use_ssl" = "1"; then
15988
echo " SSL include directory: ${sslincldir}"
15989
echo " SSL library directory: ${ssllibdir}"
15991
echo " Compiler flags: ${CFLAGS}"
15992
echo " Linker flags: ${LIBS}"
15993
echo " pid file location: ${piddir}"
15994
echo " Install directory: ${prefix}"
15998
+------------------------------------------------------------+
16000
| This is Open Source Software and use is subject to the GNU |
16001
| AFFERO GENERAL PUBLIC LICENSE version 3, available in this |
16002
| distribution in the file COPYING. |
16004
| By continuing this installation process, you are bound by |
16005
| the terms of this license agreement. If you do not agree |
16006
| with the terms of this license, you must abort the |
16007
| installation process at this point. |
16008
+------------------------------------------------------------+
16009
| Monit has been configured with the following options: |
16012
if test "$use_pam" = "1"; then
16013
echo "| PAM support: ENABLED |"
16015
echo "| PAM support: DISABLED |"
16017
if test "$use_sslstatic" = "1" -o "$use_ssl" = "1"; then
16018
echo "| SSL support: ENABLED |"
16020
echo "| SSL support: DISABLED |"
16022
if test "$use_largefiles" = "1"; then
16023
echo "| Large files support: ENABLED |"
16025
echo "| Large files support: DISABLED |"
16027
if test "x1" = "x$OPTIMIZED"; then
16028
echo "| Optimized: ENABLED |"
16030
echo "| Optimized: DISABLED |"
16032
echo "+------------------------------------------------------------+"