2
# From configure.ac Id: configure.ac 5055 2010-07-28 11:58:00Z tfheen .
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.65 for Varnish 2.1.3.
6
# Report bugs to <varnish-dev@varnish-cache.org>.
8
# Copyright (c) 2006 Verdens Gang AS
9
# Copyright (c) 2006-2010 Redpill Linpro AS
10
# Copyright (c) 2010 Varnish Software AS
13
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
18
# This configure script is free software; the Free Software Foundation
19
# gives unlimited permission to copy, distribute and modify it.
20
## -------------------- ##
21
## M4sh Initialization. ##
22
## -------------------- ##
24
# Be more Bourne compatible
25
DUALCASE=1; export DUALCASE # for MKS sh
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30
# is contrary to our usage. Disable this feature.
31
alias -g '${1+"$@"}'='"$@"'
34
case `(set -o) 2>/dev/null` in #(
46
# Printing a long string crashes Solaris 7 /usr/bin/printf.
47
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50
# Prefer a ksh shell builtin over an external printf program on Solaris,
51
# but without wasting forks for bash or zsh.
52
if test -z "$BASH_VERSION$ZSH_VERSION" \
53
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
55
as_echo_n='print -rn --'
56
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
60
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
61
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
62
as_echo_n='/usr/ucb/echo -n'
64
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
69
expr "X$arg" : "X\\(.*\\)$as_nl";
70
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
75
as_echo_n='sh -c $as_echo_n_body as_echo'
78
as_echo='sh -c $as_echo_body as_echo'
81
# The user is always right.
82
if test "${PATH_SEPARATOR+set}" != set; then
84
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
92
# We need space, tab and new line, in precisely that order. Quoting is
93
# there to prevent editors from complaining about space-tab.
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
# splitting by setting IFS to empty value.)
98
# Find who we are. Look in the path if we contain no directory separator.
100
*[\\/]* ) as_myself=$0 ;;
101
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105
test -z "$as_dir" && as_dir=.
106
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
# in which case we are not to be found in the path.
114
if test "x$as_myself" = x; then
117
if test ! -f "$as_myself"; then
118
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122
# Unset variables that we do not need and which cause bugs (e.g. in
123
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
124
# suppresses any "Segmentation fault" message there. '((' could
125
# trigger a bug in pdksh 5.2.14.
126
for as_var in BASH_ENV ENV MAIL MAILPATH
127
do eval test x\${$as_var+set} = xset \
128
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
141
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
143
if test "x$CONFIG_SHELL" = x; then
144
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
147
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148
# is contrary to our usage. Disable this feature.
149
alias -g '\${1+\"\$@\"}'='\"\$@\"'
152
case \`(set -o) 2>/dev/null\` in #(
160
as_required="as_fn_return () { (exit \$1); }
161
as_fn_success () { as_fn_return 0; }
162
as_fn_failure () { as_fn_return 1; }
163
as_fn_ret_success () { return 0; }
164
as_fn_ret_failure () { return 1; }
167
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
174
exitcode=1; echo positional parameters were not saved.
176
test x\$exitcode = x0 || exit 1"
177
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
178
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
179
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
180
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
181
test \$(( 1 + 1 )) = 2 || exit 1"
182
if (eval "$as_required") 2>/dev/null; then :
187
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195
test -z "$as_dir" && as_dir=.
199
for as_base in sh bash ksh sh5; do
200
# Try only shells that exist, to save several forks.
201
as_shell=$as_dir/$as_base
202
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
203
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
204
CONFIG_SHELL=$as_shell as_have_required=yes
205
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
213
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
214
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
215
CONFIG_SHELL=$SHELL as_have_required=yes
220
if test "x$CONFIG_SHELL" != x; then :
221
# We cannot yet assume a decent shell, so we have to provide a
222
# neutralization value for shells without unset; and this also
223
# works around shells that cannot unset nonexistent variables.
226
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
231
if test x$as_have_required = xno; then :
232
$as_echo "$0: This script requires a shell more modern than all"
233
$as_echo "$0: the shells that I found on your system."
234
if test x${ZSH_VERSION+set} = xset ; then
235
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
236
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
238
$as_echo "$0: Please tell bug-autoconf@gnu.org and
239
$0: varnish-dev@varnish-cache.org about your system,
240
$0: including any error possibly output before this
241
$0: message. Then install a modern shell, or manually run
242
$0: the script under such a shell if you do have one."
248
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Unset more variables known to interfere with behavior of common tools.
251
CLICOLOR_FORCE= GREP_OPTIONS=
252
unset CLICOLOR_FORCE GREP_OPTIONS
254
## --------------------- ##
255
## M4sh Shell Functions. ##
256
## --------------------- ##
259
# Portably unset VAR.
262
{ eval $1=; unset $1;}
266
# as_fn_set_status STATUS
267
# -----------------------
268
# Set $? to STATUS, without forking.
276
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286
# Create "$as_dir" as a directory, including parents if necessary.
291
-*) as_dir=./$as_dir;;
293
test -d "$as_dir" || eval $as_mkdir_p || {
297
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300
as_dirs="'$as_qdir' $as_dirs"
301
as_dir=`$as_dirname -- "$as_dir" ||
302
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303
X"$as_dir" : 'X\(//\)[^/]' \| \
304
X"$as_dir" : 'X\(//\)$' \| \
305
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306
$as_echo X"$as_dir" |
307
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324
test -d "$as_dir" && break
326
test -z "$as_dirs" || eval "mkdir $as_dirs"
327
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
# as_fn_append VAR VALUE
332
# ----------------------
333
# Append the text in VALUE to the end of the definition contained in VAR. Take
334
# advantage of any shell optimizations that allow amortized linear growth over
335
# repeated appends, instead of the typical quadratic growth present in naive
337
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338
eval 'as_fn_append ()
351
# Perform arithmetic evaluation on the ARGs, and store the result in the
352
# global $as_val. Take advantage of shells that can avoid forks. The arguments
353
# must be portable across $(()) and expr.
354
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362
as_val=`expr "$@" || test $? -eq 1`
367
# as_fn_error ERROR [LINENO LOG_FD]
368
# ---------------------------------
369
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371
# script with status $?, using 1 if that was 0.
374
as_status=$?; test $as_status -eq 0 && as_status=1
376
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379
$as_echo "$as_me: error: $1" >&2
380
as_fn_exit $as_status
383
if expr a : '\(a\)' >/dev/null 2>&1 &&
384
test "X`expr 00001 : '.*\(...\)'`" = X001; then
390
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402
as_me=`$as_basename -- "$0" ||
403
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404
X"$0" : 'X\(//\)$' \| \
405
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407
sed '/^.*\/\([^/][^/]*\)\/*$/{
421
# Avoid depending upon Character Ranges.
422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425
as_cr_digits='0123456789'
426
as_cr_alnum=$as_cr_Letters$as_cr_digits
429
as_lineno_1=$LINENO as_lineno_1a=$LINENO
430
as_lineno_2=$LINENO as_lineno_2a=$LINENO
431
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449
chmod +x "$as_me.lineno" ||
450
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
# Don't try to exec as it changes $[0], causing all sort of problems
453
# (the dirname of $[0] is not the place where we might find the
454
# original and so on. Autoconf is especially sensitive to this).
456
# Exit status is that of the last command.
460
ECHO_C= ECHO_N= ECHO_T=
461
case `echo -n x` in #(((((
463
case `echo 'xy\c'` in
464
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
466
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473
rm -f conf$$ conf$$.exe conf$$.file
474
if test -d conf$$.dir; then
475
rm -f conf$$.dir/conf$$.file
478
mkdir conf$$.dir 2>/dev/null
480
if (echo >conf$$.file) 2>/dev/null; then
481
if ln -s conf$$.file conf$$ 2>/dev/null; then
483
# ... but there are two gotchas:
484
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486
# In both cases, we have to default to `cp -p'.
487
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489
elif ln conf$$.file conf$$ 2>/dev/null; then
497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498
rmdir conf$$.dir 2>/dev/null
500
if mkdir -p . 2>/dev/null; then
501
as_mkdir_p='mkdir -p "$as_dir"'
503
test -d ./-p && rmdir ./-p
507
if test -x / >/dev/null 2>&1; then
510
if ls -dL / >/dev/null 2>&1; then
517
if test -d "$1"; then
523
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524
???[sx]*):;;*)false;;esac;fi
528
as_executable_p=$as_test_x
530
# Sed expression to map a string onto a valid CPP name.
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
# Sed expression to map a string onto a valid variable name.
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
# Check that we are running under the correct shell.
539
SHELL=${CONFIG_SHELL-/bin/sh}
543
# Remove one level of quotation (which was required for Make).
544
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
549
if test "X$1" = X--no-reexec; then
550
# Discard the --no-reexec flag, and continue.
552
elif test "X$1" = X--fallback-echo; then
553
# Avoid inline document here, it may be left over
555
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556
# Yippee, $ECHO works!
559
# Restart under the correct shell.
560
exec $SHELL "$0" --no-reexec ${1+"$@"}
563
if test "X$1" = X--fallback-echo; then
564
# used as fallback echo
572
# The HP-UX ksh and POSIX shell print the target directory to stdout
574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
if test -z "$lt_ECHO"; then
577
if test "X${echo_test_string+set}" != Xset; then
578
# find a string as large as possible, as long as the shell can cope with it
579
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
589
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591
test "X$echo_testing_string" = "X$echo_test_string"; then
594
# The Solaris, AIX, and Digital Unix default echo programs unquote
595
# backslashes. This makes it impossible to quote backslashes using
596
# echo "$something" | sed 's/\\/\\\\/g'
598
# So, first we look for a working echo in the user's PATH.
600
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601
for dir in $PATH /usr/ucb; do
603
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606
test "X$echo_testing_string" = "X$echo_test_string"; then
613
if test "X$ECHO" = Xecho; then
614
# We didn't find a better echo, so look for alternatives.
615
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617
test "X$echo_testing_string" = "X$echo_test_string"; then
618
# This shell has a builtin print -r that does the trick.
620
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621
test "X$CONFIG_SHELL" != X/bin/ksh; then
622
# If we have ksh, try running configure again with it.
623
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624
export ORIGINAL_CONFIG_SHELL
625
CONFIG_SHELL=/bin/ksh
627
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
636
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637
test "X$echo_testing_string" = 'X\t' &&
638
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639
test "X$echo_testing_string" = "X$echo_test_string"; then
640
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642
SHELL="$CONFIG_SHELL"
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
645
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646
test "X$echo_testing_string" = 'X\t' &&
647
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648
test "X$echo_testing_string" = "X$echo_test_string"; then
649
ECHO="$CONFIG_SHELL $0 --fallback-echo"
651
# maybe with a smaller string...
654
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
662
if test "$prev" != 'sed 50q "$0"'; then
663
echo_test_string=`eval $prev`
664
export echo_test_string
665
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667
# Oops. We lost completely, so just stick with echo.
676
# Copy echo and quote the copy suitably for passing to libtool from
677
# the Makefile, instead of quoting the original, which is used later.
679
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686
test -n "$DJDIR" || exec 7<&0 </dev/null
690
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691
# so uname gets run too.
692
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
ac_default_prefix=/usr/local
699
ac_config_libobj_dir=.
706
# Identity of this package.
707
PACKAGE_NAME='Varnish'
708
PACKAGE_TARNAME='varnish'
709
PACKAGE_VERSION='2.1.3'
710
PACKAGE_STRING='Varnish 2.1.3'
711
PACKAGE_BUGREPORT='varnish-dev@varnish-cache.org'
714
ac_unique_file="include/varnishapi.h"
715
# Factoring default headers for most tests.
716
ac_includes_default="\
718
#ifdef HAVE_SYS_TYPES_H
719
# include <sys/types.h>
721
#ifdef HAVE_SYS_STAT_H
722
# include <sys/stat.h>
728
# ifdef HAVE_STDLIB_H
733
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738
#ifdef HAVE_STRINGS_H
739
# include <strings.h>
741
#ifdef HAVE_INTTYPES_H
742
# include <inttypes.h>
751
ac_subst_vars='am__EXEEXT_FALSE
825
INSTALL_STRIP_PROGRAM
879
program_transform_name
892
enable_option_checking
893
enable_dependency_tracking
905
enable_developer_warnings
906
enable_debugging_symbols
908
enable_extra_developer_warnings
909
enable_stack_protector
914
ac_precious_vars='build_alias
931
# Initialize some variables set by options.
933
ac_init_version=false
934
ac_unrecognized_opts=
936
# The variables have the same names as the options, with
937
# dashes changed to underlines.
945
program_transform_name=s,x,x,
953
# Installation directory options.
954
# These are left unexpanded so users can "make install exec_prefix=/foo"
955
# and all the variables that are supposed to be based on exec_prefix
956
# by default will actually change.
957
# Use braces instead of parens because sh, perl, etc. also accept them.
958
# (The list follows the same order as the GNU Coding Standards.)
959
bindir='${exec_prefix}/bin'
960
sbindir='${exec_prefix}/sbin'
961
libexecdir='${exec_prefix}/libexec'
962
datarootdir='${prefix}/share'
963
datadir='${datarootdir}'
964
sysconfdir='${prefix}/etc'
965
sharedstatedir='${prefix}/com'
966
localstatedir='${prefix}/var'
967
includedir='${prefix}/include'
968
oldincludedir='/usr/include'
969
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970
infodir='${datarootdir}/info'
975
libdir='${exec_prefix}/lib'
976
localedir='${datarootdir}/locale'
977
mandir='${datarootdir}/man'
983
# If the previous option needs an argument, assign it.
984
if test -n "$ac_prev"; then
985
eval $ac_prev=\$ac_option
991
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995
# Accept the important Cygnus configure options, so we can diagnose typos.
997
case $ac_dashdash$ac_option in
1001
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1003
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004
bindir=$ac_optarg ;;
1006
-build | --build | --buil | --bui | --bu)
1007
ac_prev=build_alias ;;
1008
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009
build_alias=$ac_optarg ;;
1011
-cache-file | --cache-file | --cache-fil | --cache-fi \
1012
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013
ac_prev=cache_file ;;
1014
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016
cache_file=$ac_optarg ;;
1018
--config-cache | -C)
1019
cache_file=config.cache ;;
1021
-datadir | --datadir | --datadi | --datad)
1023
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1024
datadir=$ac_optarg ;;
1026
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027
| --dataroo | --dataro | --datar)
1028
ac_prev=datarootdir ;;
1029
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031
datarootdir=$ac_optarg ;;
1033
-disable-* | --disable-*)
1034
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035
# Reject names that are not valid shell variable names.
1036
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037
as_fn_error "invalid feature name: $ac_useropt"
1038
ac_useropt_orig=$ac_useropt
1039
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040
case $ac_user_opts in
1042
"enable_$ac_useropt"
1044
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045
ac_unrecognized_sep=', ';;
1047
eval enable_$ac_useropt=no ;;
1049
-docdir | --docdir | --docdi | --doc | --do)
1051
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052
docdir=$ac_optarg ;;
1054
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057
dvidir=$ac_optarg ;;
1059
-enable-* | --enable-*)
1060
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061
# Reject names that are not valid shell variable names.
1062
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063
as_fn_error "invalid feature name: $ac_useropt"
1064
ac_useropt_orig=$ac_useropt
1065
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066
case $ac_user_opts in
1068
"enable_$ac_useropt"
1070
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071
ac_unrecognized_sep=', ';;
1073
eval enable_$ac_useropt=\$ac_optarg ;;
1075
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077
| --exec | --exe | --ex)
1078
ac_prev=exec_prefix ;;
1079
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081
| --exec=* | --exe=* | --ex=*)
1082
exec_prefix=$ac_optarg ;;
1084
-gas | --gas | --ga | --g)
1085
# Obsolete; use --with-gas.
1088
-help | --help | --hel | --he | -h)
1089
ac_init_help=long ;;
1090
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091
ac_init_help=recursive ;;
1092
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093
ac_init_help=short ;;
1095
-host | --host | --hos | --ho)
1096
ac_prev=host_alias ;;
1097
-host=* | --host=* | --hos=* | --ho=*)
1098
host_alias=$ac_optarg ;;
1100
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104
htmldir=$ac_optarg ;;
1106
-includedir | --includedir | --includedi | --included | --include \
1107
| --includ | --inclu | --incl | --inc)
1108
ac_prev=includedir ;;
1109
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110
| --includ=* | --inclu=* | --incl=* | --inc=*)
1111
includedir=$ac_optarg ;;
1113
-infodir | --infodir | --infodi | --infod | --info | --inf)
1115
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116
infodir=$ac_optarg ;;
1118
-libdir | --libdir | --libdi | --libd)
1120
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1121
libdir=$ac_optarg ;;
1123
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124
| --libexe | --libex | --libe)
1125
ac_prev=libexecdir ;;
1126
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127
| --libexe=* | --libex=* | --libe=*)
1128
libexecdir=$ac_optarg ;;
1130
-localedir | --localedir | --localedi | --localed | --locale)
1131
ac_prev=localedir ;;
1132
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133
localedir=$ac_optarg ;;
1135
-localstatedir | --localstatedir | --localstatedi | --localstated \
1136
| --localstate | --localstat | --localsta | --localst | --locals)
1137
ac_prev=localstatedir ;;
1138
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140
localstatedir=$ac_optarg ;;
1142
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145
mandir=$ac_optarg ;;
1147
-nfp | --nfp | --nf)
1148
# Obsolete; use --without-fp.
1151
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152
| --no-cr | --no-c | -n)
1155
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161
| --oldin | --oldi | --old | --ol | --o)
1162
ac_prev=oldincludedir ;;
1163
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166
oldincludedir=$ac_optarg ;;
1168
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171
prefix=$ac_optarg ;;
1173
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1174
| --program-pre | --program-pr | --program-p)
1175
ac_prev=program_prefix ;;
1176
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1177
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178
program_prefix=$ac_optarg ;;
1180
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1181
| --program-suf | --program-su | --program-s)
1182
ac_prev=program_suffix ;;
1183
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1184
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185
program_suffix=$ac_optarg ;;
1187
-program-transform-name | --program-transform-name \
1188
| --program-transform-nam | --program-transform-na \
1189
| --program-transform-n | --program-transform- \
1190
| --program-transform | --program-transfor \
1191
| --program-transfo | --program-transf \
1192
| --program-trans | --program-tran \
1193
| --progr-tra | --program-tr | --program-t)
1194
ac_prev=program_transform_name ;;
1195
-program-transform-name=* | --program-transform-name=* \
1196
| --program-transform-nam=* | --program-transform-na=* \
1197
| --program-transform-n=* | --program-transform-=* \
1198
| --program-transform=* | --program-transfor=* \
1199
| --program-transfo=* | --program-transf=* \
1200
| --program-trans=* | --program-tran=* \
1201
| --progr-tra=* | --program-tr=* | --program-t=*)
1202
program_transform_name=$ac_optarg ;;
1204
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207
pdfdir=$ac_optarg ;;
1209
-psdir | --psdir | --psdi | --psd | --ps)
1211
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215
| -silent | --silent | --silen | --sile | --sil)
1218
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222
sbindir=$ac_optarg ;;
1224
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1225
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226
| --sharedst | --shareds | --shared | --share | --shar \
1228
ac_prev=sharedstatedir ;;
1229
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233
sharedstatedir=$ac_optarg ;;
1235
-site | --site | --sit)
1237
-site=* | --site=* | --sit=*)
1240
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243
srcdir=$ac_optarg ;;
1245
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246
| --syscon | --sysco | --sysc | --sys | --sy)
1247
ac_prev=sysconfdir ;;
1248
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250
sysconfdir=$ac_optarg ;;
1252
-target | --target | --targe | --targ | --tar | --ta | --t)
1253
ac_prev=target_alias ;;
1254
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255
target_alias=$ac_optarg ;;
1257
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1260
-version | --version | --versio | --versi | --vers | -V)
1261
ac_init_version=: ;;
1264
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265
# Reject names that are not valid shell variable names.
1266
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267
as_fn_error "invalid package name: $ac_useropt"
1268
ac_useropt_orig=$ac_useropt
1269
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270
case $ac_user_opts in
1274
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275
ac_unrecognized_sep=', ';;
1277
eval with_$ac_useropt=\$ac_optarg ;;
1279
-without-* | --without-*)
1280
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281
# Reject names that are not valid shell variable names.
1282
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283
as_fn_error "invalid package name: $ac_useropt"
1284
ac_useropt_orig=$ac_useropt
1285
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286
case $ac_user_opts in
1290
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291
ac_unrecognized_sep=', ';;
1293
eval with_$ac_useropt=no ;;
1296
# Obsolete; use --with-x.
1299
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300
| --x-incl | --x-inc | --x-in | --x-i)
1301
ac_prev=x_includes ;;
1302
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304
x_includes=$ac_optarg ;;
1306
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1307
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308
ac_prev=x_libraries ;;
1309
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311
x_libraries=$ac_optarg ;;
1313
-*) as_fn_error "unrecognized option: \`$ac_option'
1314
Try \`$0 --help' for more information."
1318
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319
# Reject names that are not valid shell variable names.
1320
case $ac_envvar in #(
1321
'' | [0-9]* | *[!_$as_cr_alnum]* )
1322
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1324
eval $ac_envvar=\$ac_optarg
1325
export $ac_envvar ;;
1328
# FIXME: should be removed in autoconf 3.0.
1329
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338
if test -n "$ac_prev"; then
1339
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340
as_fn_error "missing argument to $ac_option"
1343
if test -n "$ac_unrecognized_opts"; then
1344
case $enable_option_checking in
1346
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1347
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351
# Check all directory arguments for consistency.
1352
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353
datadir sysconfdir sharedstatedir localstatedir includedir \
1354
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355
libdir localedir mandir
1357
eval ac_val=\$$ac_var
1358
# Remove trailing slashes.
1361
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362
eval $ac_var=\$ac_val;;
1364
# Be sure to have absolute directory names.
1366
[\\/$]* | ?:[\\/]* ) continue;;
1367
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1372
# There might be people who depend on the old broken behavior: `$host'
1373
# used to hold the argument of --host etc.
1374
# FIXME: To remove some day.
1377
target=$target_alias
1379
# FIXME: To remove some day.
1380
if test "x$host_alias" != x; then
1381
if test "x$build_alias" = x; then
1382
cross_compiling=maybe
1383
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384
If a cross compiler is detected then cross compile mode will be used." >&2
1385
elif test "x$build_alias" != "x$host_alias"; then
1391
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
test "$silent" = yes && exec 6>/dev/null
1396
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397
ac_ls_di=`ls -di .` &&
1398
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399
as_fn_error "working directory cannot be determined"
1400
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401
as_fn_error "pwd does not report name of working directory"
1404
# Find the source files, if location was not specified.
1405
if test -z "$srcdir"; then
1406
ac_srcdir_defaulted=yes
1407
# Try the directory containing this script, then the parent directory.
1408
ac_confdir=`$as_dirname -- "$as_myself" ||
1409
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410
X"$as_myself" : 'X\(//\)[^/]' \| \
1411
X"$as_myself" : 'X\(//\)$' \| \
1412
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413
$as_echo X"$as_myself" |
1414
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432
if test ! -r "$srcdir/$ac_unique_file"; then
1436
ac_srcdir_defaulted=no
1438
if test ! -r "$srcdir/$ac_unique_file"; then
1439
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1442
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1446
# When building in place, set srcdir=.
1447
if test "$ac_abs_confdir" = "$ac_pwd"; then
1450
# Remove unnecessary trailing slashes from srcdir.
1451
# Double slashes in file names in object file debugging info
1452
# mess up M-x gdb in Emacs.
1454
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456
for ac_var in $ac_precious_vars; do
1457
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458
eval ac_env_${ac_var}_value=\$${ac_var}
1459
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464
# Report the --help message.
1466
if test "$ac_init_help" = "long"; then
1467
# Omit some internal or obsolete options to make the list less imposing.
1468
# This message is too long to be a string in the A/UX 3.1 sh.
1470
\`configure' configures Varnish 2.1.3 to adapt to many kinds of systems.
1472
Usage: $0 [OPTION]... [VAR=VALUE]...
1474
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475
VAR=VALUE. See below for descriptions of some of the useful variables.
1477
Defaults for the options are specified in brackets.
1480
-h, --help display this help and exit
1481
--help=short display options specific to this package
1482
--help=recursive display the short help of all the included packages
1483
-V, --version display version information and exit
1484
-q, --quiet, --silent do not print \`checking...' messages
1485
--cache-file=FILE cache test results in FILE [disabled]
1486
-C, --config-cache alias for \`--cache-file=config.cache'
1487
-n, --no-create do not create output files
1488
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
Installation directories:
1491
--prefix=PREFIX install architecture-independent files in PREFIX
1492
[$ac_default_prefix]
1493
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496
By default, \`make install' will install all the files in
1497
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499
for instance \`--prefix=\$HOME'.
1501
For better control, use the options below.
1503
Fine tuning of the installation directories:
1504
--bindir=DIR user executables [EPREFIX/bin]
1505
--sbindir=DIR system admin executables [EPREFIX/sbin]
1506
--libexecdir=DIR program executables [EPREFIX/libexec]
1507
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510
--libdir=DIR object code libraries [EPREFIX/lib]
1511
--includedir=DIR C header files [PREFIX/include]
1512
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1513
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515
--infodir=DIR info documentation [DATAROOTDIR/info]
1516
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517
--mandir=DIR man documentation [DATAROOTDIR/man]
1518
--docdir=DIR documentation root [DATAROOTDIR/doc/varnish]
1519
--htmldir=DIR html documentation [DOCDIR]
1520
--dvidir=DIR dvi documentation [DOCDIR]
1521
--pdfdir=DIR pdf documentation [DOCDIR]
1522
--psdir=DIR ps documentation [DOCDIR]
1528
--program-prefix=PREFIX prepend PREFIX to installed program names
1529
--program-suffix=SUFFIX append SUFFIX to installed program names
1530
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533
--build=BUILD configure for building on BUILD [guessed]
1534
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1535
--target=TARGET configure for building compilers for TARGET [HOST]
1539
if test -n "$ac_init_help"; then
1540
case $ac_init_help in
1541
short | recursive ) echo "Configuration of Varnish 2.1.3:";;
1546
--disable-option-checking ignore unrecognized --enable/--with options
1547
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549
--disable-dependency-tracking speeds up one-time build
1550
--enable-dependency-tracking do not reject slow dependency extractors
1551
--enable-shared[=PKGS] build shared libraries [default=yes]
1552
--enable-static[=PKGS] build static libraries [default=yes]
1553
--enable-fast-install[=PKGS]
1554
optimize for fast installation [default=yes]
1555
--disable-libtool-lock avoid locking (might break parallel builds)
1556
--disable-largefile omit support for large files
1557
--enable-kqueue use kqueue if available (default is YES)
1558
--enable-epoll use epoll if available (default is YES)
1559
--enable-ports use ports if available (default is YES)
1560
--enable-developer-warnings
1561
enable strict warnings (default is NO)
1562
--enable-debugging-symbols
1563
enable debugging symbols (default is NO)
1564
--enable-diagnostics enable run-time diagnostics (default is NO)
1565
--enable-extra-developer-warnings
1566
enable even stricter warnings (default is NO)
1567
--enable-stack-protector
1568
enable stack protector (default is NO)
1569
--enable-tests build test programs (default is NO)
1570
--enable-werror use -Werror (default is NO)
1571
--disable-jemalloc do not use jemalloc (default is yes on Linux, no
1575
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577
--with-pic try to use only PIC/non-PIC objects [default=use
1579
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580
--with-pcre-config=PATH Location of PCRE pcre-config (auto)
1582
Some influential environment variables:
1583
CC C compiler command
1584
CFLAGS C compiler flags
1585
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586
nonstandard directory <lib dir>
1587
LIBS libraries to pass to the linker, e.g. -l<library>
1588
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589
you have headers in a nonstandard directory <include dir>
1591
PKG_CONFIG path to pkg-config utility
1593
directories to add to pkg-config's search path
1595
path overriding pkg-config's built-in search path
1596
PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1597
PCRE_LIBS linker flags for PCRE, overriding pkg-config
1598
VCC_CC C compiler command line for VCL code
1600
Use these variables to override the choices made by `configure' or to help
1601
it to find libraries and programs with nonstandard names/locations.
1603
Report bugs to <varnish-dev@varnish-cache.org>.
1608
if test "$ac_init_help" = "recursive"; then
1609
# If there are subdirs, report their specific --help.
1610
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611
test -d "$ac_dir" ||
1612
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620
# A ".." for each directory in $ac_dir_suffix.
1621
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622
case $ac_top_builddir_sub in
1623
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627
ac_abs_top_builddir=$ac_pwd
1628
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629
# for backward compatibility:
1630
ac_top_builddir=$ac_top_build_prefix
1633
.) # We are building in place.
1635
ac_top_srcdir=$ac_top_builddir_sub
1636
ac_abs_top_srcdir=$ac_pwd ;;
1637
[\\/]* | ?:[\\/]* ) # Absolute name.
1638
ac_srcdir=$srcdir$ac_dir_suffix;
1639
ac_top_srcdir=$srcdir
1640
ac_abs_top_srcdir=$srcdir ;;
1642
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643
ac_top_srcdir=$ac_top_build_prefix$srcdir
1644
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
cd "$ac_dir" || { ac_status=$?; continue; }
1649
# Check for guested configure.
1650
if test -f "$ac_srcdir/configure.gnu"; then
1652
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653
elif test -f "$ac_srcdir/configure"; then
1655
$SHELL "$ac_srcdir/configure" --help=recursive
1657
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659
cd "$ac_pwd" || { ac_status=$?; break; }
1663
test -n "$ac_init_help" && exit $ac_status
1664
if $ac_init_version; then
1666
Varnish configure 2.1.3
1667
generated by GNU Autoconf 2.65
1669
Copyright (C) 2009 Free Software Foundation, Inc.
1670
This configure script is free software; the Free Software Foundation
1671
gives unlimited permission to copy, distribute and modify it.
1673
Copyright (c) 2006 Verdens Gang AS
1674
Copyright (c) 2006-2010 Redpill Linpro AS
1675
Copyright (c) 2010 Varnish Software AS
1680
## ------------------------ ##
1681
## Autoconf initialization. ##
1682
## ------------------------ ##
1684
# ac_fn_c_try_compile LINENO
1685
# --------------------------
1686
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1687
ac_fn_c_try_compile ()
1689
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690
rm -f conftest.$ac_objext
1691
if { { ac_try="$ac_compile"
1693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694
*) ac_try_echo=$ac_try;;
1696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697
$as_echo "$ac_try_echo"; } >&5
1698
(eval "$ac_compile") 2>conftest.err
1700
if test -s conftest.err; then
1701
grep -v '^ *+' conftest.err >conftest.er1
1702
cat conftest.er1 >&5
1703
mv -f conftest.er1 conftest.err
1705
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706
test $ac_status = 0; } && {
1707
test -z "$ac_c_werror_flag" ||
1708
test ! -s conftest.err
1709
} && test -s conftest.$ac_objext; then :
1712
$as_echo "$as_me: failed program was:" >&5
1713
sed 's/^/| /' conftest.$ac_ext >&5
1717
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718
as_fn_set_status $ac_retval
1720
} # ac_fn_c_try_compile
1722
# ac_fn_c_try_cpp LINENO
1723
# ----------------------
1724
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
if { { ac_try="$ac_cpp conftest.$ac_ext"
1730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731
*) ac_try_echo=$ac_try;;
1733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734
$as_echo "$ac_try_echo"; } >&5
1735
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737
if test -s conftest.err; then
1738
grep -v '^ *+' conftest.err >conftest.er1
1739
cat conftest.er1 >&5
1740
mv -f conftest.er1 conftest.err
1742
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743
test $ac_status = 0; } >/dev/null && {
1744
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745
test ! -s conftest.err
1749
$as_echo "$as_me: failed program was:" >&5
1750
sed 's/^/| /' conftest.$ac_ext >&5
1754
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
as_fn_set_status $ac_retval
1759
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1760
# -------------------------------------------------------
1761
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1762
# the include files in INCLUDES and setting the cache variable VAR
1764
ac_fn_c_check_header_mongrel ()
1766
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769
$as_echo_n "checking for $2... " >&6; }
1770
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771
$as_echo_n "(cached) " >&6
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775
$as_echo "$ac_res" >&6; }
1777
# Is the header compilable?
1778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1779
$as_echo_n "checking $2 usability... " >&6; }
1780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781
/* end confdefs.h. */
1785
if ac_fn_c_try_compile "$LINENO"; then :
1786
ac_header_compiler=yes
1788
ac_header_compiler=no
1790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1792
$as_echo "$ac_header_compiler" >&6; }
1794
# Is the header present?
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1796
$as_echo_n "checking $2 presence... " >&6; }
1797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798
/* end confdefs.h. */
1801
if ac_fn_c_try_cpp "$LINENO"; then :
1802
ac_header_preproc=yes
1804
ac_header_preproc=no
1806
rm -f conftest.err conftest.$ac_ext
1807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1808
$as_echo "$ac_header_preproc" >&6; }
1810
# So? What about this header?
1811
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1814
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1815
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1820
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1821
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1822
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1824
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1826
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830
## -------------------------------------------- ##
1831
## Report this to varnish-dev@varnish-cache.org ##
1832
## -------------------------------------------- ##
1834
) | sed "s/^/$as_me: WARNING: /" >&2
1837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838
$as_echo_n "checking for $2... " >&6; }
1839
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840
$as_echo_n "(cached) " >&6
1842
eval "$3=\$ac_header_compiler"
1845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846
$as_echo "$ac_res" >&6; }
1848
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
} # ac_fn_c_check_header_mongrel
1852
# ac_fn_c_try_run LINENO
1853
# ----------------------
1854
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855
# that executables *can* be run.
1858
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859
if { { ac_try="$ac_link"
1861
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862
*) ac_try_echo=$ac_try;;
1864
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865
$as_echo "$ac_try_echo"; } >&5
1866
(eval "$ac_link") 2>&5
1868
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870
{ { case "(($ac_try" in
1871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872
*) ac_try_echo=$ac_try;;
1874
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875
$as_echo "$ac_try_echo"; } >&5
1876
(eval "$ac_try") 2>&5
1878
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879
test $ac_status = 0; }; }; then :
1882
$as_echo "$as_me: program exited with status $ac_status" >&5
1883
$as_echo "$as_me: failed program was:" >&5
1884
sed 's/^/| /' conftest.$ac_ext >&5
1886
ac_retval=$ac_status
1888
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890
as_fn_set_status $ac_retval
1894
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895
# -------------------------------------------------------
1896
# Tests whether HEADER exists and can be compiled using the include files in
1897
# INCLUDES, setting the cache variable VAR accordingly.
1898
ac_fn_c_check_header_compile ()
1900
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902
$as_echo_n "checking for $2... " >&6; }
1903
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904
$as_echo_n "(cached) " >&6
1906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907
/* end confdefs.h. */
1911
if ac_fn_c_try_compile "$LINENO"; then :
1916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920
$as_echo "$ac_res" >&6; }
1921
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
} # ac_fn_c_check_header_compile
1925
# ac_fn_c_try_link LINENO
1926
# -----------------------
1927
# Try to link conftest.$ac_ext, and return whether this succeeded.
1930
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931
rm -f conftest.$ac_objext conftest$ac_exeext
1932
if { { ac_try="$ac_link"
1934
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935
*) ac_try_echo=$ac_try;;
1937
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938
$as_echo "$ac_try_echo"; } >&5
1939
(eval "$ac_link") 2>conftest.err
1941
if test -s conftest.err; then
1942
grep -v '^ *+' conftest.err >conftest.er1
1943
cat conftest.er1 >&5
1944
mv -f conftest.er1 conftest.err
1946
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947
test $ac_status = 0; } && {
1948
test -z "$ac_c_werror_flag" ||
1949
test ! -s conftest.err
1950
} && test -s conftest$ac_exeext && {
1951
test "$cross_compiling" = yes ||
1952
$as_test_x conftest$ac_exeext
1956
$as_echo "$as_me: failed program was:" >&5
1957
sed 's/^/| /' conftest.$ac_ext >&5
1961
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963
# interfere with the next link command; also delete a directory that is
1964
# left behind by Apple's compiler. We do this before executing the actions.
1965
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
as_fn_set_status $ac_retval
1969
} # ac_fn_c_try_link
1971
# ac_fn_c_check_func LINENO FUNC VAR
1972
# ----------------------------------
1973
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1974
ac_fn_c_check_func ()
1976
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978
$as_echo_n "checking for $2... " >&6; }
1979
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980
$as_echo_n "(cached) " >&6
1982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983
/* end confdefs.h. */
1984
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1985
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1986
#define $2 innocuous_$2
1988
/* System header to define __stub macros and hopefully few prototypes,
1989
which can conflict with char $2 (); below.
1990
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1991
<limits.h> exists even on freestanding compilers. */
1994
# include <limits.h>
1996
# include <assert.h>
2001
/* Override any GCC internal prototype to avoid an error.
2002
Use char because int might match the return type of a GCC
2003
builtin and then its argument prototype would still apply. */
2008
/* The GNU C library defines this for functions which it implements
2009
to always fail with ENOSYS. Some functions are actually named
2010
something starting with __ and the normal name is an alias. */
2011
#if defined __stub_$2 || defined __stub___$2
2023
if ac_fn_c_try_link "$LINENO"; then :
2028
rm -f core conftest.err conftest.$ac_objext \
2029
conftest$ac_exeext conftest.$ac_ext
2032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033
$as_echo "$ac_res" >&6; }
2034
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
} # ac_fn_c_check_func
2038
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2039
# ----------------------------------------------------
2040
# Tries to find if the field MEMBER exists in type AGGR, after including
2041
# INCLUDES, setting cache variable VAR accordingly.
2042
ac_fn_c_check_member ()
2044
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2046
$as_echo_n "checking for $2.$3... " >&6; }
2047
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2048
$as_echo_n "(cached) " >&6
2050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051
/* end confdefs.h. */
2063
if ac_fn_c_try_compile "$LINENO"; then :
2066
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067
/* end confdefs.h. */
2073
if (sizeof ac_aggr.$3)
2079
if ac_fn_c_try_compile "$LINENO"; then :
2084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090
$as_echo "$ac_res" >&6; }
2091
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
} # ac_fn_c_check_member
2095
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096
# -------------------------------------------
2097
# Tests whether TYPE exists after having included INCLUDES, setting cache
2098
# variable VAR accordingly.
2099
ac_fn_c_check_type ()
2101
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103
$as_echo_n "checking for $2... " >&6; }
2104
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105
$as_echo_n "(cached) " >&6
2108
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109
/* end confdefs.h. */
2120
if ac_fn_c_try_compile "$LINENO"; then :
2121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122
/* end confdefs.h. */
2133
if ac_fn_c_try_compile "$LINENO"; then :
2138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144
$as_echo "$ac_res" >&6; }
2145
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147
} # ac_fn_c_check_type
2149
# ac_fn_c_check_decl LINENO SYMBOL VAR
2150
# ------------------------------------
2151
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2152
ac_fn_c_check_decl ()
2154
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2156
$as_echo_n "checking whether $2 is declared... " >&6; }
2157
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158
$as_echo_n "(cached) " >&6
2160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161
/* end confdefs.h. */
2174
if ac_fn_c_try_compile "$LINENO"; then :
2179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183
$as_echo "$ac_res" >&6; }
2184
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186
} # ac_fn_c_check_decl
2187
cat >config.log <<_ACEOF
2188
This file contains any messages produced by compilers while
2189
running configure, to aid debugging if configure makes a mistake.
2191
It was created by Varnish $as_me 2.1.3, which was
2192
generated by GNU Autoconf 2.65. Invocation command line was
2204
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2205
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2206
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2207
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2208
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2211
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2214
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2215
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2216
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2217
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2218
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2219
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227
test -z "$as_dir" && as_dir=.
2228
$as_echo "PATH: $as_dir"
2244
# Keep a trace of the command line.
2245
# Strip out --no-create and --no-recursion so they do not pile up.
2246
# Strip out --silent because we don't want to record it for future runs.
2247
# Also quote any args containing shell meta-characters.
2248
# Make two passes to allow for proper duplicate-argument suppression.
2252
ac_must_keep_next=false
2258
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2259
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2260
| -silent | --silent | --silen | --sile | --sil)
2263
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268
as_fn_append ac_configure_args1 " '$ac_arg'"
2269
if test $ac_must_keep_next = true; then
2270
ac_must_keep_next=false # Got value, back to normal.
2273
*=* | --config-cache | -C | -disable-* | --disable-* \
2274
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2275
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2276
| -with-* | --with-* | -without-* | --without-* | --x)
2277
case "$ac_configure_args0 " in
2278
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281
-* ) ac_must_keep_next=true ;;
2284
as_fn_append ac_configure_args " '$ac_arg'"
2289
{ ac_configure_args0=; unset ac_configure_args0;}
2290
{ ac_configure_args1=; unset ac_configure_args1;}
2292
# When interrupted or exit'd, cleanup temporary files, and complete
2293
# config.log. We remove comments because anyway the quotes in there
2294
# would cause problems or look ugly.
2295
# WARNING: Use '\'' to represent an apostrophe within the trap.
2296
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2297
trap 'exit_status=$?
2298
# Save into config.log some information that might help in debugging.
2303
## ---------------- ##
2304
## Cache variables. ##
2305
## ---------------- ##
2308
# The following way of writing the cache mishandles newlines in values,
2310
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311
eval ac_val=\$$ac_var
2315
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319
_ | IFS | as_nl) ;; #(
2320
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321
*) { eval $ac_var=; unset $ac_var;} ;;
2326
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327
*${as_nl}ac_space=\ *)
2329
"s/'\''/'\''\\\\'\'''\''/g;
2330
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341
## ----------------- ##
2342
## Output variables. ##
2343
## ----------------- ##
2346
for ac_var in $ac_subst_vars
2348
eval ac_val=\$$ac_var
2350
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352
$as_echo "$ac_var='\''$ac_val'\''"
2356
if test -n "$ac_subst_files"; then
2358
## ------------------- ##
2359
## File substitutions. ##
2360
## ------------------- ##
2363
for ac_var in $ac_subst_files
2365
eval ac_val=\$$ac_var
2367
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369
$as_echo "$ac_var='\''$ac_val'\''"
2374
if test -s confdefs.h; then
2384
test "$ac_signal" != 0 &&
2385
$as_echo "$as_me: caught signal $ac_signal"
2386
$as_echo "$as_me: exit $exit_status"
2388
rm -f core *.core core.conftest.* &&
2389
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392
for ac_signal in 1 2 13 15; do
2393
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2398
rm -f -r conftest* confdefs.h
2400
$as_echo "/* confdefs.h */" > confdefs.h
2402
# Predefined preprocessor variables.
2404
cat >>confdefs.h <<_ACEOF
2405
#define PACKAGE_NAME "$PACKAGE_NAME"
2408
cat >>confdefs.h <<_ACEOF
2409
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412
cat >>confdefs.h <<_ACEOF
2413
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416
cat >>confdefs.h <<_ACEOF
2417
#define PACKAGE_STRING "$PACKAGE_STRING"
2420
cat >>confdefs.h <<_ACEOF
2421
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424
cat >>confdefs.h <<_ACEOF
2425
#define PACKAGE_URL "$PACKAGE_URL"
2429
# Let the site file select an alternate cache file if it wants to.
2430
# Prefer an explicitly selected file to automatically selected ones.
2433
if test -n "$CONFIG_SITE"; then
2434
ac_site_file1=$CONFIG_SITE
2435
elif test "x$prefix" != xNONE; then
2436
ac_site_file1=$prefix/share/config.site
2437
ac_site_file2=$prefix/etc/config.site
2439
ac_site_file1=$ac_default_prefix/share/config.site
2440
ac_site_file2=$ac_default_prefix/etc/config.site
2442
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444
test "x$ac_site_file" = xNONE && continue
2445
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2447
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2448
sed 's/^/| /' "$ac_site_file" >&5
2453
if test -r "$cache_file"; then
2454
# Some versions of bash will fail to source /dev/null (special files
2455
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2456
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458
$as_echo "$as_me: loading cache $cache_file" >&6;}
2460
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2461
*) . "./$cache_file";;
2465
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466
$as_echo "$as_me: creating cache $cache_file" >&6;}
2470
# Check that the precious variables saved in the cache have kept the same
2472
ac_cache_corrupted=false
2473
for ac_var in $ac_precious_vars; do
2474
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2475
eval ac_new_set=\$ac_env_${ac_var}_set
2476
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2477
eval ac_new_val=\$ac_env_${ac_var}_value
2478
case $ac_old_set,$ac_new_set in
2480
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2481
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2482
ac_cache_corrupted=: ;;
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2485
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2486
ac_cache_corrupted=: ;;
2489
if test "x$ac_old_val" != "x$ac_new_val"; then
2490
# differences in whitespace do not lead to failure.
2491
ac_old_val_w=`echo x $ac_old_val`
2492
ac_new_val_w=`echo x $ac_new_val`
2493
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2494
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2495
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2496
ac_cache_corrupted=:
2498
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2499
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2500
eval $ac_var=\$ac_old_val
2502
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2503
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2504
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2505
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508
# Pass precious variables to config.status.
2509
if test "$ac_new_set" = set; then
2511
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2512
*) ac_arg=$ac_var=$ac_new_val ;;
2514
case " $ac_configure_args " in
2515
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2516
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520
if $ac_cache_corrupted; then
2521
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2524
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2525
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527
## -------------------- ##
2528
## Main body of script. ##
2529
## -------------------- ##
2532
ac_cpp='$CPP $CPPFLAGS'
2533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
ac_config_headers="$ac_config_headers config.h"
2543
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544
for ac_t in install-sh install.sh shtool; do
2545
if test -f "$ac_dir/$ac_t"; then
2547
ac_install_sh="$ac_aux_dir/$ac_t -c"
2552
if test -z "$ac_aux_dir"; then
2553
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556
# These three variables are undocumented and unsupported,
2557
# and are intended to be withdrawn in a future Autoconf release.
2558
# They can cause serious problems if a builder's source tree is in a directory
2559
# whose full name contains unusual characters.
2560
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565
# Make sure we can run config.sub.
2566
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2567
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2570
$as_echo_n "checking build system type... " >&6; }
2571
if test "${ac_cv_build+set}" = set; then :
2572
$as_echo_n "(cached) " >&6
2574
ac_build_alias=$build_alias
2575
test "x$ac_build_alias" = x &&
2576
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2577
test "x$ac_build_alias" = x &&
2578
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2579
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2580
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2584
$as_echo "$ac_cv_build" >&6; }
2585
case $ac_cv_build in
2587
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2590
ac_save_IFS=$IFS; IFS='-'
2596
# Remember, the first character of IFS is used to create $*,
2597
# except with old shells:
2600
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2604
$as_echo_n "checking host system type... " >&6; }
2605
if test "${ac_cv_host+set}" = set; then :
2606
$as_echo_n "(cached) " >&6
2608
if test "x$host_alias" = x; then
2609
ac_cv_host=$ac_cv_build
2611
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2612
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2617
$as_echo "$ac_cv_host" >&6; }
2620
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2623
ac_save_IFS=$IFS; IFS='-'
2629
# Remember, the first character of IFS is used to create $*,
2630
# except with old shells:
2633
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2637
$as_echo_n "checking target system type... " >&6; }
2638
if test "${ac_cv_target+set}" = set; then :
2639
$as_echo_n "(cached) " >&6
2641
if test "x$target_alias" = x; then
2642
ac_cv_target=$ac_cv_host
2644
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2645
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2650
$as_echo "$ac_cv_target" >&6; }
2651
case $ac_cv_target in
2653
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2655
target=$ac_cv_target
2656
ac_save_IFS=$IFS; IFS='-'
2662
# Remember, the first character of IFS is used to create $*,
2663
# except with old shells:
2666
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2669
# The aliases save the names the user supplied, while $host etc.
2670
# will get canonicalized.
2671
test -n "$target_alias" &&
2672
test "$program_prefix$program_suffix$program_transform_name" = \
2674
program_prefix=${target_alias}-
2677
ac_cpp='$CPP $CPPFLAGS'
2678
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
am__api_version='1.11'
2685
# Find a good install program. We prefer a C program (faster),
2686
# so one script is as good as another. But avoid the broken or
2687
# incompatible versions:
2688
# SysV /etc/install, /usr/sbin/install
2689
# SunOS /usr/etc/install
2690
# IRIX /sbin/install
2692
# AmigaOS /C/install, which installs bootblocks on floppy discs
2693
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696
# OS/2's system install, which has a completely different semantic
2697
# ./install, which can be erroneously created by make from ./install.sh.
2698
# Reject install programs that cannot install multiple files.
2699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2701
if test -z "$INSTALL"; then
2702
if test "${ac_cv_path_install+set}" = set; then :
2703
$as_echo_n "(cached) " >&6
2705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
test -z "$as_dir" && as_dir=.
2710
# Account for people who put trailing slashes in PATH elements.
2711
case $as_dir/ in #((
2712
./ | .// | /[cC]/* | \
2713
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2717
# OSF1 and SCO ODT 3.0 have their own names for install.
2718
# Don't use installbsd from OSF since it installs stuff as root
2720
for ac_prog in ginstall scoinst install; do
2721
for ac_exec_ext in '' $ac_executable_extensions; do
2722
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2723
if test $ac_prog = install &&
2724
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725
# AIX install. It has an incompatible calling convention.
2727
elif test $ac_prog = install &&
2728
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729
# program-specific install script used by HP pwplus--don't use.
2732
rm -rf conftest.one conftest.two conftest.dir
2733
echo one > conftest.one
2734
echo two > conftest.two
2736
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737
test -s conftest.one && test -s conftest.two &&
2738
test -s conftest.dir/conftest.one &&
2739
test -s conftest.dir/conftest.two
2741
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2754
rm -rf conftest.one conftest.two conftest.dir
2757
if test "${ac_cv_path_install+set}" = set; then
2758
INSTALL=$ac_cv_path_install
2760
# As a last resort, use the slow shell script. Don't cache a
2761
# value for INSTALL within a source directory, because that will
2762
# break other packages using the cache if that directory is
2763
# removed, or if the value is a relative name.
2764
INSTALL=$ac_install_sh
2767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768
$as_echo "$INSTALL" >&6; }
2770
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771
# It thinks the first close brace ends the variable substitution.
2772
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2774
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2776
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779
$as_echo_n "checking whether build environment is sane... " >&6; }
2782
echo timestamp > conftest.file
2783
# Reject unsafe characters in $srcdir or the absolute working directory
2784
# name. Accept space and tab only in the latter.
2788
*[\\\"\#\$\&\'\`$am_lf]*)
2789
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2792
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2793
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2796
# Do `set' in a subshell so we don't clobber the current shell's
2797
# arguments. Must try -L first in case configure is actually a
2798
# symlink; some systems play weird games with the mod time of symlinks
2799
# (eg FreeBSD returns the mod time of the symlink's containing
2802
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803
if test "$*" = "X"; then
2805
set X `ls -t "$srcdir/configure" conftest.file`
2808
if test "$*" != "X $srcdir/configure conftest.file" \
2809
&& test "$*" != "X conftest.file $srcdir/configure"; then
2811
# If neither matched, then we have a broken ls. This can happen
2812
# if, for instance, CONFIG_SHELL is bash and it inherits a
2813
# broken ls alias from the environment. This has actually
2814
# happened. Such a system could not be considered "sane".
2815
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2816
alias in your environment" "$LINENO" 5
2819
test "$2" = conftest.file
2825
as_fn_error "newly created file is older than distributed files!
2826
Check your system clock" "$LINENO" 5
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829
$as_echo "yes" >&6; }
2830
test "$program_prefix" != NONE &&
2831
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832
# Use a double $ so make ignores it.
2833
test "$program_suffix" != NONE &&
2834
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835
# Double any \ or $.
2836
# By default was `s,x,x', remove it if useless.
2837
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2840
# expand $ac_aux_dir to an absolute path
2841
am_aux_dir=`cd $ac_aux_dir && pwd`
2843
if test x"${MISSING+set}" != xset; then
2846
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2848
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2851
# Use eval to expand $SHELL
2852
if eval "$MISSING --run true"; then
2853
am_missing_run="$MISSING --run "
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2857
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2860
if test x"${install_sh}" != xset; then
2863
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2865
install_sh="\${SHELL} $am_aux_dir/install-sh"
2869
# Installed binaries are usually stripped using `strip' when the user
2870
# run `make install-strip'. However `strip' might not be the right
2871
# tool to use in cross-compilation environments, therefore Automake
2872
# will honor the `STRIP' environment variable to overrule this program.
2873
if test "$cross_compiling" != no; then
2874
if test -n "$ac_tool_prefix"; then
2875
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876
set dummy ${ac_tool_prefix}strip; ac_word=$2
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878
$as_echo_n "checking for $ac_word... " >&6; }
2879
if test "${ac_cv_prog_STRIP+set}" = set; then :
2880
$as_echo_n "(cached) " >&6
2882
if test -n "$STRIP"; then
2883
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889
test -z "$as_dir" && as_dir=.
2890
for ac_exec_ext in '' $ac_executable_extensions; do
2891
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902
STRIP=$ac_cv_prog_STRIP
2903
if test -n "$STRIP"; then
2904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905
$as_echo "$STRIP" >&6; }
2907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908
$as_echo "no" >&6; }
2913
if test -z "$ac_cv_prog_STRIP"; then
2915
# Extract the first word of "strip", so it can be a program name with args.
2916
set dummy strip; ac_word=$2
2917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918
$as_echo_n "checking for $ac_word... " >&6; }
2919
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2920
$as_echo_n "(cached) " >&6
2922
if test -n "$ac_ct_STRIP"; then
2923
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929
test -z "$as_dir" && as_dir=.
2930
for ac_exec_ext in '' $ac_executable_extensions; do
2931
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932
ac_cv_prog_ac_ct_STRIP="strip"
2933
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943
if test -n "$ac_ct_STRIP"; then
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945
$as_echo "$ac_ct_STRIP" >&6; }
2947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948
$as_echo "no" >&6; }
2951
if test "x$ac_ct_STRIP" = x; then
2954
case $cross_compiling:$ac_tool_warned in
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958
ac_tool_warned=yes ;;
2963
STRIP="$ac_cv_prog_STRIP"
2967
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971
if test -z "$MKDIR_P"; then
2972
if test "${ac_cv_path_mkdir+set}" = set; then :
2973
$as_echo_n "(cached) " >&6
2975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2979
test -z "$as_dir" && as_dir=.
2980
for ac_prog in mkdir gmkdir; do
2981
for ac_exec_ext in '' $ac_executable_extensions; do
2982
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984
'mkdir (GNU coreutils) '* | \
2985
'mkdir (coreutils) '* | \
2986
'mkdir (fileutils) '4.1*)
2987
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2997
test -d ./--version && rmdir ./--version
2998
if test "${ac_cv_path_mkdir+set}" = set; then
2999
MKDIR_P="$ac_cv_path_mkdir -p"
3001
# As a last resort, use the slow shell script. Don't cache a
3002
# value for MKDIR_P within a source directory, because that will
3003
# break other packages using the cache if that directory is
3004
# removed, or if the value is a relative name.
3005
MKDIR_P="$ac_install_sh -d"
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009
$as_echo "$MKDIR_P" >&6; }
3013
[\\/$]* | ?:[\\/]*) ;;
3014
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3017
for ac_prog in gawk mawk nawk awk
3019
# Extract the first word of "$ac_prog", so it can be a program name with args.
3020
set dummy $ac_prog; ac_word=$2
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022
$as_echo_n "checking for $ac_word... " >&6; }
3023
if test "${ac_cv_prog_AWK+set}" = set; then :
3024
$as_echo_n "(cached) " >&6
3026
if test -n "$AWK"; then
3027
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033
test -z "$as_dir" && as_dir=.
3034
for ac_exec_ext in '' $ac_executable_extensions; do
3035
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036
ac_cv_prog_AWK="$ac_prog"
3037
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047
if test -n "$AWK"; then
3048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3049
$as_echo "$AWK" >&6; }
3051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052
$as_echo "no" >&6; }
3056
test -n "$AWK" && break
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3062
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3064
$as_echo_n "(cached) " >&6
3066
cat >conftest.make <<\_ACEOF
3069
@echo '@@@%%%=$(MAKE)=@@@%%%'
3071
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3072
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3074
eval ac_cv_prog_make_${ac_make}_set=yes;;
3076
eval ac_cv_prog_make_${ac_make}_set=no;;
3080
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082
$as_echo "yes" >&6; }
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086
$as_echo "no" >&6; }
3087
SET_MAKE="MAKE=${MAKE-make}"
3090
rm -rf .tst 2>/dev/null
3091
mkdir .tst 2>/dev/null
3092
if test -d .tst; then
3097
rmdir .tst 2>/dev/null
3099
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101
# is not polluted with repeated "-I."
3102
am__isrc=' -I$(srcdir)'
3103
# test to see if srcdir already configured
3104
if test -f $srcdir/config.status; then
3105
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3109
# test whether we have cygpath
3110
if test -z "$CYGPATH_W"; then
3111
if (cygpath --version) >/dev/null 2>/dev/null; then
3112
CYGPATH_W='cygpath -w'
3119
# Define the identity of the package.
3124
cat >>confdefs.h <<_ACEOF
3125
#define PACKAGE "$PACKAGE"
3129
cat >>confdefs.h <<_ACEOF
3130
#define VERSION "$VERSION"
3133
# Some tools Automake needs.
3135
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3138
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3141
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3144
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3147
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3149
# We need awk for the "check" target. The system "awk" is bad on
3151
# Always define AMTAR for backward compatibility.
3153
AMTAR=${AMTAR-"${am_missing_run}tar"}
3155
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3162
# Checks for programs.
3163
DEPDIR="${am__leading_dot}deps"
3165
ac_config_commands="$ac_config_commands depfiles"
3168
am_make=${MAKE-make}
3169
cat > confinc << 'END'
3171
@echo this is the am__doit target
3174
# If we don't find an include directive, just comment out the code.
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3176
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3180
# First try GNU make style include.
3181
echo "include confinc" > confmf
3182
# Ignore all kinds of additional output from `make'.
3183
case `$am_make -s -f confmf 2> /dev/null` in #(
3184
*the\ am__doit\ target*)
3190
# Now try BSD make style include.
3191
if test "$am__include" = "#"; then
3192
echo '.include "confinc"' > confmf
3193
case `$am_make -s -f confmf 2> /dev/null` in #(
3194
*the\ am__doit\ target*)
3195
am__include=.include
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3204
$as_echo "$_am_result" >&6; }
3205
rm -f confinc confmf
3207
# Check whether --enable-dependency-tracking was given.
3208
if test "${enable_dependency_tracking+set}" = set; then :
3209
enableval=$enable_dependency_tracking;
3212
if test "x$enable_dependency_tracking" != xno; then
3213
am_depcomp="$ac_aux_dir/depcomp"
3216
if test "x$enable_dependency_tracking" != xno; then
3226
ac_cpp='$CPP $CPPFLAGS'
3227
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
if test -n "$ac_tool_prefix"; then
3231
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3232
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234
$as_echo_n "checking for $ac_word... " >&6; }
3235
if test "${ac_cv_prog_CC+set}" = set; then :
3236
$as_echo_n "(cached) " >&6
3238
if test -n "$CC"; then
3239
ac_cv_prog_CC="$CC" # Let the user override the test.
3241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245
test -z "$as_dir" && as_dir=.
3246
for ac_exec_ext in '' $ac_executable_extensions; do
3247
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3249
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259
if test -n "$CC"; then
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261
$as_echo "$CC" >&6; }
3263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264
$as_echo "no" >&6; }
3269
if test -z "$ac_cv_prog_CC"; then
3271
# Extract the first word of "gcc", so it can be a program name with args.
3272
set dummy gcc; ac_word=$2
3273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274
$as_echo_n "checking for $ac_word... " >&6; }
3275
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3276
$as_echo_n "(cached) " >&6
3278
if test -n "$ac_ct_CC"; then
3279
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285
test -z "$as_dir" && as_dir=.
3286
for ac_exec_ext in '' $ac_executable_extensions; do
3287
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288
ac_cv_prog_ac_ct_CC="gcc"
3289
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299
if test -n "$ac_ct_CC"; then
3300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301
$as_echo "$ac_ct_CC" >&6; }
3303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304
$as_echo "no" >&6; }
3307
if test "x$ac_ct_CC" = x; then
3310
case $cross_compiling:$ac_tool_warned in
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314
ac_tool_warned=yes ;;
3322
if test -z "$CC"; then
3323
if test -n "$ac_tool_prefix"; then
3324
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3325
set dummy ${ac_tool_prefix}cc; ac_word=$2
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327
$as_echo_n "checking for $ac_word... " >&6; }
3328
if test "${ac_cv_prog_CC+set}" = set; then :
3329
$as_echo_n "(cached) " >&6
3331
if test -n "$CC"; then
3332
ac_cv_prog_CC="$CC" # Let the user override the test.
3334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338
test -z "$as_dir" && as_dir=.
3339
for ac_exec_ext in '' $ac_executable_extensions; do
3340
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341
ac_cv_prog_CC="${ac_tool_prefix}cc"
3342
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352
if test -n "$CC"; then
3353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354
$as_echo "$CC" >&6; }
3356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357
$as_echo "no" >&6; }
3363
if test -z "$CC"; then
3364
# Extract the first word of "cc", so it can be a program name with args.
3365
set dummy cc; ac_word=$2
3366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367
$as_echo_n "checking for $ac_word... " >&6; }
3368
if test "${ac_cv_prog_CC+set}" = set; then :
3369
$as_echo_n "(cached) " >&6
3371
if test -n "$CC"; then
3372
ac_cv_prog_CC="$CC" # Let the user override the test.
3375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379
test -z "$as_dir" && as_dir=.
3380
for ac_exec_ext in '' $ac_executable_extensions; do
3381
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3383
ac_prog_rejected=yes
3387
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394
if test $ac_prog_rejected = yes; then
3395
# We found a bogon in the path, so make sure we never use it.
3396
set dummy $ac_cv_prog_CC
3398
if test $# != 0; then
3399
# We chose a different compiler from the bogus one.
3400
# However, it has the same basename, so the bogon will be chosen
3401
# first if we set CC to just the basename; use the full file name.
3403
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3409
if test -n "$CC"; then
3410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411
$as_echo "$CC" >&6; }
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414
$as_echo "no" >&6; }
3419
if test -z "$CC"; then
3420
if test -n "$ac_tool_prefix"; then
3421
for ac_prog in cl.exe
3423
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426
$as_echo_n "checking for $ac_word... " >&6; }
3427
if test "${ac_cv_prog_CC+set}" = set; then :
3428
$as_echo_n "(cached) " >&6
3430
if test -n "$CC"; then
3431
ac_cv_prog_CC="$CC" # Let the user override the test.
3433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437
test -z "$as_dir" && as_dir=.
3438
for ac_exec_ext in '' $ac_executable_extensions; do
3439
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3441
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451
if test -n "$CC"; then
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453
$as_echo "$CC" >&6; }
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456
$as_echo "no" >&6; }
3460
test -n "$CC" && break
3463
if test -z "$CC"; then
3465
for ac_prog in cl.exe
3467
# Extract the first word of "$ac_prog", so it can be a program name with args.
3468
set dummy $ac_prog; ac_word=$2
3469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470
$as_echo_n "checking for $ac_word... " >&6; }
3471
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3472
$as_echo_n "(cached) " >&6
3474
if test -n "$ac_ct_CC"; then
3475
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481
test -z "$as_dir" && as_dir=.
3482
for ac_exec_ext in '' $ac_executable_extensions; do
3483
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484
ac_cv_prog_ac_ct_CC="$ac_prog"
3485
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495
if test -n "$ac_ct_CC"; then
3496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497
$as_echo "$ac_ct_CC" >&6; }
3499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500
$as_echo "no" >&6; }
3504
test -n "$ac_ct_CC" && break
3507
if test "x$ac_ct_CC" = x; then
3510
case $cross_compiling:$ac_tool_warned in
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514
ac_tool_warned=yes ;;
3523
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525
as_fn_error "no acceptable C compiler found in \$PATH
3526
See \`config.log' for more details." "$LINENO" 5; }
3528
# Provide some information about the compiler.
3529
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3532
for ac_option in --version -v -V -qversion; do
3533
{ { ac_try="$ac_compiler $ac_option >&5"
3535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536
*) ac_try_echo=$ac_try;;
3538
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539
$as_echo "$ac_try_echo"; } >&5
3540
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3542
if test -s conftest.err; then
3544
... rest of stderr output deleted ...
3545
10q' conftest.err >conftest.er1
3546
cat conftest.er1 >&5
3548
rm -f conftest.er1 conftest.err
3549
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550
test $ac_status = 0; }
3553
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554
/* end confdefs.h. */
3564
ac_clean_files_save=$ac_clean_files
3565
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3566
# Try to create an executable without -o first, disregard a.out.
3567
# It will help us diagnose broken compilers, and finding out an intuition
3569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570
$as_echo_n "checking whether the C compiler works... " >&6; }
3571
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3573
# The possible output files:
3574
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3577
for ac_file in $ac_files
3580
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3586
if { { ac_try="$ac_link_default"
3588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
*) ac_try_echo=$ac_try;;
3591
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592
$as_echo "$ac_try_echo"; } >&5
3593
(eval "$ac_link_default") 2>&5
3595
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596
test $ac_status = 0; }; then :
3597
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3598
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3599
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3600
# so that the user can short-circuit this test for compilers unknown to
3602
for ac_file in $ac_files ''
3604
test -f "$ac_file" || continue
3606
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3609
# We found the default executable, but exeext='' is most
3613
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3615
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617
# We set ac_cv_exeext here because the later test for it is not
3618
# safe: cross compilers may not add the suffix if given an `-o'
3619
# argument, so we may need to know it at that point already.
3620
# Even if this section looks crufty: it has the advantage of
3627
test "$ac_cv_exeext" = no && ac_cv_exeext=
3632
if test -z "$ac_file"; then :
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634
$as_echo "no" >&6; }
3635
$as_echo "$as_me: failed program was:" >&5
3636
sed 's/^/| /' conftest.$ac_ext >&5
3638
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640
{ as_fn_set_status 77
3641
as_fn_error "C compiler cannot create executables
3642
See \`config.log' for more details." "$LINENO" 5; }; }
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3645
$as_echo "yes" >&6; }
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3648
$as_echo_n "checking for C compiler default output file name... " >&6; }
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3650
$as_echo "$ac_file" >&6; }
3651
ac_exeext=$ac_cv_exeext
3653
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3654
ac_clean_files=$ac_clean_files_save
3655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3656
$as_echo_n "checking for suffix of executables... " >&6; }
3657
if { { ac_try="$ac_link"
3659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660
*) ac_try_echo=$ac_try;;
3662
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663
$as_echo "$ac_try_echo"; } >&5
3664
(eval "$ac_link") 2>&5
3666
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667
test $ac_status = 0; }; then :
3668
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3669
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3670
# work properly (i.e., refer to `conftest.exe'), while it won't with
3672
for ac_file in conftest.exe conftest conftest.*; do
3673
test -f "$ac_file" || continue
3675
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684
as_fn_error "cannot compute suffix of executables: cannot compile and link
3685
See \`config.log' for more details." "$LINENO" 5; }
3687
rm -f conftest conftest$ac_cv_exeext
3688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3689
$as_echo "$ac_cv_exeext" >&6; }
3691
rm -f conftest.$ac_ext
3692
EXEEXT=$ac_cv_exeext
3694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695
/* end confdefs.h. */
3700
FILE *f = fopen ("conftest.out", "w");
3701
return ferror (f) || fclose (f) != 0;
3707
ac_clean_files="$ac_clean_files conftest.out"
3708
# Check that the compiler produces executables we can run. If not, either
3709
# the compiler is broken, or we cross compile.
3710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3711
$as_echo_n "checking whether we are cross compiling... " >&6; }
3712
if test "$cross_compiling" != yes; then
3713
{ { ac_try="$ac_link"
3715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716
*) ac_try_echo=$ac_try;;
3718
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719
$as_echo "$ac_try_echo"; } >&5
3720
(eval "$ac_link") 2>&5
3722
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723
test $ac_status = 0; }
3724
if { ac_try='./conftest$ac_cv_exeext'
3725
{ { case "(($ac_try" in
3726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727
*) ac_try_echo=$ac_try;;
3729
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730
$as_echo "$ac_try_echo"; } >&5
3731
(eval "$ac_try") 2>&5
3733
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734
test $ac_status = 0; }; }; then
3737
if test "$cross_compiling" = maybe; then
3740
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742
as_fn_error "cannot run C compiled programs.
3743
If you meant to cross compile, use \`--host'.
3744
See \`config.log' for more details." "$LINENO" 5; }
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3749
$as_echo "$cross_compiling" >&6; }
3751
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3752
ac_clean_files=$ac_clean_files_save
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3754
$as_echo_n "checking for suffix of object files... " >&6; }
3755
if test "${ac_cv_objext+set}" = set; then :
3756
$as_echo_n "(cached) " >&6
3758
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759
/* end confdefs.h. */
3769
rm -f conftest.o conftest.obj
3770
if { { ac_try="$ac_compile"
3772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773
*) ac_try_echo=$ac_try;;
3775
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776
$as_echo "$ac_try_echo"; } >&5
3777
(eval "$ac_compile") 2>&5
3779
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780
test $ac_status = 0; }; then :
3781
for ac_file in conftest.o conftest.obj conftest.*; do
3782
test -f "$ac_file" || continue;
3784
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3785
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3790
$as_echo "$as_me: failed program was:" >&5
3791
sed 's/^/| /' conftest.$ac_ext >&5
3793
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795
as_fn_error "cannot compute suffix of object files: cannot compile
3796
See \`config.log' for more details." "$LINENO" 5; }
3798
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3801
$as_echo "$ac_cv_objext" >&6; }
3802
OBJEXT=$ac_cv_objext
3804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3805
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3806
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3807
$as_echo_n "(cached) " >&6
3809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810
/* end confdefs.h. */
3823
if ac_fn_c_try_compile "$LINENO"; then :
3828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3833
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3834
if test $ac_compiler_gnu = yes; then
3839
ac_test_CFLAGS=${CFLAGS+set}
3840
ac_save_CFLAGS=$CFLAGS
3841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3842
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3843
if test "${ac_cv_prog_cc_g+set}" = set; then :
3844
$as_echo_n "(cached) " >&6
3846
ac_save_c_werror_flag=$ac_c_werror_flag
3847
ac_c_werror_flag=yes
3850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851
/* end confdefs.h. */
3861
if ac_fn_c_try_compile "$LINENO"; then :
3865
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866
/* end confdefs.h. */
3876
if ac_fn_c_try_compile "$LINENO"; then :
3879
ac_c_werror_flag=$ac_save_c_werror_flag
3881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882
/* end confdefs.h. */
3892
if ac_fn_c_try_compile "$LINENO"; then :
3895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900
ac_c_werror_flag=$ac_save_c_werror_flag
3902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3903
$as_echo "$ac_cv_prog_cc_g" >&6; }
3904
if test "$ac_test_CFLAGS" = set; then
3905
CFLAGS=$ac_save_CFLAGS
3906
elif test $ac_cv_prog_cc_g = yes; then
3907
if test "$GCC" = yes; then
3913
if test "$GCC" = yes; then
3919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3920
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3921
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3922
$as_echo_n "(cached) " >&6
3924
ac_cv_prog_cc_c89=no
3926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927
/* end confdefs.h. */
3930
#include <sys/types.h>
3931
#include <sys/stat.h>
3932
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3933
struct buf { int x; };
3934
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935
static char *e (p, i)
3941
static char *f (char * (*g) (char **, int), char **p, ...)
3946
s = g (p, va_arg (v,int));
3951
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3952
function prototypes and stuff, but not '\xHH' hex character constants.
3953
These don't provoke an error unfortunately, instead are silently treated
3954
as 'x'. The following induces an error, until -std is added to get
3955
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3956
array size at least. It's necessary to write '\x00'==0 to get something
3957
that's true only with -std. */
3958
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961
inside strings and character constants. */
3963
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3965
int test (int i, double x);
3966
struct s1 {int (*f) (int a);};
3967
struct s2 {int (*f) (double a);};
3968
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3974
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3979
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982
CC="$ac_save_CC $ac_arg"
3983
if ac_fn_c_try_compile "$LINENO"; then :
3984
ac_cv_prog_cc_c89=$ac_arg
3986
rm -f core conftest.err conftest.$ac_objext
3987
test "x$ac_cv_prog_cc_c89" != "xno" && break
3989
rm -f conftest.$ac_ext
3994
case "x$ac_cv_prog_cc_c89" in
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997
$as_echo "none needed" >&6; } ;;
3999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4000
$as_echo "unsupported" >&6; } ;;
4002
CC="$CC $ac_cv_prog_cc_c89"
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4004
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006
if test "x$ac_cv_prog_cc_c89" != xno; then :
4011
ac_cpp='$CPP $CPPFLAGS'
4012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
depcc="$CC" am_compiler_list=
4018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019
$as_echo_n "checking dependency style of $depcc... " >&6; }
4020
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4021
$as_echo_n "(cached) " >&6
4023
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024
# We make a subdir and do the tests there. Otherwise we can end up
4025
# making bogus files that we don't know about and never remove. For
4026
# instance it was reported that on HP-UX the gcc test will end up
4027
# making a dummy file named `D' -- because `-MD' means `put the output
4030
# Copy depcomp to subdir because otherwise we won't find it if we're
4031
# using a relative directory.
4032
cp "$am_depcomp" conftest.dir
4034
# We will build objects and dependencies in a subdirectory because
4035
# it helps to detect inapplicable dependency modes. For instance
4036
# both Tru64's cc and ICC support -MD to output dependencies as a
4037
# side effect of compilation, but ICC will put the dependencies in
4038
# the current directory while Tru64 will put them in the object
4042
am_cv_CC_dependencies_compiler_type=none
4043
if test "$am_compiler_list" = ""; then
4044
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4047
case " $depcc " in #(
4048
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4051
for depmode in $am_compiler_list; do
4052
# Setup a source with many dependencies, because some compilers
4053
# like to wrap large dependency lists on column 80 (with \), and
4054
# we should not choose a depcomp mode which is confused by this.
4056
# We need to recreate these files for each test, as the compiler may
4057
# overwrite some of them when testing with obscure command lines.
4058
# This happens at least with the AIX C compiler.
4060
for i in 1 2 3 4 5 6; do
4061
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063
# Solaris 8's {/usr,}/bin/sh.
4064
touch sub/conftst$i.h
4066
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4069
# mode. It turns out that the SunPro C++ compiler does not properly
4070
# handle `-M -o', and we need to detect this. Also, some Intel
4071
# versions had trouble with output in subdirs
4072
am__obj=sub/conftest.${OBJEXT-o}
4073
am__minus_obj="-o $am__obj"
4076
# This depmode causes a compiler race in universal mode.
4077
test "$am__universal" = false || continue
4080
# after this tag, mechanisms are not by side-effect, so they'll
4081
# only be used when explicitly requested
4082
if test "x$enable_dependency_tracking" = xyes; then
4088
msvisualcpp | msvcmsys)
4089
# This compiler won't grok `-c -o', but also, the minuso test has
4090
# not run yet. These depmodes are late enough in the game, and
4091
# so weak that their functioning should not be impacted.
4092
am__obj=conftest.${OBJEXT-o}
4097
if depmode=$depmode \
4098
source=sub/conftest.c object=$am__obj \
4099
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101
>/dev/null 2>conftest.err &&
4102
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106
# icc doesn't choke on unknown options, it will just issue warnings
4107
# or remarks (even with -Werror). So we grep stderr for any message
4108
# that says an option was ignored or not supported.
4109
# When given -MP, icc 7.0 and 7.1 complain thusly:
4110
# icc: Command line warning: ignoring option '-M'; no argument required
4111
# The diagnosis changed in icc 8.0:
4112
# icc: Command line remark: option '-MP' not supported
4113
if (grep 'ignoring option' conftest.err ||
4114
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115
am_cv_CC_dependencies_compiler_type=$depmode
4124
am_cv_CC_dependencies_compiler_type=none
4128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4129
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4133
test "x$enable_dependency_tracking" != xno \
4134
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136
am__fastdepCC_FALSE='#'
4138
am__fastdepCC_TRUE='#'
4139
am__fastdepCC_FALSE=
4145
ac_cpp='$CPP $CPPFLAGS'
4146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4150
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4151
# On Suns, sometimes $CPP names a directory.
4152
if test -n "$CPP" && test -d "$CPP"; then
4155
if test -z "$CPP"; then
4156
if test "${ac_cv_prog_CPP+set}" = set; then :
4157
$as_echo_n "(cached) " >&6
4159
# Double quotes because CPP needs to be expanded
4160
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4163
for ac_c_preproc_warn_flag in '' yes
4165
# Use a header file that comes with gcc, so configuring glibc
4166
# with a fresh cross-compiler works.
4167
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168
# <limits.h> exists even on freestanding compilers.
4169
# On the NeXT, cc -E runs the code through the compiler's parser,
4170
# not just through cpp. "Syntax error" is here to catch this case.
4171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172
/* end confdefs.h. */
4174
# include <limits.h>
4176
# include <assert.h>
4180
if ac_fn_c_try_cpp "$LINENO"; then :
4183
# Broken: fails on valid input.
4186
rm -f conftest.err conftest.$ac_ext
4188
# OK, works on sane cases. Now check whether nonexistent headers
4189
# can be detected and how.
4190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191
/* end confdefs.h. */
4192
#include <ac_nonexistent.h>
4194
if ac_fn_c_try_cpp "$LINENO"; then :
4195
# Broken: success on invalid input.
4198
# Passes both tests.
4202
rm -f conftest.err conftest.$ac_ext
4205
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206
rm -f conftest.err conftest.$ac_ext
4207
if $ac_preproc_ok; then :
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4220
$as_echo "$CPP" >&6; }
4222
for ac_c_preproc_warn_flag in '' yes
4224
# Use a header file that comes with gcc, so configuring glibc
4225
# with a fresh cross-compiler works.
4226
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227
# <limits.h> exists even on freestanding compilers.
4228
# On the NeXT, cc -E runs the code through the compiler's parser,
4229
# not just through cpp. "Syntax error" is here to catch this case.
4230
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231
/* end confdefs.h. */
4233
# include <limits.h>
4235
# include <assert.h>
4239
if ac_fn_c_try_cpp "$LINENO"; then :
4242
# Broken: fails on valid input.
4245
rm -f conftest.err conftest.$ac_ext
4247
# OK, works on sane cases. Now check whether nonexistent headers
4248
# can be detected and how.
4249
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250
/* end confdefs.h. */
4251
#include <ac_nonexistent.h>
4253
if ac_fn_c_try_cpp "$LINENO"; then :
4254
# Broken: success on invalid input.
4257
# Passes both tests.
4261
rm -f conftest.err conftest.$ac_ext
4264
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265
rm -f conftest.err conftest.$ac_ext
4266
if $ac_preproc_ok; then :
4269
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4272
See \`config.log' for more details." "$LINENO" 5; }
4276
ac_cpp='$CPP $CPPFLAGS'
4277
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4283
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4284
if test "${ac_cv_path_GREP+set}" = set; then :
4285
$as_echo_n "(cached) " >&6
4287
if test -z "$GREP"; then
4288
ac_path_GREP_found=false
4289
# Loop through the user's path and test for each of PROGNAME-LIST
4290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294
test -z "$as_dir" && as_dir=.
4295
for ac_prog in grep ggrep; do
4296
for ac_exec_ext in '' $ac_executable_extensions; do
4297
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4298
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4299
# Check for GNU ac_path_GREP and select it if it is found.
4300
# Check for GNU $ac_path_GREP
4301
case `"$ac_path_GREP" --version 2>&1` in
4303
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4306
$as_echo_n 0123456789 >"conftest.in"
4309
cat "conftest.in" "conftest.in" >"conftest.tmp"
4310
mv "conftest.tmp" "conftest.in"
4311
cp "conftest.in" "conftest.nl"
4312
$as_echo 'GREP' >> "conftest.nl"
4313
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315
as_fn_arith $ac_count + 1 && ac_count=$as_val
4316
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4317
# Best one so far, save it but keep looking for a better one
4318
ac_cv_path_GREP="$ac_path_GREP"
4319
ac_path_GREP_max=$ac_count
4321
# 10*(2^10) chars as input seems more than enough
4322
test $ac_count -gt 10 && break
4324
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327
$ac_path_GREP_found && break 3
4332
if test -z "$ac_cv_path_GREP"; then
4333
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336
ac_cv_path_GREP=$GREP
4340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4341
$as_echo "$ac_cv_path_GREP" >&6; }
4342
GREP="$ac_cv_path_GREP"
4345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4346
$as_echo_n "checking for egrep... " >&6; }
4347
if test "${ac_cv_path_EGREP+set}" = set; then :
4348
$as_echo_n "(cached) " >&6
4350
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4351
then ac_cv_path_EGREP="$GREP -E"
4353
if test -z "$EGREP"; then
4354
ac_path_EGREP_found=false
4355
# Loop through the user's path and test for each of PROGNAME-LIST
4356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360
test -z "$as_dir" && as_dir=.
4361
for ac_prog in egrep; do
4362
for ac_exec_ext in '' $ac_executable_extensions; do
4363
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4364
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4365
# Check for GNU ac_path_EGREP and select it if it is found.
4366
# Check for GNU $ac_path_EGREP
4367
case `"$ac_path_EGREP" --version 2>&1` in
4369
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4372
$as_echo_n 0123456789 >"conftest.in"
4375
cat "conftest.in" "conftest.in" >"conftest.tmp"
4376
mv "conftest.tmp" "conftest.in"
4377
cp "conftest.in" "conftest.nl"
4378
$as_echo 'EGREP' >> "conftest.nl"
4379
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381
as_fn_arith $ac_count + 1 && ac_count=$as_val
4382
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4383
# Best one so far, save it but keep looking for a better one
4384
ac_cv_path_EGREP="$ac_path_EGREP"
4385
ac_path_EGREP_max=$ac_count
4387
# 10*(2^10) chars as input seems more than enough
4388
test $ac_count -gt 10 && break
4390
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393
$ac_path_EGREP_found && break 3
4398
if test -z "$ac_cv_path_EGREP"; then
4399
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402
ac_cv_path_EGREP=$EGREP
4407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4408
$as_echo "$ac_cv_path_EGREP" >&6; }
4409
EGREP="$ac_cv_path_EGREP"
4412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4413
$as_echo_n "checking for ANSI C header files... " >&6; }
4414
if test "${ac_cv_header_stdc+set}" = set; then :
4415
$as_echo_n "(cached) " >&6
4417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418
/* end confdefs.h. */
4432
if ac_fn_c_try_compile "$LINENO"; then :
4433
ac_cv_header_stdc=yes
4435
ac_cv_header_stdc=no
4437
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439
if test $ac_cv_header_stdc = yes; then
4440
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442
/* end confdefs.h. */
4446
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4447
$EGREP "memchr" >/dev/null 2>&1; then :
4450
ac_cv_header_stdc=no
4456
if test $ac_cv_header_stdc = yes; then
4457
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459
/* end confdefs.h. */
4463
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464
$EGREP "free" >/dev/null 2>&1; then :
4467
ac_cv_header_stdc=no
4473
if test $ac_cv_header_stdc = yes; then
4474
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4475
if test "$cross_compiling" = yes; then :
4478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479
/* end confdefs.h. */
4482
#if ((' ' & 0x0FF) == 0x020)
4483
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4484
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4486
# define ISLOWER(c) \
4487
(('a' <= (c) && (c) <= 'i') \
4488
|| ('j' <= (c) && (c) <= 'r') \
4489
|| ('s' <= (c) && (c) <= 'z'))
4490
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4493
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4498
for (i = 0; i < 256; i++)
4499
if (XOR (islower (i), ISLOWER (i))
4500
|| toupper (i) != TOUPPER (i))
4505
if ac_fn_c_try_run "$LINENO"; then :
4508
ac_cv_header_stdc=no
4510
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4511
conftest.$ac_objext conftest.beam conftest.$ac_ext
4516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4517
$as_echo "$ac_cv_header_stdc" >&6; }
4518
if test $ac_cv_header_stdc = yes; then
4520
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4524
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4526
inttypes.h stdint.h unistd.h
4528
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4529
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4531
eval as_val=\$$as_ac_Header
4532
if test "x$as_val" = x""yes; then :
4533
cat >>confdefs.h <<_ACEOF
4534
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4544
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4551
if test "$MINIX" = yes; then
4553
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4556
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4559
$as_echo "#define _MINIX 1" >>confdefs.h
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4565
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4566
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4567
$as_echo_n "(cached) " >&6
4569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570
/* end confdefs.h. */
4572
# define __EXTENSIONS__ 1
4573
$ac_includes_default
4582
if ac_fn_c_try_compile "$LINENO"; then :
4583
ac_cv_safe_to_define___extensions__=yes
4585
ac_cv_safe_to_define___extensions__=no
4587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4590
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4591
test $ac_cv_safe_to_define___extensions__ = yes &&
4592
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4594
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4596
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4598
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4600
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4605
ac_cpp='$CPP $CPPFLAGS'
4606
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
if test -n "$ac_tool_prefix"; then
4610
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4611
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613
$as_echo_n "checking for $ac_word... " >&6; }
4614
if test "${ac_cv_prog_CC+set}" = set; then :
4615
$as_echo_n "(cached) " >&6
4617
if test -n "$CC"; then
4618
ac_cv_prog_CC="$CC" # Let the user override the test.
4620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624
test -z "$as_dir" && as_dir=.
4625
for ac_exec_ext in '' $ac_executable_extensions; do
4626
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4628
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638
if test -n "$CC"; then
4639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640
$as_echo "$CC" >&6; }
4642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643
$as_echo "no" >&6; }
4648
if test -z "$ac_cv_prog_CC"; then
4650
# Extract the first word of "gcc", so it can be a program name with args.
4651
set dummy gcc; ac_word=$2
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653
$as_echo_n "checking for $ac_word... " >&6; }
4654
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4655
$as_echo_n "(cached) " >&6
4657
if test -n "$ac_ct_CC"; then
4658
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664
test -z "$as_dir" && as_dir=.
4665
for ac_exec_ext in '' $ac_executable_extensions; do
4666
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667
ac_cv_prog_ac_ct_CC="gcc"
4668
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4678
if test -n "$ac_ct_CC"; then
4679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4680
$as_echo "$ac_ct_CC" >&6; }
4682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683
$as_echo "no" >&6; }
4686
if test "x$ac_ct_CC" = x; then
4689
case $cross_compiling:$ac_tool_warned in
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693
ac_tool_warned=yes ;;
4701
if test -z "$CC"; then
4702
if test -n "$ac_tool_prefix"; then
4703
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4704
set dummy ${ac_tool_prefix}cc; ac_word=$2
4705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706
$as_echo_n "checking for $ac_word... " >&6; }
4707
if test "${ac_cv_prog_CC+set}" = set; then :
4708
$as_echo_n "(cached) " >&6
4710
if test -n "$CC"; then
4711
ac_cv_prog_CC="$CC" # Let the user override the test.
4713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717
test -z "$as_dir" && as_dir=.
4718
for ac_exec_ext in '' $ac_executable_extensions; do
4719
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720
ac_cv_prog_CC="${ac_tool_prefix}cc"
4721
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731
if test -n "$CC"; then
4732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4733
$as_echo "$CC" >&6; }
4735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736
$as_echo "no" >&6; }
4742
if test -z "$CC"; then
4743
# Extract the first word of "cc", so it can be a program name with args.
4744
set dummy cc; ac_word=$2
4745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746
$as_echo_n "checking for $ac_word... " >&6; }
4747
if test "${ac_cv_prog_CC+set}" = set; then :
4748
$as_echo_n "(cached) " >&6
4750
if test -n "$CC"; then
4751
ac_cv_prog_CC="$CC" # Let the user override the test.
4754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758
test -z "$as_dir" && as_dir=.
4759
for ac_exec_ext in '' $ac_executable_extensions; do
4760
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4762
ac_prog_rejected=yes
4766
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773
if test $ac_prog_rejected = yes; then
4774
# We found a bogon in the path, so make sure we never use it.
4775
set dummy $ac_cv_prog_CC
4777
if test $# != 0; then
4778
# We chose a different compiler from the bogus one.
4779
# However, it has the same basename, so the bogon will be chosen
4780
# first if we set CC to just the basename; use the full file name.
4782
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4788
if test -n "$CC"; then
4789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4790
$as_echo "$CC" >&6; }
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793
$as_echo "no" >&6; }
4798
if test -z "$CC"; then
4799
if test -n "$ac_tool_prefix"; then
4800
for ac_prog in cl.exe
4802
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805
$as_echo_n "checking for $ac_word... " >&6; }
4806
if test "${ac_cv_prog_CC+set}" = set; then :
4807
$as_echo_n "(cached) " >&6
4809
if test -n "$CC"; then
4810
ac_cv_prog_CC="$CC" # Let the user override the test.
4812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816
test -z "$as_dir" && as_dir=.
4817
for ac_exec_ext in '' $ac_executable_extensions; do
4818
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4820
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830
if test -n "$CC"; then
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832
$as_echo "$CC" >&6; }
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835
$as_echo "no" >&6; }
4839
test -n "$CC" && break
4842
if test -z "$CC"; then
4844
for ac_prog in cl.exe
4846
# Extract the first word of "$ac_prog", so it can be a program name with args.
4847
set dummy $ac_prog; ac_word=$2
4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849
$as_echo_n "checking for $ac_word... " >&6; }
4850
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4851
$as_echo_n "(cached) " >&6
4853
if test -n "$ac_ct_CC"; then
4854
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860
test -z "$as_dir" && as_dir=.
4861
for ac_exec_ext in '' $ac_executable_extensions; do
4862
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863
ac_cv_prog_ac_ct_CC="$ac_prog"
4864
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4874
if test -n "$ac_ct_CC"; then
4875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4876
$as_echo "$ac_ct_CC" >&6; }
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879
$as_echo "no" >&6; }
4883
test -n "$ac_ct_CC" && break
4886
if test "x$ac_ct_CC" = x; then
4889
case $cross_compiling:$ac_tool_warned in
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893
ac_tool_warned=yes ;;
4902
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904
as_fn_error "no acceptable C compiler found in \$PATH
4905
See \`config.log' for more details." "$LINENO" 5; }
4907
# Provide some information about the compiler.
4908
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4911
for ac_option in --version -v -V -qversion; do
4912
{ { ac_try="$ac_compiler $ac_option >&5"
4914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915
*) ac_try_echo=$ac_try;;
4917
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918
$as_echo "$ac_try_echo"; } >&5
4919
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4921
if test -s conftest.err; then
4923
... rest of stderr output deleted ...
4924
10q' conftest.err >conftest.er1
4925
cat conftest.er1 >&5
4927
rm -f conftest.er1 conftest.err
4928
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929
test $ac_status = 0; }
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4933
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4934
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4935
$as_echo_n "(cached) " >&6
4937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938
/* end confdefs.h. */
4951
if ac_fn_c_try_compile "$LINENO"; then :
4956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4961
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4962
if test $ac_compiler_gnu = yes; then
4967
ac_test_CFLAGS=${CFLAGS+set}
4968
ac_save_CFLAGS=$CFLAGS
4969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4970
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4971
if test "${ac_cv_prog_cc_g+set}" = set; then :
4972
$as_echo_n "(cached) " >&6
4974
ac_save_c_werror_flag=$ac_c_werror_flag
4975
ac_c_werror_flag=yes
4978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979
/* end confdefs.h. */
4989
if ac_fn_c_try_compile "$LINENO"; then :
4993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994
/* end confdefs.h. */
5004
if ac_fn_c_try_compile "$LINENO"; then :
5007
ac_c_werror_flag=$ac_save_c_werror_flag
5009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010
/* end confdefs.h. */
5020
if ac_fn_c_try_compile "$LINENO"; then :
5023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028
ac_c_werror_flag=$ac_save_c_werror_flag
5030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5031
$as_echo "$ac_cv_prog_cc_g" >&6; }
5032
if test "$ac_test_CFLAGS" = set; then
5033
CFLAGS=$ac_save_CFLAGS
5034
elif test $ac_cv_prog_cc_g = yes; then
5035
if test "$GCC" = yes; then
5041
if test "$GCC" = yes; then
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5048
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5049
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5050
$as_echo_n "(cached) " >&6
5052
ac_cv_prog_cc_c89=no
5054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055
/* end confdefs.h. */
5058
#include <sys/types.h>
5059
#include <sys/stat.h>
5060
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5061
struct buf { int x; };
5062
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5063
static char *e (p, i)
5069
static char *f (char * (*g) (char **, int), char **p, ...)
5074
s = g (p, va_arg (v,int));
5079
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5080
function prototypes and stuff, but not '\xHH' hex character constants.
5081
These don't provoke an error unfortunately, instead are silently treated
5082
as 'x'. The following induces an error, until -std is added to get
5083
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5084
array size at least. It's necessary to write '\x00'==0 to get something
5085
that's true only with -std. */
5086
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5088
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5089
inside strings and character constants. */
5091
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5093
int test (int i, double x);
5094
struct s1 {int (*f) (int a);};
5095
struct s2 {int (*f) (double a);};
5096
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5102
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5107
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5108
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5110
CC="$ac_save_CC $ac_arg"
5111
if ac_fn_c_try_compile "$LINENO"; then :
5112
ac_cv_prog_cc_c89=$ac_arg
5114
rm -f core conftest.err conftest.$ac_objext
5115
test "x$ac_cv_prog_cc_c89" != "xno" && break
5117
rm -f conftest.$ac_ext
5122
case "x$ac_cv_prog_cc_c89" in
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125
$as_echo "none needed" >&6; } ;;
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128
$as_echo "unsupported" >&6; } ;;
5130
CC="$CC $ac_cv_prog_cc_c89"
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5132
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5134
if test "x$ac_cv_prog_cc_c89" != xno; then :
5139
ac_cpp='$CPP $CPPFLAGS'
5140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
depcc="$CC" am_compiler_list=
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5147
$as_echo_n "checking dependency style of $depcc... " >&6; }
5148
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5149
$as_echo_n "(cached) " >&6
5151
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5152
# We make a subdir and do the tests there. Otherwise we can end up
5153
# making bogus files that we don't know about and never remove. For
5154
# instance it was reported that on HP-UX the gcc test will end up
5155
# making a dummy file named `D' -- because `-MD' means `put the output
5158
# Copy depcomp to subdir because otherwise we won't find it if we're
5159
# using a relative directory.
5160
cp "$am_depcomp" conftest.dir
5162
# We will build objects and dependencies in a subdirectory because
5163
# it helps to detect inapplicable dependency modes. For instance
5164
# both Tru64's cc and ICC support -MD to output dependencies as a
5165
# side effect of compilation, but ICC will put the dependencies in
5166
# the current directory while Tru64 will put them in the object
5170
am_cv_CC_dependencies_compiler_type=none
5171
if test "$am_compiler_list" = ""; then
5172
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175
case " $depcc " in #(
5176
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5179
for depmode in $am_compiler_list; do
5180
# Setup a source with many dependencies, because some compilers
5181
# like to wrap large dependency lists on column 80 (with \), and
5182
# we should not choose a depcomp mode which is confused by this.
5184
# We need to recreate these files for each test, as the compiler may
5185
# overwrite some of them when testing with obscure command lines.
5186
# This happens at least with the AIX C compiler.
5188
for i in 1 2 3 4 5 6; do
5189
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5190
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5191
# Solaris 8's {/usr,}/bin/sh.
5192
touch sub/conftst$i.h
5194
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5196
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5197
# mode. It turns out that the SunPro C++ compiler does not properly
5198
# handle `-M -o', and we need to detect this. Also, some Intel
5199
# versions had trouble with output in subdirs
5200
am__obj=sub/conftest.${OBJEXT-o}
5201
am__minus_obj="-o $am__obj"
5204
# This depmode causes a compiler race in universal mode.
5205
test "$am__universal" = false || continue
5208
# after this tag, mechanisms are not by side-effect, so they'll
5209
# only be used when explicitly requested
5210
if test "x$enable_dependency_tracking" = xyes; then
5216
msvisualcpp | msvcmsys)
5217
# This compiler won't grok `-c -o', but also, the minuso test has
5218
# not run yet. These depmodes are late enough in the game, and
5219
# so weak that their functioning should not be impacted.
5220
am__obj=conftest.${OBJEXT-o}
5225
if depmode=$depmode \
5226
source=sub/conftest.c object=$am__obj \
5227
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5228
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5229
>/dev/null 2>conftest.err &&
5230
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5231
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5232
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5233
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5234
# icc doesn't choke on unknown options, it will just issue warnings
5235
# or remarks (even with -Werror). So we grep stderr for any message
5236
# that says an option was ignored or not supported.
5237
# When given -MP, icc 7.0 and 7.1 complain thusly:
5238
# icc: Command line warning: ignoring option '-M'; no argument required
5239
# The diagnosis changed in icc 8.0:
5240
# icc: Command line remark: option '-MP' not supported
5241
if (grep 'ignoring option' conftest.err ||
5242
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5243
am_cv_CC_dependencies_compiler_type=$depmode
5252
am_cv_CC_dependencies_compiler_type=none
5256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5257
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5258
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5261
test "x$enable_dependency_tracking" != xno \
5262
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5264
am__fastdepCC_FALSE='#'
5266
am__fastdepCC_TRUE='#'
5267
am__fastdepCC_FALSE=
5271
case $ac_cv_prog_cc_stdc in #(
5273
ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5276
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5277
if test "${ac_cv_prog_cc_c99+set}" = set; then :
5278
$as_echo_n "(cached) " >&6
5280
ac_cv_prog_cc_c99=no
5282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283
/* end confdefs.h. */
5285
#include <stdbool.h>
5290
// Check varargs macros. These examples are taken from C99 6.10.3.5.
5291
#define debug(...) fprintf (stderr, __VA_ARGS__)
5292
#define showlist(...) puts (#__VA_ARGS__)
5293
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5295
test_varargs_macros (void)
5300
debug ("X = %d\n", x);
5301
showlist (The first, second, and third items.);
5302
report (x>y, "x is %d but y is %d", x, y);
5305
// Check long long types.
5306
#define BIG64 18446744073709551615ull
5307
#define BIG32 4294967295ul
5308
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5310
your preprocessor is broken;
5314
your preprocessor is broken;
5316
static long long int bignum = -9223372036854775807LL;
5317
static unsigned long long int ubignum = BIG64;
5319
struct incomplete_array
5327
const wchar_t *name;
5331
typedef const char *ccp;
5334
test_restrict (ccp restrict text)
5336
// See if C++-style comments work.
5337
// Iterate through items via the restricted pointer.
5338
// Also check for declarations in for loops.
5339
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5344
// Check varargs and va_copy.
5346
test_varargs (const char *format, ...)
5349
va_start (args, format);
5351
va_copy (args_copy, args);
5362
str = va_arg (args_copy, const char *);
5365
number = va_arg (args_copy, int);
5368
fnumber = va_arg (args_copy, double);
5383
_Bool success = false;
5386
if (test_restrict ("String literal") == 0)
5388
char *restrict newvar = "Another string";
5391
test_varargs ("s, d' f .", "string", 65, 34.234);
5392
test_varargs_macros ();
5394
// Check flexible array members.
5395
struct incomplete_array *ia =
5396
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5398
for (int i = 0; i < ia->datasize; ++i)
5399
ia->data[i] = i * 1.234;
5401
// Check named initializers.
5402
struct named_init ni = {
5404
.name = L"Test wide string",
5405
.average = 543.34343,
5410
int dynamic_array[ni.number];
5411
dynamic_array[ni.number - 1] = 543;
5413
// work around unused variable warnings
5414
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5415
|| dynamic_array[ni.number - 1] != 543);
5421
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5423
CC="$ac_save_CC $ac_arg"
5424
if ac_fn_c_try_compile "$LINENO"; then :
5425
ac_cv_prog_cc_c99=$ac_arg
5427
rm -f core conftest.err conftest.$ac_objext
5428
test "x$ac_cv_prog_cc_c99" != "xno" && break
5430
rm -f conftest.$ac_ext
5435
case "x$ac_cv_prog_cc_c99" in
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5438
$as_echo "none needed" >&6; } ;;
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5441
$as_echo "unsupported" >&6; } ;;
5443
CC="$CC $ac_cv_prog_cc_c99"
5444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5445
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5447
if test "x$ac_cv_prog_cc_c99" != xno; then :
5448
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5451
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5452
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5453
$as_echo_n "(cached) " >&6
5455
ac_cv_prog_cc_c89=no
5457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458
/* end confdefs.h. */
5461
#include <sys/types.h>
5462
#include <sys/stat.h>
5463
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5464
struct buf { int x; };
5465
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5466
static char *e (p, i)
5472
static char *f (char * (*g) (char **, int), char **p, ...)
5477
s = g (p, va_arg (v,int));
5482
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5483
function prototypes and stuff, but not '\xHH' hex character constants.
5484
These don't provoke an error unfortunately, instead are silently treated
5485
as 'x'. The following induces an error, until -std is added to get
5486
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5487
array size at least. It's necessary to write '\x00'==0 to get something
5488
that's true only with -std. */
5489
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5491
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5492
inside strings and character constants. */
5494
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5496
int test (int i, double x);
5497
struct s1 {int (*f) (int a);};
5498
struct s2 {int (*f) (double a);};
5499
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5505
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5510
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5511
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5513
CC="$ac_save_CC $ac_arg"
5514
if ac_fn_c_try_compile "$LINENO"; then :
5515
ac_cv_prog_cc_c89=$ac_arg
5517
rm -f core conftest.err conftest.$ac_objext
5518
test "x$ac_cv_prog_cc_c89" != "xno" && break
5520
rm -f conftest.$ac_ext
5525
case "x$ac_cv_prog_cc_c89" in
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5528
$as_echo "none needed" >&6; } ;;
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5531
$as_echo "unsupported" >&6; } ;;
5533
CC="$CC $ac_cv_prog_cc_c89"
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5535
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5537
if test "x$ac_cv_prog_cc_c89" != xno; then :
5538
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5540
ac_cv_prog_cc_stdc=no
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5547
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5548
if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5549
$as_echo_n "(cached) " >&6
5552
case $ac_cv_prog_cc_stdc in #(
5554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5555
$as_echo "unsupported" >&6; } ;; #(
5557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558
$as_echo "none needed" >&6; } ;; #(
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5561
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5564
if test "x$ac_cv_prog_cc_c99" = xno; then
5565
as_fn_error "Could not find a C99 compatible compiler" "$LINENO" 5
5568
ac_cpp='$CPP $CPPFLAGS'
5569
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5573
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5574
# On Suns, sometimes $CPP names a directory.
5575
if test -n "$CPP" && test -d "$CPP"; then
5578
if test -z "$CPP"; then
5579
if test "${ac_cv_prog_CPP+set}" = set; then :
5580
$as_echo_n "(cached) " >&6
5582
# Double quotes because CPP needs to be expanded
5583
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5586
for ac_c_preproc_warn_flag in '' yes
5588
# Use a header file that comes with gcc, so configuring glibc
5589
# with a fresh cross-compiler works.
5590
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591
# <limits.h> exists even on freestanding compilers.
5592
# On the NeXT, cc -E runs the code through the compiler's parser,
5593
# not just through cpp. "Syntax error" is here to catch this case.
5594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595
/* end confdefs.h. */
5597
# include <limits.h>
5599
# include <assert.h>
5603
if ac_fn_c_try_cpp "$LINENO"; then :
5606
# Broken: fails on valid input.
5609
rm -f conftest.err conftest.$ac_ext
5611
# OK, works on sane cases. Now check whether nonexistent headers
5612
# can be detected and how.
5613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614
/* end confdefs.h. */
5615
#include <ac_nonexistent.h>
5617
if ac_fn_c_try_cpp "$LINENO"; then :
5618
# Broken: success on invalid input.
5621
# Passes both tests.
5625
rm -f conftest.err conftest.$ac_ext
5628
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629
rm -f conftest.err conftest.$ac_ext
5630
if $ac_preproc_ok; then :
5642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5643
$as_echo "$CPP" >&6; }
5645
for ac_c_preproc_warn_flag in '' yes
5647
# Use a header file that comes with gcc, so configuring glibc
5648
# with a fresh cross-compiler works.
5649
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650
# <limits.h> exists even on freestanding compilers.
5651
# On the NeXT, cc -E runs the code through the compiler's parser,
5652
# not just through cpp. "Syntax error" is here to catch this case.
5653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654
/* end confdefs.h. */
5656
# include <limits.h>
5658
# include <assert.h>
5662
if ac_fn_c_try_cpp "$LINENO"; then :
5665
# Broken: fails on valid input.
5668
rm -f conftest.err conftest.$ac_ext
5670
# OK, works on sane cases. Now check whether nonexistent headers
5671
# can be detected and how.
5672
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673
/* end confdefs.h. */
5674
#include <ac_nonexistent.h>
5676
if ac_fn_c_try_cpp "$LINENO"; then :
5677
# Broken: success on invalid input.
5680
# Passes both tests.
5684
rm -f conftest.err conftest.$ac_ext
5687
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688
rm -f conftest.err conftest.$ac_ext
5689
if $ac_preproc_ok; then :
5692
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5695
See \`config.log' for more details." "$LINENO" 5; }
5699
ac_cpp='$CPP $CPPFLAGS'
5700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5708
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5713
macro_version='2.2.6b'
5714
macro_revision='1.3017'
5728
ltmain="$ac_aux_dir/ltmain.sh"
5730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5731
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5732
if test "${ac_cv_path_SED+set}" = set; then :
5733
$as_echo_n "(cached) " >&6
5735
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5736
for ac_i in 1 2 3 4 5 6 7; do
5737
ac_script="$ac_script$as_nl$ac_script"
5739
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5740
{ ac_script=; unset ac_script;}
5741
if test -z "$SED"; then
5742
ac_path_SED_found=false
5743
# Loop through the user's path and test for each of PROGNAME-LIST
5744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748
test -z "$as_dir" && as_dir=.
5749
for ac_prog in sed gsed; do
5750
for ac_exec_ext in '' $ac_executable_extensions; do
5751
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5752
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5753
# Check for GNU ac_path_SED and select it if it is found.
5754
# Check for GNU $ac_path_SED
5755
case `"$ac_path_SED" --version 2>&1` in
5757
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5760
$as_echo_n 0123456789 >"conftest.in"
5763
cat "conftest.in" "conftest.in" >"conftest.tmp"
5764
mv "conftest.tmp" "conftest.in"
5765
cp "conftest.in" "conftest.nl"
5766
$as_echo '' >> "conftest.nl"
5767
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769
as_fn_arith $ac_count + 1 && ac_count=$as_val
5770
if test $ac_count -gt ${ac_path_SED_max-0}; then
5771
# Best one so far, save it but keep looking for a better one
5772
ac_cv_path_SED="$ac_path_SED"
5773
ac_path_SED_max=$ac_count
5775
# 10*(2^10) chars as input seems more than enough
5776
test $ac_count -gt 10 && break
5778
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5781
$ac_path_SED_found && break 3
5786
if test -z "$ac_cv_path_SED"; then
5787
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5795
$as_echo "$ac_cv_path_SED" >&6; }
5796
SED="$ac_cv_path_SED"
5799
test -z "$SED" && SED=sed
5800
Xsed="$SED -e 1s/^X//"
5812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5813
$as_echo_n "checking for fgrep... " >&6; }
5814
if test "${ac_cv_path_FGREP+set}" = set; then :
5815
$as_echo_n "(cached) " >&6
5817
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5818
then ac_cv_path_FGREP="$GREP -F"
5820
if test -z "$FGREP"; then
5821
ac_path_FGREP_found=false
5822
# Loop through the user's path and test for each of PROGNAME-LIST
5823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5827
test -z "$as_dir" && as_dir=.
5828
for ac_prog in fgrep; do
5829
for ac_exec_ext in '' $ac_executable_extensions; do
5830
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5831
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5832
# Check for GNU ac_path_FGREP and select it if it is found.
5833
# Check for GNU $ac_path_FGREP
5834
case `"$ac_path_FGREP" --version 2>&1` in
5836
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5839
$as_echo_n 0123456789 >"conftest.in"
5842
cat "conftest.in" "conftest.in" >"conftest.tmp"
5843
mv "conftest.tmp" "conftest.in"
5844
cp "conftest.in" "conftest.nl"
5845
$as_echo 'FGREP' >> "conftest.nl"
5846
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5847
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5848
as_fn_arith $ac_count + 1 && ac_count=$as_val
5849
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5850
# Best one so far, save it but keep looking for a better one
5851
ac_cv_path_FGREP="$ac_path_FGREP"
5852
ac_path_FGREP_max=$ac_count
5854
# 10*(2^10) chars as input seems more than enough
5855
test $ac_count -gt 10 && break
5857
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5860
$ac_path_FGREP_found && break 3
5865
if test -z "$ac_cv_path_FGREP"; then
5866
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5869
ac_cv_path_FGREP=$FGREP
5874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5875
$as_echo "$ac_cv_path_FGREP" >&6; }
5876
FGREP="$ac_cv_path_FGREP"
5879
test -z "$GREP" && GREP=grep
5899
# Check whether --with-gnu-ld was given.
5900
if test "${with_gnu_ld+set}" = set; then :
5901
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5907
if test "$GCC" = yes; then
5908
# Check if gcc -print-prog-name=ld gives a path.
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5910
$as_echo_n "checking for ld used by $CC... " >&6; }
5913
# gcc leaves a trailing carriage return which upsets mingw
5914
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5916
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5919
# Accept absolute paths.
5921
re_direlt='/[^/][^/]*/\.\./'
5922
# Canonicalize the pathname of ld
5923
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5924
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5925
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5927
test -z "$LD" && LD="$ac_prog"
5930
# If it fails, then pretend we aren't using GCC.
5934
# If it is relative, then search for the first ld in PATH.
5938
elif test "$with_gnu_ld" = yes; then
5939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5940
$as_echo_n "checking for GNU ld... " >&6; }
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5943
$as_echo_n "checking for non-GNU ld... " >&6; }
5945
if test "${lt_cv_path_LD+set}" = set; then :
5946
$as_echo_n "(cached) " >&6
5948
if test -z "$LD"; then
5949
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5950
for ac_dir in $PATH; do
5952
test -z "$ac_dir" && ac_dir=.
5953
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5954
lt_cv_path_LD="$ac_dir/$ac_prog"
5955
# Check to see if the program is GNU ld. I'd rather use --version,
5956
# but apparently some variants of GNU ld only accept -v.
5957
# Break only if it was the GNU/non-GNU ld that we prefer.
5958
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5959
*GNU* | *'with BFD'*)
5960
test "$with_gnu_ld" != no && break
5963
test "$with_gnu_ld" != yes && break
5970
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5975
if test -n "$LD"; then
5976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5977
$as_echo "$LD" >&6; }
5979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980
$as_echo "no" >&6; }
5982
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5984
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5985
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5986
$as_echo_n "(cached) " >&6
5988
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5989
case `$LD -v 2>&1 </dev/null` in
5990
*GNU* | *'with BFD'*)
5991
lt_cv_prog_gnu_ld=yes
5994
lt_cv_prog_gnu_ld=no
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5999
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6000
with_gnu_ld=$lt_cv_prog_gnu_ld
6010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6011
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6012
if test "${lt_cv_path_NM+set}" = set; then :
6013
$as_echo_n "(cached) " >&6
6015
if test -n "$NM"; then
6016
# Let the user override the test.
6019
lt_nm_to_check="${ac_tool_prefix}nm"
6020
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6021
lt_nm_to_check="$lt_nm_to_check nm"
6023
for lt_tmp_nm in $lt_nm_to_check; do
6024
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6025
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027
test -z "$ac_dir" && ac_dir=.
6028
tmp_nm="$ac_dir/$lt_tmp_nm"
6029
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6030
# Check to see if the nm accepts a BSD-compat flag.
6031
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6032
# nm: unknown option "B" ignored
6033
# Tru64's nm complains that /dev/null is an invalid object file
6034
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6035
*/dev/null* | *'Invalid file or object type'*)
6036
lt_cv_path_NM="$tmp_nm -B"
6040
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6042
lt_cv_path_NM="$tmp_nm -p"
6046
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6047
continue # so that we can try to find one that supports BSD flags
6056
: ${lt_cv_path_NM=no}
6059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6060
$as_echo "$lt_cv_path_NM" >&6; }
6061
if test "$lt_cv_path_NM" != "no"; then
6064
# Didn't find any BSD compatible name lister, look for dumpbin.
6065
if test -n "$ac_tool_prefix"; then
6066
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6068
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6069
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071
$as_echo_n "checking for $ac_word... " >&6; }
6072
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6073
$as_echo_n "(cached) " >&6
6075
if test -n "$DUMPBIN"; then
6076
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082
test -z "$as_dir" && as_dir=.
6083
for ac_exec_ext in '' $ac_executable_extensions; do
6084
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6086
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095
DUMPBIN=$ac_cv_prog_DUMPBIN
6096
if test -n "$DUMPBIN"; then
6097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6098
$as_echo "$DUMPBIN" >&6; }
6100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101
$as_echo "no" >&6; }
6105
test -n "$DUMPBIN" && break
6108
if test -z "$DUMPBIN"; then
6109
ac_ct_DUMPBIN=$DUMPBIN
6110
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6112
# Extract the first word of "$ac_prog", so it can be a program name with args.
6113
set dummy $ac_prog; ac_word=$2
6114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115
$as_echo_n "checking for $ac_word... " >&6; }
6116
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6117
$as_echo_n "(cached) " >&6
6119
if test -n "$ac_ct_DUMPBIN"; then
6120
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126
test -z "$as_dir" && as_dir=.
6127
for ac_exec_ext in '' $ac_executable_extensions; do
6128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6130
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6140
if test -n "$ac_ct_DUMPBIN"; then
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6142
$as_echo "$ac_ct_DUMPBIN" >&6; }
6144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145
$as_echo "no" >&6; }
6149
test -n "$ac_ct_DUMPBIN" && break
6152
if test "x$ac_ct_DUMPBIN" = x; then
6155
case $cross_compiling:$ac_tool_warned in
6157
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159
ac_tool_warned=yes ;;
6161
DUMPBIN=$ac_ct_DUMPBIN
6166
if test "$DUMPBIN" != ":"; then
6170
test -z "$NM" && NM=nm
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6178
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6179
if test "${lt_cv_nm_interface+set}" = set; then :
6180
$as_echo_n "(cached) " >&6
6182
lt_cv_nm_interface="BSD nm"
6183
echo "int some_variable = 0;" > conftest.$ac_ext
6184
(eval echo "\"\$as_me:6184: $ac_compile\"" >&5)
6185
(eval "$ac_compile" 2>conftest.err)
6186
cat conftest.err >&5
6187
(eval echo "\"\$as_me:6187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6188
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6189
cat conftest.err >&5
6190
(eval echo "\"\$as_me:6190: output\"" >&5)
6191
cat conftest.out >&5
6192
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6193
lt_cv_nm_interface="MS dumpbin"
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6198
$as_echo "$lt_cv_nm_interface" >&6; }
6200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6201
$as_echo_n "checking whether ln -s works... " >&6; }
6203
if test "$LN_S" = "ln -s"; then
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6205
$as_echo "yes" >&6; }
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6208
$as_echo "no, using $LN_S" >&6; }
6211
# find the maximum length of command line arguments
6212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6213
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6214
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6215
$as_echo_n "(cached) " >&6
6222
# On DJGPP, this test can blow up pretty badly due to problems in libc
6223
# (any single argument exceeding 2000 bytes causes a buffer overrun
6224
# during glob expansion). Even if it were fixed, the result of this
6225
# check would be larger than it should be.
6226
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6230
# Under GNU Hurd, this test is not required because there is
6231
# no limit to the length of command line arguments.
6232
# Libtool will interpret -1 as no limit whatsoever
6233
lt_cv_sys_max_cmd_len=-1;
6236
cygwin* | mingw* | cegcc*)
6237
# On Win9x/ME, this test blows up -- it succeeds, but takes
6238
# about 5 minutes as the teststring grows exponentially.
6239
# Worse, since 9x/ME are not pre-emptively multitasking,
6240
# you end up with a "frozen" computer, even though with patience
6241
# the test eventually succeeds (with a max line length of 256k).
6242
# Instead, let's just punt: use the minimum linelength reported by
6243
# all of the supported platforms: 8192 (on NT/2K/XP).
6244
lt_cv_sys_max_cmd_len=8192;
6248
# On AmigaOS with pdksh, this test takes hours, literally.
6249
# So we just punt and use a minimum line length of 8192.
6250
lt_cv_sys_max_cmd_len=8192;
6253
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6254
# This has been around since 386BSD, at least. Likely further.
6255
if test -x /sbin/sysctl; then
6256
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6257
elif test -x /usr/sbin/sysctl; then
6258
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6260
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6262
# And add a safety zone
6263
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6268
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6269
lt_cv_sys_max_cmd_len=196608
6273
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6274
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6275
# nice to cause kernel panics so lets avoid the loop below.
6276
# First set a reasonable default.
6277
lt_cv_sys_max_cmd_len=16384
6279
if test -x /sbin/sysconfig; then
6280
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6281
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6286
lt_cv_sys_max_cmd_len=102400
6288
sysv5* | sco5v6* | sysv4.2uw2*)
6289
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6290
if test -n "$kargmax"; then
6291
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6293
lt_cv_sys_max_cmd_len=32768
6297
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6298
if test -n "$lt_cv_sys_max_cmd_len"; then
6299
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6300
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6302
# Make teststring a little bigger before we do anything with it.
6303
# a 1K string should be a reasonable start.
6304
for i in 1 2 3 4 5 6 7 8 ; do
6305
teststring=$teststring$teststring
6307
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6308
# If test is not a shell built-in, we'll probably end up computing a
6309
# maximum length that is only half of the actual maximum length, but
6311
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6312
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6313
test $i != 17 # 1/2 MB should be enough
6316
teststring=$teststring$teststring
6318
# Only check the string length outside the loop.
6319
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6321
# Add a significant safety factor because C++ compilers can tack on
6322
# massive amounts of additional arguments before passing them to the
6323
# linker. It appears as though 1/2 is a usable value.
6324
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331
if test -n $lt_cv_sys_max_cmd_len ; then
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6333
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6336
$as_echo "none" >&6; }
6338
max_cmd_len=$lt_cv_sys_max_cmd_len
6349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6350
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6351
# Try some XSI features
6354
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6356
&& eval 'test $(( 1 + 1 )) -eq 2 \
6357
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6360
$as_echo "$xsi_shell" >&6; }
6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6364
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6366
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6368
&& lt_shell_append=yes
6369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6370
$as_echo "$lt_shell_append" >&6; }
6373
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6383
# test EBCDIC or ASCII
6384
case `echo X|tr X '\101'` in
6385
A) # ASCII based system
6386
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6387
lt_SP2NL='tr \040 \012'
6388
lt_NL2SP='tr \015\012 \040\040'
6390
*) # EBCDIC based system
6391
lt_SP2NL='tr \100 \n'
6392
lt_NL2SP='tr \r\n \100\100'
6404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6405
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6406
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6407
$as_echo_n "(cached) " >&6
6409
lt_cv_ld_reload_flag='-r'
6411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6412
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6413
reload_flag=$lt_cv_ld_reload_flag
6414
case $reload_flag in
6416
*) reload_flag=" $reload_flag" ;;
6418
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6421
if test "$GCC" = yes; then
6422
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6424
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6437
if test -n "$ac_tool_prefix"; then
6438
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6439
set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+set}" = set; then :
6443
$as_echo_n "(cached) " >&6
6445
if test -n "$OBJDUMP"; then
6446
ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
6456
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
OBJDUMP=$ac_cv_prog_OBJDUMP
6466
if test -n "$OBJDUMP"; then
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6468
$as_echo "$OBJDUMP" >&6; }
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471
$as_echo "no" >&6; }
6476
if test -z "$ac_cv_prog_OBJDUMP"; then
6477
ac_ct_OBJDUMP=$OBJDUMP
6478
# Extract the first word of "objdump", so it can be a program name with args.
6479
set dummy objdump; ac_word=$2
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481
$as_echo_n "checking for $ac_word... " >&6; }
6482
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6483
$as_echo_n "(cached) " >&6
6485
if test -n "$ac_ct_OBJDUMP"; then
6486
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492
test -z "$as_dir" && as_dir=.
6493
for ac_exec_ext in '' $ac_executable_extensions; do
6494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6496
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6506
if test -n "$ac_ct_OBJDUMP"; then
6507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6508
$as_echo "$ac_ct_OBJDUMP" >&6; }
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511
$as_echo "no" >&6; }
6514
if test "x$ac_ct_OBJDUMP" = x; then
6517
case $cross_compiling:$ac_tool_warned in
6519
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521
ac_tool_warned=yes ;;
6523
OBJDUMP=$ac_ct_OBJDUMP
6526
OBJDUMP="$ac_cv_prog_OBJDUMP"
6529
test -z "$OBJDUMP" && OBJDUMP=objdump
6539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6540
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6541
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6542
$as_echo_n "(cached) " >&6
6544
lt_cv_file_magic_cmd='$MAGIC_CMD'
6545
lt_cv_file_magic_test_file=
6546
lt_cv_deplibs_check_method='unknown'
6547
# Need to set the preceding variable on all platforms that support
6548
# interlibrary dependencies.
6549
# 'none' -- dependencies not supported.
6550
# `unknown' -- same as none, but documents that we really don't know.
6551
# 'pass_all' -- all dependencies passed with no checks.
6552
# 'test_compile' -- check by making test program.
6553
# 'file_magic [[regex]]' -- check by looking for files in library path
6554
# which responds to the $file_magic_cmd with a given extended regex.
6555
# If you have `file' or equivalent on your system and you're not sure
6556
# whether `pass_all' will *always* work, you probably want this one.
6560
lt_cv_deplibs_check_method=pass_all
6564
lt_cv_deplibs_check_method=pass_all
6568
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6569
lt_cv_file_magic_cmd='/usr/bin/file -L'
6570
lt_cv_file_magic_test_file=/shlib/libc.so
6574
# func_win32_libid is a shell function defined in ltmain.sh
6575
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6576
lt_cv_file_magic_cmd='func_win32_libid'
6580
# Base MSYS/MinGW do not provide the 'file' command needed by
6581
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6582
# unless we find 'file', for example because we are cross-compiling.
6583
if ( file / ) >/dev/null 2>&1; then
6584
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6585
lt_cv_file_magic_cmd='func_win32_libid'
6587
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6588
lt_cv_file_magic_cmd='$OBJDUMP -f'
6593
# use the weaker test based on 'objdump'. See mingw*.
6594
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6595
lt_cv_file_magic_cmd='$OBJDUMP -f'
6598
darwin* | rhapsody*)
6599
lt_cv_deplibs_check_method=pass_all
6602
freebsd* | dragonfly*)
6603
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6606
# Not sure whether the presence of OpenBSD here was a mistake.
6607
# Let's accept both of them until this is cleared up.
6608
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6609
lt_cv_file_magic_cmd=/usr/bin/file
6610
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6614
lt_cv_deplibs_check_method=pass_all
6619
lt_cv_deplibs_check_method=pass_all
6622
hpux10.20* | hpux11*)
6623
lt_cv_file_magic_cmd=/usr/bin/file
6626
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6627
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6630
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]'
6631
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6634
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6635
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6641
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6642
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6645
irix5* | irix6* | nonstopux*)
6647
*-32|*"-32 ") libmagic=32-bit;;
6648
*-n32|*"-n32 ") libmagic=N32;;
6649
*-64|*"-64 ") libmagic=64-bit;;
6650
*) libmagic=never-match;;
6652
lt_cv_deplibs_check_method=pass_all
6655
# This must be Linux ELF.
6656
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6657
lt_cv_deplibs_check_method=pass_all
6660
netbsd* | netbsdelf*-gnu)
6661
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6662
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6664
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6669
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6670
lt_cv_file_magic_cmd=/usr/bin/file
6671
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6675
lt_cv_deplibs_check_method=pass_all
6679
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6680
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6682
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6686
osf3* | osf4* | osf5*)
6687
lt_cv_deplibs_check_method=pass_all
6691
lt_cv_deplibs_check_method=pass_all
6695
lt_cv_deplibs_check_method=pass_all
6698
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6699
lt_cv_deplibs_check_method=pass_all
6703
case $host_vendor in
6705
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]'
6706
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6709
lt_cv_deplibs_check_method=pass_all
6712
lt_cv_file_magic_cmd='/bin/file'
6713
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6716
lt_cv_file_magic_cmd='/bin/file'
6717
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6718
lt_cv_file_magic_test_file=/lib/libc.so
6721
lt_cv_deplibs_check_method=pass_all
6724
lt_cv_deplibs_check_method=pass_all
6730
lt_cv_deplibs_check_method=pass_all
6735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6736
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6737
file_magic_cmd=$lt_cv_file_magic_cmd
6738
deplibs_check_method=$lt_cv_deplibs_check_method
6739
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6752
if test -n "$ac_tool_prefix"; then
6753
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6754
set dummy ${ac_tool_prefix}ar; ac_word=$2
6755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756
$as_echo_n "checking for $ac_word... " >&6; }
6757
if test "${ac_cv_prog_AR+set}" = set; then :
6758
$as_echo_n "(cached) " >&6
6760
if test -n "$AR"; then
6761
ac_cv_prog_AR="$AR" # Let the user override the test.
6763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767
test -z "$as_dir" && as_dir=.
6768
for ac_exec_ext in '' $ac_executable_extensions; do
6769
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770
ac_cv_prog_AR="${ac_tool_prefix}ar"
6771
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781
if test -n "$AR"; then
6782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6783
$as_echo "$AR" >&6; }
6785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786
$as_echo "no" >&6; }
6791
if test -z "$ac_cv_prog_AR"; then
6793
# Extract the first word of "ar", so it can be a program name with args.
6794
set dummy ar; ac_word=$2
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796
$as_echo_n "checking for $ac_word... " >&6; }
6797
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6798
$as_echo_n "(cached) " >&6
6800
if test -n "$ac_ct_AR"; then
6801
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807
test -z "$as_dir" && as_dir=.
6808
for ac_exec_ext in '' $ac_executable_extensions; do
6809
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810
ac_cv_prog_ac_ct_AR="ar"
6811
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6821
if test -n "$ac_ct_AR"; then
6822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6823
$as_echo "$ac_ct_AR" >&6; }
6825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826
$as_echo "no" >&6; }
6829
if test "x$ac_ct_AR" = x; then
6832
case $cross_compiling:$ac_tool_warned in
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836
ac_tool_warned=yes ;;
6844
test -z "$AR" && AR=ar
6845
test -z "$AR_FLAGS" && AR_FLAGS=cru
6857
if test -n "$ac_tool_prefix"; then
6858
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6859
set dummy ${ac_tool_prefix}strip; ac_word=$2
6860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861
$as_echo_n "checking for $ac_word... " >&6; }
6862
if test "${ac_cv_prog_STRIP+set}" = set; then :
6863
$as_echo_n "(cached) " >&6
6865
if test -n "$STRIP"; then
6866
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872
test -z "$as_dir" && as_dir=.
6873
for ac_exec_ext in '' $ac_executable_extensions; do
6874
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6876
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885
STRIP=$ac_cv_prog_STRIP
6886
if test -n "$STRIP"; then
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6888
$as_echo "$STRIP" >&6; }
6890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891
$as_echo "no" >&6; }
6896
if test -z "$ac_cv_prog_STRIP"; then
6898
# Extract the first word of "strip", so it can be a program name with args.
6899
set dummy strip; ac_word=$2
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901
$as_echo_n "checking for $ac_word... " >&6; }
6902
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6903
$as_echo_n "(cached) " >&6
6905
if test -n "$ac_ct_STRIP"; then
6906
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912
test -z "$as_dir" && as_dir=.
6913
for ac_exec_ext in '' $ac_executable_extensions; do
6914
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915
ac_cv_prog_ac_ct_STRIP="strip"
6916
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6926
if test -n "$ac_ct_STRIP"; then
6927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6928
$as_echo "$ac_ct_STRIP" >&6; }
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931
$as_echo "no" >&6; }
6934
if test "x$ac_ct_STRIP" = x; then
6937
case $cross_compiling:$ac_tool_warned in
6939
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941
ac_tool_warned=yes ;;
6946
STRIP="$ac_cv_prog_STRIP"
6949
test -z "$STRIP" && STRIP=:
6956
if test -n "$ac_tool_prefix"; then
6957
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6958
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960
$as_echo_n "checking for $ac_word... " >&6; }
6961
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6962
$as_echo_n "(cached) " >&6
6964
if test -n "$RANLIB"; then
6965
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971
test -z "$as_dir" && as_dir=.
6972
for ac_exec_ext in '' $ac_executable_extensions; do
6973
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6975
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984
RANLIB=$ac_cv_prog_RANLIB
6985
if test -n "$RANLIB"; then
6986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6987
$as_echo "$RANLIB" >&6; }
6989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990
$as_echo "no" >&6; }
6995
if test -z "$ac_cv_prog_RANLIB"; then
6996
ac_ct_RANLIB=$RANLIB
6997
# Extract the first word of "ranlib", so it can be a program name with args.
6998
set dummy ranlib; ac_word=$2
6999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000
$as_echo_n "checking for $ac_word... " >&6; }
7001
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7002
$as_echo_n "(cached) " >&6
7004
if test -n "$ac_ct_RANLIB"; then
7005
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011
test -z "$as_dir" && as_dir=.
7012
for ac_exec_ext in '' $ac_executable_extensions; do
7013
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014
ac_cv_prog_ac_ct_RANLIB="ranlib"
7015
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7025
if test -n "$ac_ct_RANLIB"; then
7026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7027
$as_echo "$ac_ct_RANLIB" >&6; }
7029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030
$as_echo "no" >&6; }
7033
if test "x$ac_ct_RANLIB" = x; then
7036
case $cross_compiling:$ac_tool_warned in
7038
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040
ac_tool_warned=yes ;;
7042
RANLIB=$ac_ct_RANLIB
7045
RANLIB="$ac_cv_prog_RANLIB"
7048
test -z "$RANLIB" && RANLIB=:
7055
# Determine commands to create old-style static archives.
7056
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7057
old_postinstall_cmds='chmod 644 $oldlib'
7058
old_postuninstall_cmds=
7060
if test -n "$RANLIB"; then
7063
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7066
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7069
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7105
# If no C compiler was specified, use CC.
7108
# If no C compiler flags were specified, use CFLAGS.
7109
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7111
# Allow CC to be a program name with arguments.
7115
# Check for command to grab the raw symbol name followed by C symbol from nm.
7116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7117
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7118
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7119
$as_echo_n "(cached) " >&6
7122
# These are sane defaults that work on at least a few old systems.
7123
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7125
# Character class describing NM global symbol codes.
7126
symcode='[BCDEGRST]'
7128
# Regexp to match symbols that can be accessed directly from C.
7129
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7131
# Define system-specific variables.
7136
cygwin* | mingw* | pw32* | cegcc*)
7137
symcode='[ABCDGISTW]'
7140
if test "$host_cpu" = ia64; then
7141
symcode='[ABCDEGRST]'
7145
symcode='[BCDEGRST]'
7148
symcode='[BCDEGQRST]'
7159
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7167
# If we're using GNU nm, then use its standard symbol codes.
7168
case `$NM -V 2>&1` in
7169
*GNU* | *'with BFD'*)
7170
symcode='[ABCDGIRSTW]' ;;
7173
# Transform an extracted symbol line into a proper C declaration.
7174
# Some systems (esp. on ia64) link data and code symbols differently,
7175
# so use this general approach.
7176
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7178
# Transform an extracted symbol line into symbol name and symbol address
7179
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7180
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'"
7182
# Handle CRLF in mingw tool chain
7186
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7190
# Try without a prefix underscore, then with it.
7191
for ac_symprfx in "" "_"; do
7193
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7194
symxfrm="\\1 $ac_symprfx\\2 \\2"
7196
# Write the raw and C identifiers.
7197
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7198
# Fake it for dumpbin and say T for any non-static function
7199
# and D for any global variable.
7200
# Also find C++ and __fastcall symbols from MSVC++,
7201
# which start with @ or ?.
7202
lt_cv_sys_global_symbol_pipe="$AWK '"\
7203
" {last_section=section; section=\$ 3};"\
7204
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7205
" \$ 0!~/External *\|/{next};"\
7206
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7207
" {if(hide[section]) next};"\
7208
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7209
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7210
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7211
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7212
" ' prfx=^$ac_symprfx"
7214
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7217
# Check to see that the pipe works correctly.
7221
cat > conftest.$ac_ext <<_LT_EOF
7226
void nm_test_func(void);
7227
void nm_test_func(void){}
7231
int main(){nm_test_var='a';nm_test_func();return(0);}
7234
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7235
(eval $ac_compile) 2>&5
7237
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238
test $ac_status = 0; }; then
7239
# Now try to grab the symbols.
7241
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7242
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7244
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245
test $ac_status = 0; } && test -s "$nlist"; then
7246
# Try sorting and uniquifying the output.
7247
if sort "$nlist" | uniq > "$nlist"T; then
7248
mv -f "$nlist"T "$nlist"
7253
# Make sure that we snagged all the symbols we need.
7254
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7255
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7256
cat <<_LT_EOF > conftest.$ac_ext
7262
# Now generate the symbol file.
7263
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7265
cat <<_LT_EOF >> conftest.$ac_ext
7267
/* The mapping between symbol names and symbols. */
7272
lt__PROGRAM__LTX_preloaded_symbols[] =
7274
{ "@PROGRAM@", (void *) 0 },
7276
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7277
cat <<\_LT_EOF >> conftest.$ac_ext
7281
/* This works around a problem in FreeBSD linker */
7282
#ifdef FREEBSD_WORKAROUND
7283
static const void *lt_preloaded_setup() {
7284
return lt__PROGRAM__LTX_preloaded_symbols;
7292
# Now try linking the two files.
7293
mv conftest.$ac_objext conftstm.$ac_objext
7294
lt_save_LIBS="$LIBS"
7295
lt_save_CFLAGS="$CFLAGS"
7296
LIBS="conftstm.$ac_objext"
7297
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7298
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7299
(eval $ac_link) 2>&5
7301
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7305
LIBS="$lt_save_LIBS"
7306
CFLAGS="$lt_save_CFLAGS"
7308
echo "cannot find nm_test_func in $nlist" >&5
7311
echo "cannot find nm_test_var in $nlist" >&5
7314
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7317
echo "$progname: failed program was:" >&5
7318
cat conftest.$ac_ext >&5
7320
rm -rf conftest* conftst*
7322
# Do not use the global_symbol_pipe unless it works.
7323
if test "$pipe_works" = yes; then
7326
lt_cv_sys_global_symbol_pipe=
7332
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7333
lt_cv_sys_global_symbol_to_cdecl=
7335
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7337
$as_echo "failed" >&6; }
7339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7340
$as_echo "ok" >&6; }
7364
# Check whether --enable-libtool-lock was given.
7365
if test "${enable_libtool_lock+set}" = set; then :
7366
enableval=$enable_libtool_lock;
7369
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7371
# Some flags need to be propagated to the compiler or linker for good
7375
# Find out which ABI we are using.
7376
echo 'int i;' > conftest.$ac_ext
7377
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378
(eval $ac_compile) 2>&5
7380
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381
test $ac_status = 0; }; then
7382
case `/usr/bin/file conftest.$ac_objext` in
7394
# Find out which ABI we are using.
7395
echo '#line 7395 "configure"' > conftest.$ac_ext
7396
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397
(eval $ac_compile) 2>&5
7399
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400
test $ac_status = 0; }; then
7401
if test "$lt_cv_prog_gnu_ld" = yes; then
7402
case `/usr/bin/file conftest.$ac_objext` in
7404
LD="${LD-ld} -melf32bsmip"
7407
LD="${LD-ld} -melf32bmipn32"
7410
LD="${LD-ld} -melf64bmip"
7414
case `/usr/bin/file conftest.$ac_objext` in
7430
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7431
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432
# Find out which ABI we are using.
7433
echo 'int i;' > conftest.$ac_ext
7434
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435
(eval $ac_compile) 2>&5
7437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438
test $ac_status = 0; }; then
7439
case `/usr/bin/file conftest.o` in
7442
x86_64-*kfreebsd*-gnu)
7443
LD="${LD-ld} -m elf_i386_fbsd"
7446
LD="${LD-ld} -m elf_i386"
7448
ppc64-*linux*|powerpc64-*linux*)
7449
LD="${LD-ld} -m elf32ppclinux"
7452
LD="${LD-ld} -m elf_s390"
7455
LD="${LD-ld} -m elf32_sparc"
7461
x86_64-*kfreebsd*-gnu)
7462
LD="${LD-ld} -m elf_x86_64_fbsd"
7465
LD="${LD-ld} -m elf_x86_64"
7467
ppc*-*linux*|powerpc*-*linux*)
7468
LD="${LD-ld} -m elf64ppc"
7470
s390*-*linux*|s390*-*tpf*)
7471
LD="${LD-ld} -m elf64_s390"
7474
LD="${LD-ld} -m elf64_sparc"
7484
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7485
SAVE_CFLAGS="$CFLAGS"
7486
CFLAGS="$CFLAGS -belf"
7487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7488
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7489
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7490
$as_echo_n "(cached) " >&6
7493
ac_cpp='$CPP $CPPFLAGS'
7494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499
/* end confdefs.h. */
7509
if ac_fn_c_try_link "$LINENO"; then :
7510
lt_cv_cc_needs_belf=yes
7512
lt_cv_cc_needs_belf=no
7514
rm -f core conftest.err conftest.$ac_objext \
7515
conftest$ac_exeext conftest.$ac_ext
7517
ac_cpp='$CPP $CPPFLAGS'
7518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7524
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7525
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7526
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7527
CFLAGS="$SAVE_CFLAGS"
7531
# Find out which ABI we are using.
7532
echo 'int i;' > conftest.$ac_ext
7533
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534
(eval $ac_compile) 2>&5
7536
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537
test $ac_status = 0; }; then
7538
case `/usr/bin/file conftest.o` in
7540
case $lt_cv_prog_gnu_ld in
7541
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7543
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7555
need_locks="$enable_libtool_lock"
7559
rhapsody* | darwin*)
7560
if test -n "$ac_tool_prefix"; then
7561
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7562
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564
$as_echo_n "checking for $ac_word... " >&6; }
7565
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7566
$as_echo_n "(cached) " >&6
7568
if test -n "$DSYMUTIL"; then
7569
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575
test -z "$as_dir" && as_dir=.
7576
for ac_exec_ext in '' $ac_executable_extensions; do
7577
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7579
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7589
if test -n "$DSYMUTIL"; then
7590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7591
$as_echo "$DSYMUTIL" >&6; }
7593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594
$as_echo "no" >&6; }
7599
if test -z "$ac_cv_prog_DSYMUTIL"; then
7600
ac_ct_DSYMUTIL=$DSYMUTIL
7601
# Extract the first word of "dsymutil", so it can be a program name with args.
7602
set dummy dsymutil; ac_word=$2
7603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604
$as_echo_n "checking for $ac_word... " >&6; }
7605
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7606
$as_echo_n "(cached) " >&6
7608
if test -n "$ac_ct_DSYMUTIL"; then
7609
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615
test -z "$as_dir" && as_dir=.
7616
for ac_exec_ext in '' $ac_executable_extensions; do
7617
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7619
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7629
if test -n "$ac_ct_DSYMUTIL"; then
7630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7631
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634
$as_echo "no" >&6; }
7637
if test "x$ac_ct_DSYMUTIL" = x; then
7640
case $cross_compiling:$ac_tool_warned in
7642
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644
ac_tool_warned=yes ;;
7646
DSYMUTIL=$ac_ct_DSYMUTIL
7649
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7652
if test -n "$ac_tool_prefix"; then
7653
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7654
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656
$as_echo_n "checking for $ac_word... " >&6; }
7657
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7658
$as_echo_n "(cached) " >&6
7660
if test -n "$NMEDIT"; then
7661
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667
test -z "$as_dir" && as_dir=.
7668
for ac_exec_ext in '' $ac_executable_extensions; do
7669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680
NMEDIT=$ac_cv_prog_NMEDIT
7681
if test -n "$NMEDIT"; then
7682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7683
$as_echo "$NMEDIT" >&6; }
7685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686
$as_echo "no" >&6; }
7691
if test -z "$ac_cv_prog_NMEDIT"; then
7692
ac_ct_NMEDIT=$NMEDIT
7693
# Extract the first word of "nmedit", so it can be a program name with args.
7694
set dummy nmedit; ac_word=$2
7695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696
$as_echo_n "checking for $ac_word... " >&6; }
7697
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7698
$as_echo_n "(cached) " >&6
7700
if test -n "$ac_ct_NMEDIT"; then
7701
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707
test -z "$as_dir" && as_dir=.
7708
for ac_exec_ext in '' $ac_executable_extensions; do
7709
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7711
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7721
if test -n "$ac_ct_NMEDIT"; then
7722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7723
$as_echo "$ac_ct_NMEDIT" >&6; }
7725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726
$as_echo "no" >&6; }
7729
if test "x$ac_ct_NMEDIT" = x; then
7732
case $cross_compiling:$ac_tool_warned in
7734
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736
ac_tool_warned=yes ;;
7738
NMEDIT=$ac_ct_NMEDIT
7741
NMEDIT="$ac_cv_prog_NMEDIT"
7744
if test -n "$ac_tool_prefix"; then
7745
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7746
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748
$as_echo_n "checking for $ac_word... " >&6; }
7749
if test "${ac_cv_prog_LIPO+set}" = set; then :
7750
$as_echo_n "(cached) " >&6
7752
if test -n "$LIPO"; then
7753
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759
test -z "$as_dir" && as_dir=.
7760
for ac_exec_ext in '' $ac_executable_extensions; do
7761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7763
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772
LIPO=$ac_cv_prog_LIPO
7773
if test -n "$LIPO"; then
7774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7775
$as_echo "$LIPO" >&6; }
7777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778
$as_echo "no" >&6; }
7783
if test -z "$ac_cv_prog_LIPO"; then
7785
# Extract the first word of "lipo", so it can be a program name with args.
7786
set dummy lipo; ac_word=$2
7787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788
$as_echo_n "checking for $ac_word... " >&6; }
7789
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7790
$as_echo_n "(cached) " >&6
7792
if test -n "$ac_ct_LIPO"; then
7793
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799
test -z "$as_dir" && as_dir=.
7800
for ac_exec_ext in '' $ac_executable_extensions; do
7801
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802
ac_cv_prog_ac_ct_LIPO="lipo"
7803
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7813
if test -n "$ac_ct_LIPO"; then
7814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7815
$as_echo "$ac_ct_LIPO" >&6; }
7817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818
$as_echo "no" >&6; }
7821
if test "x$ac_ct_LIPO" = x; then
7824
case $cross_compiling:$ac_tool_warned in
7826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828
ac_tool_warned=yes ;;
7833
LIPO="$ac_cv_prog_LIPO"
7836
if test -n "$ac_tool_prefix"; then
7837
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7838
set dummy ${ac_tool_prefix}otool; ac_word=$2
7839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840
$as_echo_n "checking for $ac_word... " >&6; }
7841
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7842
$as_echo_n "(cached) " >&6
7844
if test -n "$OTOOL"; then
7845
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851
test -z "$as_dir" && as_dir=.
7852
for ac_exec_ext in '' $ac_executable_extensions; do
7853
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7855
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864
OTOOL=$ac_cv_prog_OTOOL
7865
if test -n "$OTOOL"; then
7866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7867
$as_echo "$OTOOL" >&6; }
7869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870
$as_echo "no" >&6; }
7875
if test -z "$ac_cv_prog_OTOOL"; then
7877
# Extract the first word of "otool", so it can be a program name with args.
7878
set dummy otool; ac_word=$2
7879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880
$as_echo_n "checking for $ac_word... " >&6; }
7881
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7882
$as_echo_n "(cached) " >&6
7884
if test -n "$ac_ct_OTOOL"; then
7885
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891
test -z "$as_dir" && as_dir=.
7892
for ac_exec_ext in '' $ac_executable_extensions; do
7893
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894
ac_cv_prog_ac_ct_OTOOL="otool"
7895
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7905
if test -n "$ac_ct_OTOOL"; then
7906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7907
$as_echo "$ac_ct_OTOOL" >&6; }
7909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910
$as_echo "no" >&6; }
7913
if test "x$ac_ct_OTOOL" = x; then
7916
case $cross_compiling:$ac_tool_warned in
7918
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920
ac_tool_warned=yes ;;
7925
OTOOL="$ac_cv_prog_OTOOL"
7928
if test -n "$ac_tool_prefix"; then
7929
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7930
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932
$as_echo_n "checking for $ac_word... " >&6; }
7933
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7934
$as_echo_n "(cached) " >&6
7936
if test -n "$OTOOL64"; then
7937
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943
test -z "$as_dir" && as_dir=.
7944
for ac_exec_ext in '' $ac_executable_extensions; do
7945
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7946
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7947
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956
OTOOL64=$ac_cv_prog_OTOOL64
7957
if test -n "$OTOOL64"; then
7958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7959
$as_echo "$OTOOL64" >&6; }
7961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962
$as_echo "no" >&6; }
7967
if test -z "$ac_cv_prog_OTOOL64"; then
7968
ac_ct_OTOOL64=$OTOOL64
7969
# Extract the first word of "otool64", so it can be a program name with args.
7970
set dummy otool64; ac_word=$2
7971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972
$as_echo_n "checking for $ac_word... " >&6; }
7973
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7974
$as_echo_n "(cached) " >&6
7976
if test -n "$ac_ct_OTOOL64"; then
7977
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983
test -z "$as_dir" && as_dir=.
7984
for ac_exec_ext in '' $ac_executable_extensions; do
7985
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986
ac_cv_prog_ac_ct_OTOOL64="otool64"
7987
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7997
if test -n "$ac_ct_OTOOL64"; then
7998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7999
$as_echo "$ac_ct_OTOOL64" >&6; }
8001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002
$as_echo "no" >&6; }
8005
if test "x$ac_ct_OTOOL64" = x; then
8008
case $cross_compiling:$ac_tool_warned in
8010
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012
ac_tool_warned=yes ;;
8014
OTOOL64=$ac_ct_OTOOL64
8017
OTOOL64="$ac_cv_prog_OTOOL64"
8046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8047
$as_echo_n "checking for -single_module linker flag... " >&6; }
8048
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8049
$as_echo_n "(cached) " >&6
8051
lt_cv_apple_cc_single_mod=no
8052
if test -z "${LT_MULTI_MODULE}"; then
8053
# By default we will add the -single_module flag. You can override
8054
# by either setting the environment variable LT_MULTI_MODULE
8055
# non-empty at configure time, or by adding -multi_module to the
8057
rm -rf libconftest.dylib*
8058
echo "int foo(void){return 1;}" > conftest.c
8059
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8060
-dynamiclib -Wl,-single_module conftest.c" >&5
8061
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8062
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8064
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8065
lt_cv_apple_cc_single_mod=yes
8067
cat conftest.err >&5
8069
rm -rf libconftest.dylib*
8073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8074
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8076
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8077
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8078
$as_echo_n "(cached) " >&6
8080
lt_cv_ld_exported_symbols_list=no
8081
save_LDFLAGS=$LDFLAGS
8082
echo "_main" > conftest.sym
8083
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085
/* end confdefs.h. */
8095
if ac_fn_c_try_link "$LINENO"; then :
8096
lt_cv_ld_exported_symbols_list=yes
8098
lt_cv_ld_exported_symbols_list=no
8100
rm -f core conftest.err conftest.$ac_objext \
8101
conftest$ac_exeext conftest.$ac_ext
8102
LDFLAGS="$save_LDFLAGS"
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8106
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8108
rhapsody* | darwin1.[012])
8109
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8111
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112
darwin*) # darwin 5.x on
8113
# if running on 10.5 or later, the deployment target defaults
8114
# to the OS version, if on x86, and 10.4, the deployment
8115
# target defaults to 10.4. Don't you love it?
8116
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8117
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8118
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8120
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8126
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8127
_lt_dar_single_mod='$single_module'
8129
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8130
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8132
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8134
if test "$DSYMUTIL" != ":"; then
8135
_lt_dsymutil='~$DSYMUTIL $lib || :'
8142
for ac_header in dlfcn.h
8144
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8146
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8147
cat >>confdefs.h <<_ACEOF
8148
#define HAVE_DLFCN_H 1
8167
# Check whether --enable-shared was given.
8168
if test "${enable_shared+set}" = set; then :
8169
enableval=$enable_shared; p=${PACKAGE-default}
8171
yes) enable_shared=yes ;;
8172
no) enable_shared=no ;;
8175
# Look at the argument we got. We use all the common list separators.
8176
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177
for pkg in $enableval; do
8179
if test "X$pkg" = "X$p"; then
8198
# Check whether --enable-static was given.
8199
if test "${enable_static+set}" = set; then :
8200
enableval=$enable_static; p=${PACKAGE-default}
8202
yes) enable_static=yes ;;
8203
no) enable_static=no ;;
8206
# Look at the argument we got. We use all the common list separators.
8207
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208
for pkg in $enableval; do
8210
if test "X$pkg" = "X$p"; then
8230
# Check whether --with-pic was given.
8231
if test "${with_pic+set}" = set; then :
8232
withval=$with_pic; pic_mode="$withval"
8238
test -z "$pic_mode" && pic_mode=default
8246
# Check whether --enable-fast-install was given.
8247
if test "${enable_fast_install+set}" = set; then :
8248
enableval=$enable_fast_install; p=${PACKAGE-default}
8250
yes) enable_fast_install=yes ;;
8251
no) enable_fast_install=no ;;
8253
enable_fast_install=no
8254
# Look at the argument we got. We use all the common list separators.
8255
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256
for pkg in $enableval; do
8258
if test "X$pkg" = "X$p"; then
8259
enable_fast_install=yes
8266
enable_fast_install=yes
8279
# This can be used to rebuild libtool when needed
8280
LIBTOOL_DEPS="$ltmain"
8282
# Always use our own libtool.
8283
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8309
test -z "$LN_S" && LN_S="ln -s"
8324
if test -n "${ZSH_VERSION+set}" ; then
8325
setopt NO_GLOB_SUBST
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329
$as_echo_n "checking for objdir... " >&6; }
8330
if test "${lt_cv_objdir+set}" = set; then :
8331
$as_echo_n "(cached) " >&6
8333
rm -f .libs 2>/dev/null
8334
mkdir .libs 2>/dev/null
8335
if test -d .libs; then
8338
# MS-DOS does not allow filenames that begin with a dot.
8341
rmdir .libs 2>/dev/null
8343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344
$as_echo "$lt_cv_objdir" >&6; }
8345
objdir=$lt_cv_objdir
8351
cat >>confdefs.h <<_ACEOF
8352
#define LT_OBJDIR "$lt_cv_objdir/"
8373
# AIX sometimes has problems with the GCC collect2 program. For some
8374
# reason, if we set the COLLECT_NAMES environment variable, the problems
8375
# vanish in a puff of smoke.
8376
if test "X${COLLECT_NAMES+set}" != Xset; then
8378
export COLLECT_NAMES
8383
# Sed substitution that helps us do robust quoting. It backslashifies
8384
# metacharacters that are still active within double-quoted strings.
8385
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8387
# Same as above, but do not quote variable references.
8388
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8390
# Sed substitution to delay expansion of an escaped shell variable in a
8391
# double_quote_subst'ed string.
8392
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8394
# Sed substitution to delay expansion of an escaped single quote.
8395
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8397
# Sed substitution to avoid accidental globbing in evaled expressions
8398
no_glob_subst='s/\*/\\\*/g'
8402
can_build_shared=yes
8404
# All known linkers require a `.a' archive for static linking (except MSVC,
8405
# which needs '.lib').
8408
with_gnu_ld="$lt_cv_prog_gnu_ld"
8411
old_CFLAGS="$CFLAGS"
8413
# Set sane defaults for various variables
8414
test -z "$CC" && CC=cc
8415
test -z "$LTCC" && LTCC=$CC
8416
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8417
test -z "$LD" && LD=ld
8418
test -z "$ac_objext" && ac_objext=o
8420
for cc_temp in $compiler""; do
8422
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8423
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8428
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8431
# Only perform the check for file, if the check method requires it
8432
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8433
case $deplibs_check_method in
8435
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8437
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8438
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8439
$as_echo_n "(cached) " >&6
8443
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8446
lt_save_MAGIC_CMD="$MAGIC_CMD"
8447
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8448
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8449
for ac_dir in $ac_dummy; do
8451
test -z "$ac_dir" && ac_dir=.
8452
if test -f $ac_dir/${ac_tool_prefix}file; then
8453
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8454
if test -n "$file_magic_test_file"; then
8455
case $deplibs_check_method in
8457
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8458
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8459
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8460
$EGREP "$file_magic_regex" > /dev/null; then
8465
*** Warning: the command libtool uses to detect shared libraries,
8466
*** $file_magic_cmd, produces output that libtool cannot recognize.
8467
*** The result is that libtool may fail to recognize shared libraries
8468
*** as such. This will affect the creation of libtool libraries that
8469
*** depend on shared libraries, but programs linked with such libtool
8470
*** libraries will work regardless of this problem. Nevertheless, you
8471
*** may want to report the problem to your system manager and/or to
8472
*** bug-libtool@gnu.org
8482
MAGIC_CMD="$lt_save_MAGIC_CMD"
8487
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8488
if test -n "$MAGIC_CMD"; then
8489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8490
$as_echo "$MAGIC_CMD" >&6; }
8492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493
$as_echo "no" >&6; }
8500
if test -z "$lt_cv_path_MAGIC_CMD"; then
8501
if test -n "$ac_tool_prefix"; then
8502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8503
$as_echo_n "checking for file... " >&6; }
8504
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505
$as_echo_n "(cached) " >&6
8509
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8512
lt_save_MAGIC_CMD="$MAGIC_CMD"
8513
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515
for ac_dir in $ac_dummy; do
8517
test -z "$ac_dir" && ac_dir=.
8518
if test -f $ac_dir/file; then
8519
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8520
if test -n "$file_magic_test_file"; then
8521
case $deplibs_check_method in
8523
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526
$EGREP "$file_magic_regex" > /dev/null; then
8531
*** Warning: the command libtool uses to detect shared libraries,
8532
*** $file_magic_cmd, produces output that libtool cannot recognize.
8533
*** The result is that libtool may fail to recognize shared libraries
8534
*** as such. This will affect the creation of libtool libraries that
8535
*** depend on shared libraries, but programs linked with such libtool
8536
*** libraries will work regardless of this problem. Nevertheless, you
8537
*** may want to report the problem to your system manager and/or to
8538
*** bug-libtool@gnu.org
8548
MAGIC_CMD="$lt_save_MAGIC_CMD"
8553
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554
if test -n "$MAGIC_CMD"; then
8555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556
$as_echo "$MAGIC_CMD" >&6; }
8558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559
$as_echo "no" >&6; }
8572
# Use C for the default configuration in the libtool script
8576
ac_cpp='$CPP $CPPFLAGS'
8577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582
# Source file extension for C test sources.
8585
# Object file extension for compiled C test sources.
8589
# Code to be used in simple compile tests
8590
lt_simple_compile_test_code="int some_variable = 0;"
8592
# Code to be used in simple link tests
8593
lt_simple_link_test_code='int main(){return(0);}'
8601
# If no C compiler was specified, use CC.
8604
# If no C compiler flags were specified, use CFLAGS.
8605
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8607
# Allow CC to be a program name with arguments.
8610
# Save the default compiler, since it gets overwritten when the other
8611
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8612
compiler_DEFAULT=$CC
8614
# save warnings/boilerplate of simple test code
8615
ac_outfile=conftest.$ac_objext
8616
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8617
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8618
_lt_compiler_boilerplate=`cat conftest.err`
8621
ac_outfile=conftest.$ac_objext
8622
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8623
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624
_lt_linker_boilerplate=`cat conftest.err`
8628
if test -n "$compiler"; then
8630
lt_prog_compiler_no_builtin_flag=
8632
if test "$GCC" = yes; then
8633
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8638
$as_echo_n "(cached) " >&6
8640
lt_cv_prog_compiler_rtti_exceptions=no
8641
ac_outfile=conftest.$ac_objext
8642
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643
lt_compiler_flag="-fno-rtti -fno-exceptions"
8644
# Insert the option either (1) after the last *FLAGS variable, or
8645
# (2) before a word containing "conftest.", or (3) at the end.
8646
# Note that $ac_compile itself does not contain backslashes and begins
8647
# with a dollar sign (not a hyphen), so the echo should work correctly.
8648
# The option is referenced via a variable to avoid confusing sed.
8649
lt_compile=`echo "$ac_compile" | $SED \
8650
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652
-e 's:$: $lt_compiler_flag:'`
8653
(eval echo "\"\$as_me:8653: $lt_compile\"" >&5)
8654
(eval "$lt_compile" 2>conftest.err)
8656
cat conftest.err >&5
8657
echo "$as_me:8657: \$? = $ac_status" >&5
8658
if (exit $ac_status) && test -s "$ac_outfile"; then
8659
# The compiler can only warn and ignore the option if not recognized
8660
# So say no if there are warnings other than the usual output.
8661
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8662
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664
lt_cv_prog_compiler_rtti_exceptions=yes
8670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8673
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8686
lt_prog_compiler_wl=
8687
lt_prog_compiler_pic=
8688
lt_prog_compiler_static=
8690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693
if test "$GCC" = yes; then
8694
lt_prog_compiler_wl='-Wl,'
8695
lt_prog_compiler_static='-static'
8699
# All AIX code is PIC.
8700
if test "$host_cpu" = ia64; then
8701
# AIX 5 now supports IA64 processor
8702
lt_prog_compiler_static='-Bstatic'
8709
# see comment about AmigaOS4 .so support
8710
lt_prog_compiler_pic='-fPIC'
8713
# FIXME: we need at least 68020 code to build shared libraries, but
8714
# adding the `-m68020' flag to GCC prevents building anything better,
8716
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8721
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8722
# PIC is the default for these OSes.
8725
mingw* | cygwin* | pw32* | os2* | cegcc*)
8726
# This hack is so that the source file can tell whether it is being
8727
# built for inclusion in a dll (and should export symbols for example).
8728
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8729
# (--disable-auto-import) libraries
8730
lt_prog_compiler_pic='-DDLL_EXPORT'
8733
darwin* | rhapsody*)
8734
# PIC is the default on this platform
8735
# Common symbols not allowed in MH_DYLIB files
8736
lt_prog_compiler_pic='-fno-common'
8740
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8741
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8742
# sets the default TLS model and affects inlining.
8748
lt_prog_compiler_pic='-fPIC'
8754
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8755
# Instead, we relocate shared libraries at runtime.
8759
# Just because we use GCC doesn't mean we suddenly get shared libraries
8760
# on systems that don't support them.
8761
lt_prog_compiler_can_build_shared=no
8766
# QNX uses GNU C++, but need to define -shared option too, otherwise
8768
lt_prog_compiler_pic='-fPIC -shared'
8772
if test -d /usr/nec; then
8773
lt_prog_compiler_pic=-Kconform_pic
8778
lt_prog_compiler_pic='-fPIC'
8782
# PORTME Check for flag to pass linker flags through the system compiler.
8785
lt_prog_compiler_wl='-Wl,'
8786
if test "$host_cpu" = ia64; then
8787
# AIX 5 now supports IA64 processor
8788
lt_prog_compiler_static='-Bstatic'
8790
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8794
mingw* | cygwin* | pw32* | os2* | cegcc*)
8795
# This hack is so that the source file can tell whether it is being
8796
# built for inclusion in a dll (and should export symbols for example).
8797
lt_prog_compiler_pic='-DDLL_EXPORT'
8800
hpux9* | hpux10* | hpux11*)
8801
lt_prog_compiler_wl='-Wl,'
8802
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8809
lt_prog_compiler_pic='+Z'
8812
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8813
lt_prog_compiler_static='${wl}-a ${wl}archive'
8816
irix5* | irix6* | nonstopux*)
8817
lt_prog_compiler_wl='-Wl,'
8818
# PIC (with -KPIC) is the default.
8819
lt_prog_compiler_static='-non_shared'
8822
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8823
case $cc_basename in
8824
# old Intel for x86_64 which still supported -KPIC.
8826
lt_prog_compiler_wl='-Wl,'
8827
lt_prog_compiler_pic='-KPIC'
8828
lt_prog_compiler_static='-static'
8830
# icc used to be incompatible with GCC.
8831
# ICC 10 doesn't accept -KPIC any more.
8833
lt_prog_compiler_wl='-Wl,'
8834
lt_prog_compiler_pic='-fPIC'
8835
lt_prog_compiler_static='-static'
8837
# Lahey Fortran 8.1.
8839
lt_prog_compiler_wl='-Wl,'
8840
lt_prog_compiler_pic='--shared'
8841
lt_prog_compiler_static='--static'
8843
pgcc* | pgf77* | pgf90* | pgf95*)
8844
# Portland Group compilers (*not* the Pentium gcc compiler,
8845
# which looks to be a dead project)
8846
lt_prog_compiler_wl='-Wl,'
8847
lt_prog_compiler_pic='-fpic'
8848
lt_prog_compiler_static='-Bstatic'
8851
lt_prog_compiler_wl='-Wl,'
8852
# All Alpha code is PIC.
8853
lt_prog_compiler_static='-non_shared'
8856
# IBM XL C 8.0/Fortran 10.1 on PPC
8857
lt_prog_compiler_wl='-Wl,'
8858
lt_prog_compiler_pic='-qpic'
8859
lt_prog_compiler_static='-qstaticlink'
8862
case `$CC -V 2>&1 | sed 5q` in
8865
lt_prog_compiler_pic='-KPIC'
8866
lt_prog_compiler_static='-Bstatic'
8867
lt_prog_compiler_wl='-Wl,'
8870
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8871
lt_prog_compiler_pic='-KPIC'
8872
lt_prog_compiler_static='-Bstatic'
8873
lt_prog_compiler_wl=''
8881
lt_prog_compiler_pic='-KPIC'
8882
lt_prog_compiler_static='-Bstatic'
8886
# QNX uses GNU C++, but need to define -shared option too, otherwise
8888
lt_prog_compiler_pic='-fPIC -shared'
8891
osf3* | osf4* | osf5*)
8892
lt_prog_compiler_wl='-Wl,'
8893
# All OSF/1 code is PIC.
8894
lt_prog_compiler_static='-non_shared'
8898
lt_prog_compiler_static='-non_shared'
8902
lt_prog_compiler_pic='-KPIC'
8903
lt_prog_compiler_static='-Bstatic'
8904
case $cc_basename in
8906
lt_prog_compiler_wl='-Qoption ld ';;
8908
lt_prog_compiler_wl='-Wl,';;
8913
lt_prog_compiler_wl='-Qoption ld '
8914
lt_prog_compiler_pic='-PIC'
8915
lt_prog_compiler_static='-Bstatic'
8918
sysv4 | sysv4.2uw2* | sysv4.3*)
8919
lt_prog_compiler_wl='-Wl,'
8920
lt_prog_compiler_pic='-KPIC'
8921
lt_prog_compiler_static='-Bstatic'
8925
if test -d /usr/nec ;then
8926
lt_prog_compiler_pic='-Kconform_pic'
8927
lt_prog_compiler_static='-Bstatic'
8931
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8932
lt_prog_compiler_wl='-Wl,'
8933
lt_prog_compiler_pic='-KPIC'
8934
lt_prog_compiler_static='-Bstatic'
8938
lt_prog_compiler_wl='-Wl,'
8939
lt_prog_compiler_can_build_shared=no
8943
lt_prog_compiler_pic='-pic'
8944
lt_prog_compiler_static='-Bstatic'
8948
lt_prog_compiler_can_build_shared=no
8954
# For platforms which do not support PIC, -DPIC is meaningless:
8956
lt_prog_compiler_pic=
8959
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8963
$as_echo "$lt_prog_compiler_pic" >&6; }
8971
# Check to make sure the PIC flag actually works.
8973
if test -n "$lt_prog_compiler_pic"; then
8974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8975
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8976
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8977
$as_echo_n "(cached) " >&6
8979
lt_cv_prog_compiler_pic_works=no
8980
ac_outfile=conftest.$ac_objext
8981
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8982
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8983
# Insert the option either (1) after the last *FLAGS variable, or
8984
# (2) before a word containing "conftest.", or (3) at the end.
8985
# Note that $ac_compile itself does not contain backslashes and begins
8986
# with a dollar sign (not a hyphen), so the echo should work correctly.
8987
# The option is referenced via a variable to avoid confusing sed.
8988
lt_compile=`echo "$ac_compile" | $SED \
8989
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8990
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8991
-e 's:$: $lt_compiler_flag:'`
8992
(eval echo "\"\$as_me:8992: $lt_compile\"" >&5)
8993
(eval "$lt_compile" 2>conftest.err)
8995
cat conftest.err >&5
8996
echo "$as_me:8996: \$? = $ac_status" >&5
8997
if (exit $ac_status) && test -s "$ac_outfile"; then
8998
# The compiler can only warn and ignore the option if not recognized
8999
# So say no if there are warnings other than the usual output.
9000
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9001
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9002
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9003
lt_cv_prog_compiler_pic_works=yes
9009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9010
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9012
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9013
case $lt_prog_compiler_pic in
9015
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9018
lt_prog_compiler_pic=
9019
lt_prog_compiler_can_build_shared=no
9030
# Check to make sure the static flag actually works.
9032
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9035
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9036
$as_echo_n "(cached) " >&6
9038
lt_cv_prog_compiler_static_works=no
9039
save_LDFLAGS="$LDFLAGS"
9040
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9041
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9042
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043
# The linker can only warn and ignore the option if not recognized
9044
# So say no if there are warnings
9045
if test -s conftest.err; then
9046
# Append any errors to the config.log.
9047
cat conftest.err 1>&5
9048
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9049
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050
if diff conftest.exp conftest.er2 >/dev/null; then
9051
lt_cv_prog_compiler_static_works=yes
9054
lt_cv_prog_compiler_static_works=yes
9058
LDFLAGS="$save_LDFLAGS"
9061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9062
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9064
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9067
lt_prog_compiler_static=
9076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9079
$as_echo_n "(cached) " >&6
9081
lt_cv_prog_compiler_c_o=no
9082
$RM -r conftest 2>/dev/null
9086
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088
lt_compiler_flag="-o out/conftest2.$ac_objext"
9089
# Insert the option either (1) after the last *FLAGS variable, or
9090
# (2) before a word containing "conftest.", or (3) at the end.
9091
# Note that $ac_compile itself does not contain backslashes and begins
9092
# with a dollar sign (not a hyphen), so the echo should work correctly.
9093
lt_compile=`echo "$ac_compile" | $SED \
9094
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096
-e 's:$: $lt_compiler_flag:'`
9097
(eval echo "\"\$as_me:9097: $lt_compile\"" >&5)
9098
(eval "$lt_compile" 2>out/conftest.err)
9100
cat out/conftest.err >&5
9101
echo "$as_me:9101: \$? = $ac_status" >&5
9102
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104
# The compiler can only warn and ignore the option if not recognized
9105
# So say no if there are warnings
9106
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9107
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9108
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9109
lt_cv_prog_compiler_c_o=yes
9114
# SGI C++ compiler will create directory out/ii_files/ for
9115
# template instantiation
9116
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9117
$RM out/* && rmdir out
9123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9134
$as_echo_n "(cached) " >&6
9136
lt_cv_prog_compiler_c_o=no
9137
$RM -r conftest 2>/dev/null
9141
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143
lt_compiler_flag="-o out/conftest2.$ac_objext"
9144
# Insert the option either (1) after the last *FLAGS variable, or
9145
# (2) before a word containing "conftest.", or (3) at the end.
9146
# Note that $ac_compile itself does not contain backslashes and begins
9147
# with a dollar sign (not a hyphen), so the echo should work correctly.
9148
lt_compile=`echo "$ac_compile" | $SED \
9149
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151
-e 's:$: $lt_compiler_flag:'`
9152
(eval echo "\"\$as_me:9152: $lt_compile\"" >&5)
9153
(eval "$lt_compile" 2>out/conftest.err)
9155
cat out/conftest.err >&5
9156
echo "$as_me:9156: \$? = $ac_status" >&5
9157
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9159
# The compiler can only warn and ignore the option if not recognized
9160
# So say no if there are warnings
9161
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9162
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9163
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9164
lt_cv_prog_compiler_c_o=yes
9169
# SGI C++ compiler will create directory out/ii_files/ for
9170
# template instantiation
9171
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9172
$RM out/* && rmdir out
9178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9184
hard_links="nottested"
9185
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9186
# do not overwrite the value of need_locks provided by the user
9187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9188
$as_echo_n "checking if we can lock with hard links... " >&6; }
9191
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9193
ln conftest.a conftest.b 2>&5 || hard_links=no
9194
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9196
$as_echo "$hard_links" >&6; }
9197
if test "$hard_links" = no; then
9198
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9199
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215
allow_undefined_flag=
9216
always_export_symbols=no
9218
archive_expsym_cmds=
9219
compiler_needs_object=no
9220
enable_shared_with_static_runtimes=no
9221
export_dynamic_flag_spec=
9222
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9223
hardcode_automatic=no
9225
hardcode_direct_absolute=no
9226
hardcode_libdir_flag_spec=
9227
hardcode_libdir_flag_spec_ld=
9228
hardcode_libdir_separator=
9230
hardcode_shlibpath_var=unsupported
9232
link_all_deplibs=unknown
9235
old_archive_from_new_cmds=
9236
old_archive_from_expsyms_cmds=
9237
thread_safe_flag_spec=
9238
whole_archive_flag_spec=
9239
# include_expsyms should be a list of space-separated symbols to be *always*
9240
# included in the symbol list
9242
# exclude_expsyms can be an extended regexp of symbols to exclude
9243
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9244
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9245
# as well as any symbol that contains `d'.
9246
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9247
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9248
# platforms (ab)use it in PIC code, but their linkers get confused if
9249
# the symbol is explicitly referenced. Since portable code cannot
9250
# rely on this symbol name, it's probably fine to never include it in
9251
# preloaded symbol tables.
9252
# Exclude shared library initialization/finalization symbols.
9253
extract_expsyms_cmds=
9256
cygwin* | mingw* | pw32* | cegcc*)
9257
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9258
# When not using gcc, we currently assume that we are using
9259
# Microsoft Visual C++.
9260
if test "$GCC" != yes; then
9265
# we just hope/assume this is gcc and not c89 (= MSVC++)
9271
linux* | k*bsd*-gnu)
9277
if test "$with_gnu_ld" = yes; then
9278
# If archive_cmds runs LD, not CC, wlarc should be empty
9281
# Set some defaults for GNU ld with shared library support. These
9282
# are reset later if shared libraries are not supported. Putting them
9283
# here allows them to be overridden if necessary.
9284
runpath_var=LD_RUN_PATH
9285
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286
export_dynamic_flag_spec='${wl}--export-dynamic'
9287
# ancient GNU ld didn't support --whole-archive et. al.
9288
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9289
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9291
whole_archive_flag_spec=
9293
supports_anon_versioning=no
9294
case `$LD -v 2>&1` in
9295
*GNU\ gold*) supports_anon_versioning=yes ;;
9296
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9297
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9298
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9299
*\ 2.11.*) ;; # other 2.11 versions
9300
*) supports_anon_versioning=yes ;;
9303
# See if GNU ld supports shared libraries.
9306
# On AIX/PPC, the GNU linker is very broken
9307
if test "$host_cpu" != ia64; then
9311
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9312
*** to be unable to reliably create shared libraries on AIX.
9313
*** Therefore, libtool is disabling shared libraries support. If you
9314
*** really care for shared libraries, you may want to modify your PATH
9315
*** so that a non-GNU linker is found, and then restart.
9324
# see comment about AmigaOS4 .so support
9325
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326
archive_expsym_cmds=''
9329
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)'
9330
hardcode_libdir_flag_spec='-L$libdir'
9331
hardcode_minus_L=yes
9337
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338
allow_undefined_flag=unsupported
9339
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340
# support --undefined. This deserves some investigation. FIXME
9341
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9347
cygwin* | mingw* | pw32* | cegcc*)
9348
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349
# as there is no search path for DLLs.
9350
hardcode_libdir_flag_spec='-L$libdir'
9351
allow_undefined_flag=unsupported
9352
always_export_symbols=no
9353
enable_shared_with_static_runtimes=yes
9354
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9356
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9357
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358
# If the export-symbols file already is a .def file (1st line
9359
# is EXPORTS), use it as is; otherwise, prepend...
9360
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9361
cp $export_symbols $output_objdir/$soname.def;
9363
echo EXPORTS > $output_objdir/$soname.def;
9364
cat $export_symbols >> $output_objdir/$soname.def;
9366
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9374
hardcode_shlibpath_var=no
9375
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9376
export_dynamic_flag_spec='${wl}-E'
9377
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9378
# Instead, shared libraries are loaded at an image base (0x10000000 by
9379
# default) and relocated if they conflict, which is a slow very memory
9380
# consuming and fragmenting process. To avoid this, we pick a random,
9381
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9382
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9383
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9384
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'
9387
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9389
if test "$host_os" = linux-dietlibc; then
9390
case $cc_basename in
9391
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9394
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9395
&& test "$tmp_diet" = no
9398
tmp_sharedflag='-shared'
9399
case $cc_basename,$host_cpu in
9400
pgcc*) # Portland Group C compiler
9401
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'
9402
tmp_addflag=' $pic_flag'
9404
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9405
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'
9406
tmp_addflag=' $pic_flag -Mnomain' ;;
9407
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9408
tmp_addflag=' -i_dynamic' ;;
9409
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9410
tmp_addflag=' -i_dynamic -nofor_main' ;;
9411
ifc* | ifort*) # Intel Fortran compiler
9412
tmp_addflag=' -nofor_main' ;;
9413
lf95*) # Lahey Fortran 8.1
9414
whole_archive_flag_spec=
9415
tmp_sharedflag='--shared' ;;
9416
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9417
tmp_sharedflag='-qmkshrobj'
9420
case `$CC -V 2>&1 | sed 5q` in
9421
*Sun\ C*) # Sun C 5.9
9422
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'
9423
compiler_needs_object=yes
9424
tmp_sharedflag='-G' ;;
9425
*Sun\ F*) # Sun Fortran 8.3
9426
tmp_sharedflag='-G' ;;
9428
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430
if test "x$supports_anon_versioning" = xyes; then
9431
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9432
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9433
echo "local: *; };" >> $output_objdir/$libname.ver~
9434
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9437
case $cc_basename in
9439
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9440
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9441
hardcode_libdir_flag_spec=
9442
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9443
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9444
if test "x$supports_anon_versioning" = xyes; then
9445
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9446
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9447
echo "local: *; };" >> $output_objdir/$libname.ver~
9448
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9457
netbsd* | netbsdelf*-gnu)
9458
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9459
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9462
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9463
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9472
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9473
*** create shared libraries on Solaris systems. Therefore, libtool
9474
*** is disabling shared libraries support. We urge you to upgrade GNU
9475
*** binutils to release 2.9.1 or newer. Another option is to modify
9476
*** your PATH or compiler configuration so that the native linker is
9477
*** used, and then restart.
9480
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9489
case `$LD -v 2>&1` in
9490
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9494
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9495
*** reliably create shared libraries on SCO systems. Therefore, libtool
9496
*** is disabling shared libraries support. We urge you to upgrade GNU
9497
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9498
*** your PATH or compiler configuration so that the native linker is
9499
*** used, and then restart.
9504
# For security reasons, it is highly recommended that you always
9505
# use absolute paths for naming shared libraries, and exclude the
9506
# DT_RUNPATH tag from executables and libraries. But doing so
9507
# requires that you compile everything twice, which is a pain.
9508
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523
hardcode_shlibpath_var=no
9527
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536
if test "$ld_shlibs" = no; then
9538
hardcode_libdir_flag_spec=
9539
export_dynamic_flag_spec=
9540
whole_archive_flag_spec=
9543
# PORTME fill in a description of your system's linker (not GNU ld)
9546
allow_undefined_flag=unsupported
9547
always_export_symbols=yes
9548
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'
9549
# Note: this linker hardcodes the directories in LIBPATH if there
9550
# are no directories specified by -L.
9551
hardcode_minus_L=yes
9552
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9553
# Neither direct hardcoding nor static linking is supported with a
9555
hardcode_direct=unsupported
9560
if test "$host_cpu" = ia64; then
9561
# On IA64, the linker does run time linking by default, so we don't
9562
# have to do anything special.
9563
aix_use_runtimelinking=no
9564
exp_sym_flag='-Bexport'
9567
# If we're using GNU nm, then we don't want the "-C" option.
9568
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9569
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9570
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'
9572
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'
9574
aix_use_runtimelinking=no
9576
# Test if we are trying to use run time linking or normal
9577
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9578
# need to do runtime linking.
9579
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9580
for ld_flag in $LDFLAGS; do
9581
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9582
aix_use_runtimelinking=yes
9589
exp_sym_flag='-bexport'
9590
no_entry_flag='-bnoentry'
9593
# When large executables or shared objects are built, AIX ld can
9594
# have problems creating the table of contents. If linking a library
9595
# or program results in "error TOC overflow" add -mminimal-toc to
9596
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9597
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9601
hardcode_direct_absolute=yes
9602
hardcode_libdir_separator=':'
9603
link_all_deplibs=yes
9604
file_list_spec='${wl}-f,'
9606
if test "$GCC" = yes; then
9607
case $host_os in aix4.[012]|aix4.[012].*)
9608
# We only want to do this on AIX 4.2 and lower, the check
9609
# below for broken collect2 doesn't work under 4.3+
9610
collect2name=`${CC} -print-prog-name=collect2`
9611
if test -f "$collect2name" &&
9612
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9614
# We have reworked collect2
9617
# We have old collect2
9618
hardcode_direct=unsupported
9619
# It fails to find uninstalled libraries when the uninstalled
9620
# path is not listed in the libpath. Setting hardcode_minus_L
9621
# to unsupported forces relinking
9622
hardcode_minus_L=yes
9623
hardcode_libdir_flag_spec='-L$libdir'
9624
hardcode_libdir_separator=
9628
shared_flag='-shared'
9629
if test "$aix_use_runtimelinking" = yes; then
9630
shared_flag="$shared_flag "'${wl}-G'
9635
if test "$host_cpu" = ia64; then
9636
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9637
# chokes on -Wl,-G. The following line is correct:
9640
if test "$aix_use_runtimelinking" = yes; then
9641
shared_flag='${wl}-G'
9643
shared_flag='${wl}-bM:SRE'
9648
export_dynamic_flag_spec='${wl}-bexpall'
9649
# It seems that -bexpall does not export symbols beginning with
9650
# underscore (_), so it is better to generate a list of symbols to export.
9651
always_export_symbols=yes
9652
if test "$aix_use_runtimelinking" = yes; then
9653
# Warning - without using the other runtime loading flags (-brtl),
9654
# -berok will link without error, but may produce a broken library.
9655
allow_undefined_flag='-berok'
9656
# Determine the default libpath from the value encoded in an
9658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659
/* end confdefs.h. */
9669
if ac_fn_c_try_link "$LINENO"; then :
9671
lt_aix_libpath_sed='
9672
/Import File Strings/,/^$/ {
9678
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9679
# Check for a 64-bit object if we didn't find anything.
9680
if test -z "$aix_libpath"; then
9681
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684
rm -f core conftest.err conftest.$ac_objext \
9685
conftest$ac_exeext conftest.$ac_ext
9686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9688
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689
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"
9691
if test "$host_cpu" = ia64; then
9692
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9693
allow_undefined_flag="-z nodefs"
9694
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"
9696
# Determine the default libpath from the value encoded in an
9698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699
/* end confdefs.h. */
9709
if ac_fn_c_try_link "$LINENO"; then :
9711
lt_aix_libpath_sed='
9712
/Import File Strings/,/^$/ {
9718
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719
# Check for a 64-bit object if we didn't find anything.
9720
if test -z "$aix_libpath"; then
9721
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9724
rm -f core conftest.err conftest.$ac_objext \
9725
conftest$ac_exeext conftest.$ac_ext
9726
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9729
# Warning - without using the other run time loading flags,
9730
# -berok will link without error, but may produce a broken library.
9731
no_undefined_flag=' ${wl}-bernotok'
9732
allow_undefined_flag=' ${wl}-berok'
9733
# Exported symbols can be pulled into shared objects from archives
9734
whole_archive_flag_spec='$convenience'
9735
archive_cmds_need_lc=yes
9736
# This is similar to how AIX traditionally builds its shared libraries.
9737
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'
9745
# see comment about AmigaOS4 .so support
9746
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747
archive_expsym_cmds=''
9750
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)'
9751
hardcode_libdir_flag_spec='-L$libdir'
9752
hardcode_minus_L=yes
9758
export_dynamic_flag_spec=-rdynamic
9761
cygwin* | mingw* | pw32* | cegcc*)
9762
# When not using gcc, we currently assume that we are using
9763
# Microsoft Visual C++.
9764
# hardcode_libdir_flag_spec is actually meaningless, as there is
9765
# no search path for DLLs.
9766
hardcode_libdir_flag_spec=' '
9767
allow_undefined_flag=unsupported
9768
# Tell ltmain to make .lib files, not .a files.
9770
# Tell ltmain to make .dll files, not .so files.
9772
# FIXME: Setting linknames here is a bad hack.
9773
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9774
# The linker will automatically build a .lib file if we build a DLL.
9775
old_archive_from_new_cmds='true'
9776
# FIXME: Should let the user specify the lib program.
9777
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9778
fix_srcfile_path='`cygpath -w "$srcfile"`'
9779
enable_shared_with_static_runtimes=yes
9782
darwin* | rhapsody*)
9785
archive_cmds_need_lc=no
9787
hardcode_automatic=yes
9788
hardcode_shlibpath_var=unsupported
9789
whole_archive_flag_spec=''
9790
link_all_deplibs=yes
9791
allow_undefined_flag="$_lt_dar_allow_undefined"
9792
case $cc_basename in
9793
ifort*) _lt_dar_can_shared=yes ;;
9794
*) _lt_dar_can_shared=$GCC ;;
9796
if test "$_lt_dar_can_shared" = "yes"; then
9797
output_verbose_link_cmd=echo
9798
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9799
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9800
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}"
9801
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}"
9810
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811
hardcode_libdir_flag_spec='-L$libdir'
9812
hardcode_shlibpath_var=no
9819
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9820
# support. Future versions do this automatically, but an explicit c++rt0.o
9821
# does not break anything, and helps significantly (at the cost of a little
9824
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9825
hardcode_libdir_flag_spec='-R$libdir'
9827
hardcode_shlibpath_var=no
9830
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9832
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9834
hardcode_minus_L=yes
9835
hardcode_shlibpath_var=no
9838
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9839
freebsd* | dragonfly*)
9840
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9841
hardcode_libdir_flag_spec='-R$libdir'
9843
hardcode_shlibpath_var=no
9847
if test "$GCC" = yes; then
9848
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'
9850
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'
9852
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853
hardcode_libdir_separator=:
9856
# hardcode_minus_L: Not really in the search PATH,
9857
# but as the default location of the library.
9858
hardcode_minus_L=yes
9859
export_dynamic_flag_spec='${wl}-E'
9863
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9864
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9866
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9868
if test "$with_gnu_ld" = no; then
9869
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870
hardcode_libdir_flag_spec_ld='+b $libdir'
9871
hardcode_libdir_separator=:
9873
hardcode_direct_absolute=yes
9874
export_dynamic_flag_spec='${wl}-E'
9875
# hardcode_minus_L: Not really in the search PATH,
9876
# but as the default location of the library.
9877
hardcode_minus_L=yes
9882
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9885
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907
if test "$with_gnu_ld" = no; then
9908
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909
hardcode_libdir_separator=:
9914
hardcode_shlibpath_var=no
9918
hardcode_direct_absolute=yes
9919
export_dynamic_flag_spec='${wl}-E'
9921
# hardcode_minus_L: Not really in the search PATH,
9922
# but as the default location of the library.
9923
hardcode_minus_L=yes
9929
irix5* | irix6* | nonstopux*)
9930
if test "$GCC" = yes; then
9931
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'
9932
# Try to use the -exported_symbol ld option, if it does not
9933
# work, assume that -exports_file does not work either and
9934
# implicitly export all symbols.
9935
save_LDFLAGS="$LDFLAGS"
9936
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938
/* end confdefs.h. */
9941
if ac_fn_c_try_link "$LINENO"; then :
9942
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'
9945
rm -f core conftest.err conftest.$ac_objext \
9946
conftest$ac_exeext conftest.$ac_ext
9947
LDFLAGS="$save_LDFLAGS"
9949
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'
9950
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'
9952
archive_cmds_need_lc='no'
9953
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954
hardcode_libdir_separator=:
9956
link_all_deplibs=yes
9959
netbsd* | netbsdelf*-gnu)
9960
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9963
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9965
hardcode_libdir_flag_spec='-R$libdir'
9967
hardcode_shlibpath_var=no
9971
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974
hardcode_libdir_separator=:
9975
hardcode_shlibpath_var=no
9982
if test -f /usr/libexec/ld.so; then
9984
hardcode_shlibpath_var=no
9985
hardcode_direct_absolute=yes
9986
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990
export_dynamic_flag_spec='${wl}-E'
9993
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995
hardcode_libdir_flag_spec='-R$libdir'
9998
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009
hardcode_libdir_flag_spec='-L$libdir'
10010
hardcode_minus_L=yes
10011
allow_undefined_flag=unsupported
10012
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'
10013
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10017
if test "$GCC" = yes; then
10018
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019
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'
10021
allow_undefined_flag=' -expect_unresolved \*'
10022
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'
10024
archive_cmds_need_lc='no'
10025
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026
hardcode_libdir_separator=:
10029
osf4* | osf5*) # as osf3* with the addition of -msym flag
10030
if test "$GCC" = yes; then
10031
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032
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'
10033
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035
allow_undefined_flag=' -expect_unresolved \*'
10036
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'
10037
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~
10038
$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'
10040
# Both c and cxx compiler support -rpath directly
10041
hardcode_libdir_flag_spec='-rpath $libdir'
10043
archive_cmds_need_lc='no'
10044
hardcode_libdir_separator=:
10048
no_undefined_flag=' -z defs'
10049
if test "$GCC" = yes; then
10051
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10055
case `$CC -V 2>&1` in
10058
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10064
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070
hardcode_libdir_flag_spec='-R$libdir'
10071
hardcode_shlibpath_var=no
10073
solaris2.[0-5] | solaris2.[0-5].*) ;;
10075
# The compiler driver will combine and reorder linker options,
10076
# but understands `-z linker_flag'. GCC discards it without `$wl',
10077
# but is careful enough not to reorder.
10078
# Supported since Solaris 2.6 (maybe 2.5.1?)
10079
if test "$GCC" = yes; then
10080
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10082
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10086
link_all_deplibs=yes
10090
if test "x$host_vendor" = xsequent; then
10091
# Use $CC to link under sequent, because it throws in some extra .o
10092
# files that make .init and .fini sections work.
10093
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10095
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10097
hardcode_libdir_flag_spec='-L$libdir'
10098
hardcode_direct=yes
10099
hardcode_minus_L=yes
10100
hardcode_shlibpath_var=no
10104
case $host_vendor in
10106
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107
hardcode_direct=yes # is this really true???
10110
## LD is ld it makes a PLAMLIB
10111
## CC just makes a GrossModule.
10112
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113
reload_cmds='$CC -r -o $output$reload_objs'
10117
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10121
runpath_var='LD_RUN_PATH'
10122
hardcode_shlibpath_var=no
10126
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127
hardcode_shlibpath_var=no
10128
export_dynamic_flag_spec='-Bexport'
10132
if test -d /usr/nec; then
10133
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134
hardcode_shlibpath_var=no
10135
runpath_var=LD_RUN_PATH
10136
hardcode_runpath_var=yes
10141
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142
no_undefined_flag='${wl}-z,text'
10143
archive_cmds_need_lc=no
10144
hardcode_shlibpath_var=no
10145
runpath_var='LD_RUN_PATH'
10147
if test "$GCC" = yes; then
10148
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156
sysv5* | sco3.2v5* | sco5v6*)
10157
# Note: We can NOT use -z defs as we might desire, because we do not
10158
# link with -lc, and that would cause any symbols used from libc to
10159
# always be unresolved, which means just about no library would
10160
# ever link correctly. If we're not using GNU ld we use -z text
10161
# though, which does catch some bad symbols but isn't as heavy-handed
10163
no_undefined_flag='${wl}-z,text'
10164
allow_undefined_flag='${wl}-z,nodefs'
10165
archive_cmds_need_lc=no
10166
hardcode_shlibpath_var=no
10167
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168
hardcode_libdir_separator=':'
10169
link_all_deplibs=yes
10170
export_dynamic_flag_spec='${wl}-Bexport'
10171
runpath_var='LD_RUN_PATH'
10173
if test "$GCC" = yes; then
10174
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184
hardcode_libdir_flag_spec='-L$libdir'
10185
hardcode_shlibpath_var=no
10193
if test x$host_vendor = xsni; then
10195
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196
export_dynamic_flag_spec='${wl}-Blargedynsym'
10202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203
$as_echo "$ld_shlibs" >&6; }
10204
test "$ld_shlibs" = no && can_build_shared=no
10206
with_gnu_ld=$with_gnu_ld
10223
# Do we need to explicitly link libc?
10225
case "x$archive_cmds_need_lc" in
10227
# Assume -lc should be added
10228
archive_cmds_need_lc=yes
10230
if test "$enable_shared" = yes && test "$GCC" = yes; then
10231
case $archive_cmds in
10233
# FIXME: we may have to deal with multi-command sequences.
10236
# Test whether the compiler implicitly links with -lc since on some
10237
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10238
# to ld, don't add -lc before -lgcc.
10239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10242
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245
(eval $ac_compile) 2>&5
10247
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248
test $ac_status = 0; } 2>conftest.err; then
10251
libobjs=conftest.$ac_objext
10253
wl=$lt_prog_compiler_wl
10254
pic_flag=$lt_prog_compiler_pic
10260
lt_save_allow_undefined_flag=$allow_undefined_flag
10261
allow_undefined_flag=
10262
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10263
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10265
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266
test $ac_status = 0; }
10268
archive_cmds_need_lc=no
10270
archive_cmds_need_lc=yes
10272
allow_undefined_flag=$lt_save_allow_undefined_flag
10274
cat conftest.err 1>&5
10277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10278
$as_echo "$archive_cmds_need_lc" >&6; }
10441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10442
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10444
if test "$GCC" = yes; then
10446
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10447
*) lt_awk_arg="/^libraries:/" ;;
10449
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10450
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10451
# if the path contains ";" then we assume it to be the separator
10452
# otherwise default to the standard path separator (i.e. ":") - it is
10453
# assumed that no part of a normal pathname contains ";" but that should
10454
# okay in the real world where ";" in dirpaths is itself problematic.
10455
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10457
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10459
# Ok, now we have the path, separated by spaces, we can step through it
10460
# and add multilib dir if necessary.
10461
lt_tmp_lt_search_path_spec=
10462
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10463
for lt_sys_path in $lt_search_path_spec; do
10464
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10465
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10467
test -d "$lt_sys_path" && \
10468
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10471
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10472
BEGIN {RS=" "; FS="/|\n";} {
10475
for (lt_i = NF; lt_i > 0; lt_i--) {
10476
if ($lt_i != "" && $lt_i != ".") {
10477
if ($lt_i == "..") {
10480
if (lt_count == 0) {
10481
lt_foo="/" $lt_i lt_foo;
10488
if (lt_foo != "") { lt_freq[lt_foo]++; }
10489
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10491
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10493
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10495
library_names_spec=
10496
libname_spec='lib$name'
10500
postuninstall_cmds=
10504
shlibpath_overrides_runpath=unknown
10506
dynamic_linker="$host_os ld.so"
10507
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508
need_lib_prefix=unknown
10509
hardcode_into_libs=no
10511
# when you set need_version to no, make sure it does not cause -set_version
10512
# flags to be left without arguments
10513
need_version=unknown
10518
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10519
shlibpath_var=LIBPATH
10521
# AIX 3 has no versioning support, so we append a major version to the name.
10522
soname_spec='${libname}${release}${shared_ext}$major'
10529
hardcode_into_libs=yes
10530
if test "$host_cpu" = ia64; then
10531
# AIX 5 supports IA64
10532
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10533
shlibpath_var=LD_LIBRARY_PATH
10535
# With GCC up to 2.95.x, collect2 would create an import file
10536
# for dependence libraries. The import file would start with
10537
# the line `#! .'. This would cause the generated library to
10538
# depend on `.', always an invalid library. This was fixed in
10539
# development snapshots of GCC prior to 3.0.
10541
aix4 | aix4.[01] | aix4.[01].*)
10542
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10544
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10547
can_build_shared=no
10551
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10552
# soname into executable. Probably we can add versioning support to
10553
# collect2, so additional links can be useful in future.
10554
if test "$aix_use_runtimelinking" = yes; then
10555
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10556
# instead of lib<name>.a to let people know that these are not
10557
# typical AIX shared libraries.
10558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560
# We preserve .a as extension for shared libraries through AIX4.2
10561
# and later when we are not doing run time linking.
10562
library_names_spec='${libname}${release}.a $libname.a'
10563
soname_spec='${libname}${release}${shared_ext}$major'
10565
shlibpath_var=LIBPATH
10572
# Since July 2007 AmigaOS4 officially supports .so libraries.
10573
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577
library_names_spec='$libname.ixlibrary $libname.a'
10578
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10579
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'
10585
library_names_spec='${libname}${shared_ext}'
10586
dynamic_linker="$host_os ld.so"
10587
shlibpath_var=LIBRARY_PATH
10593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594
soname_spec='${libname}${release}${shared_ext}$major'
10595
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596
shlibpath_var=LD_LIBRARY_PATH
10597
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599
# the default ld.so.conf also contains /usr/contrib/lib and
10600
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601
# libtool to hard-code these into programs
10604
cygwin* | mingw* | pw32* | cegcc*)
10605
version_type=windows
10610
case $GCC,$host_os in
10611
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10612
library_names_spec='$libname.dll.a'
10613
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10614
postinstall_cmds='base_file=`basename \${file}`~
10615
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616
dldir=$destdir/`dirname \$dlpath`~
10617
test -d \$dldir || mkdir -p \$dldir~
10618
$install_prog $dir/$dlname \$dldir/$dlname~
10619
chmod a+x \$dldir/$dlname~
10620
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10623
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624
dlpath=$dir/\$dldll~
10626
shlibpath_overrides_runpath=yes
10630
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10635
# MinGW DLLs use traditional 'lib' prefix
10636
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10637
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10638
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10639
# It is most probably a Windows format PATH printed by
10640
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10641
# path with ; separators, and with drive letters. We can handle the
10642
# drive letters (cygwin fileutils understands them), so leave them,
10643
# especially as we might pass files found there to a mingw objdump,
10644
# which wouldn't understand a cygwinified path. Ahh.
10645
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10647
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10651
# pw32 DLLs use 'pw' prefix rather than 'lib'
10652
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10658
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10661
dynamic_linker='Win32 ld.exe'
10662
# FIXME: first we should search . and the directory the executable is in
10666
darwin* | rhapsody*)
10667
dynamic_linker="$host_os dyld"
10668
version_type=darwin
10671
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10672
soname_spec='${libname}${release}${major}$shared_ext'
10673
shlibpath_overrides_runpath=yes
10674
shlibpath_var=DYLD_LIBRARY_PATH
10675
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10677
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10678
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10686
soname_spec='${libname}${release}${shared_ext}$major'
10687
shlibpath_var=LD_LIBRARY_PATH
10694
freebsd* | dragonfly*)
10695
# DragonFly does not have aout. When/if they implement a new
10696
# versioning mechanism, adjust this.
10697
if test -x /usr/bin/objformat; then
10698
objformat=`/usr/bin/objformat`
10701
freebsd[123]*) objformat=aout ;;
10702
*) objformat=elf ;;
10705
version_type=freebsd-$objformat
10706
case $version_type in
10708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10717
shlibpath_var=LD_LIBRARY_PATH
10720
shlibpath_overrides_runpath=yes
10722
freebsd3.[01]* | freebsdelf3.[01]*)
10723
shlibpath_overrides_runpath=yes
10724
hardcode_into_libs=yes
10726
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728
shlibpath_overrides_runpath=no
10729
hardcode_into_libs=yes
10731
*) # from 4.6 on, and DragonFly
10732
shlibpath_overrides_runpath=yes
10733
hardcode_into_libs=yes
10742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10743
soname_spec='${libname}${release}${shared_ext}$major'
10744
shlibpath_var=LD_LIBRARY_PATH
10745
hardcode_into_libs=yes
10748
hpux9* | hpux10* | hpux11*)
10749
# Give a soname corresponding to the major version so that dld.sl refuses to
10750
# link against other versions.
10757
hardcode_into_libs=yes
10758
dynamic_linker="$host_os dld.so"
10759
shlibpath_var=LD_LIBRARY_PATH
10760
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762
soname_spec='${libname}${release}${shared_ext}$major'
10763
if test "X$HPUX_IA64_MODE" = X32; then
10764
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10766
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10768
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10772
hardcode_into_libs=yes
10773
dynamic_linker="$host_os dld.sl"
10774
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10775
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777
soname_spec='${libname}${release}${shared_ext}$major'
10778
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10779
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10783
dynamic_linker="$host_os dld.sl"
10784
shlibpath_var=SHLIB_PATH
10785
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787
soname_spec='${libname}${release}${shared_ext}$major'
10790
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10791
postinstall_cmds='chmod 555 $lib'
10798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799
soname_spec='${libname}${release}${shared_ext}$major'
10800
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801
shlibpath_var=LD_LIBRARY_PATH
10802
shlibpath_overrides_runpath=no
10803
hardcode_into_libs=yes
10806
irix5* | irix6* | nonstopux*)
10808
nonstopux*) version_type=nonstopux ;;
10810
if test "$lt_cv_prog_gnu_ld" = yes; then
10818
soname_spec='${libname}${release}${shared_ext}$major'
10819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10821
irix5* | nonstopux*)
10822
libsuff= shlibsuff=
10825
case $LD in # libtool.m4 will add one of these switches to LD
10826
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827
libsuff= shlibsuff= libmagic=32-bit;;
10828
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829
libsuff=32 shlibsuff=N32 libmagic=N32;;
10830
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832
*) libsuff= shlibsuff= libmagic=never-match;;
10836
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837
shlibpath_overrides_runpath=no
10838
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840
hardcode_into_libs=yes
10843
# No shared lib support for Linux oldld, aout, or coff.
10844
linux*oldld* | linux*aout* | linux*coff*)
10848
# This must be Linux ELF.
10849
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854
soname_spec='${libname}${release}${shared_ext}$major'
10855
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856
shlibpath_var=LD_LIBRARY_PATH
10857
shlibpath_overrides_runpath=no
10858
# Some binutils ld are patched to set DT_RUNPATH
10859
save_LDFLAGS=$LDFLAGS
10860
save_libdir=$libdir
10861
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10862
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864
/* end confdefs.h. */
10874
if ac_fn_c_try_link "$LINENO"; then :
10875
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10876
shlibpath_overrides_runpath=yes
10879
rm -f core conftest.err conftest.$ac_objext \
10880
conftest$ac_exeext conftest.$ac_ext
10881
LDFLAGS=$save_LDFLAGS
10882
libdir=$save_libdir
10884
# This implies no fast_install, which is unacceptable.
10885
# Some rework will be needed to allow for fast_install
10886
# before this can be enabled.
10887
hardcode_into_libs=yes
10889
# Append ld.so.conf contents to the search path
10890
if test -f /etc/ld.so.conf; then
10891
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' ' '`
10892
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10895
# We used to test for /lib/ld.so.1 and disable shared libraries on
10896
# powerpc, because MkLinux only supported shared libraries with the
10897
# GNU dynamic linker. Since this was broken with cross compilers,
10898
# most powerpc-linux boxes support dynamic linking these days and
10899
# people can always --disable-shared, the test was removed, and we
10900
# assume the GNU/Linux dynamic linker is in use.
10901
dynamic_linker='GNU/Linux ld.so'
10908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10909
soname_spec='${libname}${release}${shared_ext}$major'
10910
shlibpath_var=LD_LIBRARY_PATH
10911
shlibpath_overrides_runpath=no
10912
hardcode_into_libs=yes
10913
dynamic_linker='NetBSD ld.elf_so'
10920
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10922
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10923
dynamic_linker='NetBSD (a.out) ld.so'
10925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926
soname_spec='${libname}${release}${shared_ext}$major'
10927
dynamic_linker='NetBSD ld.elf_so'
10929
shlibpath_var=LD_LIBRARY_PATH
10930
shlibpath_overrides_runpath=yes
10931
hardcode_into_libs=yes
10936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937
shlibpath_var=LD_LIBRARY_PATH
10938
shlibpath_overrides_runpath=yes
10945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946
soname_spec='${libname}${release}${shared_ext}$major'
10947
shlibpath_var=LD_LIBRARY_PATH
10948
shlibpath_overrides_runpath=no
10949
hardcode_into_libs=yes
10950
dynamic_linker='ldqnx.so'
10955
sys_lib_dlsearch_path_spec="/usr/lib"
10957
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10959
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10960
*) need_version=no ;;
10962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10963
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10964
shlibpath_var=LD_LIBRARY_PATH
10965
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10967
openbsd2.[89] | openbsd2.[89].*)
10968
shlibpath_overrides_runpath=no
10971
shlibpath_overrides_runpath=yes
10975
shlibpath_overrides_runpath=yes
10980
libname_spec='$name'
10983
library_names_spec='$libname${shared_ext} $libname.a'
10984
dynamic_linker='OS/2 ld.exe'
10985
shlibpath_var=LIBPATH
10988
osf3* | osf4* | osf5*)
10992
soname_spec='${libname}${release}${shared_ext}$major'
10993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994
shlibpath_var=LD_LIBRARY_PATH
10995
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10996
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008
soname_spec='${libname}${release}${shared_ext}$major'
11009
shlibpath_var=LD_LIBRARY_PATH
11010
shlibpath_overrides_runpath=yes
11011
hardcode_into_libs=yes
11012
# ldd complains unless libraries are executable
11013
postinstall_cmds='chmod +x $lib'
11018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11020
shlibpath_var=LD_LIBRARY_PATH
11021
shlibpath_overrides_runpath=yes
11022
if test "$with_gnu_ld" = yes; then
11030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031
soname_spec='${libname}${release}${shared_ext}$major'
11032
shlibpath_var=LD_LIBRARY_PATH
11033
case $host_vendor in
11035
shlibpath_overrides_runpath=no
11037
runpath_var=LD_RUN_PATH
11045
shlibpath_overrides_runpath=no
11046
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11052
if test -d /usr/nec ;then
11054
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11055
soname_spec='$libname${shared_ext}.$major'
11056
shlibpath_var=LD_LIBRARY_PATH
11060
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11061
version_type=freebsd-elf
11064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11065
soname_spec='${libname}${release}${shared_ext}$major'
11066
shlibpath_var=LD_LIBRARY_PATH
11067
shlibpath_overrides_runpath=yes
11068
hardcode_into_libs=yes
11069
if test "$with_gnu_ld" = yes; then
11070
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11072
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11075
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11079
sys_lib_dlsearch_path_spec='/usr/lib'
11083
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088
shlibpath_var=LD_LIBRARY_PATH
11089
shlibpath_overrides_runpath=no
11090
hardcode_into_libs=yes
11095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096
soname_spec='${libname}${release}${shared_ext}$major'
11097
shlibpath_var=LD_LIBRARY_PATH
11104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11105
$as_echo "$dynamic_linker" >&6; }
11106
test "$dynamic_linker" = no && can_build_shared=no
11108
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11109
if test "$GCC" = yes; then
11110
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11113
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11114
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11116
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11117
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11207
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11209
if test -n "$hardcode_libdir_flag_spec" ||
11210
test -n "$runpath_var" ||
11211
test "X$hardcode_automatic" = "Xyes" ; then
11213
# We can hardcode non-existent directories.
11214
if test "$hardcode_direct" != no &&
11215
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11216
# have to relink, otherwise we might link with an installed library
11217
# when we should be linking with a yet-to-be-installed one
11218
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11219
test "$hardcode_minus_L" != no; then
11220
# Linking always hardcodes the temporary library directory.
11221
hardcode_action=relink
11223
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11224
hardcode_action=immediate
11227
# We cannot hardcode anything, or else we can only hardcode existing
11229
hardcode_action=unsupported
11231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11232
$as_echo "$hardcode_action" >&6; }
11234
if test "$hardcode_action" = relink ||
11235
test "$inherit_rpath" = yes; then
11236
# Fast installation is not supported
11237
enable_fast_install=no
11238
elif test "$shlibpath_overrides_runpath" = yes ||
11239
test "$enable_shared" = no; then
11240
# Fast installation is not necessary
11241
enable_fast_install=needless
11249
if test "x$enable_dlopen" != xyes; then
11250
enable_dlopen=unknown
11251
enable_dlopen_self=unknown
11252
enable_dlopen_self_static=unknown
11259
lt_cv_dlopen="load_add_on"
11261
lt_cv_dlopen_self=yes
11264
mingw* | pw32* | cegcc*)
11265
lt_cv_dlopen="LoadLibrary"
11270
lt_cv_dlopen="dlopen"
11275
# if libdl is installed we need to link against it
11276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11277
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11278
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11279
$as_echo_n "(cached) " >&6
11281
ac_check_lib_save_LIBS=$LIBS
11283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284
/* end confdefs.h. */
11286
/* Override any GCC internal prototype to avoid an error.
11287
Use char because int might match the return type of a GCC
11288
builtin and then its argument prototype would still apply. */
11301
if ac_fn_c_try_link "$LINENO"; then :
11302
ac_cv_lib_dl_dlopen=yes
11304
ac_cv_lib_dl_dlopen=no
11306
rm -f core conftest.err conftest.$ac_objext \
11307
conftest$ac_exeext conftest.$ac_ext
11308
LIBS=$ac_check_lib_save_LIBS
11310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11311
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11312
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11313
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316
lt_cv_dlopen="dyld"
11318
lt_cv_dlopen_self=yes
11325
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11326
if test "x$ac_cv_func_shl_load" = x""yes; then :
11327
lt_cv_dlopen="shl_load"
11329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11330
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11331
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11332
$as_echo_n "(cached) " >&6
11334
ac_check_lib_save_LIBS=$LIBS
11336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337
/* end confdefs.h. */
11339
/* Override any GCC internal prototype to avoid an error.
11340
Use char because int might match the return type of a GCC
11341
builtin and then its argument prototype would still apply. */
11349
return shl_load ();
11354
if ac_fn_c_try_link "$LINENO"; then :
11355
ac_cv_lib_dld_shl_load=yes
11357
ac_cv_lib_dld_shl_load=no
11359
rm -f core conftest.err conftest.$ac_objext \
11360
conftest$ac_exeext conftest.$ac_ext
11361
LIBS=$ac_check_lib_save_LIBS
11363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11364
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11365
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11366
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11368
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11369
if test "x$ac_cv_func_dlopen" = x""yes; then :
11370
lt_cv_dlopen="dlopen"
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11373
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11374
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11375
$as_echo_n "(cached) " >&6
11377
ac_check_lib_save_LIBS=$LIBS
11379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
/* end confdefs.h. */
11382
/* Override any GCC internal prototype to avoid an error.
11383
Use char because int might match the return type of a GCC
11384
builtin and then its argument prototype would still apply. */
11397
if ac_fn_c_try_link "$LINENO"; then :
11398
ac_cv_lib_dl_dlopen=yes
11400
ac_cv_lib_dl_dlopen=no
11402
rm -f core conftest.err conftest.$ac_objext \
11403
conftest$ac_exeext conftest.$ac_ext
11404
LIBS=$ac_check_lib_save_LIBS
11406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11407
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11408
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11409
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11412
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11413
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11414
$as_echo_n "(cached) " >&6
11416
ac_check_lib_save_LIBS=$LIBS
11417
LIBS="-lsvld $LIBS"
11418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419
/* end confdefs.h. */
11421
/* Override any GCC internal prototype to avoid an error.
11422
Use char because int might match the return type of a GCC
11423
builtin and then its argument prototype would still apply. */
11436
if ac_fn_c_try_link "$LINENO"; then :
11437
ac_cv_lib_svld_dlopen=yes
11439
ac_cv_lib_svld_dlopen=no
11441
rm -f core conftest.err conftest.$ac_objext \
11442
conftest$ac_exeext conftest.$ac_ext
11443
LIBS=$ac_check_lib_save_LIBS
11445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11446
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11447
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11448
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11451
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11452
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11453
$as_echo_n "(cached) " >&6
11455
ac_check_lib_save_LIBS=$LIBS
11457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458
/* end confdefs.h. */
11460
/* Override any GCC internal prototype to avoid an error.
11461
Use char because int might match the return type of a GCC
11462
builtin and then its argument prototype would still apply. */
11470
return dld_link ();
11475
if ac_fn_c_try_link "$LINENO"; then :
11476
ac_cv_lib_dld_dld_link=yes
11478
ac_cv_lib_dld_dld_link=no
11480
rm -f core conftest.err conftest.$ac_objext \
11481
conftest$ac_exeext conftest.$ac_ext
11482
LIBS=$ac_check_lib_save_LIBS
11484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11485
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11486
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11487
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11508
if test "x$lt_cv_dlopen" != xno; then
11514
case $lt_cv_dlopen in
11516
save_CPPFLAGS="$CPPFLAGS"
11517
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11519
save_LDFLAGS="$LDFLAGS"
11520
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11523
LIBS="$lt_cv_dlopen_libs $LIBS"
11525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11526
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11527
if test "${lt_cv_dlopen_self+set}" = set; then :
11528
$as_echo_n "(cached) " >&6
11530
if test "$cross_compiling" = yes; then :
11531
lt_cv_dlopen_self=cross
11533
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11534
lt_status=$lt_dlunknown
11535
cat > conftest.$ac_ext <<_LT_EOF
11536
#line 11536 "configure"
11537
#include "confdefs.h"
11546
# define LT_DLGLOBAL RTLD_GLOBAL
11549
# define LT_DLGLOBAL DL_GLOBAL
11551
# define LT_DLGLOBAL 0
11555
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11556
find out it does not work in some platform. */
11557
#ifndef LT_DLLAZY_OR_NOW
11559
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11562
# define LT_DLLAZY_OR_NOW DL_LAZY
11565
# define LT_DLLAZY_OR_NOW RTLD_NOW
11568
# define LT_DLLAZY_OR_NOW DL_NOW
11570
# define LT_DLLAZY_OR_NOW 0
11577
void fnord() { int i=42;}
11580
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11581
int status = $lt_dlunknown;
11585
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11586
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11587
/* dlclose (self); */
11595
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11596
(eval $ac_link) 2>&5
11598
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11600
(./conftest; exit; ) >&5 2>/dev/null
11602
case x$lt_status in
11603
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11604
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11605
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11608
# compilation failed
11609
lt_cv_dlopen_self=no
11616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11617
$as_echo "$lt_cv_dlopen_self" >&6; }
11619
if test "x$lt_cv_dlopen_self" = xyes; then
11620
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11622
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11623
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11624
$as_echo_n "(cached) " >&6
11626
if test "$cross_compiling" = yes; then :
11627
lt_cv_dlopen_self_static=cross
11629
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11630
lt_status=$lt_dlunknown
11631
cat > conftest.$ac_ext <<_LT_EOF
11632
#line 11632 "configure"
11633
#include "confdefs.h"
11642
# define LT_DLGLOBAL RTLD_GLOBAL
11645
# define LT_DLGLOBAL DL_GLOBAL
11647
# define LT_DLGLOBAL 0
11651
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11652
find out it does not work in some platform. */
11653
#ifndef LT_DLLAZY_OR_NOW
11655
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11658
# define LT_DLLAZY_OR_NOW DL_LAZY
11661
# define LT_DLLAZY_OR_NOW RTLD_NOW
11664
# define LT_DLLAZY_OR_NOW DL_NOW
11666
# define LT_DLLAZY_OR_NOW 0
11673
void fnord() { int i=42;}
11676
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677
int status = $lt_dlunknown;
11681
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11682
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11683
/* dlclose (self); */
11691
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692
(eval $ac_link) 2>&5
11694
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696
(./conftest; exit; ) >&5 2>/dev/null
11698
case x$lt_status in
11699
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11700
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11701
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11704
# compilation failed
11705
lt_cv_dlopen_self_static=no
11712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11713
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11716
CPPFLAGS="$save_CPPFLAGS"
11717
LDFLAGS="$save_LDFLAGS"
11722
case $lt_cv_dlopen_self in
11723
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11724
*) enable_dlopen_self=unknown ;;
11727
case $lt_cv_dlopen_self_static in
11728
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11729
*) enable_dlopen_self_static=unknown ;;
11751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11752
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11753
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11754
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11755
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757
$as_echo "yes" >&6; }
11759
# FIXME - insert some real tests, host_os isn't really good enough
11762
if test -n "$STRIP" ; then
11763
striplib="$STRIP -x"
11764
old_striplib="$STRIP -S"
11765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11766
$as_echo "yes" >&6; }
11768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769
$as_echo "no" >&6; }
11773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774
$as_echo "no" >&6; }
11790
# Report which library types will actually be built
11791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11792
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11794
$as_echo "$can_build_shared" >&6; }
11796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11797
$as_echo_n "checking whether to build shared libraries... " >&6; }
11798
test "$can_build_shared" = "no" && enable_shared=no
11800
# On AIX, shared libraries and static libraries use the same namespace, and
11801
# are all built from PIC.
11804
test "$enable_shared" = yes && enable_static=no
11805
if test -n "$RANLIB"; then
11806
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11807
postinstall_cmds='$RANLIB $lib'
11812
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11813
test "$enable_shared" = yes && enable_static=no
11817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11818
$as_echo "$enable_shared" >&6; }
11820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11821
$as_echo_n "checking whether to build static libraries... " >&6; }
11822
# Make sure either enable_shared or enable_static is yes.
11823
test "$enable_shared" = yes || enable_static=yes
11824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11825
$as_echo "$enable_static" >&6; }
11832
ac_cpp='$CPP $CPPFLAGS'
11833
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851
ac_config_commands="$ac_config_commands libtool"
11856
# Only expand once:
11859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11860
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11862
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11863
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11864
$as_echo_n "(cached) " >&6
11866
cat >conftest.make <<\_ACEOF
11869
@echo '@@@%%%=$(MAKE)=@@@%%%'
11871
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11872
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11873
*@@@%%%=?*=@@@%%%*)
11874
eval ac_cv_prog_make_${ac_make}_set=yes;;
11876
eval ac_cv_prog_make_${ac_make}_set=no;;
11878
rm -f conftest.make
11880
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882
$as_echo "yes" >&6; }
11885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886
$as_echo "no" >&6; }
11887
SET_MAKE="MAKE=${MAKE-make}"
11890
for ac_prog in xsltproc
11892
# Extract the first word of "$ac_prog", so it can be a program name with args.
11893
set dummy $ac_prog; ac_word=$2
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895
$as_echo_n "checking for $ac_word... " >&6; }
11896
if test "${ac_cv_prog_XSLTPROC+set}" = set; then :
11897
$as_echo_n "(cached) " >&6
11899
if test -n "$XSLTPROC"; then
11900
ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
11902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903
for as_dir in $PATH
11906
test -z "$as_dir" && as_dir=.
11907
for ac_exec_ext in '' $ac_executable_extensions; do
11908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11909
ac_cv_prog_XSLTPROC="$ac_prog"
11910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919
XSLTPROC=$ac_cv_prog_XSLTPROC
11920
if test -n "$XSLTPROC"; then
11921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11922
$as_echo "$XSLTPROC" >&6; }
11924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925
$as_echo "no" >&6; }
11929
test -n "$XSLTPROC" && break
11931
test -n "$XSLTPROC" || XSLTPROC=""no""
11933
if test "x$XSLTPROC" = "xno"; then
11934
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found ā not building documentation" >&5
11935
$as_echo "$as_me: WARNING: xsltproc not found ā not building documentation" >&2;}
11937
if test "x$XSLTPROC" != "xno"; then
11938
HAVE_XSLTPROC_TRUE=
11939
HAVE_XSLTPROC_FALSE='#'
11941
HAVE_XSLTPROC_TRUE='#'
11942
HAVE_XSLTPROC_FALSE=
11946
# Checks for libraries.
11947
save_LIBS="${LIBS}"
11949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11950
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11951
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
11952
$as_echo_n "(cached) " >&6
11954
ac_check_lib_save_LIBS=$LIBS
11956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957
/* end confdefs.h. */
11959
/* Override any GCC internal prototype to avoid an error.
11960
Use char because int might match the return type of a GCC
11961
builtin and then its argument prototype would still apply. */
11965
char clock_gettime ();
11969
return clock_gettime ();
11974
if ac_fn_c_try_link "$LINENO"; then :
11975
ac_cv_lib_rt_clock_gettime=yes
11977
ac_cv_lib_rt_clock_gettime=no
11979
rm -f core conftest.err conftest.$ac_objext \
11980
conftest$ac_exeext conftest.$ac_ext
11981
LIBS=$ac_check_lib_save_LIBS
11983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11984
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11985
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
11986
cat >>confdefs.h <<_ACEOF
11987
#define HAVE_LIBRT 1
11995
LIBS="${save_LIBS}"
11998
save_LIBS="${LIBS}"
12000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12001
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12002
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12003
$as_echo_n "(cached) " >&6
12005
ac_check_lib_save_LIBS=$LIBS
12007
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008
/* end confdefs.h. */
12010
/* Override any GCC internal prototype to avoid an error.
12011
Use char because int might match the return type of a GCC
12012
builtin and then its argument prototype would still apply. */
12025
if ac_fn_c_try_link "$LINENO"; then :
12026
ac_cv_lib_dl_dlopen=yes
12028
ac_cv_lib_dl_dlopen=no
12030
rm -f core conftest.err conftest.$ac_objext \
12031
conftest$ac_exeext conftest.$ac_ext
12032
LIBS=$ac_check_lib_save_LIBS
12034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12035
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12036
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12037
cat >>confdefs.h <<_ACEOF
12038
#define HAVE_LIBDL 1
12046
LIBS="${save_LIBS}"
12049
save_LIBS="${LIBS}"
12051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
12052
$as_echo_n "checking for library containing initscr... " >&6; }
12053
if test "${ac_cv_search_initscr+set}" = set; then :
12054
$as_echo_n "(cached) " >&6
12056
ac_func_search_save_LIBS=$LIBS
12057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058
/* end confdefs.h. */
12060
/* Override any GCC internal prototype to avoid an error.
12061
Use char because int might match the return type of a GCC
12062
builtin and then its argument prototype would still apply. */
12075
for ac_lib in '' curses ncurses; do
12076
if test -z "$ac_lib"; then
12077
ac_res="none required"
12080
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12082
if ac_fn_c_try_link "$LINENO"; then :
12083
ac_cv_search_initscr=$ac_res
12085
rm -f core conftest.err conftest.$ac_objext \
12087
if test "${ac_cv_search_initscr+set}" = set; then :
12091
if test "${ac_cv_search_initscr+set}" = set; then :
12094
ac_cv_search_initscr=no
12096
rm conftest.$ac_ext
12097
LIBS=$ac_func_search_save_LIBS
12099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
12100
$as_echo "$ac_cv_search_initscr" >&6; }
12101
ac_res=$ac_cv_search_initscr
12102
if test "$ac_res" != no; then :
12103
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12109
CURSES_LIBS="${LIBS}"
12110
LIBS="${save_LIBS}"
12112
if test "$have_curses" = no; then
12113
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curses not found; some tools will not be built" >&5
12114
$as_echo "$as_me: WARNING: curses not found; some tools will not be built" >&2;}
12116
if test x$have_curses = xyes; then
12118
HAVE_CURSES_FALSE='#'
12120
HAVE_CURSES_TRUE='#'
12125
save_LIBS="${LIBS}"
12127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12128
$as_echo_n "checking for library containing pthread_create... " >&6; }
12129
if test "${ac_cv_search_pthread_create+set}" = set; then :
12130
$as_echo_n "(cached) " >&6
12132
ac_func_search_save_LIBS=$LIBS
12133
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134
/* end confdefs.h. */
12136
/* Override any GCC internal prototype to avoid an error.
12137
Use char because int might match the return type of a GCC
12138
builtin and then its argument prototype would still apply. */
12142
char pthread_create ();
12146
return pthread_create ();
12151
for ac_lib in '' thr pthread c_r; do
12152
if test -z "$ac_lib"; then
12153
ac_res="none required"
12156
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12158
if ac_fn_c_try_link "$LINENO"; then :
12159
ac_cv_search_pthread_create=$ac_res
12161
rm -f core conftest.err conftest.$ac_objext \
12163
if test "${ac_cv_search_pthread_create+set}" = set; then :
12167
if test "${ac_cv_search_pthread_create+set}" = set; then :
12170
ac_cv_search_pthread_create=no
12172
rm conftest.$ac_ext
12173
LIBS=$ac_func_search_save_LIBS
12175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12176
$as_echo "$ac_cv_search_pthread_create" >&6; }
12177
ac_res=$ac_cv_search_pthread_create
12178
if test "$ac_res" != no; then :
12179
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12183
PTHREAD_LIBS="${LIBS}"
12184
LIBS="${save_LIBS}"
12187
save_LIBS="${LIBS}"
12189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12190
$as_echo_n "checking for socket in -lsocket... " >&6; }
12191
if test "${ac_cv_lib_socket_socket+set}" = set; then :
12192
$as_echo_n "(cached) " >&6
12194
ac_check_lib_save_LIBS=$LIBS
12195
LIBS="-lsocket $LIBS"
12196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197
/* end confdefs.h. */
12199
/* Override any GCC internal prototype to avoid an error.
12200
Use char because int might match the return type of a GCC
12201
builtin and then its argument prototype would still apply. */
12214
if ac_fn_c_try_link "$LINENO"; then :
12215
ac_cv_lib_socket_socket=yes
12217
ac_cv_lib_socket_socket=no
12219
rm -f core conftest.err conftest.$ac_objext \
12220
conftest$ac_exeext conftest.$ac_ext
12221
LIBS=$ac_check_lib_save_LIBS
12223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12224
$as_echo "$ac_cv_lib_socket_socket" >&6; }
12225
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
12226
cat >>confdefs.h <<_ACEOF
12227
#define HAVE_LIBSOCKET 1
12230
LIBS="-lsocket $LIBS"
12234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
12235
$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
12236
if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then :
12237
$as_echo_n "(cached) " >&6
12239
ac_check_lib_save_LIBS=$LIBS
12241
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242
/* end confdefs.h. */
12244
/* Override any GCC internal prototype to avoid an error.
12245
Use char because int might match the return type of a GCC
12246
builtin and then its argument prototype would still apply. */
12250
char getaddrinfo ();
12254
return getaddrinfo ();
12259
if ac_fn_c_try_link "$LINENO"; then :
12260
ac_cv_lib_nsl_getaddrinfo=yes
12262
ac_cv_lib_nsl_getaddrinfo=no
12264
rm -f core conftest.err conftest.$ac_objext \
12265
conftest$ac_exeext conftest.$ac_ext
12266
LIBS=$ac_check_lib_save_LIBS
12268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
12269
$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
12270
if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then :
12271
cat >>confdefs.h <<_ACEOF
12272
#define HAVE_LIBNSL 1
12280
LIBS="${save_LIBS}"
12285
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12286
# These system don't have libm, or don't need it
12289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12290
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12291
if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12292
$as_echo_n "(cached) " >&6
12294
ac_check_lib_save_LIBS=$LIBS
12296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297
/* end confdefs.h. */
12299
/* Override any GCC internal prototype to avoid an error.
12300
Use char because int might match the return type of a GCC
12301
builtin and then its argument prototype would still apply. */
12305
char _mwvalidcheckl ();
12309
return _mwvalidcheckl ();
12314
if ac_fn_c_try_link "$LINENO"; then :
12315
ac_cv_lib_mw__mwvalidcheckl=yes
12317
ac_cv_lib_mw__mwvalidcheckl=no
12319
rm -f core conftest.err conftest.$ac_objext \
12320
conftest$ac_exeext conftest.$ac_ext
12321
LIBS=$ac_check_lib_save_LIBS
12323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12324
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12325
if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
12329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12330
$as_echo_n "checking for cos in -lm... " >&6; }
12331
if test "${ac_cv_lib_m_cos+set}" = set; then :
12332
$as_echo_n "(cached) " >&6
12334
ac_check_lib_save_LIBS=$LIBS
12336
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337
/* end confdefs.h. */
12339
/* Override any GCC internal prototype to avoid an error.
12340
Use char because int might match the return type of a GCC
12341
builtin and then its argument prototype would still apply. */
12354
if ac_fn_c_try_link "$LINENO"; then :
12355
ac_cv_lib_m_cos=yes
12359
rm -f core conftest.err conftest.$ac_objext \
12360
conftest$ac_exeext conftest.$ac_ext
12361
LIBS=$ac_check_lib_save_LIBS
12363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12364
$as_echo "$ac_cv_lib_m_cos" >&6; }
12365
if test "x$ac_cv_lib_m_cos" = x""yes; then :
12371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12372
$as_echo_n "checking for cos in -lm... " >&6; }
12373
if test "${ac_cv_lib_m_cos+set}" = set; then :
12374
$as_echo_n "(cached) " >&6
12376
ac_check_lib_save_LIBS=$LIBS
12378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379
/* end confdefs.h. */
12381
/* Override any GCC internal prototype to avoid an error.
12382
Use char because int might match the return type of a GCC
12383
builtin and then its argument prototype would still apply. */
12396
if ac_fn_c_try_link "$LINENO"; then :
12397
ac_cv_lib_m_cos=yes
12401
rm -f core conftest.err conftest.$ac_objext \
12402
conftest$ac_exeext conftest.$ac_ext
12403
LIBS=$ac_check_lib_save_LIBS
12405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12406
$as_echo "$ac_cv_lib_m_cos" >&6; }
12407
if test "x$ac_cv_lib_m_cos" = x""yes; then :
12424
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12425
if test -n "$ac_tool_prefix"; then
12426
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12427
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429
$as_echo_n "checking for $ac_word... " >&6; }
12430
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12431
$as_echo_n "(cached) " >&6
12433
case $PKG_CONFIG in
12435
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439
for as_dir in $PATH
12442
test -z "$as_dir" && as_dir=.
12443
for ac_exec_ext in '' $ac_executable_extensions; do
12444
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12446
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457
if test -n "$PKG_CONFIG"; then
12458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12459
$as_echo "$PKG_CONFIG" >&6; }
12461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462
$as_echo "no" >&6; }
12467
if test -z "$ac_cv_path_PKG_CONFIG"; then
12468
ac_pt_PKG_CONFIG=$PKG_CONFIG
12469
# Extract the first word of "pkg-config", so it can be a program name with args.
12470
set dummy pkg-config; ac_word=$2
12471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472
$as_echo_n "checking for $ac_word... " >&6; }
12473
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12474
$as_echo_n "(cached) " >&6
12476
case $ac_pt_PKG_CONFIG in
12478
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482
for as_dir in $PATH
12485
test -z "$as_dir" && as_dir=.
12486
for ac_exec_ext in '' $ac_executable_extensions; do
12487
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12489
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12500
if test -n "$ac_pt_PKG_CONFIG"; then
12501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12502
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505
$as_echo "no" >&6; }
12508
if test "x$ac_pt_PKG_CONFIG" = x; then
12511
case $cross_compiling:$ac_tool_warned in
12513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515
ac_tool_warned=yes ;;
12517
PKG_CONFIG=$ac_pt_PKG_CONFIG
12520
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12524
if test -n "$PKG_CONFIG"; then
12525
_pkg_min_version=0.9.0
12526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12527
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12528
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530
$as_echo "yes" >&6; }
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533
$as_echo "no" >&6; }
12537
if test -n $PKG_CONFIG; then
12540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
12541
$as_echo_n "checking for PCRE... " >&6; }
12543
if test -n "$PCRE_CFLAGS"; then
12544
pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
12545
elif test -n "$PKG_CONFIG"; then
12546
if test -n "$PKG_CONFIG" && \
12547
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
12548
($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
12550
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551
test $ac_status = 0; }; then
12552
pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
12559
if test -n "$PCRE_LIBS"; then
12560
pkg_cv_PCRE_LIBS="$PCRE_LIBS"
12561
elif test -n "$PKG_CONFIG"; then
12562
if test -n "$PKG_CONFIG" && \
12563
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
12564
($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
12566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12567
test $ac_status = 0; }; then
12568
pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
12578
if test $pkg_failed = yes; then
12579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580
$as_echo "no" >&6; }
12582
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12583
_pkg_short_errors_supported=yes
12585
_pkg_short_errors_supported=no
12587
if test $_pkg_short_errors_supported = yes; then
12588
PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1`
12590
PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1`
12592
# Put the nasty error message in config.log where it belongs
12593
echo "$PCRE_PKG_ERRORS" >&5
12595
as_fn_error "Package requirements (libpcre) were not met:
12599
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12600
installed software in a non-standard prefix.
12602
Alternatively, you may set the environment variables PCRE_CFLAGS
12603
and PCRE_LIBS to avoid the need to call pkg-config.
12604
See the pkg-config man page for more details." "$LINENO" 5
12605
elif test $pkg_failed = untried; then
12606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607
$as_echo "no" >&6; }
12608
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12609
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12611
is in your PATH or set the PKG_CONFIG environment variable to the full
12612
path to pkg-config.
12614
Alternatively, you may set the environment variables PCRE_CFLAGS
12615
and PCRE_LIBS to avoid the need to call pkg-config.
12616
See the pkg-config man page for more details.
12618
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12619
See \`config.log' for more details." "$LINENO" 5; }
12621
PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
12622
PCRE_LIBS=$pkg_cv_PCRE_LIBS
12623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624
$as_echo "yes" >&6; }
12628
# Extract the first word of "pcre-config", so it can be a program name with args.
12629
set dummy pcre-config; ac_word=$2
12630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631
$as_echo_n "checking for $ac_word... " >&6; }
12632
if test "${ac_cv_prog_PCRE_CONFIG+set}" = set; then :
12633
$as_echo_n "(cached) " >&6
12635
if test -n "$PCRE_CONFIG"; then
12636
ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
12638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639
for as_dir in $PATH
12642
test -z "$as_dir" && as_dir=.
12643
for ac_exec_ext in '' $ac_executable_extensions; do
12644
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12645
ac_cv_prog_PCRE_CONFIG="pcre-config"
12646
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655
PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
12656
if test -n "$PCRE_CONFIG"; then
12657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
12658
$as_echo "$PCRE_CONFIG" >&6; }
12660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661
$as_echo "no" >&6; }
12666
# Check whether --with-pcre-config was given.
12667
if test "${with_pcre_config+set}" = set; then :
12668
withval=$with_pcre_config; pcre_config="$withval"
12674
if test "x$pcre_config" != "x" ; then
12675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pcre_config" >&5
12676
$as_echo_n "checking for $pcre_config... " >&6; }
12678
if test -f $pcre_config ; then
12679
PCRE_CONFIG=$pcre_config
12680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681
$as_echo "yes" >&6; }
12683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - searching PATH" >&5
12684
$as_echo "no - searching PATH" >&6; }
12687
if test "x$PCRE_CONFIG" = "x"; then
12688
for ac_prog in pcre-config
12690
# Extract the first word of "$ac_prog", so it can be a program name with args.
12691
set dummy $ac_prog; ac_word=$2
12692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693
$as_echo_n "checking for $ac_word... " >&6; }
12694
if test "${ac_cv_prog_PCRE_CONFIG+set}" = set; then :
12695
$as_echo_n "(cached) " >&6
12697
if test -n "$PCRE_CONFIG"; then
12698
ac_cv_prog_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test.
12700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701
for as_dir in $PATH
12704
test -z "$as_dir" && as_dir=.
12705
for ac_exec_ext in '' $ac_executable_extensions; do
12706
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707
ac_cv_prog_PCRE_CONFIG="$ac_prog"
12708
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717
PCRE_CONFIG=$ac_cv_prog_PCRE_CONFIG
12718
if test -n "$PCRE_CONFIG"; then
12719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
12720
$as_echo "$PCRE_CONFIG" >&6; }
12722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723
$as_echo "no" >&6; }
12727
test -n "$PCRE_CONFIG" && break
12731
PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
12732
PCRE_LIBS=`$PCRE_CONFIG --libs`
12738
# Checks for header files.
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12740
$as_echo_n "checking for ANSI C header files... " >&6; }
12741
if test "${ac_cv_header_stdc+set}" = set; then :
12742
$as_echo_n "(cached) " >&6
12744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745
/* end confdefs.h. */
12746
#include <stdlib.h>
12747
#include <stdarg.h>
12748
#include <string.h>
12759
if ac_fn_c_try_compile "$LINENO"; then :
12760
ac_cv_header_stdc=yes
12762
ac_cv_header_stdc=no
12764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766
if test $ac_cv_header_stdc = yes; then
12767
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769
/* end confdefs.h. */
12770
#include <string.h>
12773
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774
$EGREP "memchr" >/dev/null 2>&1; then :
12777
ac_cv_header_stdc=no
12783
if test $ac_cv_header_stdc = yes; then
12784
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786
/* end confdefs.h. */
12787
#include <stdlib.h>
12790
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12791
$EGREP "free" >/dev/null 2>&1; then :
12794
ac_cv_header_stdc=no
12800
if test $ac_cv_header_stdc = yes; then
12801
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12802
if test "$cross_compiling" = yes; then :
12805
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806
/* end confdefs.h. */
12808
#include <stdlib.h>
12809
#if ((' ' & 0x0FF) == 0x020)
12810
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12811
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12813
# define ISLOWER(c) \
12814
(('a' <= (c) && (c) <= 'i') \
12815
|| ('j' <= (c) && (c) <= 'r') \
12816
|| ('s' <= (c) && (c) <= 'z'))
12817
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12820
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12825
for (i = 0; i < 256; i++)
12826
if (XOR (islower (i), ISLOWER (i))
12827
|| toupper (i) != TOUPPER (i))
12832
if ac_fn_c_try_run "$LINENO"; then :
12835
ac_cv_header_stdc=no
12837
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12838
conftest.$ac_objext conftest.beam conftest.$ac_ext
12843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12844
$as_echo "$ac_cv_header_stdc" >&6; }
12845
if test $ac_cv_header_stdc = yes; then
12847
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12852
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12853
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12854
$as_echo_n "(cached) " >&6
12856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857
/* end confdefs.h. */
12858
#include <sys/types.h>
12859
#include <sys/wait.h>
12860
#ifndef WEXITSTATUS
12861
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12864
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12872
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12877
if ac_fn_c_try_compile "$LINENO"; then :
12878
ac_cv_header_sys_wait_h=yes
12880
ac_cv_header_sys_wait_h=no
12882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12885
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12886
if test $ac_cv_header_sys_wait_h = yes; then
12888
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12893
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12894
if test "${ac_cv_header_time+set}" = set; then :
12895
$as_echo_n "(cached) " >&6
12897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898
/* end confdefs.h. */
12899
#include <sys/types.h>
12900
#include <sys/time.h>
12906
if ((struct tm *) 0)
12912
if ac_fn_c_try_compile "$LINENO"; then :
12913
ac_cv_header_time=yes
12915
ac_cv_header_time=no
12917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12920
$as_echo "$ac_cv_header_time" >&6; }
12921
if test $ac_cv_header_time = yes; then
12923
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12927
for ac_header in sys/param.h
12929
ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12930
if test "x$ac_cv_header_sys_param_h" = x""yes; then :
12931
cat >>confdefs.h <<_ACEOF
12932
#define HAVE_SYS_PARAM_H 1
12939
for ac_header in sys/types.h
12941
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12942
if test "x$ac_cv_header_sys_types_h" = x""yes; then :
12943
cat >>confdefs.h <<_ACEOF
12944
#define HAVE_SYS_TYPES_H 1
12951
for ac_header in sys/endian.h
12953
ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12954
if test "x$ac_cv_header_sys_endian_h" = x""yes; then :
12955
cat >>confdefs.h <<_ACEOF
12956
#define HAVE_SYS_ENDIAN_H 1
12963
for ac_header in sys/filio.h
12965
ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
12966
if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
12967
cat >>confdefs.h <<_ACEOF
12968
#define HAVE_SYS_FILIO_H 1
12975
for ac_header in sys/mount.h
12977
ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
12979
if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
12980
cat >>confdefs.h <<_ACEOF
12981
#define HAVE_SYS_MOUNT_H 1
12988
for ac_header in sys/socket.h
12990
ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12991
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
12992
cat >>confdefs.h <<_ACEOF
12993
#define HAVE_SYS_SOCKET_H 1
13000
for ac_header in sys/statvfs.h
13002
ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
13003
if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
13004
cat >>confdefs.h <<_ACEOF
13005
#define HAVE_SYS_STATVFS_H 1
13012
for ac_header in sys/vfs.h
13014
ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
13015
if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
13016
cat >>confdefs.h <<_ACEOF
13017
#define HAVE_SYS_VFS_H 1
13024
for ac_header in endian.h
13026
ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13027
if test "x$ac_cv_header_endian_h" = x""yes; then :
13028
cat >>confdefs.h <<_ACEOF
13029
#define HAVE_ENDIAN_H 1
13036
for ac_header in execinfo.h
13038
ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
13039
if test "x$ac_cv_header_execinfo_h" = x""yes; then :
13040
cat >>confdefs.h <<_ACEOF
13041
#define HAVE_EXECINFO_H 1
13048
for ac_header in netinet/in.h
13050
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13051
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13052
cat >>confdefs.h <<_ACEOF
13053
#define HAVE_NETINET_IN_H 1
13060
for ac_header in pthread_np.h
13062
ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
13063
if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
13064
cat >>confdefs.h <<_ACEOF
13065
#define HAVE_PTHREAD_NP_H 1
13072
for ac_header in stddef.h
13074
ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13075
if test "x$ac_cv_header_stddef_h" = x""yes; then :
13076
cat >>confdefs.h <<_ACEOF
13077
#define HAVE_STDDEF_H 1
13084
for ac_header in stdlib.h
13086
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13087
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
13088
cat >>confdefs.h <<_ACEOF
13089
#define HAVE_STDLIB_H 1
13096
for ac_header in unistd.h
13098
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13099
if test "x$ac_cv_header_unistd_h" = x""yes; then :
13100
cat >>confdefs.h <<_ACEOF
13101
#define HAVE_UNISTD_H 1
13108
for ac_header in priv.h
13110
ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
13111
if test "x$ac_cv_header_priv_h" = x""yes; then :
13112
cat >>confdefs.h <<_ACEOF
13113
#define HAVE_PRIV_H 1
13121
# Checks for typedefs, structures, and compiler characteristics.
13122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13123
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13124
if test "${ac_cv_c_const+set}" = set; then :
13125
$as_echo_n "(cached) " >&6
13127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128
/* end confdefs.h. */
13133
/* FIXME: Include the comments suggested by Paul. */
13134
#ifndef __cplusplus
13135
/* Ultrix mips cc rejects this. */
13136
typedef int charset[2];
13138
/* SunOS 4.1.1 cc rejects this. */
13139
char const *const *pcpcc;
13141
/* NEC SVR4.0.2 mips cc rejects this. */
13142
struct point {int x, y;};
13143
static struct point const zero = {0,0};
13144
/* AIX XL C 1.02.0.0 rejects this.
13145
It does not let you subtract one const X* pointer from another in
13146
an arm of an if-expression whose if-part is not a constant
13148
const char *g = "string";
13149
pcpcc = &g + (g ? g-g : 0);
13150
/* HPUX 7.0 cc rejects these. */
13152
ppc = (char**) pcpcc;
13153
pcpcc = (char const *const *) ppc;
13154
{ /* SCO 3.2v4 cc rejects this. */
13156
char const *s = 0 ? (char *) 0 : (char const *) 0;
13161
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13162
int x[] = {25, 17};
13163
const int *foo = &x[0];
13166
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13167
typedef const int *iptr;
13171
{ /* AIX XL C 1.02.0.0 rejects this saying
13172
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13173
struct s { int j; const int *ap[3]; };
13174
struct s *b; b->j = 5;
13176
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13177
const int foo = 10;
13178
if (!foo) return 0;
13180
return !cs[0] && !zero.x;
13187
if ac_fn_c_try_compile "$LINENO"; then :
13192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13195
$as_echo "$ac_cv_c_const" >&6; }
13196
if test $ac_cv_c_const = no; then
13198
$as_echo "#define const /**/" >>confdefs.h
13202
ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
13203
#include <sys/types.h>
13204
#ifdef HAVE_SYS_SOCKET_H
13205
#include <sys/socket.h>
13209
if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13211
cat >>confdefs.h <<_ACEOF
13212
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13219
# Checks for library functions.
13220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13221
$as_echo_n "checking return type of signal handlers... " >&6; }
13222
if test "${ac_cv_type_signal+set}" = set; then :
13223
$as_echo_n "(cached) " >&6
13225
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226
/* end confdefs.h. */
13227
#include <sys/types.h>
13228
#include <signal.h>
13233
return *(signal (0, 0)) (0) == 1;
13238
if ac_fn_c_try_compile "$LINENO"; then :
13239
ac_cv_type_signal=int
13241
ac_cv_type_signal=void
13243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13246
$as_echo "$ac_cv_type_signal" >&6; }
13248
cat >>confdefs.h <<_ACEOF
13249
#define RETSIGTYPE $ac_cv_type_signal
13253
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13254
if test "x$ac_cv_type_size_t" = x""yes; then :
13258
cat >>confdefs.h <<_ACEOF
13259
#define size_t unsigned int
13264
for ac_func in vprintf
13266
ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13267
if test "x$ac_cv_func_vprintf" = x""yes; then :
13268
cat >>confdefs.h <<_ACEOF
13269
#define HAVE_VPRINTF 1
13272
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13273
if test "x$ac_cv_func__doprnt" = x""yes; then :
13275
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13283
for ac_func in strerror
13285
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13286
if test "x$ac_cv_func_strerror" = x""yes; then :
13287
cat >>confdefs.h <<_ACEOF
13288
#define HAVE_STRERROR 1
13294
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13295
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
13301
cat >>confdefs.h <<_ACEOF
13302
#define HAVE_DECL_STRERROR_R $ac_have_decl
13305
for ac_func in strerror_r
13307
ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13308
if test "x$ac_cv_func_strerror_r" = x""yes; then :
13309
cat >>confdefs.h <<_ACEOF
13310
#define HAVE_STRERROR_R 1
13316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13317
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
13318
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
13319
$as_echo_n "(cached) " >&6
13322
ac_cv_func_strerror_r_char_p=no
13323
if test $ac_cv_have_decl_strerror_r = yes; then
13324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325
/* end confdefs.h. */
13326
$ac_includes_default
13332
char x = *strerror_r (0, buf, sizeof buf);
13333
char *p = strerror_r (0, buf, sizeof buf);
13340
if ac_fn_c_try_compile "$LINENO"; then :
13341
ac_cv_func_strerror_r_char_p=yes
13343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345
# strerror_r is not declared. Choose between
13346
# systems that have relatively inaccessible declarations for the
13347
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
13348
# former has a strerror_r that returns char*, while the latter
13349
# has a strerror_r that returns `int'.
13350
# This test should segfault on the DEC system.
13351
if test "$cross_compiling" = yes; then :
13354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355
/* end confdefs.h. */
13356
$ac_includes_default
13357
extern char *strerror_r ();
13362
char x = *strerror_r (0, buf, sizeof buf);
13363
return ! isalpha (x);
13368
if ac_fn_c_try_run "$LINENO"; then :
13369
ac_cv_func_strerror_r_char_p=yes
13371
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13372
conftest.$ac_objext conftest.beam conftest.$ac_ext
13378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13379
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13380
if test $ac_cv_func_strerror_r_char_p = yes; then
13382
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13386
for ac_func in dladdr
13388
ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13389
if test "x$ac_cv_func_dladdr" = x""yes; then :
13390
cat >>confdefs.h <<_ACEOF
13391
#define HAVE_DLADDR 1
13397
for ac_func in socket
13399
ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13400
if test "x$ac_cv_func_socket" = x""yes; then :
13401
cat >>confdefs.h <<_ACEOF
13402
#define HAVE_SOCKET 1
13408
for ac_func in strptime
13410
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13411
if test "x$ac_cv_func_strptime" = x""yes; then :
13412
cat >>confdefs.h <<_ACEOF
13413
#define HAVE_STRPTIME 1
13419
for ac_func in fmtcheck
13421
ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
13422
if test "x$ac_cv_func_fmtcheck" = x""yes; then :
13423
cat >>confdefs.h <<_ACEOF
13424
#define HAVE_FMTCHECK 1
13430
for ac_func in getdtablesize
13432
ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13433
if test "x$ac_cv_func_getdtablesize" = x""yes; then :
13434
cat >>confdefs.h <<_ACEOF
13435
#define HAVE_GETDTABLESIZE 1
13441
for ac_func in abort2
13443
ac_fn_c_check_func "$LINENO" "abort2" "ac_cv_func_abort2"
13444
if test "x$ac_cv_func_abort2" = x""yes; then :
13445
cat >>confdefs.h <<_ACEOF
13446
#define HAVE_ABORT2 1
13452
for ac_func in timegm
13454
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
13455
if test "x$ac_cv_func_timegm" = x""yes; then :
13456
cat >>confdefs.h <<_ACEOF
13457
#define HAVE_TIMEGM 1
13463
for ac_func in nanosleep
13465
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13466
if test "x$ac_cv_func_nanosleep" = x""yes; then :
13467
cat >>confdefs.h <<_ACEOF
13468
#define HAVE_NANOSLEEP 1
13474
for ac_func in setppriv
13476
ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
13477
if test "x$ac_cv_func_setppriv" = x""yes; then :
13478
cat >>confdefs.h <<_ACEOF
13479
#define HAVE_SETPPRIV 1
13486
save_LIBS="${LIBS}"
13487
LIBS="${PTHREAD_LIBS}"
13488
for ac_func in pthread_set_name_np
13490
ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
13491
if test "x$ac_cv_func_pthread_set_name_np" = x""yes; then :
13492
cat >>confdefs.h <<_ACEOF
13493
#define HAVE_PTHREAD_SET_NAME_NP 1
13499
for ac_func in pthread_mutex_isowned_np
13501
ac_fn_c_check_func "$LINENO" "pthread_mutex_isowned_np" "ac_cv_func_pthread_mutex_isowned_np"
13502
if test "x$ac_cv_func_pthread_mutex_isowned_np" = x""yes; then :
13503
cat >>confdefs.h <<_ACEOF
13504
#define HAVE_PTHREAD_MUTEX_ISOWNED_NP 1
13510
LIBS="${save_LIBS}"
13512
# sendfile is tricky: there are multiple versions, and most of them
13516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sendfile works" >&5
13517
$as_echo_n "checking whether sendfile works... " >&6; }
13518
if test "${ac_cv_so_sendfile_works+set}" = set; then :
13519
$as_echo_n "(cached) " >&6
13521
if test "$cross_compiling" = yes; then :
13522
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13523
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13524
as_fn_error "cannot run test program while cross compiling
13525
See \`config.log' for more details." "$LINENO" 5; }
13527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528
/* end confdefs.h. */
13530
#include <sys/types.h>
13531
#include <sys/socket.h>
13532
#include <sys/uio.h>
13538
return (SF_SYNC == 0);
13544
if ac_fn_c_try_run "$LINENO"; then :
13545
ac_cv_so_sendfile_works=yes
13547
ac_cv_so_sendfile_works=no
13549
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13550
conftest.$ac_objext conftest.beam conftest.$ac_ext
13555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_sendfile_works" >&5
13556
$as_echo "$ac_cv_so_sendfile_works" >&6; }
13559
# save_LIBS="${LIBS}"
13560
# LIBS="${NET_LIBS}"
13561
# AC_CHECK_LIB(sendfile, sendfile)
13562
# AC_CHECK_FUNCS([sendfile])
13563
# AC_CHECK_FUNCS([sendfilev])
13564
# NET_LIBS="${LIBS}"
13565
# LIBS="${save_LIBS}"
13567
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: won't look for sendfile() on $target" >&5
13568
$as_echo "$as_me: WARNING: won't look for sendfile() on $target" >&2;}
13571
if test "$ac_cv_so_sendfile_works" = yes; then
13573
$as_echo "#define SENDFILE_WORKS 1" >>confdefs.h
13577
# Userland slab allocator, available only on Solaris
13580
for ac_header in umem.h
13582
ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
13583
if test "x$ac_cv_header_umem_h" = x""yes; then :
13584
cat >>confdefs.h <<_ACEOF
13585
#define HAVE_UMEM_H 1
13592
if test "$ac_cv_have_umem_h" = yes; then
13593
save_LIBS="${LIBS}"
13595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
13596
$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
13597
if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
13598
$as_echo_n "(cached) " >&6
13600
ac_check_lib_save_LIBS=$LIBS
13601
LIBS="-lumem $LIBS"
13602
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603
/* end confdefs.h. */
13605
/* Override any GCC internal prototype to avoid an error.
13606
Use char because int might match the return type of a GCC
13607
builtin and then its argument prototype would still apply. */
13611
char umem_alloc ();
13615
return umem_alloc ();
13620
if ac_fn_c_try_link "$LINENO"; then :
13621
ac_cv_lib_umem_umem_alloc=yes
13623
ac_cv_lib_umem_umem_alloc=no
13625
rm -f core conftest.err conftest.$ac_objext \
13626
conftest$ac_exeext conftest.$ac_ext
13627
LIBS=$ac_check_lib_save_LIBS
13629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13630
$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
13631
if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
13632
cat >>confdefs.h <<_ACEOF
13633
#define HAVE_LIBUMEM 1
13636
LIBS="-lumem $LIBS"
13641
LIBS="${save_LIBS}"
13647
# These functions are provided by libcompat on platforms where they
13648
# are not available
13649
for ac_func in setproctitle
13651
ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
13652
if test "x$ac_cv_func_setproctitle" = x""yes; then :
13653
cat >>confdefs.h <<_ACEOF
13654
#define HAVE_SETPROCTITLE 1
13660
for ac_func in srandomdev
13662
ac_fn_c_check_func "$LINENO" "srandomdev" "ac_cv_func_srandomdev"
13663
if test "x$ac_cv_func_srandomdev" = x""yes; then :
13664
cat >>confdefs.h <<_ACEOF
13665
#define HAVE_SRANDOMDEV 1
13671
for ac_func in strlcat strlcpy
13673
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13675
eval as_val=\$$as_ac_var
13676
if test "x$as_val" = x""yes; then :
13677
cat >>confdefs.h <<_ACEOF
13678
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13684
for ac_func in strndup
13686
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13687
if test "x$ac_cv_func_strndup" = x""yes; then :
13688
cat >>confdefs.h <<_ACEOF
13689
#define HAVE_STRNDUP 1
13695
for ac_func in backtrace
13697
ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13698
if test "x$ac_cv_func_backtrace" = x""yes; then :
13699
cat >>confdefs.h <<_ACEOF
13700
#define HAVE_BACKTRACE 1
13706
# white lie - we don't actually test it
13707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether daemon() works" >&5
13708
$as_echo_n "checking whether daemon() works... " >&6; }
13711
# present but not functional
13712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713
$as_echo "no" >&6; }
13714
ac_cv_func_daemon=no
13717
for ac_func in daemon
13719
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13720
if test "x$ac_cv_func_daemon" = x""yes; then :
13721
cat >>confdefs.h <<_ACEOF
13722
#define HAVE_DAEMON 1
13731
# Check whether --enable-largefile was given.
13732
if test "${enable_largefile+set}" = set; then :
13733
enableval=$enable_largefile;
13736
if test "$enable_largefile" != no; then
13738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13739
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13740
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
13741
$as_echo_n "(cached) " >&6
13743
ac_cv_sys_largefile_CC=no
13744
if test "$GCC" != yes; then
13747
# IRIX 6.2 and later do not support large files by default,
13748
# so use the C compiler's -n32 option if that helps.
13749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750
/* end confdefs.h. */
13751
#include <sys/types.h>
13752
/* Check that off_t can represent 2**63 - 1 correctly.
13753
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13754
since some C++ compilers masquerading as C compilers
13755
incorrectly reject 9223372036854775807. */
13756
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13757
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13758
&& LARGE_OFF_T % 2147483647 == 1)
13768
if ac_fn_c_try_compile "$LINENO"; then :
13771
rm -f core conftest.err conftest.$ac_objext
13773
if ac_fn_c_try_compile "$LINENO"; then :
13774
ac_cv_sys_largefile_CC=' -n32'; break
13776
rm -f core conftest.err conftest.$ac_objext
13780
rm -f conftest.$ac_ext
13783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13784
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13785
if test "$ac_cv_sys_largefile_CC" != no; then
13786
CC=$CC$ac_cv_sys_largefile_CC
13789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13790
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13791
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
13792
$as_echo_n "(cached) " >&6
13795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796
/* end confdefs.h. */
13797
#include <sys/types.h>
13798
/* Check that off_t can represent 2**63 - 1 correctly.
13799
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13800
since some C++ compilers masquerading as C compilers
13801
incorrectly reject 9223372036854775807. */
13802
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13803
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13804
&& LARGE_OFF_T % 2147483647 == 1)
13814
if ac_fn_c_try_compile "$LINENO"; then :
13815
ac_cv_sys_file_offset_bits=no; break
13817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819
/* end confdefs.h. */
13820
#define _FILE_OFFSET_BITS 64
13821
#include <sys/types.h>
13822
/* Check that off_t can represent 2**63 - 1 correctly.
13823
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13824
since some C++ compilers masquerading as C compilers
13825
incorrectly reject 9223372036854775807. */
13826
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13827
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13828
&& LARGE_OFF_T % 2147483647 == 1)
13838
if ac_fn_c_try_compile "$LINENO"; then :
13839
ac_cv_sys_file_offset_bits=64; break
13841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842
ac_cv_sys_file_offset_bits=unknown
13846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13847
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13848
case $ac_cv_sys_file_offset_bits in #(
13851
cat >>confdefs.h <<_ACEOF
13852
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13857
if test $ac_cv_sys_file_offset_bits = unknown; then
13858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13859
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13860
if test "${ac_cv_sys_large_files+set}" = set; then :
13861
$as_echo_n "(cached) " >&6
13864
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865
/* end confdefs.h. */
13866
#include <sys/types.h>
13867
/* Check that off_t can represent 2**63 - 1 correctly.
13868
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13869
since some C++ compilers masquerading as C compilers
13870
incorrectly reject 9223372036854775807. */
13871
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13872
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13873
&& LARGE_OFF_T % 2147483647 == 1)
13883
if ac_fn_c_try_compile "$LINENO"; then :
13884
ac_cv_sys_large_files=no; break
13886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888
/* end confdefs.h. */
13889
#define _LARGE_FILES 1
13890
#include <sys/types.h>
13891
/* Check that off_t can represent 2**63 - 1 correctly.
13892
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13893
since some C++ compilers masquerading as C compilers
13894
incorrectly reject 9223372036854775807. */
13895
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13896
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13897
&& LARGE_OFF_T % 2147483647 == 1)
13907
if ac_fn_c_try_compile "$LINENO"; then :
13908
ac_cv_sys_large_files=1; break
13910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911
ac_cv_sys_large_files=unknown
13915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13916
$as_echo "$ac_cv_sys_large_files" >&6; }
13917
case $ac_cv_sys_large_files in #(
13920
cat >>confdefs.h <<_ACEOF
13921
#define _LARGE_FILES $ac_cv_sys_large_files
13930
save_LIBS="${LIBS}"
13931
LIBS="${LIBS} ${RT_LIBS}"
13932
for ac_func in clock_gettime
13934
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13935
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
13936
cat >>confdefs.h <<_ACEOF
13937
#define HAVE_CLOCK_GETTIME 1
13943
for ac_func in gethrtime
13945
ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
13946
if test "x$ac_cv_func_gethrtime" = x""yes; then :
13947
cat >>confdefs.h <<_ACEOF
13948
#define HAVE_GETHRTIME 1
13954
LIBS="${save_LIBS}"
13956
# Check which mechanism to use for the acceptor. We look for kqueue
13957
# only on platforms on which we know that it works, because there are
13958
# platforms where a simple AC_CHECK_FUNCS([kqueue]) would succeed but
13959
# the build would fail. We also allow the user to disable mechanisms
13960
# he doesn't want to use.
13963
# Check whether --enable-kqueue was given.
13964
if test "${enable_kqueue+set}" = set; then :
13965
enableval=$enable_kqueue;
13971
if test "$enable_kqueue" = yes; then
13973
*-*-freebsd* | *-*-darwin9* )
13974
for ac_func in kqueue
13976
ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13977
if test "x$ac_cv_func_kqueue" = x""yes; then :
13978
cat >>confdefs.h <<_ACEOF
13979
#define HAVE_KQUEUE 1
13987
# No other BSD has a sufficiently recent implementation
13988
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: won't look for kqueue() on $target" >&5
13989
$as_echo "$as_me: WARNING: won't look for kqueue() on $target" >&2;}
13990
ac_cv_func_kqueue=no
13994
ac_cv_func_kqueue=no
13998
# Check whether --enable-epoll was given.
13999
if test "${enable_epoll+set}" = set; then :
14000
enableval=$enable_epoll;
14006
if test "$enable_epoll" = yes; then
14007
for ac_func in epoll_ctl
14009
ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14010
if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
14011
cat >>confdefs.h <<_ACEOF
14012
#define HAVE_EPOLL_CTL 1
14019
ac_cv_func_epoll_ctl=no
14023
# Check whether --enable-ports was given.
14024
if test "${enable_ports+set}" = set; then :
14025
enableval=$enable_ports;
14031
if test "$enable_ports" = yes; then
14032
for ac_func in port_create
14034
ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14035
if test "x$ac_cv_func_port_create" = x""yes; then :
14036
cat >>confdefs.h <<_ACEOF
14037
#define HAVE_PORT_CREATE 1
14044
ac_cv_func_port_create=no
14047
if test x"${MISSING+set}" != xset; then
14048
case $am_aux_dir in
14050
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14052
MISSING="\${SHELL} $am_aux_dir/missing" ;;
14055
# Use eval to expand $SHELL
14056
if eval "$MISSING --run true"; then
14057
am_missing_run="$MISSING --run "
14060
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14061
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14064
for ac_prog in tclsh tclsh8.4 tclsh8.5
14066
# Extract the first word of "$ac_prog", so it can be a program name with args.
14067
set dummy $ac_prog; ac_word=$2
14068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069
$as_echo_n "checking for $ac_word... " >&6; }
14070
if test "${ac_cv_prog_TCLSH+set}" = set; then :
14071
$as_echo_n "(cached) " >&6
14073
if test -n "$TCLSH"; then
14074
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
14076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077
for as_dir in $PATH
14080
test -z "$as_dir" && as_dir=.
14081
for ac_exec_ext in '' $ac_executable_extensions; do
14082
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14083
ac_cv_prog_TCLSH="$ac_prog"
14084
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093
TCLSH=$ac_cv_prog_TCLSH
14094
if test -n "$TCLSH"; then
14095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14096
$as_echo "$TCLSH" >&6; }
14098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099
$as_echo "no" >&6; }
14103
test -n "$TCLSH" && break
14105
test -n "$TCLSH" || TCLSH=":"
14107
if test "$TCLSH" = :; then
14108
TCLSH="${am_missing_run}tclsh"
14111
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
14112
# Varnish will build and run without these, but connections will not
14113
# time out, which may leave Varnish vulnerable to denail-of-service
14114
# attacks which would not be possible on other platforms.
14116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_RCVTIMEO works" >&5
14117
$as_echo_n "checking whether SO_RCVTIMEO works... " >&6; }
14118
if test "${ac_cv_so_rcvtimeo_works+set}" = set; then :
14119
$as_echo_n "(cached) " >&6
14121
if test "$cross_compiling" = yes; then :
14122
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124
as_fn_error "cannot run test program while cross compiling
14125
See \`config.log' for more details." "$LINENO" 5; }
14127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128
/* end confdefs.h. */
14130
#include <sys/types.h>
14131
#include <sys/socket.h>
14132
#include <sys/time.h>
14138
int sd = socket(AF_INET, SOCK_STREAM, 0);
14139
struct timeval tv = { 1, 0 };
14140
return !!setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof tv);
14146
if ac_fn_c_try_run "$LINENO"; then :
14147
ac_cv_so_rcvtimeo_works=yes
14149
ac_cv_so_rcvtimeo_works=no
14151
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14152
conftest.$ac_objext conftest.beam conftest.$ac_ext
14157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_rcvtimeo_works" >&5
14158
$as_echo "$ac_cv_so_rcvtimeo_works" >&6; }
14159
if test "$ac_cv_so_rcvtimeo_works" = yes; then
14161
$as_echo "#define SO_RCVTIMEO_WORKS 1" >>confdefs.h
14165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SO_SNDTIMEO works" >&5
14166
$as_echo_n "checking whether SO_SNDTIMEO works... " >&6; }
14167
if test "${ac_cv_so_sndtimeo_works+set}" = set; then :
14168
$as_echo_n "(cached) " >&6
14170
if test "$cross_compiling" = yes; then :
14171
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14172
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14173
as_fn_error "cannot run test program while cross compiling
14174
See \`config.log' for more details." "$LINENO" 5; }
14176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177
/* end confdefs.h. */
14179
#include <sys/types.h>
14180
#include <sys/socket.h>
14181
#include <sys/time.h>
14187
int sd = socket(AF_INET, SOCK_STREAM, 0);
14188
struct timeval tv = { 1, 0 };
14189
return !!setsockopt(sd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof tv);
14195
if ac_fn_c_try_run "$LINENO"; then :
14196
ac_cv_so_sndtimeo_works=yes
14198
ac_cv_so_sndtimeo_works=no
14200
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14201
conftest.$ac_objext conftest.beam conftest.$ac_ext
14206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_so_sndtimeo_works" >&5
14207
$as_echo "$ac_cv_so_sndtimeo_works" >&6; }
14208
if test "$ac_cv_so_sndtimeo_works" = yes; then
14210
$as_echo "#define SO_SNDTIMEO_WORKS 1" >>confdefs.h
14214
if test "$ac_cv_so_rcvtimeo_works" = no ||
14215
test "$ac_cv_so_sndtimeo_works" = no; then
14216
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: connection timeouts will not work" >&5
14217
$as_echo "$as_me: WARNING: connection timeouts will not work" >&2;}
14220
# Run-time directory
14221
VARNISH_STATE_DIR='${localstatedir}/varnish'
14224
# Default configuration directory.
14225
varnishconfdir='${sysconfdir}/varnish'
14227
# Now that we're done using the compiler to look for functions and
14228
# libraries, set CFLAGS to what we want them to be for our own code
14230
# This corresponds to FreeBSD's WARNS level 6
14231
DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
14233
# Additional flags for GCC 4
14234
EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare"
14236
# --enable-developer-warnings
14237
# Check whether --enable-developer-warnings was given.
14238
if test "${enable_developer_warnings+set}" = set; then :
14239
enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
14243
# --enable-debugging-symbols
14244
# Check whether --enable-debugging-symbols was given.
14245
if test "${enable_debugging_symbols+set}" = set; then :
14246
enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
14250
# --enable-diagnostics
14251
# Check whether --enable-diagnostics was given.
14252
if test "${enable_diagnostics+set}" = set; then :
14253
enableval=$enable_diagnostics; CFLAGS="${CFLAGS} -DDIAGNOSTICS"
14257
# --enable-extra-developer-warnings
14258
# Check whether --enable-extra-developer-warnings was given.
14259
if test "${enable_extra_developer_warnings+set}" = set; then :
14260
enableval=$enable_extra_developer_warnings; CFLAGS="${CFLAGS} ${EXTRA_DEVELOPER_CFLAGS}"
14264
# --enable-stack-protector
14265
# Check whether --enable-stack-protector was given.
14266
if test "${enable_stack_protector+set}" = set; then :
14267
enableval=$enable_stack_protector; CFLAGS="${CFLAGS} -fstack-protector-all"
14272
# Check whether --enable-tests was given.
14273
if test "${enable_tests+set}" = set; then :
14274
enableval=$enable_tests;
14277
if test x$enable_tests = xyes; then
14279
ENABLE_TESTS_FALSE='#'
14281
ENABLE_TESTS_TRUE='#'
14282
ENABLE_TESTS_FALSE=
14287
# Check whether --enable-werror was given.
14288
if test "${enable_werror+set}" = set; then :
14289
enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
14293
# Command line for compiling VCL code. I wish there were a simple way
14294
# to figure this out dynamically without introducing a run-time
14295
# dependency on libtool.
14297
if test "$ac_cv_env_VCC_CC_set" = "set"; then
14298
VCC_CC="$ac_cv_env_VCC_CC_value"
14302
VCC_CC="cc -Kpic -G -o %o %s"
14305
VCC_CC="exec cc -dynamiclib -Wl,-undefined,dynamic_lookup -o %o %s"
14308
VCC_CC="exec cc -fpic -shared -Wl,-x -o %o %s"
14313
cat >>confdefs.h <<_ACEOF
14314
#define VCC_CC "$VCC_CC"
14318
# Use jemalloc on Linux
14321
# Check whether --enable-jemalloc was given.
14322
if test "${enable_jemalloc+set}" = set; then :
14323
enableval=$enable_jemalloc; if "x$enableval" = "xyes"; then
14324
JEMALLOC_SUBDIR=libjemalloc
14325
JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'
14330
JEMALLOC_SUBDIR=libjemalloc
14331
JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'
14344
ac_config_files="$ac_config_files Makefile bin/Makefile bin/varnishadm/Makefile bin/varnishd/Makefile bin/varnishlog/Makefile bin/varnishhist/Makefile bin/varnishncsa/Makefile bin/varnishreplay/Makefile bin/varnishstat/Makefile bin/varnishsizes/Makefile bin/varnishtest/Makefile bin/varnishtop/Makefile doc/Makefile etc/Makefile include/Makefile lib/Makefile lib/libvarnish/Makefile lib/libvarnishapi/Makefile lib/libvarnishcompat/Makefile lib/libvcl/Makefile lib/libjemalloc/Makefile man/Makefile redhat/Makefile varnishapi.pc"
14346
cat >confcache <<\_ACEOF
14347
# This file is a shell script that caches the results of configure
14348
# tests run on this system so they can be shared between configure
14349
# scripts and configure runs, see configure's option --config-cache.
14350
# It is not useful on other systems. If it contains results you don't
14351
# want to keep, you may remove or edit it.
14353
# config.status only pays attention to the cache file if you give it
14354
# the --recheck option to rerun configure.
14356
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14357
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14358
# following values.
14362
# The following way of writing the cache mishandles newlines in values,
14363
# but we know of no workaround that is simple, portable, and efficient.
14364
# So, we kill variables containing newlines.
14365
# Ultrix sh set writes to stderr and can't be redirected directly,
14366
# and sets the high bit in the cache file unless we assign to the vars.
14368
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14369
eval ac_val=\$$ac_var
14373
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14374
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14377
_ | IFS | as_nl) ;; #(
14378
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14379
*) { eval $ac_var=; unset $ac_var;} ;;
14385
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14386
*${as_nl}ac_space=\ *)
14387
# `set' does not quote correctly, so add quotes: double-quote
14388
# substitution turns \\\\ into \\, and sed turns \\ into \.
14391
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14394
# `set' quotes correctly as required by POSIX, so do not add quotes.
14395
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14404
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14406
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14408
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14409
if test -w "$cache_file"; then
14410
test "x$cache_file" != "x/dev/null" &&
14411
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14412
$as_echo "$as_me: updating cache $cache_file" >&6;}
14413
cat confcache >$cache_file
14415
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14416
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14421
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14422
# Let make expand exec_prefix.
14423
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14425
DEFS=-DHAVE_CONFIG_H
14429
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14430
# 1. Remove the extension, and $U if already installed.
14431
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14432
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14433
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14434
# will be set to the directory where LIBOBJS objects are built.
14435
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14436
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14438
LIBOBJS=$ac_libobjs
14440
LTLIBOBJS=$ac_ltlibobjs
14443
if test -n "$EXEEXT"; then
14445
am__EXEEXT_FALSE='#'
14447
am__EXEEXT_TRUE='#'
14451
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14452
as_fn_error "conditional \"AMDEP\" was never defined.
14453
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14455
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14456
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14457
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14459
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14460
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14461
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14463
if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
14464
as_fn_error "conditional \"HAVE_XSLTPROC\" was never defined.
14465
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14467
if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
14468
as_fn_error "conditional \"HAVE_CURSES\" was never defined.
14469
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14471
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
14472
as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
14473
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14476
: ${CONFIG_STATUS=./config.status}
14478
ac_clean_files_save=$ac_clean_files
14479
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14480
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14481
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14483
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14485
# Generated by $as_me.
14486
# Run this file to recreate the current configuration.
14487
# Compiler output produced by configure, useful for debugging
14488
# configure, is in config.log if it exists.
14491
ac_cs_recheck=false
14494
SHELL=\${CONFIG_SHELL-$SHELL}
14497
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14498
## -------------------- ##
14499
## M4sh Initialization. ##
14500
## -------------------- ##
14502
# Be more Bourne compatible
14503
DUALCASE=1; export DUALCASE # for MKS sh
14504
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14507
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14508
# is contrary to our usage. Disable this feature.
14509
alias -g '${1+"$@"}'='"$@"'
14510
setopt NO_GLOB_SUBST
14512
case `(set -o) 2>/dev/null` in #(
14524
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14525
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14526
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14527
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14528
# Prefer a ksh shell builtin over an external printf program on Solaris,
14529
# but without wasting forks for bash or zsh.
14530
if test -z "$BASH_VERSION$ZSH_VERSION" \
14531
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14532
as_echo='print -r --'
14533
as_echo_n='print -rn --'
14534
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14535
as_echo='printf %s\n'
14536
as_echo_n='printf %s'
14538
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14539
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14540
as_echo_n='/usr/ucb/echo -n'
14542
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14543
as_echo_n_body='eval
14547
expr "X$arg" : "X\\(.*\\)$as_nl";
14548
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14550
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14552
export as_echo_n_body
14553
as_echo_n='sh -c $as_echo_n_body as_echo'
14555
export as_echo_body
14556
as_echo='sh -c $as_echo_body as_echo'
14559
# The user is always right.
14560
if test "${PATH_SEPARATOR+set}" != set; then
14562
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14563
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14570
# We need space, tab and new line, in precisely that order. Quoting is
14571
# there to prevent editors from complaining about space-tab.
14572
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14573
# splitting by setting IFS to empty value.)
14576
# Find who we are. Look in the path if we contain no directory separator.
14578
*[\\/]* ) as_myself=$0 ;;
14579
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580
for as_dir in $PATH
14583
test -z "$as_dir" && as_dir=.
14584
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14590
# We did not find ourselves, most probably we were run as `sh COMMAND'
14591
# in which case we are not to be found in the path.
14592
if test "x$as_myself" = x; then
14595
if test ! -f "$as_myself"; then
14596
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14600
# Unset variables that we do not need and which cause bugs (e.g. in
14601
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14602
# suppresses any "Segmentation fault" message there. '((' could
14603
# trigger a bug in pdksh 5.2.14.
14604
for as_var in BASH_ENV ENV MAIL MAILPATH
14605
do eval test x\${$as_var+set} = xset \
14606
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14619
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14622
# as_fn_error ERROR [LINENO LOG_FD]
14623
# ---------------------------------
14624
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14625
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14626
# script with status $?, using 1 if that was 0.
14629
as_status=$?; test $as_status -eq 0 && as_status=1
14631
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14632
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14634
$as_echo "$as_me: error: $1" >&2
14635
as_fn_exit $as_status
14639
# as_fn_set_status STATUS
14640
# -----------------------
14641
# Set $? to STATUS, without forking.
14642
as_fn_set_status ()
14645
} # as_fn_set_status
14647
# as_fn_exit STATUS
14648
# -----------------
14649
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14653
as_fn_set_status $1
14659
# Portably unset VAR.
14662
{ eval $1=; unset $1;}
14664
as_unset=as_fn_unset
14665
# as_fn_append VAR VALUE
14666
# ----------------------
14667
# Append the text in VALUE to the end of the definition contained in VAR. Take
14668
# advantage of any shell optimizations that allow amortized linear growth over
14669
# repeated appends, instead of the typical quadratic growth present in naive
14671
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14672
eval 'as_fn_append ()
14683
# as_fn_arith ARG...
14684
# ------------------
14685
# Perform arithmetic evaluation on the ARGs, and store the result in the
14686
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14687
# must be portable across $(()) and expr.
14688
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14689
eval 'as_fn_arith ()
14696
as_val=`expr "$@" || test $? -eq 1`
14701
if expr a : '\(a\)' >/dev/null 2>&1 &&
14702
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14708
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14709
as_basename=basename
14714
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14720
as_me=`$as_basename -- "$0" ||
14721
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14722
X"$0" : 'X\(//\)$' \| \
14723
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14725
sed '/^.*\/\([^/][^/]*\)\/*$/{
14739
# Avoid depending upon Character Ranges.
14740
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14741
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14742
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14743
as_cr_digits='0123456789'
14744
as_cr_alnum=$as_cr_Letters$as_cr_digits
14746
ECHO_C= ECHO_N= ECHO_T=
14747
case `echo -n x` in #(((((
14749
case `echo 'xy\c'` in
14750
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14752
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14759
rm -f conf$$ conf$$.exe conf$$.file
14760
if test -d conf$$.dir; then
14761
rm -f conf$$.dir/conf$$.file
14764
mkdir conf$$.dir 2>/dev/null
14766
if (echo >conf$$.file) 2>/dev/null; then
14767
if ln -s conf$$.file conf$$ 2>/dev/null; then
14769
# ... but there are two gotchas:
14770
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14771
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14772
# In both cases, we have to default to `cp -p'.
14773
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14775
elif ln conf$$.file conf$$ 2>/dev/null; then
14783
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14784
rmdir conf$$.dir 2>/dev/null
14789
# Create "$as_dir" as a directory, including parents if necessary.
14794
-*) as_dir=./$as_dir;;
14796
test -d "$as_dir" || eval $as_mkdir_p || {
14800
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14801
*) as_qdir=$as_dir;;
14803
as_dirs="'$as_qdir' $as_dirs"
14804
as_dir=`$as_dirname -- "$as_dir" ||
14805
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14806
X"$as_dir" : 'X\(//\)[^/]' \| \
14807
X"$as_dir" : 'X\(//\)$' \| \
14808
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14809
$as_echo X"$as_dir" |
14810
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14814
/^X\(\/\/\)[^/].*/{
14827
test -d "$as_dir" && break
14829
test -z "$as_dirs" || eval "mkdir $as_dirs"
14830
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14834
if mkdir -p . 2>/dev/null; then
14835
as_mkdir_p='mkdir -p "$as_dir"'
14837
test -d ./-p && rmdir ./-p
14841
if test -x / >/dev/null 2>&1; then
14842
as_test_x='test -x'
14844
if ls -dL / >/dev/null 2>&1; then
14851
if test -d "$1"; then
14857
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14858
???[sx]*):;;*)false;;esac;fi
14862
as_executable_p=$as_test_x
14864
# Sed expression to map a string onto a valid CPP name.
14865
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14867
# Sed expression to map a string onto a valid variable name.
14868
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14872
## ----------------------------------- ##
14873
## Main body of $CONFIG_STATUS script. ##
14874
## ----------------------------------- ##
14876
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14878
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14879
# Save the log message, to keep $0 and so on meaningful, and to
14880
# report actual input values of CONFIG_FILES etc. instead of their
14881
# values after options handling.
14883
This file was extended by Varnish $as_me 2.1.3, which was
14884
generated by GNU Autoconf 2.65. Invocation command line was
14886
CONFIG_FILES = $CONFIG_FILES
14887
CONFIG_HEADERS = $CONFIG_HEADERS
14888
CONFIG_LINKS = $CONFIG_LINKS
14889
CONFIG_COMMANDS = $CONFIG_COMMANDS
14892
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14897
case $ac_config_files in *"
14898
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14901
case $ac_config_headers in *"
14902
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14906
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14907
# Files that config.status was made for.
14908
config_files="$ac_config_files"
14909
config_headers="$ac_config_headers"
14910
config_commands="$ac_config_commands"
14914
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14916
\`$as_me' instantiates files and other configuration actions
14917
from templates according to the current configuration. Unless the files
14918
and actions are specified as TAGs, all are instantiated by default.
14920
Usage: $0 [OPTION]... [TAG]...
14922
-h, --help print this help, then exit
14923
-V, --version print version number and configuration settings, then exit
14924
--config print configuration, then exit
14925
-q, --quiet, --silent
14926
do not print progress messages
14927
-d, --debug don't remove temporary files
14928
--recheck update $as_me by reconfiguring in the same conditions
14929
--file=FILE[:TEMPLATE]
14930
instantiate the configuration file FILE
14931
--header=FILE[:TEMPLATE]
14932
instantiate the configuration header FILE
14934
Configuration files:
14937
Configuration headers:
14940
Configuration commands:
14943
Report bugs to <varnish-dev@varnish-cache.org>."
14946
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14947
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14949
Varnish config.status 2.1.3
14950
configured by $0, generated by GNU Autoconf 2.65,
14951
with options \\"\$ac_cs_config\\"
14953
Copyright (C) 2009 Free Software Foundation, Inc.
14954
This config.status script is free software; the Free Software Foundation
14955
gives unlimited permission to copy, distribute and modify it."
14962
test -n "\$AWK" || AWK=awk
14965
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966
# The default lists apply if the user does not specify any file.
14972
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14973
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14984
# Handling of the options.
14985
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14987
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14988
$as_echo "$ac_cs_version"; exit ;;
14989
--config | --confi | --conf | --con | --co | --c )
14990
$as_echo "$ac_cs_config"; exit ;;
14991
--debug | --debu | --deb | --de | --d | -d )
14993
--file | --fil | --fi | --f )
14996
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14998
as_fn_append CONFIG_FILES " '$ac_optarg'"
14999
ac_need_defaults=false;;
15000
--header | --heade | --head | --hea )
15003
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15005
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15006
ac_need_defaults=false;;
15008
# Conflict between --help and --header
15009
as_fn_error "ambiguous option: \`$1'
15010
Try \`$0 --help' for more information.";;
15011
--help | --hel | -h )
15012
$as_echo "$ac_cs_usage"; exit ;;
15013
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15014
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15017
# This is an error.
15018
-*) as_fn_error "unrecognized option: \`$1'
15019
Try \`$0 --help' for more information." ;;
15021
*) as_fn_append ac_config_targets " $1"
15022
ac_need_defaults=false ;;
15028
ac_configure_extra_args=
15030
if $ac_cs_silent; then
15032
ac_configure_extra_args="$ac_configure_extra_args --silent"
15036
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037
if \$ac_cs_recheck; then
15038
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15040
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15041
CONFIG_SHELL='$SHELL'
15042
export CONFIG_SHELL
15047
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15052
## Running $as_me. ##
15058
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15062
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15065
# The HP-UX ksh and POSIX shell print the target directory to stdout
15066
# if CDPATH is set.
15067
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15069
sed_quote_subst='$sed_quote_subst'
15070
double_quote_subst='$double_quote_subst'
15071
delay_variable_subst='$delay_variable_subst'
15072
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15073
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15074
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15075
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15076
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15077
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15078
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15079
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15080
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15081
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15082
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15083
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15084
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15085
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15086
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15087
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15088
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15089
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15090
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15091
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15092
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15093
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15094
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15095
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15096
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15097
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15098
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15099
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15100
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15101
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15102
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15103
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15104
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15105
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15106
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15107
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15108
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15109
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15110
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15111
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15112
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15113
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15114
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15115
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15116
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"`'
15117
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"`'
15118
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15119
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15120
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15121
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15122
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15123
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15124
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15125
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15126
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15127
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15128
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15129
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15130
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15131
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15132
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15133
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15134
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15135
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15136
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15137
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15138
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15139
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15140
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15141
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15142
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15143
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15144
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15145
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15146
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15147
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15148
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15149
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15150
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15151
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15152
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15153
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15154
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15155
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15156
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15157
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15158
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15159
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15160
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15161
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15162
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15163
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15164
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15165
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15167
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15168
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15169
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15170
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15171
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15172
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15173
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15174
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15175
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15176
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15177
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15178
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15179
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15180
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15181
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15182
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15183
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15184
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15185
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15186
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15187
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15188
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15189
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15192
LTCFLAGS='$LTCFLAGS'
15193
compiler='$compiler_DEFAULT'
15195
# Quote evaled strings.
15207
deplibs_check_method \
15216
lt_cv_sys_global_symbol_pipe \
15217
lt_cv_sys_global_symbol_to_cdecl \
15218
lt_cv_sys_global_symbol_to_c_name_address \
15219
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15222
lt_prog_compiler_no_builtin_flag \
15223
lt_prog_compiler_wl \
15224
lt_prog_compiler_pic \
15225
lt_prog_compiler_static \
15226
lt_cv_prog_compiler_c_o \
15234
export_dynamic_flag_spec \
15235
whole_archive_flag_spec \
15236
compiler_needs_object \
15238
allow_undefined_flag \
15239
no_undefined_flag \
15240
hardcode_libdir_flag_spec \
15241
hardcode_libdir_flag_spec_ld \
15242
hardcode_libdir_separator \
15247
variables_saved_for_relink \
15249
library_names_spec \
15254
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15255
*[\\\\\\\`\\"\\\$]*)
15256
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15259
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15264
# Double-quote double-evaled strings.
15265
for var in reload_cmds \
15266
old_postinstall_cmds \
15267
old_postuninstall_cmds \
15269
extract_expsyms_cmds \
15270
old_archive_from_new_cmds \
15271
old_archive_from_expsyms_cmds \
15273
archive_expsym_cmds \
15275
module_expsym_cmds \
15276
export_symbols_cmds \
15279
postuninstall_cmds \
15281
sys_lib_search_path_spec \
15282
sys_lib_dlsearch_path_spec; do
15283
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15284
*[\\\\\\\`\\"\\\$]*)
15285
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15288
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15293
# Fix-up fallback echo if it was mangled by the above quoting rules.
15295
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15299
ac_aux_dir='$ac_aux_dir'
15300
xsi_shell='$xsi_shell'
15301
lt_shell_append='$lt_shell_append'
15303
# See if we are running on zsh, and set the options which allow our
15304
# commands through without removal of \ escapes INIT.
15305
if test -n "\${ZSH_VERSION+set}" ; then
15306
setopt NO_GLOB_SUBST
15312
TIMESTAMP='$TIMESTAMP'
15321
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15323
# Handling of arguments.
15324
for ac_config_target in $ac_config_targets
15326
case $ac_config_target in
15327
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15328
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15329
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15330
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15331
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15332
"bin/varnishadm/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishadm/Makefile" ;;
15333
"bin/varnishd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishd/Makefile" ;;
15334
"bin/varnishlog/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishlog/Makefile" ;;
15335
"bin/varnishhist/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishhist/Makefile" ;;
15336
"bin/varnishncsa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishncsa/Makefile" ;;
15337
"bin/varnishreplay/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishreplay/Makefile" ;;
15338
"bin/varnishstat/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishstat/Makefile" ;;
15339
"bin/varnishsizes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishsizes/Makefile" ;;
15340
"bin/varnishtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishtest/Makefile" ;;
15341
"bin/varnishtop/Makefile") CONFIG_FILES="$CONFIG_FILES bin/varnishtop/Makefile" ;;
15342
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15343
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15344
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15345
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15346
"lib/libvarnish/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnish/Makefile" ;;
15347
"lib/libvarnishapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnishapi/Makefile" ;;
15348
"lib/libvarnishcompat/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvarnishcompat/Makefile" ;;
15349
"lib/libvcl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libvcl/Makefile" ;;
15350
"lib/libjemalloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libjemalloc/Makefile" ;;
15351
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15352
"redhat/Makefile") CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
15353
"varnishapi.pc") CONFIG_FILES="$CONFIG_FILES varnishapi.pc" ;;
15355
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15360
# If the user did not use the arguments to specify the items to instantiate,
15361
# then the envvar interface is used. Set only those that are not.
15362
# We use the long form for the default assignment because of an extremely
15363
# bizarre bug on SunOS 4.1.3.
15364
if $ac_need_defaults; then
15365
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15366
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15367
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15370
# Have a temporary directory for convenience. Make it in the build tree
15371
# simply because there is no reason against having it here, and in addition,
15372
# creating and moving files from /tmp can sometimes cause problems.
15373
# Hook for its removal unless debugging.
15374
# Note that there is a small window in which the directory will not be cleaned:
15375
# after its creation but before its name has been assigned to `$tmp'.
15379
trap 'exit_status=$?
15380
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15382
trap 'as_fn_exit 1' 1 2 13 15
15384
# Create a (secure) tmp directory for tmp files.
15387
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15388
test -n "$tmp" && test -d "$tmp"
15391
tmp=./conf$$-$RANDOM
15392
(umask 077 && mkdir "$tmp")
15393
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15395
# Set up the scripts for CONFIG_FILES section.
15396
# No need to generate them if there are no CONFIG_FILES.
15397
# This happens for instance with `./config.status config.h'.
15398
if test -n "$CONFIG_FILES"; then
15401
ac_cr=`echo X | tr X '\015'`
15402
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15403
# But we know of no other shell where ac_cr would be empty at this
15404
# point, so we can use a bashism as a fallback.
15405
if test "x$ac_cr" = x; then
15406
eval ac_cr=\$\'\\r\'
15408
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15409
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15412
ac_cs_awk_cr=$ac_cr
15415
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15420
echo "cat >conf$$subs.awk <<_ACEOF" &&
15421
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15423
} >conf$$subs.sh ||
15424
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15425
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15427
for ac_last_try in false false false false false :; do
15428
. ./conf$$subs.sh ||
15429
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15431
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15432
if test $ac_delim_n = $ac_delim_num; then
15434
elif $ac_last_try; then
15435
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15440
rm -f conf$$subs.sh
15442
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15447
s/^/S["/; s/!.*/"]=/
15457
s/\(.\{148\}\)..*/\1/
15459
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15464
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15471
s/\(.\{148\}\)..*/\1/
15473
s/["\\]/\\&/g; s/^/"/; s/$/"/
15477
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15482
' <conf$$subs.awk | sed '
15487
' >>$CONFIG_STATUS || ac_write_fail=1
15488
rm -f conf$$subs.awk
15489
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15491
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15492
for (key in S) S_is_set[key] = 1
15498
nfields = split(line, field, "@")
15500
len = length(field[1])
15501
for (i = 2; i < nfields; i++) {
15503
keylen = length(key)
15504
if (S_is_set[key]) {
15506
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15507
len += length(value) + length(field[++i])
15518
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15520
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15523
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15524
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15527
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15528
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15529
# trailing colons and then remove the whole line if VPATH becomes empty
15530
# (actually we leave an empty line to preserve line numbers).
15531
if test "x$srcdir" = x.; then
15532
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15533
s/:*\$(srcdir):*/:/
15534
s/:*\${srcdir}:*/:/
15536
s/^\([^=]*=[ ]*\):*/\1/
15542
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543
fi # test -n "$CONFIG_FILES"
15545
# Set up the scripts for CONFIG_HEADERS section.
15546
# No need to generate them if there are no CONFIG_HEADERS.
15547
# This happens for instance with `./config.status Makefile'.
15548
if test -n "$CONFIG_HEADERS"; then
15549
cat >"$tmp/defines.awk" <<\_ACAWK ||
15553
# Transform confdefs.h into an awk script `defines.awk', embedded as
15554
# here-document in config.status, that substitutes the proper values into
15555
# config.h.in to produce config.h.
15557
# Create a delimiter string that does not exist in confdefs.h, to ease
15558
# handling of long lines.
15560
for ac_last_try in false false :; do
15561
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15562
if test -z "$ac_t"; then
15564
elif $ac_last_try; then
15565
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15567
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15571
# For the awk script, D is an array of macro values keyed by name,
15572
# likewise P contains macro parameters if any. Preserve backslash
15573
# newline sequences.
15575
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15577
s/.\{148\}/&'"$ac_delim"'/g
15580
s/^[ ]*#[ ]*define[ ][ ]*/ /
15587
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15589
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15593
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15594
D["\1"]=" \3\\\\\\n"\\/p
15596
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15601
s/.\{148\}/&'"$ac_delim"'/g
15606
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15609
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15611
' <confdefs.h | sed '
15612
s/'"$ac_delim"'/"\\\
15613
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15615
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616
for (key in D) D_is_set[key] = 1
15619
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15621
split(line, arg, " ")
15622
if (arg[1] == "#") {
15626
defundef = substr(arg[1], 2)
15629
split(mac1, mac2, "(") #)
15631
prefix = substr(line, 1, index(line, defundef) - 1)
15632
if (D_is_set[macro]) {
15633
# Preserve the white space surrounding the "#".
15634
print prefix "define", macro P[macro] D[macro]
15637
# Replace #undef with comments. This is necessary, for example,
15638
# in the case of _POSIX_SOURCE, which is predefined and required
15639
# on some systems where configure will not decide to define it.
15640
if (defundef == "undef") {
15641
print "/*", prefix defundef, macro, "*/"
15649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15651
fi # test -n "$CONFIG_HEADERS"
15654
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15659
:[FHLC]) ac_mode=$ac_tag; continue;;
15661
case $ac_mode$ac_tag in
15663
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15664
:[FH]-) ac_tag=-:-;;
15665
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15682
-) ac_f="$tmp/stdin";;
15683
*) # Look for the file first in the build tree, then in the source tree
15684
# (if the path is not absolute). The absolute path cannot be DOS-style,
15685
# because $ac_f cannot contain `:'.
15689
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15691
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15693
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15694
as_fn_append ac_file_inputs " '$ac_f'"
15697
# Let's still pretend it is `configure' which instantiates (i.e., don't
15698
# use $as_me), people would be surprised to read:
15699
# /* config.h. Generated by config.status. */
15700
configure_input='Generated from '`
15701
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15703
if test x"$ac_file" != x-; then
15704
configure_input="$ac_file. $configure_input"
15705
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15706
$as_echo "$as_me: creating $ac_file" >&6;}
15708
# Neutralize special characters interpreted by sed in replacement strings.
15709
case $configure_input in #(
15710
*\&* | *\|* | *\\* )
15711
ac_sed_conf_input=`$as_echo "$configure_input" |
15712
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15713
*) ac_sed_conf_input=$configure_input;;
15717
*:-:* | *:-) cat >"$tmp/stdin" \
15718
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15723
ac_dir=`$as_dirname -- "$ac_file" ||
15724
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15725
X"$ac_file" : 'X\(//\)[^/]' \| \
15726
X"$ac_file" : 'X\(//\)$' \| \
15727
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15728
$as_echo X"$ac_file" |
15729
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15733
/^X\(\/\/\)[^/].*/{
15746
as_dir="$ac_dir"; as_fn_mkdir_p
15750
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15752
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15753
# A ".." for each directory in $ac_dir_suffix.
15754
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15755
case $ac_top_builddir_sub in
15756
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15757
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15760
ac_abs_top_builddir=$ac_pwd
15761
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15762
# for backward compatibility:
15763
ac_top_builddir=$ac_top_build_prefix
15766
.) # We are building in place.
15768
ac_top_srcdir=$ac_top_builddir_sub
15769
ac_abs_top_srcdir=$ac_pwd ;;
15770
[\\/]* | ?:[\\/]* ) # Absolute name.
15771
ac_srcdir=$srcdir$ac_dir_suffix;
15772
ac_top_srcdir=$srcdir
15773
ac_abs_top_srcdir=$srcdir ;;
15774
*) # Relative name.
15775
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15776
ac_top_srcdir=$ac_top_build_prefix$srcdir
15777
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15779
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15789
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15790
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15792
ac_MKDIR_P=$MKDIR_P
15794
[\\/$]* | ?:[\\/]* ) ;;
15795
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15799
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15800
# If the template does not know about datarootdir, expand it.
15801
# FIXME: This hack should be removed a few years after 2.60.
15802
ac_datarootdir_hack=; ac_datarootdir_seen=
15813
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15814
*datarootdir*) ac_datarootdir_seen=yes;;
15815
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15817
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820
ac_datarootdir_hack='
15821
s&@datadir@&$datadir&g
15822
s&@docdir@&$docdir&g
15823
s&@infodir@&$infodir&g
15824
s&@localedir@&$localedir&g
15825
s&@mandir@&$mandir&g
15826
s&\\\${datarootdir}&$datarootdir&g' ;;
15830
# Neutralize VPATH when `$srcdir' = `.'.
15831
# Shell code in configure.ac might set extrasub.
15832
# FIXME: do we really want to maintain this feature?
15833
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15834
ac_sed_extra="$ac_vpsub
15837
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15840
s|@configure_input@|$ac_sed_conf_input|;t t
15841
s&@top_builddir@&$ac_top_builddir_sub&;t t
15842
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15843
s&@srcdir@&$ac_srcdir&;t t
15844
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15845
s&@top_srcdir@&$ac_top_srcdir&;t t
15846
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15847
s&@builddir@&$ac_builddir&;t t
15848
s&@abs_builddir@&$ac_abs_builddir&;t t
15849
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15850
s&@INSTALL@&$ac_INSTALL&;t t
15851
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15852
$ac_datarootdir_hack
15854
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15855
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15857
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15858
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15859
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15860
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15861
which seems to be undefined. Please make sure it is defined." >&5
15862
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15863
which seems to be undefined. Please make sure it is defined." >&2;}
15867
-) cat "$tmp/out" && rm -f "$tmp/out";;
15868
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15870
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15876
if test x"$ac_file" != x-; then
15878
$as_echo "/* $configure_input */" \
15879
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15880
} >"$tmp/config.h" \
15881
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15882
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15883
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15884
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15887
mv "$tmp/config.h" "$ac_file" \
15888
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15891
$as_echo "/* $configure_input */" \
15892
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15893
|| as_fn_error "could not create -" "$LINENO" 5
15895
# Compute "$ac_file"'s index in $config_headers.
15898
for _am_header in $config_headers :; do
15899
case $_am_header in
15900
$_am_arg | $_am_arg:* )
15903
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15906
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15907
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15908
X"$_am_arg" : 'X\(//\)[^/]' \| \
15909
X"$_am_arg" : 'X\(//\)$' \| \
15910
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15911
$as_echo X"$_am_arg" |
15912
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15916
/^X\(\/\/\)[^/].*/{
15928
s/.*/./; q'`/stamp-h$_am_stamp_count
15931
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15932
$as_echo "$as_me: executing $ac_file commands" >&6;}
15937
case $ac_file$ac_mode in
15938
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15939
# Autoconf 2.62 quotes --file arguments for eval, but not when files
15940
# are listed without --file. Let's play safe and only enable the eval
15941
# if we detect the quoting.
15942
case $CONFIG_FILES in
15943
*\'*) eval set x "$CONFIG_FILES" ;;
15944
*) set x $CONFIG_FILES ;;
15949
# Strip MF so we end up with the name of the file.
15950
mf=`echo "$mf" | sed -e 's/:.*$//'`
15951
# Check whether this is an Automake generated Makefile or not.
15952
# We used to match only the files named `Makefile.in', but
15953
# some people rename them; so instead we look at the file content.
15954
# Grep'ing the first line is not enough: some people post-process
15955
# each Makefile.in and add a new line on top of each file to say so.
15956
# Grep'ing the whole file is not good either: AIX grep has a line
15957
# limit of 2048, but all sed's we know have understand at least 4000.
15958
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15959
dirpart=`$as_dirname -- "$mf" ||
15960
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961
X"$mf" : 'X\(//\)[^/]' \| \
15962
X"$mf" : 'X\(//\)$' \| \
15963
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15965
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15969
/^X\(\/\/\)[^/].*/{
15985
# Extract the definition of DEPDIR, am__include, and am__quote
15986
# from the Makefile without running `make'.
15987
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15988
test -z "$DEPDIR" && continue
15989
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15990
test -z "am__include" && continue
15991
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15992
# When using ansi2knr, U may be empty or an underscore; expand it
15993
U=`sed -n 's/^U = //p' < "$mf"`
15994
# Find all dependency output files, they are included files with
15995
# $(DEPDIR) in their names. We invoke sed twice because it is the
15996
# simplest approach to changing $(DEPDIR) to its actual value in the
15998
for file in `sed -n "
15999
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16000
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16001
# Make sure the directory exists.
16002
test -f "$dirpart/$file" && continue
16003
fdir=`$as_dirname -- "$file" ||
16004
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005
X"$file" : 'X\(//\)[^/]' \| \
16006
X"$file" : 'X\(//\)$' \| \
16007
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16008
$as_echo X"$file" |
16009
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16013
/^X\(\/\/\)[^/].*/{
16026
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16027
# echo "creating $dirpart/$file"
16028
echo '# dummy' > "$dirpart/$file"
16035
# See if we are running on zsh, and set the options which allow our
16036
# commands through without removal of \ escapes.
16037
if test -n "${ZSH_VERSION+set}" ; then
16038
setopt NO_GLOB_SUBST
16041
cfgfile="${ofile}T"
16042
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16045
cat <<_LT_EOF >> "$cfgfile"
16048
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16049
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16050
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16051
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16053
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16054
# 2006, 2007, 2008 Free Software Foundation, Inc.
16055
# Written by Gordon Matzigkeit, 1996
16057
# This file is part of GNU Libtool.
16059
# GNU Libtool is free software; you can redistribute it and/or
16060
# modify it under the terms of the GNU General Public License as
16061
# published by the Free Software Foundation; either version 2 of
16062
# the License, or (at your option) any later version.
16064
# As a special exception to the GNU General Public License,
16065
# if you distribute this file as part of a program or library that
16066
# is built using GNU Libtool, you may include this file under the
16067
# same distribution terms that you use for the rest of that program.
16069
# GNU Libtool is distributed in the hope that it will be useful,
16070
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16071
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16072
# GNU General Public License for more details.
16074
# You should have received a copy of the GNU General Public License
16075
# along with GNU Libtool; see the file COPYING. If not, a copy
16076
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16077
# obtained by writing to the Free Software Foundation, Inc.,
16078
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16081
# The names of the tagged configurations supported by this script.
16084
# ### BEGIN LIBTOOL CONFIG
16086
# Which release of libtool.m4 was used?
16087
macro_version=$macro_version
16088
macro_revision=$macro_revision
16090
# Whether or not to build shared libraries.
16091
build_libtool_libs=$enable_shared
16093
# Whether or not to build static libraries.
16094
build_old_libs=$enable_static
16096
# What type of objects to build.
16099
# Whether or not to optimize for fast installation.
16100
fast_install=$enable_fast_install
16103
host_alias=$host_alias
16107
# The build system.
16108
build_alias=$build_alias
16112
# A sed program that does not truncate output.
16115
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16116
Xsed="\$SED -e 1s/^X//"
16118
# A grep program that handles long lines.
16124
# A literal string matcher.
16127
# A BSD- or MS-compatible name lister.
16130
# Whether we need soft or hard links.
16133
# What is the maximum length of a command?
16134
max_cmd_len=$max_cmd_len
16136
# Object file suffix (normally "o").
16139
# Executable file suffix (normally "").
16142
# whether the shell understands "unset".
16145
# turn spaces into newlines.
16148
# turn newlines into spaces.
16151
# How to create reloadable object files.
16152
reload_flag=$lt_reload_flag
16153
reload_cmds=$lt_reload_cmds
16155
# An object symbol dumper.
16156
OBJDUMP=$lt_OBJDUMP
16158
# Method to check whether dependent libraries are shared objects.
16159
deplibs_check_method=$lt_deplibs_check_method
16161
# Command to use when deplibs_check_method == "file_magic".
16162
file_magic_cmd=$lt_file_magic_cmd
16166
AR_FLAGS=$lt_AR_FLAGS
16168
# A symbol stripping program.
16171
# Commands used to install an old-style archive.
16173
old_postinstall_cmds=$lt_old_postinstall_cmds
16174
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16179
# LTCC compiler flags.
16180
LTCFLAGS=$lt_CFLAGS
16182
# Take the output of nm and produce a listing of raw symbols and C names.
16183
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16185
# Transform the output of nm in a proper C declaration.
16186
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16188
# Transform the output of nm in a C name address pair.
16189
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16191
# Transform the output of nm in a C name address pair when lib prefix is needed.
16192
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16194
# The name of the directory that contains temporary libtool files.
16197
# Shell to use when invoking shell scripts.
16200
# An echo program that does not interpret backslashes.
16203
# Used to examine libraries when file_magic_cmd begins with "file".
16204
MAGIC_CMD=$MAGIC_CMD
16206
# Must we lock files when doing compilation?
16207
need_locks=$lt_need_locks
16209
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16210
DSYMUTIL=$lt_DSYMUTIL
16212
# Tool to change global to local symbols on Mac OS X.
16215
# Tool to manipulate fat objects and archives on Mac OS X.
16218
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16221
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16222
OTOOL64=$lt_OTOOL64
16224
# Old archive suffix (normally "a").
16227
# Shared library suffix (normally ".so").
16228
shrext_cmds=$lt_shrext_cmds
16230
# The commands to extract the exported symbol list from a shared archive.
16231
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16233
# Variables whose values should be saved in libtool wrapper scripts and
16234
# restored at link time.
16235
variables_saved_for_relink=$lt_variables_saved_for_relink
16237
# Do we need the "lib" prefix for modules?
16238
need_lib_prefix=$need_lib_prefix
16240
# Do we need a version for libraries?
16241
need_version=$need_version
16243
# Library versioning type.
16244
version_type=$version_type
16246
# Shared library runtime path variable.
16247
runpath_var=$runpath_var
16249
# Shared library path variable.
16250
shlibpath_var=$shlibpath_var
16252
# Is shlibpath searched before the hard-coded library search path?
16253
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16255
# Format of library name prefix.
16256
libname_spec=$lt_libname_spec
16258
# List of archive names. First name is the real one, the rest are links.
16259
# The last name is the one that the linker finds with -lNAME
16260
library_names_spec=$lt_library_names_spec
16262
# The coded name of the library, if different from the real name.
16263
soname_spec=$lt_soname_spec
16265
# Command to use after installation of a shared archive.
16266
postinstall_cmds=$lt_postinstall_cmds
16268
# Command to use after uninstallation of a shared archive.
16269
postuninstall_cmds=$lt_postuninstall_cmds
16271
# Commands used to finish a libtool library installation in a directory.
16272
finish_cmds=$lt_finish_cmds
16274
# As "finish_cmds", except a single script fragment to be evaled but
16276
finish_eval=$lt_finish_eval
16278
# Whether we should hardcode library paths into libraries.
16279
hardcode_into_libs=$hardcode_into_libs
16281
# Compile-time system search path for libraries.
16282
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16284
# Run-time system search path for libraries.
16285
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16287
# Whether dlopen is supported.
16288
dlopen_support=$enable_dlopen
16290
# Whether dlopen of programs is supported.
16291
dlopen_self=$enable_dlopen_self
16293
# Whether dlopen of statically linked programs is supported.
16294
dlopen_self_static=$enable_dlopen_self_static
16296
# Commands to strip libraries.
16297
old_striplib=$lt_old_striplib
16298
striplib=$lt_striplib
16301
# The linker used to build libraries.
16304
# Commands used to build an old-style archive.
16305
old_archive_cmds=$lt_old_archive_cmds
16307
# A language specific compiler.
16310
# Is the compiler the GNU compiler?
16313
# Compiler flag to turn off builtin functions.
16314
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16316
# How to pass a linker flag through the compiler.
16317
wl=$lt_lt_prog_compiler_wl
16319
# Additional compiler flags for building library objects.
16320
pic_flag=$lt_lt_prog_compiler_pic
16322
# Compiler flag to prevent dynamic linking.
16323
link_static_flag=$lt_lt_prog_compiler_static
16325
# Does compiler simultaneously support -c and -o options?
16326
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16328
# Whether or not to add -lc for building shared libraries.
16329
build_libtool_need_lc=$archive_cmds_need_lc
16331
# Whether or not to disallow shared libs when runtime libs are static.
16332
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16334
# Compiler flag to allow reflexive dlopens.
16335
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16337
# Compiler flag to generate shared objects directly from archives.
16338
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16340
# Whether the compiler copes with passing no objects directly.
16341
compiler_needs_object=$lt_compiler_needs_object
16343
# Create an old-style archive from a shared archive.
16344
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16346
# Create a temporary old-style archive to link instead of a shared archive.
16347
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16349
# Commands used to build a shared archive.
16350
archive_cmds=$lt_archive_cmds
16351
archive_expsym_cmds=$lt_archive_expsym_cmds
16353
# Commands used to build a loadable module if different from building
16354
# a shared archive.
16355
module_cmds=$lt_module_cmds
16356
module_expsym_cmds=$lt_module_expsym_cmds
16358
# Whether we are building with GNU ld or not.
16359
with_gnu_ld=$lt_with_gnu_ld
16361
# Flag that allows shared libraries with undefined symbols to be built.
16362
allow_undefined_flag=$lt_allow_undefined_flag
16364
# Flag that enforces no undefined symbols.
16365
no_undefined_flag=$lt_no_undefined_flag
16367
# Flag to hardcode \$libdir into a binary during linking.
16368
# This must work even if \$libdir does not exist
16369
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16371
# If ld is used when linking, flag to hardcode \$libdir into a binary
16372
# during linking. This must work even if \$libdir does not exist.
16373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16375
# Whether we need a single "-rpath" flag with a separated argument.
16376
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16378
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16379
# DIR into the resulting binary.
16380
hardcode_direct=$hardcode_direct
16382
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16383
# DIR into the resulting binary and the resulting library dependency is
16384
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16385
# library is relocated.
16386
hardcode_direct_absolute=$hardcode_direct_absolute
16388
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16389
# into the resulting binary.
16390
hardcode_minus_L=$hardcode_minus_L
16392
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16393
# into the resulting binary.
16394
hardcode_shlibpath_var=$hardcode_shlibpath_var
16396
# Set to "yes" if building a shared library automatically hardcodes DIR
16397
# into the library and all subsequent libraries and executables linked
16399
hardcode_automatic=$hardcode_automatic
16401
# Set to yes if linker adds runtime paths of dependent libraries
16402
# to runtime path list.
16403
inherit_rpath=$inherit_rpath
16405
# Whether libtool must link a program against all its dependency libraries.
16406
link_all_deplibs=$link_all_deplibs
16408
# Fix the shell variable \$srcfile for the compiler.
16409
fix_srcfile_path=$lt_fix_srcfile_path
16411
# Set to "yes" if exported symbols are required.
16412
always_export_symbols=$always_export_symbols
16414
# The commands to list exported symbols.
16415
export_symbols_cmds=$lt_export_symbols_cmds
16417
# Symbols that should not be listed in the preloaded symbols.
16418
exclude_expsyms=$lt_exclude_expsyms
16420
# Symbols that must always be exported.
16421
include_expsyms=$lt_include_expsyms
16423
# Commands necessary for linking programs (against libraries) with templates.
16424
prelink_cmds=$lt_prelink_cmds
16426
# Specify filename containing input files.
16427
file_list_spec=$lt_file_list_spec
16429
# How to hardcode a shared library path into an executable.
16430
hardcode_action=$hardcode_action
16432
# ### END LIBTOOL CONFIG
16438
cat <<\_LT_EOF >> "$cfgfile"
16439
# AIX sometimes has problems with the GCC collect2 program. For some
16440
# reason, if we set the COLLECT_NAMES environment variable, the problems
16441
# vanish in a puff of smoke.
16442
if test "X${COLLECT_NAMES+set}" != Xset; then
16444
export COLLECT_NAMES
16451
ltmain="$ac_aux_dir/ltmain.sh"
16454
# We use sed instead of cat because bash on DJGPP gets confused if
16455
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16456
# text mode, it properly converts lines to CR/LF. This bash problem
16457
# is reportedly fixed, but why not run on old versions too?
16458
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16459
|| (rm -f "$cfgfile"; exit 1)
16463
cat << \_LT_EOF >> "$cfgfile"
16465
# func_dirname file append nondir_replacement
16466
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16467
# otherwise set result to NONDIR_REPLACEMENT.
16471
*/*) func_dirname_result="${1%/*}${2}" ;;
16472
* ) func_dirname_result="${3}" ;;
16476
# func_basename file
16479
func_basename_result="${1##*/}"
16482
# func_dirname_and_basename file append nondir_replacement
16483
# perform func_basename and func_dirname in a single function
16485
# dirname: Compute the dirname of FILE. If nonempty,
16486
# add APPEND to the result, otherwise set result
16487
# to NONDIR_REPLACEMENT.
16488
# value returned in "$func_dirname_result"
16489
# basename: Compute filename of FILE.
16490
# value retuned in "$func_basename_result"
16491
# Implementation must be kept synchronized with func_dirname
16492
# and func_basename. For efficiency, we do not delegate to
16493
# those functions but instead duplicate the functionality here.
16494
func_dirname_and_basename ()
16497
*/*) func_dirname_result="${1%/*}${2}" ;;
16498
* ) func_dirname_result="${3}" ;;
16500
func_basename_result="${1##*/}"
16503
# func_stripname prefix suffix name
16504
# strip PREFIX and SUFFIX off of NAME.
16505
# PREFIX and SUFFIX must not contain globbing or regex special
16506
# characters, hashes, percent signs, but SUFFIX may contain a leading
16507
# dot (in which case that matches only a dot).
16510
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16511
# positional parameters, so assign one to ordinary parameter first.
16512
func_stripname_result=${3}
16513
func_stripname_result=${func_stripname_result#"${1}"}
16514
func_stripname_result=${func_stripname_result%"${2}"}
16520
func_opt_split_opt=${1%%=*}
16521
func_opt_split_arg=${1#*=}
16528
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16529
*) func_lo2o_result=${1} ;;
16533
# func_xform libobj-or-source
16536
func_xform_result=${1%.*}.lo
16539
# func_arith arithmetic-term...
16542
func_arith_result=$(( $* ))
16546
# STRING may not start with a hyphen.
16549
func_len_result=${#1}
16554
*) # Bourne compatible functions.
16555
cat << \_LT_EOF >> "$cfgfile"
16557
# func_dirname file append nondir_replacement
16558
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16559
# otherwise set result to NONDIR_REPLACEMENT.
16562
# Extract subdirectory from the argument.
16563
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16564
if test "X$func_dirname_result" = "X${1}"; then
16565
func_dirname_result="${3}"
16567
func_dirname_result="$func_dirname_result${2}"
16571
# func_basename file
16574
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16578
# func_stripname prefix suffix name
16579
# strip PREFIX and SUFFIX off of NAME.
16580
# PREFIX and SUFFIX must not contain globbing or regex special
16581
# characters, hashes, percent signs, but SUFFIX may contain a leading
16582
# dot (in which case that matches only a dot).
16583
# func_strip_suffix prefix name
16587
.*) func_stripname_result=`$ECHO "X${3}" \
16588
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16589
*) func_stripname_result=`$ECHO "X${3}" \
16590
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16595
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16596
my_sed_long_arg='1s/^-[^=]*=//'
16601
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16602
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16608
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16611
# func_xform libobj-or-source
16614
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16617
# func_arith arithmetic-term...
16620
func_arith_result=`expr "$@"`
16624
# STRING may not start with a hyphen.
16627
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16633
case $lt_shell_append in
16635
cat << \_LT_EOF >> "$cfgfile"
16637
# func_append var value
16638
# Append VALUE to the end of shell variable VAR.
16646
cat << \_LT_EOF >> "$cfgfile"
16648
# func_append var value
16649
# Append VALUE to the end of shell variable VAR.
16660
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16661
|| (rm -f "$cfgfile"; exit 1)
16663
mv -f "$cfgfile" "$ofile" ||
16664
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16675
ac_clean_files=$ac_clean_files_save
16677
test $ac_write_fail = 0 ||
16678
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16681
# configure is writing to config.log, and then calls config.status.
16682
# config.status does its own redirection, appending to config.log.
16683
# Unfortunately, on DOS this fails, as config.log is still kept open
16684
# by configure, so config.status won't be able to write to it; its
16685
# output is simply discarded. So we exec the FD to /dev/null,
16686
# effectively closing config.log, so it can be properly (re)opened and
16687
# appended to by config.status. When coming back to configure, we
16688
# need to make the FD available again.
16689
if test "$no_create" != yes; then
16691
ac_config_status_args=
16692
test "$silent" = yes &&
16693
ac_config_status_args="$ac_config_status_args --quiet"
16695
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16697
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
16698
# would make configure fail if this is the last instruction.
16699
$ac_cs_success || as_fn_exit $?
16701
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16702
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16703
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}