2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for quvi 0.2.0.
5
# Report bugs to <legatvs@gmail.com>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and legatvs@gmail.com
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
703
PACKAGE_TARNAME='quvi'
704
PACKAGE_VERSION='0.2.0'
705
PACKAGE_STRING='quvi 0.2.0'
706
PACKAGE_BUGREPORT='legatvs@gmail.com'
709
ac_unique_file="lib/quvi.c"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
746
ac_subst_vars='am__EXEEXT_FALSE
759
ENABLE_EXAMPLES_FALSE
789
HAVE_PERL_POD_CHECKER_FALSE
790
HAVE_PERL_POD_CHECKER_TRUE
807
EXTRA_LIBQUVI_LDFLAGS
842
INSTALL_STRIP_PROGRAM
909
program_transform_name
922
enable_option_checking
923
enable_dependency_tracking
940
ac_precious_vars='build_alias
962
# Initialize some variables set by options.
964
ac_init_version=false
965
ac_unrecognized_opts=
967
# The variables have the same names as the options, with
968
# dashes changed to underlines.
976
program_transform_name=s,x,x,
984
# Installation directory options.
985
# These are left unexpanded so users can "make install exec_prefix=/foo"
986
# and all the variables that are supposed to be based on exec_prefix
987
# by default will actually change.
988
# Use braces instead of parens because sh, perl, etc. also accept them.
989
# (The list follows the same order as the GNU Coding Standards.)
990
bindir='${exec_prefix}/bin'
991
sbindir='${exec_prefix}/sbin'
992
libexecdir='${exec_prefix}/libexec'
993
datarootdir='${prefix}/share'
994
datadir='${datarootdir}'
995
sysconfdir='${prefix}/etc'
996
sharedstatedir='${prefix}/com'
997
localstatedir='${prefix}/var'
998
includedir='${prefix}/include'
999
oldincludedir='/usr/include'
1000
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001
infodir='${datarootdir}/info'
1006
libdir='${exec_prefix}/lib'
1007
localedir='${datarootdir}/locale'
1008
mandir='${datarootdir}/man'
1014
# If the previous option needs an argument, assign it.
1015
if test -n "$ac_prev"; then
1016
eval $ac_prev=\$ac_option
1022
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026
# Accept the important Cygnus configure options, so we can diagnose typos.
1028
case $ac_dashdash$ac_option in
1032
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1034
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035
bindir=$ac_optarg ;;
1037
-build | --build | --buil | --bui | --bu)
1038
ac_prev=build_alias ;;
1039
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040
build_alias=$ac_optarg ;;
1042
-cache-file | --cache-file | --cache-fil | --cache-fi \
1043
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044
ac_prev=cache_file ;;
1045
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047
cache_file=$ac_optarg ;;
1049
--config-cache | -C)
1050
cache_file=config.cache ;;
1052
-datadir | --datadir | --datadi | --datad)
1054
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1055
datadir=$ac_optarg ;;
1057
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058
| --dataroo | --dataro | --datar)
1059
ac_prev=datarootdir ;;
1060
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062
datarootdir=$ac_optarg ;;
1064
-disable-* | --disable-*)
1065
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066
# Reject names that are not valid shell variable names.
1067
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068
as_fn_error "invalid feature name: $ac_useropt"
1069
ac_useropt_orig=$ac_useropt
1070
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071
case $ac_user_opts in
1073
"enable_$ac_useropt"
1075
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076
ac_unrecognized_sep=', ';;
1078
eval enable_$ac_useropt=no ;;
1080
-docdir | --docdir | --docdi | --doc | --do)
1082
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083
docdir=$ac_optarg ;;
1085
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088
dvidir=$ac_optarg ;;
1090
-enable-* | --enable-*)
1091
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092
# Reject names that are not valid shell variable names.
1093
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094
as_fn_error "invalid feature name: $ac_useropt"
1095
ac_useropt_orig=$ac_useropt
1096
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097
case $ac_user_opts in
1099
"enable_$ac_useropt"
1101
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102
ac_unrecognized_sep=', ';;
1104
eval enable_$ac_useropt=\$ac_optarg ;;
1106
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108
| --exec | --exe | --ex)
1109
ac_prev=exec_prefix ;;
1110
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112
| --exec=* | --exe=* | --ex=*)
1113
exec_prefix=$ac_optarg ;;
1115
-gas | --gas | --ga | --g)
1116
# Obsolete; use --with-gas.
1119
-help | --help | --hel | --he | -h)
1120
ac_init_help=long ;;
1121
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122
ac_init_help=recursive ;;
1123
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124
ac_init_help=short ;;
1126
-host | --host | --hos | --ho)
1127
ac_prev=host_alias ;;
1128
-host=* | --host=* | --hos=* | --ho=*)
1129
host_alias=$ac_optarg ;;
1131
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135
htmldir=$ac_optarg ;;
1137
-includedir | --includedir | --includedi | --included | --include \
1138
| --includ | --inclu | --incl | --inc)
1139
ac_prev=includedir ;;
1140
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141
| --includ=* | --inclu=* | --incl=* | --inc=*)
1142
includedir=$ac_optarg ;;
1144
-infodir | --infodir | --infodi | --infod | --info | --inf)
1146
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147
infodir=$ac_optarg ;;
1149
-libdir | --libdir | --libdi | --libd)
1151
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1152
libdir=$ac_optarg ;;
1154
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155
| --libexe | --libex | --libe)
1156
ac_prev=libexecdir ;;
1157
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158
| --libexe=* | --libex=* | --libe=*)
1159
libexecdir=$ac_optarg ;;
1161
-localedir | --localedir | --localedi | --localed | --locale)
1162
ac_prev=localedir ;;
1163
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164
localedir=$ac_optarg ;;
1166
-localstatedir | --localstatedir | --localstatedi | --localstated \
1167
| --localstate | --localstat | --localsta | --localst | --locals)
1168
ac_prev=localstatedir ;;
1169
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171
localstatedir=$ac_optarg ;;
1173
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176
mandir=$ac_optarg ;;
1178
-nfp | --nfp | --nf)
1179
# Obsolete; use --without-fp.
1182
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183
| --no-cr | --no-c | -n)
1186
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192
| --oldin | --oldi | --old | --ol | --o)
1193
ac_prev=oldincludedir ;;
1194
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197
oldincludedir=$ac_optarg ;;
1199
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202
prefix=$ac_optarg ;;
1204
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1205
| --program-pre | --program-pr | --program-p)
1206
ac_prev=program_prefix ;;
1207
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1208
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209
program_prefix=$ac_optarg ;;
1211
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1212
| --program-suf | --program-su | --program-s)
1213
ac_prev=program_suffix ;;
1214
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1215
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216
program_suffix=$ac_optarg ;;
1218
-program-transform-name | --program-transform-name \
1219
| --program-transform-nam | --program-transform-na \
1220
| --program-transform-n | --program-transform- \
1221
| --program-transform | --program-transfor \
1222
| --program-transfo | --program-transf \
1223
| --program-trans | --program-tran \
1224
| --progr-tra | --program-tr | --program-t)
1225
ac_prev=program_transform_name ;;
1226
-program-transform-name=* | --program-transform-name=* \
1227
| --program-transform-nam=* | --program-transform-na=* \
1228
| --program-transform-n=* | --program-transform-=* \
1229
| --program-transform=* | --program-transfor=* \
1230
| --program-transfo=* | --program-transf=* \
1231
| --program-trans=* | --program-tran=* \
1232
| --progr-tra=* | --program-tr=* | --program-t=*)
1233
program_transform_name=$ac_optarg ;;
1235
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238
pdfdir=$ac_optarg ;;
1240
-psdir | --psdir | --psdi | --psd | --ps)
1242
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246
| -silent | --silent | --silen | --sile | --sil)
1249
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253
sbindir=$ac_optarg ;;
1255
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1256
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257
| --sharedst | --shareds | --shared | --share | --shar \
1259
ac_prev=sharedstatedir ;;
1260
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264
sharedstatedir=$ac_optarg ;;
1266
-site | --site | --sit)
1268
-site=* | --site=* | --sit=*)
1271
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274
srcdir=$ac_optarg ;;
1276
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277
| --syscon | --sysco | --sysc | --sys | --sy)
1278
ac_prev=sysconfdir ;;
1279
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281
sysconfdir=$ac_optarg ;;
1283
-target | --target | --targe | --targ | --tar | --ta | --t)
1284
ac_prev=target_alias ;;
1285
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286
target_alias=$ac_optarg ;;
1288
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1291
-version | --version | --versio | --versi | --vers | -V)
1292
ac_init_version=: ;;
1295
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296
# Reject names that are not valid shell variable names.
1297
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298
as_fn_error "invalid package name: $ac_useropt"
1299
ac_useropt_orig=$ac_useropt
1300
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301
case $ac_user_opts in
1305
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306
ac_unrecognized_sep=', ';;
1308
eval with_$ac_useropt=\$ac_optarg ;;
1310
-without-* | --without-*)
1311
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312
# Reject names that are not valid shell variable names.
1313
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314
as_fn_error "invalid package name: $ac_useropt"
1315
ac_useropt_orig=$ac_useropt
1316
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317
case $ac_user_opts in
1321
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322
ac_unrecognized_sep=', ';;
1324
eval with_$ac_useropt=no ;;
1327
# Obsolete; use --with-x.
1330
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331
| --x-incl | --x-inc | --x-in | --x-i)
1332
ac_prev=x_includes ;;
1333
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335
x_includes=$ac_optarg ;;
1337
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1338
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339
ac_prev=x_libraries ;;
1340
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342
x_libraries=$ac_optarg ;;
1344
-*) as_fn_error "unrecognized option: \`$ac_option'
1345
Try \`$0 --help' for more information."
1349
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350
# Reject names that are not valid shell variable names.
1351
case $ac_envvar in #(
1352
'' | [0-9]* | *[!_$as_cr_alnum]* )
1353
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1355
eval $ac_envvar=\$ac_optarg
1356
export $ac_envvar ;;
1359
# FIXME: should be removed in autoconf 3.0.
1360
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369
if test -n "$ac_prev"; then
1370
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371
as_fn_error "missing argument to $ac_option"
1374
if test -n "$ac_unrecognized_opts"; then
1375
case $enable_option_checking in
1377
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1378
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382
# Check all directory arguments for consistency.
1383
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384
datadir sysconfdir sharedstatedir localstatedir includedir \
1385
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386
libdir localedir mandir
1388
eval ac_val=\$$ac_var
1389
# Remove trailing slashes.
1392
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393
eval $ac_var=\$ac_val;;
1395
# Be sure to have absolute directory names.
1397
[\\/$]* | ?:[\\/]* ) continue;;
1398
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1403
# There might be people who depend on the old broken behavior: `$host'
1404
# used to hold the argument of --host etc.
1405
# FIXME: To remove some day.
1408
target=$target_alias
1410
# FIXME: To remove some day.
1411
if test "x$host_alias" != x; then
1412
if test "x$build_alias" = x; then
1413
cross_compiling=maybe
1414
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415
If a cross compiler is detected then cross compile mode will be used." >&2
1416
elif test "x$build_alias" != "x$host_alias"; then
1422
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
test "$silent" = yes && exec 6>/dev/null
1427
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428
ac_ls_di=`ls -di .` &&
1429
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430
as_fn_error "working directory cannot be determined"
1431
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432
as_fn_error "pwd does not report name of working directory"
1435
# Find the source files, if location was not specified.
1436
if test -z "$srcdir"; then
1437
ac_srcdir_defaulted=yes
1438
# Try the directory containing this script, then the parent directory.
1439
ac_confdir=`$as_dirname -- "$as_myself" ||
1440
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441
X"$as_myself" : 'X\(//\)[^/]' \| \
1442
X"$as_myself" : 'X\(//\)$' \| \
1443
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444
$as_echo X"$as_myself" |
1445
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463
if test ! -r "$srcdir/$ac_unique_file"; then
1467
ac_srcdir_defaulted=no
1469
if test ! -r "$srcdir/$ac_unique_file"; then
1470
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1473
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1477
# When building in place, set srcdir=.
1478
if test "$ac_abs_confdir" = "$ac_pwd"; then
1481
# Remove unnecessary trailing slashes from srcdir.
1482
# Double slashes in file names in object file debugging info
1483
# mess up M-x gdb in Emacs.
1485
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487
for ac_var in $ac_precious_vars; do
1488
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1489
eval ac_env_${ac_var}_value=\$${ac_var}
1490
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1491
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495
# Report the --help message.
1497
if test "$ac_init_help" = "long"; then
1498
# Omit some internal or obsolete options to make the list less imposing.
1499
# This message is too long to be a string in the A/UX 3.1 sh.
1501
\`configure' configures quvi 0.2.0 to adapt to many kinds of systems.
1503
Usage: $0 [OPTION]... [VAR=VALUE]...
1505
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506
VAR=VALUE. See below for descriptions of some of the useful variables.
1508
Defaults for the options are specified in brackets.
1511
-h, --help display this help and exit
1512
--help=short display options specific to this package
1513
--help=recursive display the short help of all the included packages
1514
-V, --version display version information and exit
1515
-q, --quiet, --silent do not print \`checking...' messages
1516
--cache-file=FILE cache test results in FILE [disabled]
1517
-C, --config-cache alias for \`--cache-file=config.cache'
1518
-n, --no-create do not create output files
1519
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1521
Installation directories:
1522
--prefix=PREFIX install architecture-independent files in PREFIX
1523
[$ac_default_prefix]
1524
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527
By default, \`make install' will install all the files in
1528
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1529
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530
for instance \`--prefix=\$HOME'.
1532
For better control, use the options below.
1534
Fine tuning of the installation directories:
1535
--bindir=DIR user executables [EPREFIX/bin]
1536
--sbindir=DIR system admin executables [EPREFIX/sbin]
1537
--libexecdir=DIR program executables [EPREFIX/libexec]
1538
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1539
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1540
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1541
--libdir=DIR object code libraries [EPREFIX/lib]
1542
--includedir=DIR C header files [PREFIX/include]
1543
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1544
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546
--infodir=DIR info documentation [DATAROOTDIR/info]
1547
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548
--mandir=DIR man documentation [DATAROOTDIR/man]
1549
--docdir=DIR documentation root [DATAROOTDIR/doc/quvi]
1550
--htmldir=DIR html documentation [DOCDIR]
1551
--dvidir=DIR dvi documentation [DOCDIR]
1552
--pdfdir=DIR pdf documentation [DOCDIR]
1553
--psdir=DIR ps documentation [DOCDIR]
1559
--program-prefix=PREFIX prepend PREFIX to installed program names
1560
--program-suffix=SUFFIX append SUFFIX to installed program names
1561
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564
--build=BUILD configure for building on BUILD [guessed]
1565
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1566
--target=TARGET configure for building compilers for TARGET [HOST]
1570
if test -n "$ac_init_help"; then
1571
case $ac_init_help in
1572
short | recursive ) echo "Configuration of quvi 0.2.0:";;
1577
--disable-option-checking ignore unrecognized --enable/--with options
1578
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1579
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1580
--disable-dependency-tracking speeds up one-time build
1581
--enable-dependency-tracking do not reject slow dependency extractors
1582
--enable-shared[=PKGS] build shared libraries [default=yes]
1583
--enable-static[=PKGS] build static libraries [default=yes]
1584
--enable-fast-install[=PKGS]
1585
optimize for fast installation [default=yes]
1586
--disable-libtool-lock avoid locking (might break parallel builds)
1587
--disable-rpath do not hardcode runtime library paths
1588
--enable-silent-rules less verbose build output (undo: `make V=1')
1589
--disable-silent-rules verbose build output (undo: `make V=0')
1590
--enable-quvi build quvi command line tool[default=yes]
1591
--enable-examples build examples [default=no]
1592
--enable-smut build with adult website support [default=no]
1593
--enable-broken build with broken website support [default=no]
1596
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598
--with-pic try to use only PIC/non-PIC objects [default=use
1600
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601
--with-gnu-ld assume the C compiler uses GNU ld default=no
1602
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1603
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1604
--with-man install manual pages [default=yes]
1605
--with-doc install documentation [default=yes]
1607
Some influential environment variables:
1608
CC C compiler command
1609
CFLAGS C compiler flags
1610
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611
nonstandard directory <lib dir>
1612
LIBS libraries to pass to the linker, e.g. -l<library>
1613
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614
you have headers in a nonstandard directory <include dir>
1616
CXX C++ compiler command
1617
CXXFLAGS C++ compiler flags
1618
CXXCPP C++ preprocessor
1619
PKG_CONFIG path to pkg-config utility
1621
C compiler flags for libcurl, overriding pkg-config
1623
linker flags for libcurl, overriding pkg-config
1625
C compiler flags for libpcre, overriding pkg-config
1627
linker flags for libpcre, overriding pkg-config
1629
C compiler flags for liblua, overriding pkg-config
1630
liblua_LIBS linker flags for liblua, overriding pkg-config
1632
Use these variables to override the choices made by `configure' or to help
1633
it to find libraries and programs with nonstandard names/locations.
1635
Report bugs to <legatvs@gmail.com>.
1640
if test "$ac_init_help" = "recursive"; then
1641
# If there are subdirs, report their specific --help.
1642
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643
test -d "$ac_dir" ||
1644
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652
# A ".." for each directory in $ac_dir_suffix.
1653
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654
case $ac_top_builddir_sub in
1655
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659
ac_abs_top_builddir=$ac_pwd
1660
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661
# for backward compatibility:
1662
ac_top_builddir=$ac_top_build_prefix
1665
.) # We are building in place.
1667
ac_top_srcdir=$ac_top_builddir_sub
1668
ac_abs_top_srcdir=$ac_pwd ;;
1669
[\\/]* | ?:[\\/]* ) # Absolute name.
1670
ac_srcdir=$srcdir$ac_dir_suffix;
1671
ac_top_srcdir=$srcdir
1672
ac_abs_top_srcdir=$srcdir ;;
1674
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675
ac_top_srcdir=$ac_top_build_prefix$srcdir
1676
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
cd "$ac_dir" || { ac_status=$?; continue; }
1681
# Check for guested configure.
1682
if test -f "$ac_srcdir/configure.gnu"; then
1684
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685
elif test -f "$ac_srcdir/configure"; then
1687
$SHELL "$ac_srcdir/configure" --help=recursive
1689
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691
cd "$ac_pwd" || { ac_status=$?; break; }
1695
test -n "$ac_init_help" && exit $ac_status
1696
if $ac_init_version; then
1698
quvi configure 0.2.0
1699
generated by GNU Autoconf 2.65
1701
Copyright (C) 2009 Free Software Foundation, Inc.
1702
This configure script is free software; the Free Software Foundation
1703
gives unlimited permission to copy, distribute and modify it.
1708
## ------------------------ ##
1709
## Autoconf initialization. ##
1710
## ------------------------ ##
1712
# ac_fn_c_try_compile LINENO
1713
# --------------------------
1714
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715
ac_fn_c_try_compile ()
1717
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718
rm -f conftest.$ac_objext
1719
if { { ac_try="$ac_compile"
1721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722
*) ac_try_echo=$ac_try;;
1724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725
$as_echo "$ac_try_echo"; } >&5
1726
(eval "$ac_compile") 2>conftest.err
1728
if test -s conftest.err; then
1729
grep -v '^ *+' conftest.err >conftest.er1
1730
cat conftest.er1 >&5
1731
mv -f conftest.er1 conftest.err
1733
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734
test $ac_status = 0; } && {
1735
test -z "$ac_c_werror_flag" ||
1736
test ! -s conftest.err
1737
} && test -s conftest.$ac_objext; then :
1740
$as_echo "$as_me: failed program was:" >&5
1741
sed 's/^/| /' conftest.$ac_ext >&5
1745
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746
as_fn_set_status $ac_retval
1748
} # ac_fn_c_try_compile
1750
# ac_fn_c_try_cpp LINENO
1751
# ----------------------
1752
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756
if { { ac_try="$ac_cpp conftest.$ac_ext"
1758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759
*) ac_try_echo=$ac_try;;
1761
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762
$as_echo "$ac_try_echo"; } >&5
1763
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765
if test -s conftest.err; then
1766
grep -v '^ *+' conftest.err >conftest.er1
1767
cat conftest.er1 >&5
1768
mv -f conftest.er1 conftest.err
1770
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771
test $ac_status = 0; } >/dev/null && {
1772
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773
test ! -s conftest.err
1777
$as_echo "$as_me: failed program was:" >&5
1778
sed 's/^/| /' conftest.$ac_ext >&5
1782
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783
as_fn_set_status $ac_retval
1787
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788
# -------------------------------------------------------
1789
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790
# the include files in INCLUDES and setting the cache variable VAR
1792
ac_fn_c_check_header_mongrel ()
1794
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797
$as_echo_n "checking for $2... " >&6; }
1798
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799
$as_echo_n "(cached) " >&6
1802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803
$as_echo "$ac_res" >&6; }
1805
# Is the header compilable?
1806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807
$as_echo_n "checking $2 usability... " >&6; }
1808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809
/* end confdefs.h. */
1813
if ac_fn_c_try_compile "$LINENO"; then :
1814
ac_header_compiler=yes
1816
ac_header_compiler=no
1818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820
$as_echo "$ac_header_compiler" >&6; }
1822
# Is the header present?
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824
$as_echo_n "checking $2 presence... " >&6; }
1825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826
/* end confdefs.h. */
1829
if ac_fn_c_try_cpp "$LINENO"; then :
1830
ac_header_preproc=yes
1832
ac_header_preproc=no
1834
rm -f conftest.err conftest.$ac_ext
1835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836
$as_echo "$ac_header_preproc" >&6; }
1838
# So? What about this header?
1839
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1850
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1854
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1855
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858
## -------------------------------- ##
1859
## Report this to legatvs@gmail.com ##
1860
## -------------------------------- ##
1862
) | sed "s/^/$as_me: WARNING: /" >&2
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866
$as_echo_n "checking for $2... " >&6; }
1867
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868
$as_echo_n "(cached) " >&6
1870
eval "$3=\$ac_header_compiler"
1873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874
$as_echo "$ac_res" >&6; }
1876
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
} # ac_fn_c_check_header_mongrel
1880
# ac_fn_c_try_run LINENO
1881
# ----------------------
1882
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883
# that executables *can* be run.
1886
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887
if { { ac_try="$ac_link"
1889
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890
*) ac_try_echo=$ac_try;;
1892
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893
$as_echo "$ac_try_echo"; } >&5
1894
(eval "$ac_link") 2>&5
1896
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1898
{ { case "(($ac_try" in
1899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900
*) ac_try_echo=$ac_try;;
1902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903
$as_echo "$ac_try_echo"; } >&5
1904
(eval "$ac_try") 2>&5
1906
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907
test $ac_status = 0; }; }; then :
1910
$as_echo "$as_me: program exited with status $ac_status" >&5
1911
$as_echo "$as_me: failed program was:" >&5
1912
sed 's/^/| /' conftest.$ac_ext >&5
1914
ac_retval=$ac_status
1916
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
as_fn_set_status $ac_retval
1922
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1923
# -------------------------------------------------------
1924
# Tests whether HEADER exists and can be compiled using the include files in
1925
# INCLUDES, setting the cache variable VAR accordingly.
1926
ac_fn_c_check_header_compile ()
1928
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930
$as_echo_n "checking for $2... " >&6; }
1931
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932
$as_echo_n "(cached) " >&6
1934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935
/* end confdefs.h. */
1939
if ac_fn_c_try_compile "$LINENO"; then :
1944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948
$as_echo "$ac_res" >&6; }
1949
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
} # ac_fn_c_check_header_compile
1953
# ac_fn_c_try_link LINENO
1954
# -----------------------
1955
# Try to link conftest.$ac_ext, and return whether this succeeded.
1958
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959
rm -f conftest.$ac_objext conftest$ac_exeext
1960
if { { ac_try="$ac_link"
1962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963
*) ac_try_echo=$ac_try;;
1965
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966
$as_echo "$ac_try_echo"; } >&5
1967
(eval "$ac_link") 2>conftest.err
1969
if test -s conftest.err; then
1970
grep -v '^ *+' conftest.err >conftest.er1
1971
cat conftest.er1 >&5
1972
mv -f conftest.er1 conftest.err
1974
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975
test $ac_status = 0; } && {
1976
test -z "$ac_c_werror_flag" ||
1977
test ! -s conftest.err
1978
} && test -s conftest$ac_exeext && {
1979
test "$cross_compiling" = yes ||
1980
$as_test_x conftest$ac_exeext
1984
$as_echo "$as_me: failed program was:" >&5
1985
sed 's/^/| /' conftest.$ac_ext >&5
1989
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991
# interfere with the next link command; also delete a directory that is
1992
# left behind by Apple's compiler. We do this before executing the actions.
1993
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995
as_fn_set_status $ac_retval
1997
} # ac_fn_c_try_link
1999
# ac_fn_c_check_func LINENO FUNC VAR
2000
# ----------------------------------
2001
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2002
ac_fn_c_check_func ()
2004
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006
$as_echo_n "checking for $2... " >&6; }
2007
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008
$as_echo_n "(cached) " >&6
2010
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011
/* end confdefs.h. */
2012
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2013
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2014
#define $2 innocuous_$2
2016
/* System header to define __stub macros and hopefully few prototypes,
2017
which can conflict with char $2 (); below.
2018
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2019
<limits.h> exists even on freestanding compilers. */
2022
# include <limits.h>
2024
# include <assert.h>
2029
/* Override any GCC internal prototype to avoid an error.
2030
Use char because int might match the return type of a GCC
2031
builtin and then its argument prototype would still apply. */
2036
/* The GNU C library defines this for functions which it implements
2037
to always fail with ENOSYS. Some functions are actually named
2038
something starting with __ and the normal name is an alias. */
2039
#if defined __stub_$2 || defined __stub___$2
2051
if ac_fn_c_try_link "$LINENO"; then :
2056
rm -f core conftest.err conftest.$ac_objext \
2057
conftest$ac_exeext conftest.$ac_ext
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061
$as_echo "$ac_res" >&6; }
2062
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064
} # ac_fn_c_check_func
2066
# ac_fn_cxx_try_compile LINENO
2067
# ----------------------------
2068
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2069
ac_fn_cxx_try_compile ()
2071
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072
rm -f conftest.$ac_objext
2073
if { { ac_try="$ac_compile"
2075
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076
*) ac_try_echo=$ac_try;;
2078
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079
$as_echo "$ac_try_echo"; } >&5
2080
(eval "$ac_compile") 2>conftest.err
2082
if test -s conftest.err; then
2083
grep -v '^ *+' conftest.err >conftest.er1
2084
cat conftest.er1 >&5
2085
mv -f conftest.er1 conftest.err
2087
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088
test $ac_status = 0; } && {
2089
test -z "$ac_cxx_werror_flag" ||
2090
test ! -s conftest.err
2091
} && test -s conftest.$ac_objext; then :
2094
$as_echo "$as_me: failed program was:" >&5
2095
sed 's/^/| /' conftest.$ac_ext >&5
2099
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100
as_fn_set_status $ac_retval
2102
} # ac_fn_cxx_try_compile
2104
# ac_fn_cxx_try_cpp LINENO
2105
# ------------------------
2106
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2107
ac_fn_cxx_try_cpp ()
2109
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110
if { { ac_try="$ac_cpp conftest.$ac_ext"
2112
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113
*) ac_try_echo=$ac_try;;
2115
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116
$as_echo "$ac_try_echo"; } >&5
2117
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2119
if test -s conftest.err; then
2120
grep -v '^ *+' conftest.err >conftest.er1
2121
cat conftest.er1 >&5
2122
mv -f conftest.er1 conftest.err
2124
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125
test $ac_status = 0; } >/dev/null && {
2126
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2127
test ! -s conftest.err
2131
$as_echo "$as_me: failed program was:" >&5
2132
sed 's/^/| /' conftest.$ac_ext >&5
2136
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
as_fn_set_status $ac_retval
2139
} # ac_fn_cxx_try_cpp
2141
# ac_fn_cxx_try_link LINENO
2142
# -------------------------
2143
# Try to link conftest.$ac_ext, and return whether this succeeded.
2144
ac_fn_cxx_try_link ()
2146
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147
rm -f conftest.$ac_objext conftest$ac_exeext
2148
if { { ac_try="$ac_link"
2150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151
*) ac_try_echo=$ac_try;;
2153
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154
$as_echo "$ac_try_echo"; } >&5
2155
(eval "$ac_link") 2>conftest.err
2157
if test -s conftest.err; then
2158
grep -v '^ *+' conftest.err >conftest.er1
2159
cat conftest.er1 >&5
2160
mv -f conftest.er1 conftest.err
2162
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163
test $ac_status = 0; } && {
2164
test -z "$ac_cxx_werror_flag" ||
2165
test ! -s conftest.err
2166
} && test -s conftest$ac_exeext && {
2167
test "$cross_compiling" = yes ||
2168
$as_test_x conftest$ac_exeext
2172
$as_echo "$as_me: failed program was:" >&5
2173
sed 's/^/| /' conftest.$ac_ext >&5
2177
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2178
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2179
# interfere with the next link command; also delete a directory that is
2180
# left behind by Apple's compiler. We do this before executing the actions.
2181
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2182
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
as_fn_set_status $ac_retval
2185
} # ac_fn_cxx_try_link
2187
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2188
# -------------------------------------------
2189
# Tests whether TYPE exists after having included INCLUDES, setting cache
2190
# variable VAR accordingly.
2191
ac_fn_c_check_type ()
2193
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195
$as_echo_n "checking for $2... " >&6; }
2196
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2197
$as_echo_n "(cached) " >&6
2200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201
/* end confdefs.h. */
2212
if ac_fn_c_try_compile "$LINENO"; then :
2213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214
/* end confdefs.h. */
2225
if ac_fn_c_try_compile "$LINENO"; then :
2230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236
$as_echo "$ac_res" >&6; }
2237
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
} # ac_fn_c_check_type
2241
# ac_fn_c_find_uintX_t LINENO BITS VAR
2242
# ------------------------------------
2243
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2245
ac_fn_c_find_uintX_t ()
2247
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2249
$as_echo_n "checking for uint$2_t... " >&6; }
2250
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251
$as_echo_n "(cached) " >&6
2254
# Order is important - never check a type that is potentially smaller
2255
# than half of the expected target width.
2256
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2257
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259
/* end confdefs.h. */
2260
$ac_includes_default
2264
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2271
if ac_fn_c_try_compile "$LINENO"; then :
2276
eval "$3=\$ac_type" ;;
2279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281
if test "x$as_val" = x""no; then :
2289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290
$as_echo "$ac_res" >&6; }
2291
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293
} # ac_fn_c_find_uintX_t
2294
cat >config.log <<_ACEOF
2295
This file contains any messages produced by compilers while
2296
running configure, to aid debugging if configure makes a mistake.
2298
It was created by quvi $as_me 0.2.0, which was
2299
generated by GNU Autoconf 2.65. Invocation command line was
2311
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2317
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2320
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2321
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2322
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2324
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2325
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2326
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334
test -z "$as_dir" && as_dir=.
2335
$as_echo "PATH: $as_dir"
2351
# Keep a trace of the command line.
2352
# Strip out --no-create and --no-recursion so they do not pile up.
2353
# Strip out --silent because we don't want to record it for future runs.
2354
# Also quote any args containing shell meta-characters.
2355
# Make two passes to allow for proper duplicate-argument suppression.
2359
ac_must_keep_next=false
2365
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367
| -silent | --silent | --silen | --sile | --sil)
2370
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2375
as_fn_append ac_configure_args1 " '$ac_arg'"
2376
if test $ac_must_keep_next = true; then
2377
ac_must_keep_next=false # Got value, back to normal.
2380
*=* | --config-cache | -C | -disable-* | --disable-* \
2381
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383
| -with-* | --with-* | -without-* | --without-* | --x)
2384
case "$ac_configure_args0 " in
2385
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388
-* ) ac_must_keep_next=true ;;
2391
as_fn_append ac_configure_args " '$ac_arg'"
2396
{ ac_configure_args0=; unset ac_configure_args0;}
2397
{ ac_configure_args1=; unset ac_configure_args1;}
2399
# When interrupted or exit'd, cleanup temporary files, and complete
2400
# config.log. We remove comments because anyway the quotes in there
2401
# would cause problems or look ugly.
2402
# WARNING: Use '\'' to represent an apostrophe within the trap.
2403
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404
trap 'exit_status=$?
2405
# Save into config.log some information that might help in debugging.
2410
## ---------------- ##
2411
## Cache variables. ##
2412
## ---------------- ##
2415
# The following way of writing the cache mishandles newlines in values,
2417
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418
eval ac_val=\$$ac_var
2422
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426
_ | IFS | as_nl) ;; #(
2427
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428
*) { eval $ac_var=; unset $ac_var;} ;;
2433
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434
*${as_nl}ac_space=\ *)
2436
"s/'\''/'\''\\\\'\'''\''/g;
2437
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448
## ----------------- ##
2449
## Output variables. ##
2450
## ----------------- ##
2453
for ac_var in $ac_subst_vars
2455
eval ac_val=\$$ac_var
2457
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459
$as_echo "$ac_var='\''$ac_val'\''"
2463
if test -n "$ac_subst_files"; then
2465
## ------------------- ##
2466
## File substitutions. ##
2467
## ------------------- ##
2470
for ac_var in $ac_subst_files
2472
eval ac_val=\$$ac_var
2474
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476
$as_echo "$ac_var='\''$ac_val'\''"
2481
if test -s confdefs.h; then
2491
test "$ac_signal" != 0 &&
2492
$as_echo "$as_me: caught signal $ac_signal"
2493
$as_echo "$as_me: exit $exit_status"
2495
rm -f core *.core core.conftest.* &&
2496
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499
for ac_signal in 1 2 13 15; do
2500
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2504
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2505
rm -f -r conftest* confdefs.h
2507
$as_echo "/* confdefs.h */" > confdefs.h
2509
# Predefined preprocessor variables.
2511
cat >>confdefs.h <<_ACEOF
2512
#define PACKAGE_NAME "$PACKAGE_NAME"
2515
cat >>confdefs.h <<_ACEOF
2516
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2519
cat >>confdefs.h <<_ACEOF
2520
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2523
cat >>confdefs.h <<_ACEOF
2524
#define PACKAGE_STRING "$PACKAGE_STRING"
2527
cat >>confdefs.h <<_ACEOF
2528
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2531
cat >>confdefs.h <<_ACEOF
2532
#define PACKAGE_URL "$PACKAGE_URL"
2536
# Let the site file select an alternate cache file if it wants to.
2537
# Prefer an explicitly selected file to automatically selected ones.
2540
if test -n "$CONFIG_SITE"; then
2541
ac_site_file1=$CONFIG_SITE
2542
elif test "x$prefix" != xNONE; then
2543
ac_site_file1=$prefix/share/config.site
2544
ac_site_file2=$prefix/etc/config.site
2546
ac_site_file1=$ac_default_prefix/share/config.site
2547
ac_site_file2=$ac_default_prefix/etc/config.site
2549
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2551
test "x$ac_site_file" = xNONE && continue
2552
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2553
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555
sed 's/^/| /' "$ac_site_file" >&5
2560
if test -r "$cache_file"; then
2561
# Some versions of bash will fail to source /dev/null (special files
2562
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565
$as_echo "$as_me: loading cache $cache_file" >&6;}
2567
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2568
*) . "./$cache_file";;
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573
$as_echo "$as_me: creating cache $cache_file" >&6;}
2577
# Check that the precious variables saved in the cache have kept the same
2579
ac_cache_corrupted=false
2580
for ac_var in $ac_precious_vars; do
2581
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582
eval ac_new_set=\$ac_env_${ac_var}_set
2583
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584
eval ac_new_val=\$ac_env_${ac_var}_value
2585
case $ac_old_set,$ac_new_set in
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589
ac_cache_corrupted=: ;;
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593
ac_cache_corrupted=: ;;
2596
if test "x$ac_old_val" != "x$ac_new_val"; then
2597
# differences in whitespace do not lead to failure.
2598
ac_old_val_w=`echo x $ac_old_val`
2599
ac_new_val_w=`echo x $ac_new_val`
2600
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603
ac_cache_corrupted=:
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607
eval $ac_var=\$ac_old_val
2609
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615
# Pass precious variables to config.status.
2616
if test "$ac_new_set" = set; then
2618
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619
*) ac_arg=$ac_var=$ac_new_val ;;
2621
case " $ac_configure_args " in
2622
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627
if $ac_cache_corrupted; then
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634
## -------------------- ##
2635
## Main body of script. ##
2636
## -------------------- ##
2639
ac_cpp='$CPP $CPPFLAGS'
2640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
ac_config_headers="$ac_config_headers config.h"
2658
for ac_dir in config.aux "$srcdir"/config.aux; do
2659
for ac_t in install-sh install.sh shtool; do
2660
if test -f "$ac_dir/$ac_t"; then
2662
ac_install_sh="$ac_aux_dir/$ac_t -c"
2667
if test -z "$ac_aux_dir"; then
2668
as_fn_error "cannot find install-sh, install.sh, or shtool in config.aux \"$srcdir\"/config.aux" "$LINENO" 5
2671
# These three variables are undocumented and unsupported,
2672
# and are intended to be withdrawn in a future Autoconf release.
2673
# They can cause serious problems if a builder's source tree is in a directory
2674
# whose full name contains unusual characters.
2675
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2676
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2677
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2682
# Make sure we can run config.sub.
2683
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2684
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2687
$as_echo_n "checking build system type... " >&6; }
2688
if test "${ac_cv_build+set}" = set; then :
2689
$as_echo_n "(cached) " >&6
2691
ac_build_alias=$build_alias
2692
test "x$ac_build_alias" = x &&
2693
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2694
test "x$ac_build_alias" = x &&
2695
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2696
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2697
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2701
$as_echo "$ac_cv_build" >&6; }
2702
case $ac_cv_build in
2704
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2707
ac_save_IFS=$IFS; IFS='-'
2713
# Remember, the first character of IFS is used to create $*,
2714
# except with old shells:
2717
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2721
$as_echo_n "checking host system type... " >&6; }
2722
if test "${ac_cv_host+set}" = set; then :
2723
$as_echo_n "(cached) " >&6
2725
if test "x$host_alias" = x; then
2726
ac_cv_host=$ac_cv_build
2728
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2729
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2734
$as_echo "$ac_cv_host" >&6; }
2737
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2740
ac_save_IFS=$IFS; IFS='-'
2746
# Remember, the first character of IFS is used to create $*,
2747
# except with old shells:
2750
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2754
$as_echo_n "checking target system type... " >&6; }
2755
if test "${ac_cv_target+set}" = set; then :
2756
$as_echo_n "(cached) " >&6
2758
if test "x$target_alias" = x; then
2759
ac_cv_target=$ac_cv_host
2761
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2762
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2767
$as_echo "$ac_cv_target" >&6; }
2768
case $ac_cv_target in
2770
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2772
target=$ac_cv_target
2773
ac_save_IFS=$IFS; IFS='-'
2779
# Remember, the first character of IFS is used to create $*,
2780
# except with old shells:
2783
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2786
# The aliases save the names the user supplied, while $host etc.
2787
# will get canonicalized.
2788
test -n "$target_alias" &&
2789
test "$program_prefix$program_suffix$program_transform_name" = \
2791
program_prefix=${target_alias}-
2794
ac_cpp='$CPP $CPPFLAGS'
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
if test -n "$ac_tool_prefix"; then
2799
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802
$as_echo_n "checking for $ac_word... " >&6; }
2803
if test "${ac_cv_prog_CC+set}" = set; then :
2804
$as_echo_n "(cached) " >&6
2806
if test -n "$CC"; then
2807
ac_cv_prog_CC="$CC" # Let the user override the test.
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
test -z "$as_dir" && as_dir=.
2814
for ac_exec_ext in '' $ac_executable_extensions; do
2815
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827
if test -n "$CC"; then
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829
$as_echo "$CC" >&6; }
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832
$as_echo "no" >&6; }
2837
if test -z "$ac_cv_prog_CC"; then
2839
# Extract the first word of "gcc", so it can be a program name with args.
2840
set dummy gcc; ac_word=$2
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842
$as_echo_n "checking for $ac_word... " >&6; }
2843
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2844
$as_echo_n "(cached) " >&6
2846
if test -n "$ac_ct_CC"; then
2847
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
test -z "$as_dir" && as_dir=.
2854
for ac_exec_ext in '' $ac_executable_extensions; do
2855
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856
ac_cv_prog_ac_ct_CC="gcc"
2857
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867
if test -n "$ac_ct_CC"; then
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869
$as_echo "$ac_ct_CC" >&6; }
2871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872
$as_echo "no" >&6; }
2875
if test "x$ac_ct_CC" = x; then
2878
case $cross_compiling:$ac_tool_warned in
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882
ac_tool_warned=yes ;;
2890
if test -z "$CC"; then
2891
if test -n "$ac_tool_prefix"; then
2892
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893
set dummy ${ac_tool_prefix}cc; ac_word=$2
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895
$as_echo_n "checking for $ac_word... " >&6; }
2896
if test "${ac_cv_prog_CC+set}" = set; then :
2897
$as_echo_n "(cached) " >&6
2899
if test -n "$CC"; then
2900
ac_cv_prog_CC="$CC" # Let the user override the test.
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906
test -z "$as_dir" && as_dir=.
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909
ac_cv_prog_CC="${ac_tool_prefix}cc"
2910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920
if test -n "$CC"; then
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922
$as_echo "$CC" >&6; }
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925
$as_echo "no" >&6; }
2931
if test -z "$CC"; then
2932
# Extract the first word of "cc", so it can be a program name with args.
2933
set dummy cc; ac_word=$2
2934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935
$as_echo_n "checking for $ac_word... " >&6; }
2936
if test "${ac_cv_prog_CC+set}" = set; then :
2937
$as_echo_n "(cached) " >&6
2939
if test -n "$CC"; then
2940
ac_cv_prog_CC="$CC" # Let the user override the test.
2943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947
test -z "$as_dir" && as_dir=.
2948
for ac_exec_ext in '' $ac_executable_extensions; do
2949
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951
ac_prog_rejected=yes
2955
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962
if test $ac_prog_rejected = yes; then
2963
# We found a bogon in the path, so make sure we never use it.
2964
set dummy $ac_cv_prog_CC
2966
if test $# != 0; then
2967
# We chose a different compiler from the bogus one.
2968
# However, it has the same basename, so the bogon will be chosen
2969
# first if we set CC to just the basename; use the full file name.
2971
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977
if test -n "$CC"; then
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979
$as_echo "$CC" >&6; }
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982
$as_echo "no" >&6; }
2987
if test -z "$CC"; then
2988
if test -n "$ac_tool_prefix"; then
2989
for ac_prog in cl.exe
2991
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994
$as_echo_n "checking for $ac_word... " >&6; }
2995
if test "${ac_cv_prog_CC+set}" = set; then :
2996
$as_echo_n "(cached) " >&6
2998
if test -n "$CC"; then
2999
ac_cv_prog_CC="$CC" # Let the user override the test.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019
if test -n "$CC"; then
3020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021
$as_echo "$CC" >&6; }
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024
$as_echo "no" >&6; }
3028
test -n "$CC" && break
3031
if test -z "$CC"; then
3033
for ac_prog in cl.exe
3035
# Extract the first word of "$ac_prog", so it can be a program name with args.
3036
set dummy $ac_prog; ac_word=$2
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038
$as_echo_n "checking for $ac_word... " >&6; }
3039
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3040
$as_echo_n "(cached) " >&6
3042
if test -n "$ac_ct_CC"; then
3043
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049
test -z "$as_dir" && as_dir=.
3050
for ac_exec_ext in '' $ac_executable_extensions; do
3051
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052
ac_cv_prog_ac_ct_CC="$ac_prog"
3053
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063
if test -n "$ac_ct_CC"; then
3064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065
$as_echo "$ac_ct_CC" >&6; }
3067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068
$as_echo "no" >&6; }
3072
test -n "$ac_ct_CC" && break
3075
if test "x$ac_ct_CC" = x; then
3078
case $cross_compiling:$ac_tool_warned in
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082
ac_tool_warned=yes ;;
3091
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093
as_fn_error "no acceptable C compiler found in \$PATH
3094
See \`config.log' for more details." "$LINENO" 5; }
3096
# Provide some information about the compiler.
3097
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100
for ac_option in --version -v -V -qversion; do
3101
{ { ac_try="$ac_compiler $ac_option >&5"
3103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104
*) ac_try_echo=$ac_try;;
3106
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107
$as_echo "$ac_try_echo"; } >&5
3108
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3110
if test -s conftest.err; then
3112
... rest of stderr output deleted ...
3113
10q' conftest.err >conftest.er1
3114
cat conftest.er1 >&5
3116
rm -f conftest.er1 conftest.err
3117
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118
test $ac_status = 0; }
3121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122
/* end confdefs.h. */
3132
ac_clean_files_save=$ac_clean_files
3133
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134
# Try to create an executable without -o first, disregard a.out.
3135
# It will help us diagnose broken compilers, and finding out an intuition
3137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3138
$as_echo_n "checking whether the C compiler works... " >&6; }
3139
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3141
# The possible output files:
3142
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
for ac_file in $ac_files
3148
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3154
if { { ac_try="$ac_link_default"
3156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157
*) ac_try_echo=$ac_try;;
3159
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160
$as_echo "$ac_try_echo"; } >&5
3161
(eval "$ac_link_default") 2>&5
3163
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164
test $ac_status = 0; }; then :
3165
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3168
# so that the user can short-circuit this test for compilers unknown to
3170
for ac_file in $ac_files ''
3172
test -f "$ac_file" || continue
3174
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177
# We found the default executable, but exeext='' is most
3181
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3183
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185
# We set ac_cv_exeext here because the later test for it is not
3186
# safe: cross compilers may not add the suffix if given an `-o'
3187
# argument, so we may need to know it at that point already.
3188
# Even if this section looks crufty: it has the advantage of
3195
test "$ac_cv_exeext" = no && ac_cv_exeext=
3200
if test -z "$ac_file"; then :
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202
$as_echo "no" >&6; }
3203
$as_echo "$as_me: failed program was:" >&5
3204
sed 's/^/| /' conftest.$ac_ext >&5
3206
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208
{ as_fn_set_status 77
3209
as_fn_error "C compiler cannot create executables
3210
See \`config.log' for more details." "$LINENO" 5; }; }
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213
$as_echo "yes" >&6; }
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3216
$as_echo_n "checking for C compiler default output file name... " >&6; }
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3218
$as_echo "$ac_file" >&6; }
3219
ac_exeext=$ac_cv_exeext
3221
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3222
ac_clean_files=$ac_clean_files_save
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3224
$as_echo_n "checking for suffix of executables... " >&6; }
3225
if { { ac_try="$ac_link"
3227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228
*) ac_try_echo=$ac_try;;
3230
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231
$as_echo "$ac_try_echo"; } >&5
3232
(eval "$ac_link") 2>&5
3234
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235
test $ac_status = 0; }; then :
3236
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3237
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3238
# work properly (i.e., refer to `conftest.exe'), while it won't with
3240
for ac_file in conftest.exe conftest conftest.*; do
3241
test -f "$ac_file" || continue
3243
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252
as_fn_error "cannot compute suffix of executables: cannot compile and link
3253
See \`config.log' for more details." "$LINENO" 5; }
3255
rm -f conftest conftest$ac_cv_exeext
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3257
$as_echo "$ac_cv_exeext" >&6; }
3259
rm -f conftest.$ac_ext
3260
EXEEXT=$ac_cv_exeext
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263
/* end confdefs.h. */
3268
FILE *f = fopen ("conftest.out", "w");
3269
return ferror (f) || fclose (f) != 0;
3275
ac_clean_files="$ac_clean_files conftest.out"
3276
# Check that the compiler produces executables we can run. If not, either
3277
# the compiler is broken, or we cross compile.
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3279
$as_echo_n "checking whether we are cross compiling... " >&6; }
3280
if test "$cross_compiling" != yes; then
3281
{ { ac_try="$ac_link"
3283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284
*) ac_try_echo=$ac_try;;
3286
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287
$as_echo "$ac_try_echo"; } >&5
3288
(eval "$ac_link") 2>&5
3290
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291
test $ac_status = 0; }
3292
if { ac_try='./conftest$ac_cv_exeext'
3293
{ { case "(($ac_try" in
3294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295
*) ac_try_echo=$ac_try;;
3297
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298
$as_echo "$ac_try_echo"; } >&5
3299
(eval "$ac_try") 2>&5
3301
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302
test $ac_status = 0; }; }; then
3305
if test "$cross_compiling" = maybe; then
3308
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310
as_fn_error "cannot run C compiled programs.
3311
If you meant to cross compile, use \`--host'.
3312
See \`config.log' for more details." "$LINENO" 5; }
3316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3317
$as_echo "$cross_compiling" >&6; }
3319
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3320
ac_clean_files=$ac_clean_files_save
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3322
$as_echo_n "checking for suffix of object files... " >&6; }
3323
if test "${ac_cv_objext+set}" = set; then :
3324
$as_echo_n "(cached) " >&6
3326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327
/* end confdefs.h. */
3337
rm -f conftest.o conftest.obj
3338
if { { ac_try="$ac_compile"
3340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341
*) ac_try_echo=$ac_try;;
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344
$as_echo "$ac_try_echo"; } >&5
3345
(eval "$ac_compile") 2>&5
3347
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348
test $ac_status = 0; }; then :
3349
for ac_file in conftest.o conftest.obj conftest.*; do
3350
test -f "$ac_file" || continue;
3352
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3353
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358
$as_echo "$as_me: failed program was:" >&5
3359
sed 's/^/| /' conftest.$ac_ext >&5
3361
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363
as_fn_error "cannot compute suffix of object files: cannot compile
3364
See \`config.log' for more details." "$LINENO" 5; }
3366
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3369
$as_echo "$ac_cv_objext" >&6; }
3370
OBJEXT=$ac_cv_objext
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3373
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3375
$as_echo_n "(cached) " >&6
3377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378
/* end confdefs.h. */
3391
if ac_fn_c_try_compile "$LINENO"; then :
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3401
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3402
if test $ac_compiler_gnu = yes; then
3407
ac_test_CFLAGS=${CFLAGS+set}
3408
ac_save_CFLAGS=$CFLAGS
3409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3410
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3411
if test "${ac_cv_prog_cc_g+set}" = set; then :
3412
$as_echo_n "(cached) " >&6
3414
ac_save_c_werror_flag=$ac_c_werror_flag
3415
ac_c_werror_flag=yes
3418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419
/* end confdefs.h. */
3429
if ac_fn_c_try_compile "$LINENO"; then :
3433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434
/* end confdefs.h. */
3444
if ac_fn_c_try_compile "$LINENO"; then :
3447
ac_c_werror_flag=$ac_save_c_werror_flag
3449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450
/* end confdefs.h. */
3460
if ac_fn_c_try_compile "$LINENO"; then :
3463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468
ac_c_werror_flag=$ac_save_c_werror_flag
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3471
$as_echo "$ac_cv_prog_cc_g" >&6; }
3472
if test "$ac_test_CFLAGS" = set; then
3473
CFLAGS=$ac_save_CFLAGS
3474
elif test $ac_cv_prog_cc_g = yes; then
3475
if test "$GCC" = yes; then
3481
if test "$GCC" = yes; then
3487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3488
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3489
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3490
$as_echo_n "(cached) " >&6
3492
ac_cv_prog_cc_c89=no
3494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495
/* end confdefs.h. */
3498
#include <sys/types.h>
3499
#include <sys/stat.h>
3500
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3501
struct buf { int x; };
3502
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503
static char *e (p, i)
3509
static char *f (char * (*g) (char **, int), char **p, ...)
3514
s = g (p, va_arg (v,int));
3519
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3520
function prototypes and stuff, but not '\xHH' hex character constants.
3521
These don't provoke an error unfortunately, instead are silently treated
3522
as 'x'. The following induces an error, until -std is added to get
3523
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3524
array size at least. It's necessary to write '\x00'==0 to get something
3525
that's true only with -std. */
3526
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3528
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529
inside strings and character constants. */
3531
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3533
int test (int i, double x);
3534
struct s1 {int (*f) (int a);};
3535
struct s2 {int (*f) (double a);};
3536
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3542
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3547
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3550
CC="$ac_save_CC $ac_arg"
3551
if ac_fn_c_try_compile "$LINENO"; then :
3552
ac_cv_prog_cc_c89=$ac_arg
3554
rm -f core conftest.err conftest.$ac_objext
3555
test "x$ac_cv_prog_cc_c89" != "xno" && break
3557
rm -f conftest.$ac_ext
3562
case "x$ac_cv_prog_cc_c89" in
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565
$as_echo "none needed" >&6; } ;;
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568
$as_echo "unsupported" >&6; } ;;
3570
CC="$CC $ac_cv_prog_cc_c89"
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3574
if test "x$ac_cv_prog_cc_c89" != xno; then :
3579
ac_cpp='$CPP $CPPFLAGS'
3580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
ac_cpp='$CPP $CPPFLAGS'
3587
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3591
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3592
# On Suns, sometimes $CPP names a directory.
3593
if test -n "$CPP" && test -d "$CPP"; then
3596
if test -z "$CPP"; then
3597
if test "${ac_cv_prog_CPP+set}" = set; then :
3598
$as_echo_n "(cached) " >&6
3600
# Double quotes because CPP needs to be expanded
3601
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604
for ac_c_preproc_warn_flag in '' yes
3606
# Use a header file that comes with gcc, so configuring glibc
3607
# with a fresh cross-compiler works.
3608
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609
# <limits.h> exists even on freestanding compilers.
3610
# On the NeXT, cc -E runs the code through the compiler's parser,
3611
# not just through cpp. "Syntax error" is here to catch this case.
3612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613
/* end confdefs.h. */
3615
# include <limits.h>
3617
# include <assert.h>
3621
if ac_fn_c_try_cpp "$LINENO"; then :
3624
# Broken: fails on valid input.
3627
rm -f conftest.err conftest.$ac_ext
3629
# OK, works on sane cases. Now check whether nonexistent headers
3630
# can be detected and how.
3631
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632
/* end confdefs.h. */
3633
#include <ac_nonexistent.h>
3635
if ac_fn_c_try_cpp "$LINENO"; then :
3636
# Broken: success on invalid input.
3639
# Passes both tests.
3643
rm -f conftest.err conftest.$ac_ext
3646
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647
rm -f conftest.err conftest.$ac_ext
3648
if $ac_preproc_ok; then :
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3661
$as_echo "$CPP" >&6; }
3663
for ac_c_preproc_warn_flag in '' yes
3665
# Use a header file that comes with gcc, so configuring glibc
3666
# with a fresh cross-compiler works.
3667
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668
# <limits.h> exists even on freestanding compilers.
3669
# On the NeXT, cc -E runs the code through the compiler's parser,
3670
# not just through cpp. "Syntax error" is here to catch this case.
3671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672
/* end confdefs.h. */
3674
# include <limits.h>
3676
# include <assert.h>
3680
if ac_fn_c_try_cpp "$LINENO"; then :
3683
# Broken: fails on valid input.
3686
rm -f conftest.err conftest.$ac_ext
3688
# OK, works on sane cases. Now check whether nonexistent headers
3689
# can be detected and how.
3690
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691
/* end confdefs.h. */
3692
#include <ac_nonexistent.h>
3694
if ac_fn_c_try_cpp "$LINENO"; then :
3695
# Broken: success on invalid input.
3698
# Passes both tests.
3702
rm -f conftest.err conftest.$ac_ext
3705
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706
rm -f conftest.err conftest.$ac_ext
3707
if $ac_preproc_ok; then :
3710
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3713
See \`config.log' for more details." "$LINENO" 5; }
3717
ac_cpp='$CPP $CPPFLAGS'
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3724
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3725
if test "${ac_cv_path_GREP+set}" = set; then :
3726
$as_echo_n "(cached) " >&6
3728
if test -z "$GREP"; then
3729
ac_path_GREP_found=false
3730
# Loop through the user's path and test for each of PROGNAME-LIST
3731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735
test -z "$as_dir" && as_dir=.
3736
for ac_prog in grep ggrep; do
3737
for ac_exec_ext in '' $ac_executable_extensions; do
3738
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3739
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3740
# Check for GNU ac_path_GREP and select it if it is found.
3741
# Check for GNU $ac_path_GREP
3742
case `"$ac_path_GREP" --version 2>&1` in
3744
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3747
$as_echo_n 0123456789 >"conftest.in"
3750
cat "conftest.in" "conftest.in" >"conftest.tmp"
3751
mv "conftest.tmp" "conftest.in"
3752
cp "conftest.in" "conftest.nl"
3753
$as_echo 'GREP' >> "conftest.nl"
3754
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756
as_fn_arith $ac_count + 1 && ac_count=$as_val
3757
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758
# Best one so far, save it but keep looking for a better one
3759
ac_cv_path_GREP="$ac_path_GREP"
3760
ac_path_GREP_max=$ac_count
3762
# 10*(2^10) chars as input seems more than enough
3763
test $ac_count -gt 10 && break
3765
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768
$ac_path_GREP_found && break 3
3773
if test -z "$ac_cv_path_GREP"; then
3774
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3777
ac_cv_path_GREP=$GREP
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3782
$as_echo "$ac_cv_path_GREP" >&6; }
3783
GREP="$ac_cv_path_GREP"
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3787
$as_echo_n "checking for egrep... " >&6; }
3788
if test "${ac_cv_path_EGREP+set}" = set; then :
3789
$as_echo_n "(cached) " >&6
3791
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3792
then ac_cv_path_EGREP="$GREP -E"
3794
if test -z "$EGREP"; then
3795
ac_path_EGREP_found=false
3796
# Loop through the user's path and test for each of PROGNAME-LIST
3797
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801
test -z "$as_dir" && as_dir=.
3802
for ac_prog in egrep; do
3803
for ac_exec_ext in '' $ac_executable_extensions; do
3804
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3805
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3806
# Check for GNU ac_path_EGREP and select it if it is found.
3807
# Check for GNU $ac_path_EGREP
3808
case `"$ac_path_EGREP" --version 2>&1` in
3810
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3813
$as_echo_n 0123456789 >"conftest.in"
3816
cat "conftest.in" "conftest.in" >"conftest.tmp"
3817
mv "conftest.tmp" "conftest.in"
3818
cp "conftest.in" "conftest.nl"
3819
$as_echo 'EGREP' >> "conftest.nl"
3820
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822
as_fn_arith $ac_count + 1 && ac_count=$as_val
3823
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3824
# Best one so far, save it but keep looking for a better one
3825
ac_cv_path_EGREP="$ac_path_EGREP"
3826
ac_path_EGREP_max=$ac_count
3828
# 10*(2^10) chars as input seems more than enough
3829
test $ac_count -gt 10 && break
3831
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834
$ac_path_EGREP_found && break 3
3839
if test -z "$ac_cv_path_EGREP"; then
3840
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843
ac_cv_path_EGREP=$EGREP
3848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3849
$as_echo "$ac_cv_path_EGREP" >&6; }
3850
EGREP="$ac_cv_path_EGREP"
3853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3854
$as_echo_n "checking for ANSI C header files... " >&6; }
3855
if test "${ac_cv_header_stdc+set}" = set; then :
3856
$as_echo_n "(cached) " >&6
3858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859
/* end confdefs.h. */
3873
if ac_fn_c_try_compile "$LINENO"; then :
3874
ac_cv_header_stdc=yes
3876
ac_cv_header_stdc=no
3878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
if test $ac_cv_header_stdc = yes; then
3881
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883
/* end confdefs.h. */
3887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888
$EGREP "memchr" >/dev/null 2>&1; then :
3891
ac_cv_header_stdc=no
3897
if test $ac_cv_header_stdc = yes; then
3898
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900
/* end confdefs.h. */
3904
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905
$EGREP "free" >/dev/null 2>&1; then :
3908
ac_cv_header_stdc=no
3914
if test $ac_cv_header_stdc = yes; then
3915
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3916
if test "$cross_compiling" = yes; then :
3919
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920
/* end confdefs.h. */
3923
#if ((' ' & 0x0FF) == 0x020)
3924
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927
# define ISLOWER(c) \
3928
(('a' <= (c) && (c) <= 'i') \
3929
|| ('j' <= (c) && (c) <= 'r') \
3930
|| ('s' <= (c) && (c) <= 'z'))
3931
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3939
for (i = 0; i < 256; i++)
3940
if (XOR (islower (i), ISLOWER (i))
3941
|| toupper (i) != TOUPPER (i))
3946
if ac_fn_c_try_run "$LINENO"; then :
3949
ac_cv_header_stdc=no
3951
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3952
conftest.$ac_objext conftest.beam conftest.$ac_ext
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3958
$as_echo "$ac_cv_header_stdc" >&6; }
3959
if test $ac_cv_header_stdc = yes; then
3961
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3965
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967
inttypes.h stdint.h unistd.h
3969
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3972
eval as_val=\$$as_ac_Header
3973
if test "x$as_val" = x""yes; then :
3974
cat >>confdefs.h <<_ACEOF
3975
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3984
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3985
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3992
if test "$MINIX" = yes; then
3994
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3997
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4000
$as_echo "#define _MINIX 1" >>confdefs.h
4005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4006
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4007
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4008
$as_echo_n "(cached) " >&6
4010
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011
/* end confdefs.h. */
4013
# define __EXTENSIONS__ 1
4014
$ac_includes_default
4023
if ac_fn_c_try_compile "$LINENO"; then :
4024
ac_cv_safe_to_define___extensions__=yes
4026
ac_cv_safe_to_define___extensions__=no
4028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4031
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4032
test $ac_cv_safe_to_define___extensions__ = yes &&
4033
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4035
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4037
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4039
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4041
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4047
cat >>confdefs.h <<_ACEOF
4048
#define CANONICAL_TARGET "$target"
4052
cat >>confdefs.h <<_ACEOF
4053
#define CANONICAL_HOST "$host"
4057
am__api_version='1.11'
4059
# Find a good install program. We prefer a C program (faster),
4060
# so one script is as good as another. But avoid the broken or
4061
# incompatible versions:
4062
# SysV /etc/install, /usr/sbin/install
4063
# SunOS /usr/etc/install
4064
# IRIX /sbin/install
4066
# AmigaOS /C/install, which installs bootblocks on floppy discs
4067
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4068
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4069
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4070
# OS/2's system install, which has a completely different semantic
4071
# ./install, which can be erroneously created by make from ./install.sh.
4072
# Reject install programs that cannot install multiple files.
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4074
$as_echo_n "checking for a BSD-compatible install... " >&6; }
4075
if test -z "$INSTALL"; then
4076
if test "${ac_cv_path_install+set}" = set; then :
4077
$as_echo_n "(cached) " >&6
4079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083
test -z "$as_dir" && as_dir=.
4084
# Account for people who put trailing slashes in PATH elements.
4085
case $as_dir/ in #((
4086
./ | .// | /[cC]/* | \
4087
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4088
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4091
# OSF1 and SCO ODT 3.0 have their own names for install.
4092
# Don't use installbsd from OSF since it installs stuff as root
4094
for ac_prog in ginstall scoinst install; do
4095
for ac_exec_ext in '' $ac_executable_extensions; do
4096
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4097
if test $ac_prog = install &&
4098
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4099
# AIX install. It has an incompatible calling convention.
4101
elif test $ac_prog = install &&
4102
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4103
# program-specific install script used by HP pwplus--don't use.
4106
rm -rf conftest.one conftest.two conftest.dir
4107
echo one > conftest.one
4108
echo two > conftest.two
4110
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4111
test -s conftest.one && test -s conftest.two &&
4112
test -s conftest.dir/conftest.one &&
4113
test -s conftest.dir/conftest.two
4115
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4128
rm -rf conftest.one conftest.two conftest.dir
4131
if test "${ac_cv_path_install+set}" = set; then
4132
INSTALL=$ac_cv_path_install
4134
# As a last resort, use the slow shell script. Don't cache a
4135
# value for INSTALL within a source directory, because that will
4136
# break other packages using the cache if that directory is
4137
# removed, or if the value is a relative name.
4138
INSTALL=$ac_install_sh
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4142
$as_echo "$INSTALL" >&6; }
4144
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4145
# It thinks the first close brace ends the variable substitution.
4146
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4148
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4150
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4153
$as_echo_n "checking whether build environment is sane... " >&6; }
4156
echo timestamp > conftest.file
4157
# Reject unsafe characters in $srcdir or the absolute working directory
4158
# name. Accept space and tab only in the latter.
4162
*[\\\"\#\$\&\'\`$am_lf]*)
4163
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4166
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4167
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4170
# Do `set' in a subshell so we don't clobber the current shell's
4171
# arguments. Must try -L first in case configure is actually a
4172
# symlink; some systems play weird games with the mod time of symlinks
4173
# (eg FreeBSD returns the mod time of the symlink's containing
4176
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4177
if test "$*" = "X"; then
4179
set X `ls -t "$srcdir/configure" conftest.file`
4182
if test "$*" != "X $srcdir/configure conftest.file" \
4183
&& test "$*" != "X conftest.file $srcdir/configure"; then
4185
# If neither matched, then we have a broken ls. This can happen
4186
# if, for instance, CONFIG_SHELL is bash and it inherits a
4187
# broken ls alias from the environment. This has actually
4188
# happened. Such a system could not be considered "sane".
4189
as_fn_error "ls -t appears to fail. Make sure there is not a broken
4190
alias in your environment" "$LINENO" 5
4193
test "$2" = conftest.file
4199
as_fn_error "newly created file is older than distributed files!
4200
Check your system clock" "$LINENO" 5
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203
$as_echo "yes" >&6; }
4204
test "$program_prefix" != NONE &&
4205
program_transform_name="s&^&$program_prefix&;$program_transform_name"
4206
# Use a double $ so make ignores it.
4207
test "$program_suffix" != NONE &&
4208
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4209
# Double any \ or $.
4210
# By default was `s,x,x', remove it if useless.
4211
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4212
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4214
# expand $ac_aux_dir to an absolute path
4215
am_aux_dir=`cd $ac_aux_dir && pwd`
4217
if test x"${MISSING+set}" != xset; then
4220
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4222
MISSING="\${SHELL} $am_aux_dir/missing" ;;
4225
# Use eval to expand $SHELL
4226
if eval "$MISSING --run true"; then
4227
am_missing_run="$MISSING --run "
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4231
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4234
if test x"${install_sh}" != xset; then
4237
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4239
install_sh="\${SHELL} $am_aux_dir/install-sh"
4243
# Installed binaries are usually stripped using `strip' when the user
4244
# run `make install-strip'. However `strip' might not be the right
4245
# tool to use in cross-compilation environments, therefore Automake
4246
# will honor the `STRIP' environment variable to overrule this program.
4247
if test "$cross_compiling" != no; then
4248
if test -n "$ac_tool_prefix"; then
4249
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4250
set dummy ${ac_tool_prefix}strip; ac_word=$2
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252
$as_echo_n "checking for $ac_word... " >&6; }
4253
if test "${ac_cv_prog_STRIP+set}" = set; then :
4254
$as_echo_n "(cached) " >&6
4256
if test -n "$STRIP"; then
4257
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263
test -z "$as_dir" && as_dir=.
4264
for ac_exec_ext in '' $ac_executable_extensions; do
4265
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4267
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276
STRIP=$ac_cv_prog_STRIP
4277
if test -n "$STRIP"; then
4278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4279
$as_echo "$STRIP" >&6; }
4281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282
$as_echo "no" >&6; }
4287
if test -z "$ac_cv_prog_STRIP"; then
4289
# Extract the first word of "strip", so it can be a program name with args.
4290
set dummy strip; ac_word=$2
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292
$as_echo_n "checking for $ac_word... " >&6; }
4293
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4294
$as_echo_n "(cached) " >&6
4296
if test -n "$ac_ct_STRIP"; then
4297
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303
test -z "$as_dir" && as_dir=.
4304
for ac_exec_ext in '' $ac_executable_extensions; do
4305
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306
ac_cv_prog_ac_ct_STRIP="strip"
4307
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4317
if test -n "$ac_ct_STRIP"; then
4318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4319
$as_echo "$ac_ct_STRIP" >&6; }
4321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322
$as_echo "no" >&6; }
4325
if test "x$ac_ct_STRIP" = x; then
4328
case $cross_compiling:$ac_tool_warned in
4330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4332
ac_tool_warned=yes ;;
4337
STRIP="$ac_cv_prog_STRIP"
4341
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4344
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4345
if test -z "$MKDIR_P"; then
4346
if test "${ac_cv_path_mkdir+set}" = set; then :
4347
$as_echo_n "(cached) " >&6
4349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4353
test -z "$as_dir" && as_dir=.
4354
for ac_prog in mkdir gmkdir; do
4355
for ac_exec_ext in '' $ac_executable_extensions; do
4356
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4357
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4358
'mkdir (GNU coreutils) '* | \
4359
'mkdir (coreutils) '* | \
4360
'mkdir (fileutils) '4.1*)
4361
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4371
test -d ./--version && rmdir ./--version
4372
if test "${ac_cv_path_mkdir+set}" = set; then
4373
MKDIR_P="$ac_cv_path_mkdir -p"
4375
# As a last resort, use the slow shell script. Don't cache a
4376
# value for MKDIR_P within a source directory, because that will
4377
# break other packages using the cache if that directory is
4378
# removed, or if the value is a relative name.
4379
MKDIR_P="$ac_install_sh -d"
4382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4383
$as_echo "$MKDIR_P" >&6; }
4387
[\\/$]* | ?:[\\/]*) ;;
4388
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4391
for ac_prog in gawk mawk nawk awk
4393
# Extract the first word of "$ac_prog", so it can be a program name with args.
4394
set dummy $ac_prog; ac_word=$2
4395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396
$as_echo_n "checking for $ac_word... " >&6; }
4397
if test "${ac_cv_prog_AWK+set}" = set; then :
4398
$as_echo_n "(cached) " >&6
4400
if test -n "$AWK"; then
4401
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407
test -z "$as_dir" && as_dir=.
4408
for ac_exec_ext in '' $ac_executable_extensions; do
4409
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410
ac_cv_prog_AWK="$ac_prog"
4411
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421
if test -n "$AWK"; then
4422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4423
$as_echo "$AWK" >&6; }
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426
$as_echo "no" >&6; }
4430
test -n "$AWK" && break
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4434
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4436
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4437
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4438
$as_echo_n "(cached) " >&6
4440
cat >conftest.make <<\_ACEOF
4443
@echo '@@@%%%=$(MAKE)=@@@%%%'
4445
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4446
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4448
eval ac_cv_prog_make_${ac_make}_set=yes;;
4450
eval ac_cv_prog_make_${ac_make}_set=no;;
4454
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456
$as_echo "yes" >&6; }
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460
$as_echo "no" >&6; }
4461
SET_MAKE="MAKE=${MAKE-make}"
4464
rm -rf .tst 2>/dev/null
4465
mkdir .tst 2>/dev/null
4466
if test -d .tst; then
4471
rmdir .tst 2>/dev/null
4473
DEPDIR="${am__leading_dot}deps"
4475
ac_config_commands="$ac_config_commands depfiles"
4478
am_make=${MAKE-make}
4479
cat > confinc << 'END'
4481
@echo this is the am__doit target
4484
# If we don't find an include directive, just comment out the code.
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4486
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4490
# First try GNU make style include.
4491
echo "include confinc" > confmf
4492
# Ignore all kinds of additional output from `make'.
4493
case `$am_make -s -f confmf 2> /dev/null` in #(
4494
*the\ am__doit\ target*)
4500
# Now try BSD make style include.
4501
if test "$am__include" = "#"; then
4502
echo '.include "confinc"' > confmf
4503
case `$am_make -s -f confmf 2> /dev/null` in #(
4504
*the\ am__doit\ target*)
4505
am__include=.include
4513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4514
$as_echo "$_am_result" >&6; }
4515
rm -f confinc confmf
4517
# Check whether --enable-dependency-tracking was given.
4518
if test "${enable_dependency_tracking+set}" = set; then :
4519
enableval=$enable_dependency_tracking;
4522
if test "x$enable_dependency_tracking" != xno; then
4523
am_depcomp="$ac_aux_dir/depcomp"
4526
if test "x$enable_dependency_tracking" != xno; then
4535
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4536
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4537
# is not polluted with repeated "-I."
4538
am__isrc=' -I$(srcdir)'
4539
# test to see if srcdir already configured
4540
if test -f $srcdir/config.status; then
4541
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4545
# test whether we have cygpath
4546
if test -z "$CYGPATH_W"; then
4547
if (cygpath --version) >/dev/null 2>/dev/null; then
4548
CYGPATH_W='cygpath -w'
4555
# Define the identity of the package.
4560
cat >>confdefs.h <<_ACEOF
4561
#define PACKAGE "$PACKAGE"
4565
cat >>confdefs.h <<_ACEOF
4566
#define VERSION "$VERSION"
4569
# Some tools Automake needs.
4571
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4574
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4577
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4580
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4583
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4585
# We need awk for the "check" target. The system "awk" is bad on
4587
# Always define AMTAR for backward compatibility.
4589
AMTAR=${AMTAR-"${am_missing_run}tar"}
4591
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4596
depcc="$CC" am_compiler_list=
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4599
$as_echo_n "checking dependency style of $depcc... " >&6; }
4600
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4601
$as_echo_n "(cached) " >&6
4603
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4604
# We make a subdir and do the tests there. Otherwise we can end up
4605
# making bogus files that we don't know about and never remove. For
4606
# instance it was reported that on HP-UX the gcc test will end up
4607
# making a dummy file named `D' -- because `-MD' means `put the output
4610
# Copy depcomp to subdir because otherwise we won't find it if we're
4611
# using a relative directory.
4612
cp "$am_depcomp" conftest.dir
4614
# We will build objects and dependencies in a subdirectory because
4615
# it helps to detect inapplicable dependency modes. For instance
4616
# both Tru64's cc and ICC support -MD to output dependencies as a
4617
# side effect of compilation, but ICC will put the dependencies in
4618
# the current directory while Tru64 will put them in the object
4622
am_cv_CC_dependencies_compiler_type=none
4623
if test "$am_compiler_list" = ""; then
4624
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627
case " $depcc " in #(
4628
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4631
for depmode in $am_compiler_list; do
4632
# Setup a source with many dependencies, because some compilers
4633
# like to wrap large dependency lists on column 80 (with \), and
4634
# we should not choose a depcomp mode which is confused by this.
4636
# We need to recreate these files for each test, as the compiler may
4637
# overwrite some of them when testing with obscure command lines.
4638
# This happens at least with the AIX C compiler.
4640
for i in 1 2 3 4 5 6; do
4641
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4642
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4643
# Solaris 8's {/usr,}/bin/sh.
4644
touch sub/conftst$i.h
4646
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4648
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4649
# mode. It turns out that the SunPro C++ compiler does not properly
4650
# handle `-M -o', and we need to detect this. Also, some Intel
4651
# versions had trouble with output in subdirs
4652
am__obj=sub/conftest.${OBJEXT-o}
4653
am__minus_obj="-o $am__obj"
4656
# This depmode causes a compiler race in universal mode.
4657
test "$am__universal" = false || continue
4660
# after this tag, mechanisms are not by side-effect, so they'll
4661
# only be used when explicitly requested
4662
if test "x$enable_dependency_tracking" = xyes; then
4668
msvisualcpp | msvcmsys)
4669
# This compiler won't grok `-c -o', but also, the minuso test has
4670
# not run yet. These depmodes are late enough in the game, and
4671
# so weak that their functioning should not be impacted.
4672
am__obj=conftest.${OBJEXT-o}
4677
if depmode=$depmode \
4678
source=sub/conftest.c object=$am__obj \
4679
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4680
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4681
>/dev/null 2>conftest.err &&
4682
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4683
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4684
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4685
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4686
# icc doesn't choke on unknown options, it will just issue warnings
4687
# or remarks (even with -Werror). So we grep stderr for any message
4688
# that says an option was ignored or not supported.
4689
# When given -MP, icc 7.0 and 7.1 complain thusly:
4690
# icc: Command line warning: ignoring option '-M'; no argument required
4691
# The diagnosis changed in icc 8.0:
4692
# icc: Command line remark: option '-MP' not supported
4693
if (grep 'ignoring option' conftest.err ||
4694
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4695
am_cv_CC_dependencies_compiler_type=$depmode
4704
am_cv_CC_dependencies_compiler_type=none
4708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4709
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4710
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4713
test "x$enable_dependency_tracking" != xno \
4714
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716
am__fastdepCC_FALSE='#'
4718
am__fastdepCC_TRUE='#'
4719
am__fastdepCC_FALSE=
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4728
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4733
macro_version='2.2.6b'
4734
macro_revision='1.3017'
4748
ltmain="$ac_aux_dir/ltmain.sh"
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4751
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4752
if test "${ac_cv_path_SED+set}" = set; then :
4753
$as_echo_n "(cached) " >&6
4755
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4756
for ac_i in 1 2 3 4 5 6 7; do
4757
ac_script="$ac_script$as_nl$ac_script"
4759
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4760
{ ac_script=; unset ac_script;}
4761
if test -z "$SED"; then
4762
ac_path_SED_found=false
4763
# Loop through the user's path and test for each of PROGNAME-LIST
4764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768
test -z "$as_dir" && as_dir=.
4769
for ac_prog in sed gsed; do
4770
for ac_exec_ext in '' $ac_executable_extensions; do
4771
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4772
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4773
# Check for GNU ac_path_SED and select it if it is found.
4774
# Check for GNU $ac_path_SED
4775
case `"$ac_path_SED" --version 2>&1` in
4777
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4780
$as_echo_n 0123456789 >"conftest.in"
4783
cat "conftest.in" "conftest.in" >"conftest.tmp"
4784
mv "conftest.tmp" "conftest.in"
4785
cp "conftest.in" "conftest.nl"
4786
$as_echo '' >> "conftest.nl"
4787
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789
as_fn_arith $ac_count + 1 && ac_count=$as_val
4790
if test $ac_count -gt ${ac_path_SED_max-0}; then
4791
# Best one so far, save it but keep looking for a better one
4792
ac_cv_path_SED="$ac_path_SED"
4793
ac_path_SED_max=$ac_count
4795
# 10*(2^10) chars as input seems more than enough
4796
test $ac_count -gt 10 && break
4798
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801
$ac_path_SED_found && break 3
4806
if test -z "$ac_cv_path_SED"; then
4807
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4815
$as_echo "$ac_cv_path_SED" >&6; }
4816
SED="$ac_cv_path_SED"
4819
test -z "$SED" && SED=sed
4820
Xsed="$SED -e 1s/^X//"
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4833
$as_echo_n "checking for fgrep... " >&6; }
4834
if test "${ac_cv_path_FGREP+set}" = set; then :
4835
$as_echo_n "(cached) " >&6
4837
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4838
then ac_cv_path_FGREP="$GREP -F"
4840
if test -z "$FGREP"; then
4841
ac_path_FGREP_found=false
4842
# Loop through the user's path and test for each of PROGNAME-LIST
4843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847
test -z "$as_dir" && as_dir=.
4848
for ac_prog in fgrep; do
4849
for ac_exec_ext in '' $ac_executable_extensions; do
4850
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4851
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4852
# Check for GNU ac_path_FGREP and select it if it is found.
4853
# Check for GNU $ac_path_FGREP
4854
case `"$ac_path_FGREP" --version 2>&1` in
4856
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4859
$as_echo_n 0123456789 >"conftest.in"
4862
cat "conftest.in" "conftest.in" >"conftest.tmp"
4863
mv "conftest.tmp" "conftest.in"
4864
cp "conftest.in" "conftest.nl"
4865
$as_echo 'FGREP' >> "conftest.nl"
4866
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868
as_fn_arith $ac_count + 1 && ac_count=$as_val
4869
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4870
# Best one so far, save it but keep looking for a better one
4871
ac_cv_path_FGREP="$ac_path_FGREP"
4872
ac_path_FGREP_max=$ac_count
4874
# 10*(2^10) chars as input seems more than enough
4875
test $ac_count -gt 10 && break
4877
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880
$ac_path_FGREP_found && break 3
4885
if test -z "$ac_cv_path_FGREP"; then
4886
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889
ac_cv_path_FGREP=$FGREP
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4895
$as_echo "$ac_cv_path_FGREP" >&6; }
4896
FGREP="$ac_cv_path_FGREP"
4899
test -z "$GREP" && GREP=grep
4919
# Check whether --with-gnu-ld was given.
4920
if test "${with_gnu_ld+set}" = set; then :
4921
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4927
if test "$GCC" = yes; then
4928
# Check if gcc -print-prog-name=ld gives a path.
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4930
$as_echo_n "checking for ld used by $CC... " >&6; }
4933
# gcc leaves a trailing carriage return which upsets mingw
4934
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4936
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4939
# Accept absolute paths.
4941
re_direlt='/[^/][^/]*/\.\./'
4942
# Canonicalize the pathname of ld
4943
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4944
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4945
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4947
test -z "$LD" && LD="$ac_prog"
4950
# If it fails, then pretend we aren't using GCC.
4954
# If it is relative, then search for the first ld in PATH.
4958
elif test "$with_gnu_ld" = yes; then
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4960
$as_echo_n "checking for GNU ld... " >&6; }
4962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4963
$as_echo_n "checking for non-GNU ld... " >&6; }
4965
if test "${lt_cv_path_LD+set}" = set; then :
4966
$as_echo_n "(cached) " >&6
4968
if test -z "$LD"; then
4969
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4970
for ac_dir in $PATH; do
4972
test -z "$ac_dir" && ac_dir=.
4973
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4974
lt_cv_path_LD="$ac_dir/$ac_prog"
4975
# Check to see if the program is GNU ld. I'd rather use --version,
4976
# but apparently some variants of GNU ld only accept -v.
4977
# Break only if it was the GNU/non-GNU ld that we prefer.
4978
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4979
*GNU* | *'with BFD'*)
4980
test "$with_gnu_ld" != no && break
4983
test "$with_gnu_ld" != yes && break
4990
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4995
if test -n "$LD"; then
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4997
$as_echo "$LD" >&6; }
4999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000
$as_echo "no" >&6; }
5002
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5004
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5005
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5006
$as_echo_n "(cached) " >&6
5008
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5009
case `$LD -v 2>&1 </dev/null` in
5010
*GNU* | *'with BFD'*)
5011
lt_cv_prog_gnu_ld=yes
5014
lt_cv_prog_gnu_ld=no
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5019
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5020
with_gnu_ld=$lt_cv_prog_gnu_ld
5030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5031
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5032
if test "${lt_cv_path_NM+set}" = set; then :
5033
$as_echo_n "(cached) " >&6
5035
if test -n "$NM"; then
5036
# Let the user override the test.
5039
lt_nm_to_check="${ac_tool_prefix}nm"
5040
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5041
lt_nm_to_check="$lt_nm_to_check nm"
5043
for lt_tmp_nm in $lt_nm_to_check; do
5044
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5045
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5047
test -z "$ac_dir" && ac_dir=.
5048
tmp_nm="$ac_dir/$lt_tmp_nm"
5049
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5050
# Check to see if the nm accepts a BSD-compat flag.
5051
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5052
# nm: unknown option "B" ignored
5053
# Tru64's nm complains that /dev/null is an invalid object file
5054
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5055
*/dev/null* | *'Invalid file or object type'*)
5056
lt_cv_path_NM="$tmp_nm -B"
5060
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5062
lt_cv_path_NM="$tmp_nm -p"
5066
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5067
continue # so that we can try to find one that supports BSD flags
5076
: ${lt_cv_path_NM=no}
5079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5080
$as_echo "$lt_cv_path_NM" >&6; }
5081
if test "$lt_cv_path_NM" != "no"; then
5084
# Didn't find any BSD compatible name lister, look for dumpbin.
5085
if test -n "$ac_tool_prefix"; then
5086
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5088
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5089
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091
$as_echo_n "checking for $ac_word... " >&6; }
5092
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5093
$as_echo_n "(cached) " >&6
5095
if test -n "$DUMPBIN"; then
5096
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102
test -z "$as_dir" && as_dir=.
5103
for ac_exec_ext in '' $ac_executable_extensions; do
5104
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5106
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115
DUMPBIN=$ac_cv_prog_DUMPBIN
5116
if test -n "$DUMPBIN"; then
5117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5118
$as_echo "$DUMPBIN" >&6; }
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121
$as_echo "no" >&6; }
5125
test -n "$DUMPBIN" && break
5128
if test -z "$DUMPBIN"; then
5129
ac_ct_DUMPBIN=$DUMPBIN
5130
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5132
# Extract the first word of "$ac_prog", so it can be a program name with args.
5133
set dummy $ac_prog; ac_word=$2
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135
$as_echo_n "checking for $ac_word... " >&6; }
5136
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5137
$as_echo_n "(cached) " >&6
5139
if test -n "$ac_ct_DUMPBIN"; then
5140
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146
test -z "$as_dir" && as_dir=.
5147
for ac_exec_ext in '' $ac_executable_extensions; do
5148
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5150
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5160
if test -n "$ac_ct_DUMPBIN"; then
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5162
$as_echo "$ac_ct_DUMPBIN" >&6; }
5164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165
$as_echo "no" >&6; }
5169
test -n "$ac_ct_DUMPBIN" && break
5172
if test "x$ac_ct_DUMPBIN" = x; then
5175
case $cross_compiling:$ac_tool_warned in
5177
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179
ac_tool_warned=yes ;;
5181
DUMPBIN=$ac_ct_DUMPBIN
5186
if test "$DUMPBIN" != ":"; then
5190
test -z "$NM" && NM=nm
5197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5198
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5199
if test "${lt_cv_nm_interface+set}" = set; then :
5200
$as_echo_n "(cached) " >&6
5202
lt_cv_nm_interface="BSD nm"
5203
echo "int some_variable = 0;" > conftest.$ac_ext
5204
(eval echo "\"\$as_me:5204: $ac_compile\"" >&5)
5205
(eval "$ac_compile" 2>conftest.err)
5206
cat conftest.err >&5
5207
(eval echo "\"\$as_me:5207: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5208
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5209
cat conftest.err >&5
5210
(eval echo "\"\$as_me:5210: output\"" >&5)
5211
cat conftest.out >&5
5212
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5213
lt_cv_nm_interface="MS dumpbin"
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5218
$as_echo "$lt_cv_nm_interface" >&6; }
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5221
$as_echo_n "checking whether ln -s works... " >&6; }
5223
if test "$LN_S" = "ln -s"; then
5224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225
$as_echo "yes" >&6; }
5227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5228
$as_echo "no, using $LN_S" >&6; }
5231
# find the maximum length of command line arguments
5232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5233
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5234
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5235
$as_echo_n "(cached) " >&6
5242
# On DJGPP, this test can blow up pretty badly due to problems in libc
5243
# (any single argument exceeding 2000 bytes causes a buffer overrun
5244
# during glob expansion). Even if it were fixed, the result of this
5245
# check would be larger than it should be.
5246
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5250
# Under GNU Hurd, this test is not required because there is
5251
# no limit to the length of command line arguments.
5252
# Libtool will interpret -1 as no limit whatsoever
5253
lt_cv_sys_max_cmd_len=-1;
5256
cygwin* | mingw* | cegcc*)
5257
# On Win9x/ME, this test blows up -- it succeeds, but takes
5258
# about 5 minutes as the teststring grows exponentially.
5259
# Worse, since 9x/ME are not pre-emptively multitasking,
5260
# you end up with a "frozen" computer, even though with patience
5261
# the test eventually succeeds (with a max line length of 256k).
5262
# Instead, let's just punt: use the minimum linelength reported by
5263
# all of the supported platforms: 8192 (on NT/2K/XP).
5264
lt_cv_sys_max_cmd_len=8192;
5268
# On AmigaOS with pdksh, this test takes hours, literally.
5269
# So we just punt and use a minimum line length of 8192.
5270
lt_cv_sys_max_cmd_len=8192;
5273
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5274
# This has been around since 386BSD, at least. Likely further.
5275
if test -x /sbin/sysctl; then
5276
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5277
elif test -x /usr/sbin/sysctl; then
5278
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5280
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5282
# And add a safety zone
5283
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5284
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5288
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5289
lt_cv_sys_max_cmd_len=196608
5293
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5294
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5295
# nice to cause kernel panics so lets avoid the loop below.
5296
# First set a reasonable default.
5297
lt_cv_sys_max_cmd_len=16384
5299
if test -x /sbin/sysconfig; then
5300
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5301
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5306
lt_cv_sys_max_cmd_len=102400
5308
sysv5* | sco5v6* | sysv4.2uw2*)
5309
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5310
if test -n "$kargmax"; then
5311
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5313
lt_cv_sys_max_cmd_len=32768
5317
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5318
if test -n "$lt_cv_sys_max_cmd_len"; then
5319
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322
# Make teststring a little bigger before we do anything with it.
5323
# a 1K string should be a reasonable start.
5324
for i in 1 2 3 4 5 6 7 8 ; do
5325
teststring=$teststring$teststring
5327
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5328
# If test is not a shell built-in, we'll probably end up computing a
5329
# maximum length that is only half of the actual maximum length, but
5331
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5332
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5333
test $i != 17 # 1/2 MB should be enough
5336
teststring=$teststring$teststring
5338
# Only check the string length outside the loop.
5339
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5341
# Add a significant safety factor because C++ compilers can tack on
5342
# massive amounts of additional arguments before passing them to the
5343
# linker. It appears as though 1/2 is a usable value.
5344
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351
if test -n $lt_cv_sys_max_cmd_len ; then
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5353
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5356
$as_echo "none" >&6; }
5358
max_cmd_len=$lt_cv_sys_max_cmd_len
5369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5370
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5371
# Try some XSI features
5374
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5376
&& eval 'test $(( 1 + 1 )) -eq 2 \
5377
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5380
$as_echo "$xsi_shell" >&6; }
5383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5384
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5386
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5388
&& lt_shell_append=yes
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5390
$as_echo "$lt_shell_append" >&6; }
5393
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5403
# test EBCDIC or ASCII
5404
case `echo X|tr X '\101'` in
5405
A) # ASCII based system
5406
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5407
lt_SP2NL='tr \040 \012'
5408
lt_NL2SP='tr \015\012 \040\040'
5410
*) # EBCDIC based system
5411
lt_SP2NL='tr \100 \n'
5412
lt_NL2SP='tr \r\n \100\100'
5424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5425
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5426
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5427
$as_echo_n "(cached) " >&6
5429
lt_cv_ld_reload_flag='-r'
5431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5432
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5433
reload_flag=$lt_cv_ld_reload_flag
5434
case $reload_flag in
5436
*) reload_flag=" $reload_flag" ;;
5438
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5441
if test "$GCC" = yes; then
5442
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5444
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457
if test -n "$ac_tool_prefix"; then
5458
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5459
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461
$as_echo_n "checking for $ac_word... " >&6; }
5462
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5463
$as_echo_n "(cached) " >&6
5465
if test -n "$OBJDUMP"; then
5466
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472
test -z "$as_dir" && as_dir=.
5473
for ac_exec_ext in '' $ac_executable_extensions; do
5474
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5476
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485
OBJDUMP=$ac_cv_prog_OBJDUMP
5486
if test -n "$OBJDUMP"; then
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5488
$as_echo "$OBJDUMP" >&6; }
5490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491
$as_echo "no" >&6; }
5496
if test -z "$ac_cv_prog_OBJDUMP"; then
5497
ac_ct_OBJDUMP=$OBJDUMP
5498
# Extract the first word of "objdump", so it can be a program name with args.
5499
set dummy objdump; ac_word=$2
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501
$as_echo_n "checking for $ac_word... " >&6; }
5502
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5503
$as_echo_n "(cached) " >&6
5505
if test -n "$ac_ct_OBJDUMP"; then
5506
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512
test -z "$as_dir" && as_dir=.
5513
for ac_exec_ext in '' $ac_executable_extensions; do
5514
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5516
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5526
if test -n "$ac_ct_OBJDUMP"; then
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5528
$as_echo "$ac_ct_OBJDUMP" >&6; }
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531
$as_echo "no" >&6; }
5534
if test "x$ac_ct_OBJDUMP" = x; then
5537
case $cross_compiling:$ac_tool_warned in
5539
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5540
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5541
ac_tool_warned=yes ;;
5543
OBJDUMP=$ac_ct_OBJDUMP
5546
OBJDUMP="$ac_cv_prog_OBJDUMP"
5549
test -z "$OBJDUMP" && OBJDUMP=objdump
5559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5560
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5561
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5562
$as_echo_n "(cached) " >&6
5564
lt_cv_file_magic_cmd='$MAGIC_CMD'
5565
lt_cv_file_magic_test_file=
5566
lt_cv_deplibs_check_method='unknown'
5567
# Need to set the preceding variable on all platforms that support
5568
# interlibrary dependencies.
5569
# 'none' -- dependencies not supported.
5570
# `unknown' -- same as none, but documents that we really don't know.
5571
# 'pass_all' -- all dependencies passed with no checks.
5572
# 'test_compile' -- check by making test program.
5573
# 'file_magic [[regex]]' -- check by looking for files in library path
5574
# which responds to the $file_magic_cmd with a given extended regex.
5575
# If you have `file' or equivalent on your system and you're not sure
5576
# whether `pass_all' will *always* work, you probably want this one.
5580
lt_cv_deplibs_check_method=pass_all
5584
lt_cv_deplibs_check_method=pass_all
5588
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5589
lt_cv_file_magic_cmd='/usr/bin/file -L'
5590
lt_cv_file_magic_test_file=/shlib/libc.so
5594
# func_win32_libid is a shell function defined in ltmain.sh
5595
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5596
lt_cv_file_magic_cmd='func_win32_libid'
5600
# Base MSYS/MinGW do not provide the 'file' command needed by
5601
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5602
# unless we find 'file', for example because we are cross-compiling.
5603
if ( file / ) >/dev/null 2>&1; then
5604
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5605
lt_cv_file_magic_cmd='func_win32_libid'
5607
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5608
lt_cv_file_magic_cmd='$OBJDUMP -f'
5613
# use the weaker test based on 'objdump'. See mingw*.
5614
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5615
lt_cv_file_magic_cmd='$OBJDUMP -f'
5618
darwin* | rhapsody*)
5619
lt_cv_deplibs_check_method=pass_all
5622
freebsd* | dragonfly*)
5623
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5626
# Not sure whether the presence of OpenBSD here was a mistake.
5627
# Let's accept both of them until this is cleared up.
5628
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5629
lt_cv_file_magic_cmd=/usr/bin/file
5630
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5634
lt_cv_deplibs_check_method=pass_all
5639
lt_cv_deplibs_check_method=pass_all
5642
hpux10.20* | hpux11*)
5643
lt_cv_file_magic_cmd=/usr/bin/file
5646
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5647
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5650
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]'
5651
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5654
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5655
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5661
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5662
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5665
irix5* | irix6* | nonstopux*)
5667
*-32|*"-32 ") libmagic=32-bit;;
5668
*-n32|*"-n32 ") libmagic=N32;;
5669
*-64|*"-64 ") libmagic=64-bit;;
5670
*) libmagic=never-match;;
5672
lt_cv_deplibs_check_method=pass_all
5675
# This must be Linux ELF.
5676
linux* | k*bsd*-gnu)
5677
lt_cv_deplibs_check_method=pass_all
5681
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5682
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5684
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5689
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5690
lt_cv_file_magic_cmd=/usr/bin/file
5691
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5695
lt_cv_deplibs_check_method=pass_all
5699
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5700
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5702
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5706
osf3* | osf4* | osf5*)
5707
lt_cv_deplibs_check_method=pass_all
5711
lt_cv_deplibs_check_method=pass_all
5715
lt_cv_deplibs_check_method=pass_all
5718
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5719
lt_cv_deplibs_check_method=pass_all
5723
case $host_vendor in
5725
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]'
5726
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5729
lt_cv_deplibs_check_method=pass_all
5732
lt_cv_file_magic_cmd='/bin/file'
5733
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5736
lt_cv_file_magic_cmd='/bin/file'
5737
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5738
lt_cv_file_magic_test_file=/lib/libc.so
5741
lt_cv_deplibs_check_method=pass_all
5744
lt_cv_deplibs_check_method=pass_all
5750
lt_cv_deplibs_check_method=pass_all
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5756
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5757
file_magic_cmd=$lt_cv_file_magic_cmd
5758
deplibs_check_method=$lt_cv_deplibs_check_method
5759
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5772
if test -n "$ac_tool_prefix"; then
5773
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5774
set dummy ${ac_tool_prefix}ar; ac_word=$2
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776
$as_echo_n "checking for $ac_word... " >&6; }
5777
if test "${ac_cv_prog_AR+set}" = set; then :
5778
$as_echo_n "(cached) " >&6
5780
if test -n "$AR"; then
5781
ac_cv_prog_AR="$AR" # Let the user override the test.
5783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787
test -z "$as_dir" && as_dir=.
5788
for ac_exec_ext in '' $ac_executable_extensions; do
5789
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790
ac_cv_prog_AR="${ac_tool_prefix}ar"
5791
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801
if test -n "$AR"; then
5802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803
$as_echo "$AR" >&6; }
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806
$as_echo "no" >&6; }
5811
if test -z "$ac_cv_prog_AR"; then
5813
# Extract the first word of "ar", so it can be a program name with args.
5814
set dummy ar; ac_word=$2
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816
$as_echo_n "checking for $ac_word... " >&6; }
5817
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5818
$as_echo_n "(cached) " >&6
5820
if test -n "$ac_ct_AR"; then
5821
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827
test -z "$as_dir" && as_dir=.
5828
for ac_exec_ext in '' $ac_executable_extensions; do
5829
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830
ac_cv_prog_ac_ct_AR="ar"
5831
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5841
if test -n "$ac_ct_AR"; then
5842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5843
$as_echo "$ac_ct_AR" >&6; }
5845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846
$as_echo "no" >&6; }
5849
if test "x$ac_ct_AR" = x; then
5852
case $cross_compiling:$ac_tool_warned in
5854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5855
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5856
ac_tool_warned=yes ;;
5864
test -z "$AR" && AR=ar
5865
test -z "$AR_FLAGS" && AR_FLAGS=cru
5877
if test -n "$ac_tool_prefix"; then
5878
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5879
set dummy ${ac_tool_prefix}strip; ac_word=$2
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881
$as_echo_n "checking for $ac_word... " >&6; }
5882
if test "${ac_cv_prog_STRIP+set}" = set; then :
5883
$as_echo_n "(cached) " >&6
5885
if test -n "$STRIP"; then
5886
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892
test -z "$as_dir" && as_dir=.
5893
for ac_exec_ext in '' $ac_executable_extensions; do
5894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5896
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905
STRIP=$ac_cv_prog_STRIP
5906
if test -n "$STRIP"; then
5907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5908
$as_echo "$STRIP" >&6; }
5910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911
$as_echo "no" >&6; }
5916
if test -z "$ac_cv_prog_STRIP"; then
5918
# Extract the first word of "strip", so it can be a program name with args.
5919
set dummy strip; ac_word=$2
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921
$as_echo_n "checking for $ac_word... " >&6; }
5922
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5923
$as_echo_n "(cached) " >&6
5925
if test -n "$ac_ct_STRIP"; then
5926
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
test -z "$as_dir" && as_dir=.
5933
for ac_exec_ext in '' $ac_executable_extensions; do
5934
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935
ac_cv_prog_ac_ct_STRIP="strip"
5936
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5946
if test -n "$ac_ct_STRIP"; then
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5948
$as_echo "$ac_ct_STRIP" >&6; }
5950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951
$as_echo "no" >&6; }
5954
if test "x$ac_ct_STRIP" = x; then
5957
case $cross_compiling:$ac_tool_warned in
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961
ac_tool_warned=yes ;;
5966
STRIP="$ac_cv_prog_STRIP"
5969
test -z "$STRIP" && STRIP=:
5976
if test -n "$ac_tool_prefix"; then
5977
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980
$as_echo_n "checking for $ac_word... " >&6; }
5981
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5982
$as_echo_n "(cached) " >&6
5984
if test -n "$RANLIB"; then
5985
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991
test -z "$as_dir" && as_dir=.
5992
for ac_exec_ext in '' $ac_executable_extensions; do
5993
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004
RANLIB=$ac_cv_prog_RANLIB
6005
if test -n "$RANLIB"; then
6006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6007
$as_echo "$RANLIB" >&6; }
6009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010
$as_echo "no" >&6; }
6015
if test -z "$ac_cv_prog_RANLIB"; then
6016
ac_ct_RANLIB=$RANLIB
6017
# Extract the first word of "ranlib", so it can be a program name with args.
6018
set dummy ranlib; ac_word=$2
6019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020
$as_echo_n "checking for $ac_word... " >&6; }
6021
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6022
$as_echo_n "(cached) " >&6
6024
if test -n "$ac_ct_RANLIB"; then
6025
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031
test -z "$as_dir" && as_dir=.
6032
for ac_exec_ext in '' $ac_executable_extensions; do
6033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034
ac_cv_prog_ac_ct_RANLIB="ranlib"
6035
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6045
if test -n "$ac_ct_RANLIB"; then
6046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6047
$as_echo "$ac_ct_RANLIB" >&6; }
6049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050
$as_echo "no" >&6; }
6053
if test "x$ac_ct_RANLIB" = x; then
6056
case $cross_compiling:$ac_tool_warned in
6058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060
ac_tool_warned=yes ;;
6062
RANLIB=$ac_ct_RANLIB
6065
RANLIB="$ac_cv_prog_RANLIB"
6068
test -z "$RANLIB" && RANLIB=:
6075
# Determine commands to create old-style static archives.
6076
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6077
old_postinstall_cmds='chmod 644 $oldlib'
6078
old_postuninstall_cmds=
6080
if test -n "$RANLIB"; then
6083
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6086
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6089
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6125
# If no C compiler was specified, use CC.
6128
# If no C compiler flags were specified, use CFLAGS.
6129
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6131
# Allow CC to be a program name with arguments.
6135
# Check for command to grab the raw symbol name followed by C symbol from nm.
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6137
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6138
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6139
$as_echo_n "(cached) " >&6
6142
# These are sane defaults that work on at least a few old systems.
6143
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6145
# Character class describing NM global symbol codes.
6146
symcode='[BCDEGRST]'
6148
# Regexp to match symbols that can be accessed directly from C.
6149
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6151
# Define system-specific variables.
6156
cygwin* | mingw* | pw32* | cegcc*)
6157
symcode='[ABCDGISTW]'
6160
if test "$host_cpu" = ia64; then
6161
symcode='[ABCDEGRST]'
6165
symcode='[BCDEGRST]'
6168
symcode='[BCDEGQRST]'
6179
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6187
# If we're using GNU nm, then use its standard symbol codes.
6188
case `$NM -V 2>&1` in
6189
*GNU* | *'with BFD'*)
6190
symcode='[ABCDGIRSTW]' ;;
6193
# Transform an extracted symbol line into a proper C declaration.
6194
# Some systems (esp. on ia64) link data and code symbols differently,
6195
# so use this general approach.
6196
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6198
# Transform an extracted symbol line into symbol name and symbol address
6199
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6200
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'"
6202
# Handle CRLF in mingw tool chain
6206
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6210
# Try without a prefix underscore, then with it.
6211
for ac_symprfx in "" "_"; do
6213
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6214
symxfrm="\\1 $ac_symprfx\\2 \\2"
6216
# Write the raw and C identifiers.
6217
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6218
# Fake it for dumpbin and say T for any non-static function
6219
# and D for any global variable.
6220
# Also find C++ and __fastcall symbols from MSVC++,
6221
# which start with @ or ?.
6222
lt_cv_sys_global_symbol_pipe="$AWK '"\
6223
" {last_section=section; section=\$ 3};"\
6224
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6225
" \$ 0!~/External *\|/{next};"\
6226
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6227
" {if(hide[section]) next};"\
6228
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6229
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6230
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6231
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6232
" ' prfx=^$ac_symprfx"
6234
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6237
# Check to see that the pipe works correctly.
6241
cat > conftest.$ac_ext <<_LT_EOF
6246
void nm_test_func(void);
6247
void nm_test_func(void){}
6251
int main(){nm_test_var='a';nm_test_func();return(0);}
6254
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255
(eval $ac_compile) 2>&5
6257
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258
test $ac_status = 0; }; then
6259
# Now try to grab the symbols.
6261
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6262
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6264
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265
test $ac_status = 0; } && test -s "$nlist"; then
6266
# Try sorting and uniquifying the output.
6267
if sort "$nlist" | uniq > "$nlist"T; then
6268
mv -f "$nlist"T "$nlist"
6273
# Make sure that we snagged all the symbols we need.
6274
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6275
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6276
cat <<_LT_EOF > conftest.$ac_ext
6282
# Now generate the symbol file.
6283
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6285
cat <<_LT_EOF >> conftest.$ac_ext
6287
/* The mapping between symbol names and symbols. */
6292
lt__PROGRAM__LTX_preloaded_symbols[] =
6294
{ "@PROGRAM@", (void *) 0 },
6296
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6297
cat <<\_LT_EOF >> conftest.$ac_ext
6301
/* This works around a problem in FreeBSD linker */
6302
#ifdef FREEBSD_WORKAROUND
6303
static const void *lt_preloaded_setup() {
6304
return lt__PROGRAM__LTX_preloaded_symbols;
6312
# Now try linking the two files.
6313
mv conftest.$ac_objext conftstm.$ac_objext
6314
lt_save_LIBS="$LIBS"
6315
lt_save_CFLAGS="$CFLAGS"
6316
LIBS="conftstm.$ac_objext"
6317
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6318
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6319
(eval $ac_link) 2>&5
6321
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6325
LIBS="$lt_save_LIBS"
6326
CFLAGS="$lt_save_CFLAGS"
6328
echo "cannot find nm_test_func in $nlist" >&5
6331
echo "cannot find nm_test_var in $nlist" >&5
6334
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6337
echo "$progname: failed program was:" >&5
6338
cat conftest.$ac_ext >&5
6340
rm -rf conftest* conftst*
6342
# Do not use the global_symbol_pipe unless it works.
6343
if test "$pipe_works" = yes; then
6346
lt_cv_sys_global_symbol_pipe=
6352
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6353
lt_cv_sys_global_symbol_to_cdecl=
6355
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6357
$as_echo "failed" >&6; }
6359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6360
$as_echo "ok" >&6; }
6384
# Check whether --enable-libtool-lock was given.
6385
if test "${enable_libtool_lock+set}" = set; then :
6386
enableval=$enable_libtool_lock;
6389
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6391
# Some flags need to be propagated to the compiler or linker for good
6395
# Find out which ABI we are using.
6396
echo 'int i;' > conftest.$ac_ext
6397
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398
(eval $ac_compile) 2>&5
6400
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401
test $ac_status = 0; }; then
6402
case `/usr/bin/file conftest.$ac_objext` in
6414
# Find out which ABI we are using.
6415
echo '#line 6415 "configure"' > conftest.$ac_ext
6416
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417
(eval $ac_compile) 2>&5
6419
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420
test $ac_status = 0; }; then
6421
if test "$lt_cv_prog_gnu_ld" = yes; then
6422
case `/usr/bin/file conftest.$ac_objext` in
6424
LD="${LD-ld} -melf32bsmip"
6427
LD="${LD-ld} -melf32bmipn32"
6430
LD="${LD-ld} -melf64bmip"
6434
case `/usr/bin/file conftest.$ac_objext` in
6450
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6451
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6452
# Find out which ABI we are using.
6453
echo 'int i;' > conftest.$ac_ext
6454
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6455
(eval $ac_compile) 2>&5
6457
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458
test $ac_status = 0; }; then
6459
case `/usr/bin/file conftest.o` in
6462
x86_64-*kfreebsd*-gnu)
6463
LD="${LD-ld} -m elf_i386_fbsd"
6466
LD="${LD-ld} -m elf_i386"
6468
ppc64-*linux*|powerpc64-*linux*)
6469
LD="${LD-ld} -m elf32ppclinux"
6472
LD="${LD-ld} -m elf_s390"
6475
LD="${LD-ld} -m elf32_sparc"
6481
x86_64-*kfreebsd*-gnu)
6482
LD="${LD-ld} -m elf_x86_64_fbsd"
6485
LD="${LD-ld} -m elf_x86_64"
6487
ppc*-*linux*|powerpc*-*linux*)
6488
LD="${LD-ld} -m elf64ppc"
6490
s390*-*linux*|s390*-*tpf*)
6491
LD="${LD-ld} -m elf64_s390"
6494
LD="${LD-ld} -m elf64_sparc"
6504
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6505
SAVE_CFLAGS="$CFLAGS"
6506
CFLAGS="$CFLAGS -belf"
6507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6508
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6509
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6510
$as_echo_n "(cached) " >&6
6513
ac_cpp='$CPP $CPPFLAGS'
6514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519
/* end confdefs.h. */
6529
if ac_fn_c_try_link "$LINENO"; then :
6530
lt_cv_cc_needs_belf=yes
6532
lt_cv_cc_needs_belf=no
6534
rm -f core conftest.err conftest.$ac_objext \
6535
conftest$ac_exeext conftest.$ac_ext
6537
ac_cpp='$CPP $CPPFLAGS'
6538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6544
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6545
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6546
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6547
CFLAGS="$SAVE_CFLAGS"
6551
# Find out which ABI we are using.
6552
echo 'int i;' > conftest.$ac_ext
6553
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6554
(eval $ac_compile) 2>&5
6556
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557
test $ac_status = 0; }; then
6558
case `/usr/bin/file conftest.o` in
6560
case $lt_cv_prog_gnu_ld in
6561
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6563
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6575
need_locks="$enable_libtool_lock"
6579
rhapsody* | darwin*)
6580
if test -n "$ac_tool_prefix"; then
6581
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6582
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584
$as_echo_n "checking for $ac_word... " >&6; }
6585
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6586
$as_echo_n "(cached) " >&6
6588
if test -n "$DSYMUTIL"; then
6589
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595
test -z "$as_dir" && as_dir=.
6596
for ac_exec_ext in '' $ac_executable_extensions; do
6597
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6599
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6609
if test -n "$DSYMUTIL"; then
6610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6611
$as_echo "$DSYMUTIL" >&6; }
6613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614
$as_echo "no" >&6; }
6619
if test -z "$ac_cv_prog_DSYMUTIL"; then
6620
ac_ct_DSYMUTIL=$DSYMUTIL
6621
# Extract the first word of "dsymutil", so it can be a program name with args.
6622
set dummy dsymutil; ac_word=$2
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624
$as_echo_n "checking for $ac_word... " >&6; }
6625
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6626
$as_echo_n "(cached) " >&6
6628
if test -n "$ac_ct_DSYMUTIL"; then
6629
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635
test -z "$as_dir" && as_dir=.
6636
for ac_exec_ext in '' $ac_executable_extensions; do
6637
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6639
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6649
if test -n "$ac_ct_DSYMUTIL"; then
6650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6651
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654
$as_echo "no" >&6; }
6657
if test "x$ac_ct_DSYMUTIL" = x; then
6660
case $cross_compiling:$ac_tool_warned in
6662
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664
ac_tool_warned=yes ;;
6666
DSYMUTIL=$ac_ct_DSYMUTIL
6669
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6672
if test -n "$ac_tool_prefix"; then
6673
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6674
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676
$as_echo_n "checking for $ac_word... " >&6; }
6677
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6678
$as_echo_n "(cached) " >&6
6680
if test -n "$NMEDIT"; then
6681
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687
test -z "$as_dir" && as_dir=.
6688
for ac_exec_ext in '' $ac_executable_extensions; do
6689
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6691
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700
NMEDIT=$ac_cv_prog_NMEDIT
6701
if test -n "$NMEDIT"; then
6702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6703
$as_echo "$NMEDIT" >&6; }
6705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706
$as_echo "no" >&6; }
6711
if test -z "$ac_cv_prog_NMEDIT"; then
6712
ac_ct_NMEDIT=$NMEDIT
6713
# Extract the first word of "nmedit", so it can be a program name with args.
6714
set dummy nmedit; ac_word=$2
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716
$as_echo_n "checking for $ac_word... " >&6; }
6717
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6718
$as_echo_n "(cached) " >&6
6720
if test -n "$ac_ct_NMEDIT"; then
6721
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727
test -z "$as_dir" && as_dir=.
6728
for ac_exec_ext in '' $ac_executable_extensions; do
6729
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6731
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6741
if test -n "$ac_ct_NMEDIT"; then
6742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6743
$as_echo "$ac_ct_NMEDIT" >&6; }
6745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746
$as_echo "no" >&6; }
6749
if test "x$ac_ct_NMEDIT" = x; then
6752
case $cross_compiling:$ac_tool_warned in
6754
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756
ac_tool_warned=yes ;;
6758
NMEDIT=$ac_ct_NMEDIT
6761
NMEDIT="$ac_cv_prog_NMEDIT"
6764
if test -n "$ac_tool_prefix"; then
6765
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6766
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768
$as_echo_n "checking for $ac_word... " >&6; }
6769
if test "${ac_cv_prog_LIPO+set}" = set; then :
6770
$as_echo_n "(cached) " >&6
6772
if test -n "$LIPO"; then
6773
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779
test -z "$as_dir" && as_dir=.
6780
for ac_exec_ext in '' $ac_executable_extensions; do
6781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6783
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792
LIPO=$ac_cv_prog_LIPO
6793
if test -n "$LIPO"; then
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6795
$as_echo "$LIPO" >&6; }
6797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798
$as_echo "no" >&6; }
6803
if test -z "$ac_cv_prog_LIPO"; then
6805
# Extract the first word of "lipo", so it can be a program name with args.
6806
set dummy lipo; ac_word=$2
6807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808
$as_echo_n "checking for $ac_word... " >&6; }
6809
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6810
$as_echo_n "(cached) " >&6
6812
if test -n "$ac_ct_LIPO"; then
6813
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819
test -z "$as_dir" && as_dir=.
6820
for ac_exec_ext in '' $ac_executable_extensions; do
6821
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822
ac_cv_prog_ac_ct_LIPO="lipo"
6823
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6833
if test -n "$ac_ct_LIPO"; then
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6835
$as_echo "$ac_ct_LIPO" >&6; }
6837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838
$as_echo "no" >&6; }
6841
if test "x$ac_ct_LIPO" = x; then
6844
case $cross_compiling:$ac_tool_warned in
6846
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848
ac_tool_warned=yes ;;
6853
LIPO="$ac_cv_prog_LIPO"
6856
if test -n "$ac_tool_prefix"; then
6857
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6858
set dummy ${ac_tool_prefix}otool; ac_word=$2
6859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860
$as_echo_n "checking for $ac_word... " >&6; }
6861
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6862
$as_echo_n "(cached) " >&6
6864
if test -n "$OTOOL"; then
6865
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871
test -z "$as_dir" && as_dir=.
6872
for ac_exec_ext in '' $ac_executable_extensions; do
6873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6875
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884
OTOOL=$ac_cv_prog_OTOOL
6885
if test -n "$OTOOL"; then
6886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6887
$as_echo "$OTOOL" >&6; }
6889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890
$as_echo "no" >&6; }
6895
if test -z "$ac_cv_prog_OTOOL"; then
6897
# Extract the first word of "otool", so it can be a program name with args.
6898
set dummy otool; ac_word=$2
6899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900
$as_echo_n "checking for $ac_word... " >&6; }
6901
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6902
$as_echo_n "(cached) " >&6
6904
if test -n "$ac_ct_OTOOL"; then
6905
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911
test -z "$as_dir" && as_dir=.
6912
for ac_exec_ext in '' $ac_executable_extensions; do
6913
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914
ac_cv_prog_ac_ct_OTOOL="otool"
6915
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6925
if test -n "$ac_ct_OTOOL"; then
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6927
$as_echo "$ac_ct_OTOOL" >&6; }
6929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930
$as_echo "no" >&6; }
6933
if test "x$ac_ct_OTOOL" = x; then
6936
case $cross_compiling:$ac_tool_warned in
6938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940
ac_tool_warned=yes ;;
6945
OTOOL="$ac_cv_prog_OTOOL"
6948
if test -n "$ac_tool_prefix"; then
6949
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6950
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952
$as_echo_n "checking for $ac_word... " >&6; }
6953
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6954
$as_echo_n "(cached) " >&6
6956
if test -n "$OTOOL64"; then
6957
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963
test -z "$as_dir" && as_dir=.
6964
for ac_exec_ext in '' $ac_executable_extensions; do
6965
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6967
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976
OTOOL64=$ac_cv_prog_OTOOL64
6977
if test -n "$OTOOL64"; then
6978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6979
$as_echo "$OTOOL64" >&6; }
6981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982
$as_echo "no" >&6; }
6987
if test -z "$ac_cv_prog_OTOOL64"; then
6988
ac_ct_OTOOL64=$OTOOL64
6989
# Extract the first word of "otool64", so it can be a program name with args.
6990
set dummy otool64; ac_word=$2
6991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992
$as_echo_n "checking for $ac_word... " >&6; }
6993
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6994
$as_echo_n "(cached) " >&6
6996
if test -n "$ac_ct_OTOOL64"; then
6997
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003
test -z "$as_dir" && as_dir=.
7004
for ac_exec_ext in '' $ac_executable_extensions; do
7005
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006
ac_cv_prog_ac_ct_OTOOL64="otool64"
7007
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7017
if test -n "$ac_ct_OTOOL64"; then
7018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7019
$as_echo "$ac_ct_OTOOL64" >&6; }
7021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022
$as_echo "no" >&6; }
7025
if test "x$ac_ct_OTOOL64" = x; then
7028
case $cross_compiling:$ac_tool_warned in
7030
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032
ac_tool_warned=yes ;;
7034
OTOOL64=$ac_ct_OTOOL64
7037
OTOOL64="$ac_cv_prog_OTOOL64"
7066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7067
$as_echo_n "checking for -single_module linker flag... " >&6; }
7068
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7069
$as_echo_n "(cached) " >&6
7071
lt_cv_apple_cc_single_mod=no
7072
if test -z "${LT_MULTI_MODULE}"; then
7073
# By default we will add the -single_module flag. You can override
7074
# by either setting the environment variable LT_MULTI_MODULE
7075
# non-empty at configure time, or by adding -multi_module to the
7077
rm -rf libconftest.dylib*
7078
echo "int foo(void){return 1;}" > conftest.c
7079
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7080
-dynamiclib -Wl,-single_module conftest.c" >&5
7081
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7082
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7084
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7085
lt_cv_apple_cc_single_mod=yes
7087
cat conftest.err >&5
7089
rm -rf libconftest.dylib*
7093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7094
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7096
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7097
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7098
$as_echo_n "(cached) " >&6
7100
lt_cv_ld_exported_symbols_list=no
7101
save_LDFLAGS=$LDFLAGS
7102
echo "_main" > conftest.sym
7103
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105
/* end confdefs.h. */
7115
if ac_fn_c_try_link "$LINENO"; then :
7116
lt_cv_ld_exported_symbols_list=yes
7118
lt_cv_ld_exported_symbols_list=no
7120
rm -f core conftest.err conftest.$ac_objext \
7121
conftest$ac_exeext conftest.$ac_ext
7122
LDFLAGS="$save_LDFLAGS"
7125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7126
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7128
rhapsody* | darwin1.[012])
7129
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7131
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7132
darwin*) # darwin 5.x on
7133
# if running on 10.5 or later, the deployment target defaults
7134
# to the OS version, if on x86, and 10.4, the deployment
7135
# target defaults to 10.4. Don't you love it?
7136
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7137
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7138
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7142
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7146
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7147
_lt_dar_single_mod='$single_module'
7149
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7150
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7152
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7154
if test "$DSYMUTIL" != ":"; then
7155
_lt_dsymutil='~$DSYMUTIL $lib || :'
7162
for ac_header in dlfcn.h
7164
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7166
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7167
cat >>confdefs.h <<_ACEOF
7168
#define HAVE_DLFCN_H 1
7187
# Check whether --enable-shared was given.
7188
if test "${enable_shared+set}" = set; then :
7189
enableval=$enable_shared; p=${PACKAGE-default}
7191
yes) enable_shared=yes ;;
7192
no) enable_shared=no ;;
7195
# Look at the argument we got. We use all the common list separators.
7196
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7197
for pkg in $enableval; do
7199
if test "X$pkg" = "X$p"; then
7218
# Check whether --enable-static was given.
7219
if test "${enable_static+set}" = set; then :
7220
enableval=$enable_static; p=${PACKAGE-default}
7222
yes) enable_static=yes ;;
7223
no) enable_static=no ;;
7226
# Look at the argument we got. We use all the common list separators.
7227
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7228
for pkg in $enableval; do
7230
if test "X$pkg" = "X$p"; then
7250
# Check whether --with-pic was given.
7251
if test "${with_pic+set}" = set; then :
7252
withval=$with_pic; pic_mode="$withval"
7258
test -z "$pic_mode" && pic_mode=default
7266
# Check whether --enable-fast-install was given.
7267
if test "${enable_fast_install+set}" = set; then :
7268
enableval=$enable_fast_install; p=${PACKAGE-default}
7270
yes) enable_fast_install=yes ;;
7271
no) enable_fast_install=no ;;
7273
enable_fast_install=no
7274
# Look at the argument we got. We use all the common list separators.
7275
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7276
for pkg in $enableval; do
7278
if test "X$pkg" = "X$p"; then
7279
enable_fast_install=yes
7286
enable_fast_install=yes
7299
# This can be used to rebuild libtool when needed
7300
LIBTOOL_DEPS="$ltmain"
7302
# Always use our own libtool.
7303
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7329
test -z "$LN_S" && LN_S="ln -s"
7344
if test -n "${ZSH_VERSION+set}" ; then
7345
setopt NO_GLOB_SUBST
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7349
$as_echo_n "checking for objdir... " >&6; }
7350
if test "${lt_cv_objdir+set}" = set; then :
7351
$as_echo_n "(cached) " >&6
7353
rm -f .libs 2>/dev/null
7354
mkdir .libs 2>/dev/null
7355
if test -d .libs; then
7358
# MS-DOS does not allow filenames that begin with a dot.
7361
rmdir .libs 2>/dev/null
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7364
$as_echo "$lt_cv_objdir" >&6; }
7365
objdir=$lt_cv_objdir
7371
cat >>confdefs.h <<_ACEOF
7372
#define LT_OBJDIR "$lt_cv_objdir/"
7393
# AIX sometimes has problems with the GCC collect2 program. For some
7394
# reason, if we set the COLLECT_NAMES environment variable, the problems
7395
# vanish in a puff of smoke.
7396
if test "X${COLLECT_NAMES+set}" != Xset; then
7398
export COLLECT_NAMES
7403
# Sed substitution that helps us do robust quoting. It backslashifies
7404
# metacharacters that are still active within double-quoted strings.
7405
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7407
# Same as above, but do not quote variable references.
7408
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7410
# Sed substitution to delay expansion of an escaped shell variable in a
7411
# double_quote_subst'ed string.
7412
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7414
# Sed substitution to delay expansion of an escaped single quote.
7415
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7417
# Sed substitution to avoid accidental globbing in evaled expressions
7418
no_glob_subst='s/\*/\\\*/g'
7422
can_build_shared=yes
7424
# All known linkers require a `.a' archive for static linking (except MSVC,
7425
# which needs '.lib').
7428
with_gnu_ld="$lt_cv_prog_gnu_ld"
7431
old_CFLAGS="$CFLAGS"
7433
# Set sane defaults for various variables
7434
test -z "$CC" && CC=cc
7435
test -z "$LTCC" && LTCC=$CC
7436
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7437
test -z "$LD" && LD=ld
7438
test -z "$ac_objext" && ac_objext=o
7440
for cc_temp in $compiler""; do
7442
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7443
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7448
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7451
# Only perform the check for file, if the check method requires it
7452
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7453
case $deplibs_check_method in
7455
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7457
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7458
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7459
$as_echo_n "(cached) " >&6
7463
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7466
lt_save_MAGIC_CMD="$MAGIC_CMD"
7467
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7468
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7469
for ac_dir in $ac_dummy; do
7471
test -z "$ac_dir" && ac_dir=.
7472
if test -f $ac_dir/${ac_tool_prefix}file; then
7473
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7474
if test -n "$file_magic_test_file"; then
7475
case $deplibs_check_method in
7477
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7478
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7479
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7480
$EGREP "$file_magic_regex" > /dev/null; then
7485
*** Warning: the command libtool uses to detect shared libraries,
7486
*** $file_magic_cmd, produces output that libtool cannot recognize.
7487
*** The result is that libtool may fail to recognize shared libraries
7488
*** as such. This will affect the creation of libtool libraries that
7489
*** depend on shared libraries, but programs linked with such libtool
7490
*** libraries will work regardless of this problem. Nevertheless, you
7491
*** may want to report the problem to your system manager and/or to
7492
*** bug-libtool@gnu.org
7502
MAGIC_CMD="$lt_save_MAGIC_CMD"
7507
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7508
if test -n "$MAGIC_CMD"; then
7509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7510
$as_echo "$MAGIC_CMD" >&6; }
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513
$as_echo "no" >&6; }
7520
if test -z "$lt_cv_path_MAGIC_CMD"; then
7521
if test -n "$ac_tool_prefix"; then
7522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7523
$as_echo_n "checking for file... " >&6; }
7524
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7525
$as_echo_n "(cached) " >&6
7529
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7532
lt_save_MAGIC_CMD="$MAGIC_CMD"
7533
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7534
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7535
for ac_dir in $ac_dummy; do
7537
test -z "$ac_dir" && ac_dir=.
7538
if test -f $ac_dir/file; then
7539
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7540
if test -n "$file_magic_test_file"; then
7541
case $deplibs_check_method in
7543
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7544
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7545
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7546
$EGREP "$file_magic_regex" > /dev/null; then
7551
*** Warning: the command libtool uses to detect shared libraries,
7552
*** $file_magic_cmd, produces output that libtool cannot recognize.
7553
*** The result is that libtool may fail to recognize shared libraries
7554
*** as such. This will affect the creation of libtool libraries that
7555
*** depend on shared libraries, but programs linked with such libtool
7556
*** libraries will work regardless of this problem. Nevertheless, you
7557
*** may want to report the problem to your system manager and/or to
7558
*** bug-libtool@gnu.org
7568
MAGIC_CMD="$lt_save_MAGIC_CMD"
7573
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7574
if test -n "$MAGIC_CMD"; then
7575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7576
$as_echo "$MAGIC_CMD" >&6; }
7578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579
$as_echo "no" >&6; }
7592
# Use C for the default configuration in the libtool script
7596
ac_cpp='$CPP $CPPFLAGS'
7597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
# Source file extension for C test sources.
7605
# Object file extension for compiled C test sources.
7609
# Code to be used in simple compile tests
7610
lt_simple_compile_test_code="int some_variable = 0;"
7612
# Code to be used in simple link tests
7613
lt_simple_link_test_code='int main(){return(0);}'
7621
# If no C compiler was specified, use CC.
7624
# If no C compiler flags were specified, use CFLAGS.
7625
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7627
# Allow CC to be a program name with arguments.
7630
# Save the default compiler, since it gets overwritten when the other
7631
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7632
compiler_DEFAULT=$CC
7634
# save warnings/boilerplate of simple test code
7635
ac_outfile=conftest.$ac_objext
7636
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7637
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7638
_lt_compiler_boilerplate=`cat conftest.err`
7641
ac_outfile=conftest.$ac_objext
7642
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7643
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7644
_lt_linker_boilerplate=`cat conftest.err`
7649
## There is no encapsulation within the following macros, do not change
7650
## the running order or otherwise move them around unless you know exactly
7651
## what you are doing...
7652
if test -n "$compiler"; then
7654
lt_prog_compiler_no_builtin_flag=
7656
if test "$GCC" = yes; then
7657
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7660
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7661
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7662
$as_echo_n "(cached) " >&6
7664
lt_cv_prog_compiler_rtti_exceptions=no
7665
ac_outfile=conftest.$ac_objext
7666
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7667
lt_compiler_flag="-fno-rtti -fno-exceptions"
7668
# Insert the option either (1) after the last *FLAGS variable, or
7669
# (2) before a word containing "conftest.", or (3) at the end.
7670
# Note that $ac_compile itself does not contain backslashes and begins
7671
# with a dollar sign (not a hyphen), so the echo should work correctly.
7672
# The option is referenced via a variable to avoid confusing sed.
7673
lt_compile=`echo "$ac_compile" | $SED \
7674
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7675
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7676
-e 's:$: $lt_compiler_flag:'`
7677
(eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
7678
(eval "$lt_compile" 2>conftest.err)
7680
cat conftest.err >&5
7681
echo "$as_me:7681: \$? = $ac_status" >&5
7682
if (exit $ac_status) && test -s "$ac_outfile"; then
7683
# The compiler can only warn and ignore the option if not recognized
7684
# So say no if there are warnings other than the usual output.
7685
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7686
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7687
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7688
lt_cv_prog_compiler_rtti_exceptions=yes
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7695
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7697
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7698
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7710
lt_prog_compiler_wl=
7711
lt_prog_compiler_pic=
7712
lt_prog_compiler_static=
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7715
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7717
if test "$GCC" = yes; then
7718
lt_prog_compiler_wl='-Wl,'
7719
lt_prog_compiler_static='-static'
7723
# All AIX code is PIC.
7724
if test "$host_cpu" = ia64; then
7725
# AIX 5 now supports IA64 processor
7726
lt_prog_compiler_static='-Bstatic'
7733
# see comment about AmigaOS4 .so support
7734
lt_prog_compiler_pic='-fPIC'
7737
# FIXME: we need at least 68020 code to build shared libraries, but
7738
# adding the `-m68020' flag to GCC prevents building anything better,
7740
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7745
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7746
# PIC is the default for these OSes.
7749
mingw* | cygwin* | pw32* | os2* | cegcc*)
7750
# This hack is so that the source file can tell whether it is being
7751
# built for inclusion in a dll (and should export symbols for example).
7752
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7753
# (--disable-auto-import) libraries
7754
lt_prog_compiler_pic='-DDLL_EXPORT'
7757
darwin* | rhapsody*)
7758
# PIC is the default on this platform
7759
# Common symbols not allowed in MH_DYLIB files
7760
lt_prog_compiler_pic='-fno-common'
7764
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7765
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7766
# sets the default TLS model and affects inlining.
7772
lt_prog_compiler_pic='-fPIC'
7778
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7779
# Instead, we relocate shared libraries at runtime.
7783
# Just because we use GCC doesn't mean we suddenly get shared libraries
7784
# on systems that don't support them.
7785
lt_prog_compiler_can_build_shared=no
7790
# QNX uses GNU C++, but need to define -shared option too, otherwise
7792
lt_prog_compiler_pic='-fPIC -shared'
7796
if test -d /usr/nec; then
7797
lt_prog_compiler_pic=-Kconform_pic
7802
lt_prog_compiler_pic='-fPIC'
7806
# PORTME Check for flag to pass linker flags through the system compiler.
7809
lt_prog_compiler_wl='-Wl,'
7810
if test "$host_cpu" = ia64; then
7811
# AIX 5 now supports IA64 processor
7812
lt_prog_compiler_static='-Bstatic'
7814
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7818
mingw* | cygwin* | pw32* | os2* | cegcc*)
7819
# This hack is so that the source file can tell whether it is being
7820
# built for inclusion in a dll (and should export symbols for example).
7821
lt_prog_compiler_pic='-DDLL_EXPORT'
7824
hpux9* | hpux10* | hpux11*)
7825
lt_prog_compiler_wl='-Wl,'
7826
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7833
lt_prog_compiler_pic='+Z'
7836
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7837
lt_prog_compiler_static='${wl}-a ${wl}archive'
7840
irix5* | irix6* | nonstopux*)
7841
lt_prog_compiler_wl='-Wl,'
7842
# PIC (with -KPIC) is the default.
7843
lt_prog_compiler_static='-non_shared'
7846
linux* | k*bsd*-gnu)
7847
case $cc_basename in
7848
# old Intel for x86_64 which still supported -KPIC.
7850
lt_prog_compiler_wl='-Wl,'
7851
lt_prog_compiler_pic='-KPIC'
7852
lt_prog_compiler_static='-static'
7854
# icc used to be incompatible with GCC.
7855
# ICC 10 doesn't accept -KPIC any more.
7857
lt_prog_compiler_wl='-Wl,'
7858
lt_prog_compiler_pic='-fPIC'
7859
lt_prog_compiler_static='-static'
7861
# Lahey Fortran 8.1.
7863
lt_prog_compiler_wl='-Wl,'
7864
lt_prog_compiler_pic='--shared'
7865
lt_prog_compiler_static='--static'
7867
pgcc* | pgf77* | pgf90* | pgf95*)
7868
# Portland Group compilers (*not* the Pentium gcc compiler,
7869
# which looks to be a dead project)
7870
lt_prog_compiler_wl='-Wl,'
7871
lt_prog_compiler_pic='-fpic'
7872
lt_prog_compiler_static='-Bstatic'
7875
lt_prog_compiler_wl='-Wl,'
7876
# All Alpha code is PIC.
7877
lt_prog_compiler_static='-non_shared'
7880
# IBM XL C 8.0/Fortran 10.1 on PPC
7881
lt_prog_compiler_wl='-Wl,'
7882
lt_prog_compiler_pic='-qpic'
7883
lt_prog_compiler_static='-qstaticlink'
7886
case `$CC -V 2>&1 | sed 5q` in
7889
lt_prog_compiler_pic='-KPIC'
7890
lt_prog_compiler_static='-Bstatic'
7891
lt_prog_compiler_wl='-Wl,'
7894
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7895
lt_prog_compiler_pic='-KPIC'
7896
lt_prog_compiler_static='-Bstatic'
7897
lt_prog_compiler_wl=''
7905
lt_prog_compiler_pic='-KPIC'
7906
lt_prog_compiler_static='-Bstatic'
7910
# QNX uses GNU C++, but need to define -shared option too, otherwise
7912
lt_prog_compiler_pic='-fPIC -shared'
7915
osf3* | osf4* | osf5*)
7916
lt_prog_compiler_wl='-Wl,'
7917
# All OSF/1 code is PIC.
7918
lt_prog_compiler_static='-non_shared'
7922
lt_prog_compiler_static='-non_shared'
7926
lt_prog_compiler_pic='-KPIC'
7927
lt_prog_compiler_static='-Bstatic'
7928
case $cc_basename in
7930
lt_prog_compiler_wl='-Qoption ld ';;
7932
lt_prog_compiler_wl='-Wl,';;
7937
lt_prog_compiler_wl='-Qoption ld '
7938
lt_prog_compiler_pic='-PIC'
7939
lt_prog_compiler_static='-Bstatic'
7942
sysv4 | sysv4.2uw2* | sysv4.3*)
7943
lt_prog_compiler_wl='-Wl,'
7944
lt_prog_compiler_pic='-KPIC'
7945
lt_prog_compiler_static='-Bstatic'
7949
if test -d /usr/nec ;then
7950
lt_prog_compiler_pic='-Kconform_pic'
7951
lt_prog_compiler_static='-Bstatic'
7955
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7956
lt_prog_compiler_wl='-Wl,'
7957
lt_prog_compiler_pic='-KPIC'
7958
lt_prog_compiler_static='-Bstatic'
7962
lt_prog_compiler_wl='-Wl,'
7963
lt_prog_compiler_can_build_shared=no
7967
lt_prog_compiler_pic='-pic'
7968
lt_prog_compiler_static='-Bstatic'
7972
lt_prog_compiler_can_build_shared=no
7978
# For platforms which do not support PIC, -DPIC is meaningless:
7980
lt_prog_compiler_pic=
7983
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7987
$as_echo "$lt_prog_compiler_pic" >&6; }
7995
# Check to make sure the PIC flag actually works.
7997
if test -n "$lt_prog_compiler_pic"; then
7998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7999
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8000
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8001
$as_echo_n "(cached) " >&6
8003
lt_cv_prog_compiler_pic_works=no
8004
ac_outfile=conftest.$ac_objext
8005
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8006
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8007
# Insert the option either (1) after the last *FLAGS variable, or
8008
# (2) before a word containing "conftest.", or (3) at the end.
8009
# Note that $ac_compile itself does not contain backslashes and begins
8010
# with a dollar sign (not a hyphen), so the echo should work correctly.
8011
# The option is referenced via a variable to avoid confusing sed.
8012
lt_compile=`echo "$ac_compile" | $SED \
8013
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8014
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8015
-e 's:$: $lt_compiler_flag:'`
8016
(eval echo "\"\$as_me:8016: $lt_compile\"" >&5)
8017
(eval "$lt_compile" 2>conftest.err)
8019
cat conftest.err >&5
8020
echo "$as_me:8020: \$? = $ac_status" >&5
8021
if (exit $ac_status) && test -s "$ac_outfile"; then
8022
# The compiler can only warn and ignore the option if not recognized
8023
# So say no if there are warnings other than the usual output.
8024
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8025
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8026
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8027
lt_cv_prog_compiler_pic_works=yes
8033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8034
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8036
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8037
case $lt_prog_compiler_pic in
8039
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8042
lt_prog_compiler_pic=
8043
lt_prog_compiler_can_build_shared=no
8054
# Check to make sure the static flag actually works.
8056
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8058
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8059
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8060
$as_echo_n "(cached) " >&6
8062
lt_cv_prog_compiler_static_works=no
8063
save_LDFLAGS="$LDFLAGS"
8064
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8065
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8066
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8067
# The linker can only warn and ignore the option if not recognized
8068
# So say no if there are warnings
8069
if test -s conftest.err; then
8070
# Append any errors to the config.log.
8071
cat conftest.err 1>&5
8072
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8073
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8074
if diff conftest.exp conftest.er2 >/dev/null; then
8075
lt_cv_prog_compiler_static_works=yes
8078
lt_cv_prog_compiler_static_works=yes
8082
LDFLAGS="$save_LDFLAGS"
8085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8086
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8088
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8091
lt_prog_compiler_static=
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8101
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8102
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8103
$as_echo_n "(cached) " >&6
8105
lt_cv_prog_compiler_c_o=no
8106
$RM -r conftest 2>/dev/null
8110
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112
lt_compiler_flag="-o out/conftest2.$ac_objext"
8113
# Insert the option either (1) after the last *FLAGS variable, or
8114
# (2) before a word containing "conftest.", or (3) at the end.
8115
# Note that $ac_compile itself does not contain backslashes and begins
8116
# with a dollar sign (not a hyphen), so the echo should work correctly.
8117
lt_compile=`echo "$ac_compile" | $SED \
8118
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120
-e 's:$: $lt_compiler_flag:'`
8121
(eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
8122
(eval "$lt_compile" 2>out/conftest.err)
8124
cat out/conftest.err >&5
8125
echo "$as_me:8125: \$? = $ac_status" >&5
8126
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8128
# The compiler can only warn and ignore the option if not recognized
8129
# So say no if there are warnings
8130
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8131
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8132
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8133
lt_cv_prog_compiler_c_o=yes
8138
# SGI C++ compiler will create directory out/ii_files/ for
8139
# template instantiation
8140
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8141
$RM out/* && rmdir out
8147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8148
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8156
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8157
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8158
$as_echo_n "(cached) " >&6
8160
lt_cv_prog_compiler_c_o=no
8161
$RM -r conftest 2>/dev/null
8165
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8167
lt_compiler_flag="-o out/conftest2.$ac_objext"
8168
# Insert the option either (1) after the last *FLAGS variable, or
8169
# (2) before a word containing "conftest.", or (3) at the end.
8170
# Note that $ac_compile itself does not contain backslashes and begins
8171
# with a dollar sign (not a hyphen), so the echo should work correctly.
8172
lt_compile=`echo "$ac_compile" | $SED \
8173
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8174
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8175
-e 's:$: $lt_compiler_flag:'`
8176
(eval echo "\"\$as_me:8176: $lt_compile\"" >&5)
8177
(eval "$lt_compile" 2>out/conftest.err)
8179
cat out/conftest.err >&5
8180
echo "$as_me:8180: \$? = $ac_status" >&5
8181
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8183
# The compiler can only warn and ignore the option if not recognized
8184
# So say no if there are warnings
8185
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8186
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8187
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8188
lt_cv_prog_compiler_c_o=yes
8193
# SGI C++ compiler will create directory out/ii_files/ for
8194
# template instantiation
8195
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8196
$RM out/* && rmdir out
8202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8203
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8208
hard_links="nottested"
8209
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8210
# do not overwrite the value of need_locks provided by the user
8211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8212
$as_echo_n "checking if we can lock with hard links... " >&6; }
8215
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8217
ln conftest.a conftest.b 2>&5 || hard_links=no
8218
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8220
$as_echo "$hard_links" >&6; }
8221
if test "$hard_links" = no; then
8222
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8223
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8236
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8239
allow_undefined_flag=
8240
always_export_symbols=no
8242
archive_expsym_cmds=
8243
compiler_needs_object=no
8244
enable_shared_with_static_runtimes=no
8245
export_dynamic_flag_spec=
8246
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8247
hardcode_automatic=no
8249
hardcode_direct_absolute=no
8250
hardcode_libdir_flag_spec=
8251
hardcode_libdir_flag_spec_ld=
8252
hardcode_libdir_separator=
8254
hardcode_shlibpath_var=unsupported
8256
link_all_deplibs=unknown
8259
old_archive_from_new_cmds=
8260
old_archive_from_expsyms_cmds=
8261
thread_safe_flag_spec=
8262
whole_archive_flag_spec=
8263
# include_expsyms should be a list of space-separated symbols to be *always*
8264
# included in the symbol list
8266
# exclude_expsyms can be an extended regexp of symbols to exclude
8267
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8268
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8269
# as well as any symbol that contains `d'.
8270
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8271
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8272
# platforms (ab)use it in PIC code, but their linkers get confused if
8273
# the symbol is explicitly referenced. Since portable code cannot
8274
# rely on this symbol name, it's probably fine to never include it in
8275
# preloaded symbol tables.
8276
# Exclude shared library initialization/finalization symbols.
8277
extract_expsyms_cmds=
8280
cygwin* | mingw* | pw32* | cegcc*)
8281
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8282
# When not using gcc, we currently assume that we are using
8283
# Microsoft Visual C++.
8284
if test "$GCC" != yes; then
8289
# we just hope/assume this is gcc and not c89 (= MSVC++)
8298
if test "$with_gnu_ld" = yes; then
8299
# If archive_cmds runs LD, not CC, wlarc should be empty
8302
# Set some defaults for GNU ld with shared library support. These
8303
# are reset later if shared libraries are not supported. Putting them
8304
# here allows them to be overridden if necessary.
8305
runpath_var=LD_RUN_PATH
8306
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8307
export_dynamic_flag_spec='${wl}--export-dynamic'
8308
# ancient GNU ld didn't support --whole-archive et. al.
8309
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8310
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8312
whole_archive_flag_spec=
8314
supports_anon_versioning=no
8315
case `$LD -v 2>&1` in
8316
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8317
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8318
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8319
*\ 2.11.*) ;; # other 2.11 versions
8320
*) supports_anon_versioning=yes ;;
8323
# See if GNU ld supports shared libraries.
8326
# On AIX/PPC, the GNU linker is very broken
8327
if test "$host_cpu" != ia64; then
8331
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8332
*** to be unable to reliably create shared libraries on AIX.
8333
*** Therefore, libtool is disabling shared libraries support. If you
8334
*** really care for shared libraries, you may want to modify your PATH
8335
*** so that a non-GNU linker is found, and then restart.
8344
# see comment about AmigaOS4 .so support
8345
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346
archive_expsym_cmds=''
8349
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)'
8350
hardcode_libdir_flag_spec='-L$libdir'
8351
hardcode_minus_L=yes
8357
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8358
allow_undefined_flag=unsupported
8359
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8360
# support --undefined. This deserves some investigation. FIXME
8361
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367
cygwin* | mingw* | pw32* | cegcc*)
8368
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8369
# as there is no search path for DLLs.
8370
hardcode_libdir_flag_spec='-L$libdir'
8371
allow_undefined_flag=unsupported
8372
always_export_symbols=no
8373
enable_shared_with_static_runtimes=yes
8374
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8376
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8377
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8378
# If the export-symbols file already is a .def file (1st line
8379
# is EXPORTS), use it as is; otherwise, prepend...
8380
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8381
cp $export_symbols $output_objdir/$soname.def;
8383
echo EXPORTS > $output_objdir/$soname.def;
8384
cat $export_symbols >> $output_objdir/$soname.def;
8386
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8394
hardcode_shlibpath_var=no
8395
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8396
export_dynamic_flag_spec='${wl}-E'
8397
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8398
# Instead, shared libraries are loaded at an image base (0x10000000 by
8399
# default) and relocated if they conflict, which is a slow very memory
8400
# consuming and fragmenting process. To avoid this, we pick a random,
8401
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8402
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8403
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8404
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'
8407
gnu* | linux* | tpf* | k*bsd*-gnu)
8409
if test "$host_os" = linux-dietlibc; then
8410
case $cc_basename in
8411
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8414
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8415
&& test "$tmp_diet" = no
8418
tmp_sharedflag='-shared'
8419
case $cc_basename,$host_cpu in
8420
pgcc*) # Portland Group C compiler
8421
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'
8422
tmp_addflag=' $pic_flag'
8424
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8425
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'
8426
tmp_addflag=' $pic_flag -Mnomain' ;;
8427
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8428
tmp_addflag=' -i_dynamic' ;;
8429
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8430
tmp_addflag=' -i_dynamic -nofor_main' ;;
8431
ifc* | ifort*) # Intel Fortran compiler
8432
tmp_addflag=' -nofor_main' ;;
8433
lf95*) # Lahey Fortran 8.1
8434
whole_archive_flag_spec=
8435
tmp_sharedflag='--shared' ;;
8436
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8437
tmp_sharedflag='-qmkshrobj'
8440
case `$CC -V 2>&1 | sed 5q` in
8441
*Sun\ C*) # Sun C 5.9
8442
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'
8443
compiler_needs_object=yes
8444
tmp_sharedflag='-G' ;;
8445
*Sun\ F*) # Sun Fortran 8.3
8446
tmp_sharedflag='-G' ;;
8448
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450
if test "x$supports_anon_versioning" = xyes; then
8451
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8452
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8453
echo "local: *; };" >> $output_objdir/$libname.ver~
8454
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8457
case $cc_basename in
8459
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8460
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8461
hardcode_libdir_flag_spec=
8462
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8463
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8464
if test "x$supports_anon_versioning" = xyes; then
8465
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8466
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8467
echo "local: *; };" >> $output_objdir/$libname.ver~
8468
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8478
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8479
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8482
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8488
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8492
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8493
*** create shared libraries on Solaris systems. Therefore, libtool
8494
*** is disabling shared libraries support. We urge you to upgrade GNU
8495
*** binutils to release 2.9.1 or newer. Another option is to modify
8496
*** your PATH or compiler configuration so that the native linker is
8497
*** used, and then restart.
8500
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8501
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8508
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8509
case `$LD -v 2>&1` in
8510
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8514
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8515
*** reliably create shared libraries on SCO systems. Therefore, libtool
8516
*** is disabling shared libraries support. We urge you to upgrade GNU
8517
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8518
*** your PATH or compiler configuration so that the native linker is
8519
*** used, and then restart.
8524
# For security reasons, it is highly recommended that you always
8525
# use absolute paths for naming shared libraries, and exclude the
8526
# DT_RUNPATH tag from executables and libraries. But doing so
8527
# requires that you compile everything twice, which is a pain.
8528
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8540
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8543
hardcode_shlibpath_var=no
8547
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8548
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8556
if test "$ld_shlibs" = no; then
8558
hardcode_libdir_flag_spec=
8559
export_dynamic_flag_spec=
8560
whole_archive_flag_spec=
8563
# PORTME fill in a description of your system's linker (not GNU ld)
8566
allow_undefined_flag=unsupported
8567
always_export_symbols=yes
8568
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'
8569
# Note: this linker hardcodes the directories in LIBPATH if there
8570
# are no directories specified by -L.
8571
hardcode_minus_L=yes
8572
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8573
# Neither direct hardcoding nor static linking is supported with a
8575
hardcode_direct=unsupported
8580
if test "$host_cpu" = ia64; then
8581
# On IA64, the linker does run time linking by default, so we don't
8582
# have to do anything special.
8583
aix_use_runtimelinking=no
8584
exp_sym_flag='-Bexport'
8587
# If we're using GNU nm, then we don't want the "-C" option.
8588
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8589
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8590
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'
8592
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'
8594
aix_use_runtimelinking=no
8596
# Test if we are trying to use run time linking or normal
8597
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8598
# need to do runtime linking.
8599
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8600
for ld_flag in $LDFLAGS; do
8601
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8602
aix_use_runtimelinking=yes
8609
exp_sym_flag='-bexport'
8610
no_entry_flag='-bnoentry'
8613
# When large executables or shared objects are built, AIX ld can
8614
# have problems creating the table of contents. If linking a library
8615
# or program results in "error TOC overflow" add -mminimal-toc to
8616
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8617
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8621
hardcode_direct_absolute=yes
8622
hardcode_libdir_separator=':'
8623
link_all_deplibs=yes
8624
file_list_spec='${wl}-f,'
8626
if test "$GCC" = yes; then
8627
case $host_os in aix4.[012]|aix4.[012].*)
8628
# We only want to do this on AIX 4.2 and lower, the check
8629
# below for broken collect2 doesn't work under 4.3+
8630
collect2name=`${CC} -print-prog-name=collect2`
8631
if test -f "$collect2name" &&
8632
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8634
# We have reworked collect2
8637
# We have old collect2
8638
hardcode_direct=unsupported
8639
# It fails to find uninstalled libraries when the uninstalled
8640
# path is not listed in the libpath. Setting hardcode_minus_L
8641
# to unsupported forces relinking
8642
hardcode_minus_L=yes
8643
hardcode_libdir_flag_spec='-L$libdir'
8644
hardcode_libdir_separator=
8648
shared_flag='-shared'
8649
if test "$aix_use_runtimelinking" = yes; then
8650
shared_flag="$shared_flag "'${wl}-G'
8654
if test "$host_cpu" = ia64; then
8655
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8656
# chokes on -Wl,-G. The following line is correct:
8659
if test "$aix_use_runtimelinking" = yes; then
8660
shared_flag='${wl}-G'
8662
shared_flag='${wl}-bM:SRE'
8667
export_dynamic_flag_spec='${wl}-bexpall'
8668
# It seems that -bexpall does not export symbols beginning with
8669
# underscore (_), so it is better to generate a list of symbols to export.
8670
always_export_symbols=yes
8671
if test "$aix_use_runtimelinking" = yes; then
8672
# Warning - without using the other runtime loading flags (-brtl),
8673
# -berok will link without error, but may produce a broken library.
8674
allow_undefined_flag='-berok'
8675
# Determine the default libpath from the value encoded in an
8677
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678
/* end confdefs.h. */
8688
if ac_fn_c_try_link "$LINENO"; then :
8690
lt_aix_libpath_sed='
8691
/Import File Strings/,/^$/ {
8697
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698
# Check for a 64-bit object if we didn't find anything.
8699
if test -z "$aix_libpath"; then
8700
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8703
rm -f core conftest.err conftest.$ac_objext \
8704
conftest$ac_exeext conftest.$ac_ext
8705
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8707
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8708
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"
8710
if test "$host_cpu" = ia64; then
8711
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8712
allow_undefined_flag="-z nodefs"
8713
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"
8715
# Determine the default libpath from the value encoded in an
8717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718
/* end confdefs.h. */
8728
if ac_fn_c_try_link "$LINENO"; then :
8730
lt_aix_libpath_sed='
8731
/Import File Strings/,/^$/ {
8737
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8738
# Check for a 64-bit object if we didn't find anything.
8739
if test -z "$aix_libpath"; then
8740
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8743
rm -f core conftest.err conftest.$ac_objext \
8744
conftest$ac_exeext conftest.$ac_ext
8745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8747
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8748
# Warning - without using the other run time loading flags,
8749
# -berok will link without error, but may produce a broken library.
8750
no_undefined_flag=' ${wl}-bernotok'
8751
allow_undefined_flag=' ${wl}-berok'
8752
# Exported symbols can be pulled into shared objects from archives
8753
whole_archive_flag_spec='$convenience'
8754
archive_cmds_need_lc=yes
8755
# This is similar to how AIX traditionally builds its shared libraries.
8756
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'
8764
# see comment about AmigaOS4 .so support
8765
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766
archive_expsym_cmds=''
8769
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)'
8770
hardcode_libdir_flag_spec='-L$libdir'
8771
hardcode_minus_L=yes
8777
export_dynamic_flag_spec=-rdynamic
8780
cygwin* | mingw* | pw32* | cegcc*)
8781
# When not using gcc, we currently assume that we are using
8782
# Microsoft Visual C++.
8783
# hardcode_libdir_flag_spec is actually meaningless, as there is
8784
# no search path for DLLs.
8785
hardcode_libdir_flag_spec=' '
8786
allow_undefined_flag=unsupported
8787
# Tell ltmain to make .lib files, not .a files.
8789
# Tell ltmain to make .dll files, not .so files.
8791
# FIXME: Setting linknames here is a bad hack.
8792
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8793
# The linker will automatically build a .lib file if we build a DLL.
8794
old_archive_from_new_cmds='true'
8795
# FIXME: Should let the user specify the lib program.
8796
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8797
fix_srcfile_path='`cygpath -w "$srcfile"`'
8798
enable_shared_with_static_runtimes=yes
8801
darwin* | rhapsody*)
8804
archive_cmds_need_lc=no
8806
hardcode_automatic=yes
8807
hardcode_shlibpath_var=unsupported
8808
whole_archive_flag_spec=''
8809
link_all_deplibs=yes
8810
allow_undefined_flag="$_lt_dar_allow_undefined"
8811
case $cc_basename in
8812
ifort*) _lt_dar_can_shared=yes ;;
8813
*) _lt_dar_can_shared=$GCC ;;
8815
if test "$_lt_dar_can_shared" = "yes"; then
8816
output_verbose_link_cmd=echo
8817
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8818
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8819
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}"
8820
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}"
8829
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830
hardcode_libdir_flag_spec='-L$libdir'
8831
hardcode_shlibpath_var=no
8838
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8839
# support. Future versions do this automatically, but an explicit c++rt0.o
8840
# does not break anything, and helps significantly (at the cost of a little
8843
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8844
hardcode_libdir_flag_spec='-R$libdir'
8846
hardcode_shlibpath_var=no
8849
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8851
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853
hardcode_minus_L=yes
8854
hardcode_shlibpath_var=no
8857
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8858
freebsd* | dragonfly*)
8859
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8860
hardcode_libdir_flag_spec='-R$libdir'
8862
hardcode_shlibpath_var=no
8866
if test "$GCC" = yes; then
8867
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'
8869
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'
8871
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8872
hardcode_libdir_separator=:
8875
# hardcode_minus_L: Not really in the search PATH,
8876
# but as the default location of the library.
8877
hardcode_minus_L=yes
8878
export_dynamic_flag_spec='${wl}-E'
8882
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8883
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8885
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8887
if test "$with_gnu_ld" = no; then
8888
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8889
hardcode_libdir_flag_spec_ld='+b $libdir'
8890
hardcode_libdir_separator=:
8892
hardcode_direct_absolute=yes
8893
export_dynamic_flag_spec='${wl}-E'
8894
# hardcode_minus_L: Not really in the search PATH,
8895
# but as the default location of the library.
8896
hardcode_minus_L=yes
8901
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8904
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8907
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8910
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8916
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8919
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8922
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8926
if test "$with_gnu_ld" = no; then
8927
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8928
hardcode_libdir_separator=:
8933
hardcode_shlibpath_var=no
8937
hardcode_direct_absolute=yes
8938
export_dynamic_flag_spec='${wl}-E'
8940
# hardcode_minus_L: Not really in the search PATH,
8941
# but as the default location of the library.
8942
hardcode_minus_L=yes
8948
irix5* | irix6* | nonstopux*)
8949
if test "$GCC" = yes; then
8950
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'
8951
# Try to use the -exported_symbol ld option, if it does not
8952
# work, assume that -exports_file does not work either and
8953
# implicitly export all symbols.
8954
save_LDFLAGS="$LDFLAGS"
8955
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957
/* end confdefs.h. */
8960
if ac_fn_c_try_link "$LINENO"; then :
8961
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'
8964
rm -f core conftest.err conftest.$ac_objext \
8965
conftest$ac_exeext conftest.$ac_ext
8966
LDFLAGS="$save_LDFLAGS"
8968
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'
8969
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'
8971
archive_cmds_need_lc='no'
8972
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973
hardcode_libdir_separator=:
8975
link_all_deplibs=yes
8979
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8980
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8982
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8984
hardcode_libdir_flag_spec='-R$libdir'
8986
hardcode_shlibpath_var=no
8990
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993
hardcode_libdir_separator=:
8994
hardcode_shlibpath_var=no
9001
if test -f /usr/libexec/ld.so; then
9003
hardcode_shlibpath_var=no
9004
hardcode_direct_absolute=yes
9005
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9008
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9009
export_dynamic_flag_spec='${wl}-E'
9012
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9013
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9014
hardcode_libdir_flag_spec='-R$libdir'
9017
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9018
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9028
hardcode_libdir_flag_spec='-L$libdir'
9029
hardcode_minus_L=yes
9030
allow_undefined_flag=unsupported
9031
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'
9032
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9036
if test "$GCC" = yes; then
9037
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9038
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'
9040
allow_undefined_flag=' -expect_unresolved \*'
9041
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'
9043
archive_cmds_need_lc='no'
9044
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045
hardcode_libdir_separator=:
9048
osf4* | osf5*) # as osf3* with the addition of -msym flag
9049
if test "$GCC" = yes; then
9050
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9051
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'
9052
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054
allow_undefined_flag=' -expect_unresolved \*'
9055
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'
9056
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~
9057
$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'
9059
# Both c and cxx compiler support -rpath directly
9060
hardcode_libdir_flag_spec='-rpath $libdir'
9062
archive_cmds_need_lc='no'
9063
hardcode_libdir_separator=:
9067
no_undefined_flag=' -z defs'
9068
if test "$GCC" = yes; then
9070
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9072
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9074
case `$CC -V 2>&1` in
9077
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9078
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9083
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9084
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9085
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9089
hardcode_libdir_flag_spec='-R$libdir'
9090
hardcode_shlibpath_var=no
9092
solaris2.[0-5] | solaris2.[0-5].*) ;;
9094
# The compiler driver will combine and reorder linker options,
9095
# but understands `-z linker_flag'. GCC discards it without `$wl',
9096
# but is careful enough not to reorder.
9097
# Supported since Solaris 2.6 (maybe 2.5.1?)
9098
if test "$GCC" = yes; then
9099
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9101
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9105
link_all_deplibs=yes
9109
if test "x$host_vendor" = xsequent; then
9110
# Use $CC to link under sequent, because it throws in some extra .o
9111
# files that make .init and .fini sections work.
9112
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9114
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9116
hardcode_libdir_flag_spec='-L$libdir'
9118
hardcode_minus_L=yes
9119
hardcode_shlibpath_var=no
9123
case $host_vendor in
9125
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126
hardcode_direct=yes # is this really true???
9129
## LD is ld it makes a PLAMLIB
9130
## CC just makes a GrossModule.
9131
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9132
reload_cmds='$CC -r -o $output$reload_objs'
9136
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9140
runpath_var='LD_RUN_PATH'
9141
hardcode_shlibpath_var=no
9145
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9146
hardcode_shlibpath_var=no
9147
export_dynamic_flag_spec='-Bexport'
9151
if test -d /usr/nec; then
9152
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153
hardcode_shlibpath_var=no
9154
runpath_var=LD_RUN_PATH
9155
hardcode_runpath_var=yes
9160
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9161
no_undefined_flag='${wl}-z,text'
9162
archive_cmds_need_lc=no
9163
hardcode_shlibpath_var=no
9164
runpath_var='LD_RUN_PATH'
9166
if test "$GCC" = yes; then
9167
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175
sysv5* | sco3.2v5* | sco5v6*)
9176
# Note: We can NOT use -z defs as we might desire, because we do not
9177
# link with -lc, and that would cause any symbols used from libc to
9178
# always be unresolved, which means just about no library would
9179
# ever link correctly. If we're not using GNU ld we use -z text
9180
# though, which does catch some bad symbols but isn't as heavy-handed
9182
no_undefined_flag='${wl}-z,text'
9183
allow_undefined_flag='${wl}-z,nodefs'
9184
archive_cmds_need_lc=no
9185
hardcode_shlibpath_var=no
9186
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9187
hardcode_libdir_separator=':'
9188
link_all_deplibs=yes
9189
export_dynamic_flag_spec='${wl}-Bexport'
9190
runpath_var='LD_RUN_PATH'
9192
if test "$GCC" = yes; then
9193
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9203
hardcode_libdir_flag_spec='-L$libdir'
9204
hardcode_shlibpath_var=no
9212
if test x$host_vendor = xsni; then
9214
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9215
export_dynamic_flag_spec='${wl}-Blargedynsym'
9221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9222
$as_echo "$ld_shlibs" >&6; }
9223
test "$ld_shlibs" = no && can_build_shared=no
9225
with_gnu_ld=$with_gnu_ld
9242
# Do we need to explicitly link libc?
9244
case "x$archive_cmds_need_lc" in
9246
# Assume -lc should be added
9247
archive_cmds_need_lc=yes
9249
if test "$enable_shared" = yes && test "$GCC" = yes; then
9250
case $archive_cmds in
9252
# FIXME: we may have to deal with multi-command sequences.
9255
# Test whether the compiler implicitly links with -lc since on some
9256
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9257
# to ld, don't add -lc before -lgcc.
9258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9259
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9261
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9264
(eval $ac_compile) 2>&5
9266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9267
test $ac_status = 0; } 2>conftest.err; then
9270
libobjs=conftest.$ac_objext
9272
wl=$lt_prog_compiler_wl
9273
pic_flag=$lt_prog_compiler_pic
9279
lt_save_allow_undefined_flag=$allow_undefined_flag
9280
allow_undefined_flag=
9281
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9282
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9284
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9285
test $ac_status = 0; }
9287
archive_cmds_need_lc=no
9289
archive_cmds_need_lc=yes
9291
allow_undefined_flag=$lt_save_allow_undefined_flag
9293
cat conftest.err 1>&5
9296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9297
$as_echo "$archive_cmds_need_lc" >&6; }
9460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9461
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9463
if test "$GCC" = yes; then
9465
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9466
*) lt_awk_arg="/^libraries:/" ;;
9468
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9469
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9470
# if the path contains ";" then we assume it to be the separator
9471
# otherwise default to the standard path separator (i.e. ":") - it is
9472
# assumed that no part of a normal pathname contains ";" but that should
9473
# okay in the real world where ";" in dirpaths is itself problematic.
9474
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9476
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9478
# Ok, now we have the path, separated by spaces, we can step through it
9479
# and add multilib dir if necessary.
9480
lt_tmp_lt_search_path_spec=
9481
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9482
for lt_sys_path in $lt_search_path_spec; do
9483
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9484
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9486
test -d "$lt_sys_path" && \
9487
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9490
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9491
BEGIN {RS=" "; FS="/|\n";} {
9494
for (lt_i = NF; lt_i > 0; lt_i--) {
9495
if ($lt_i != "" && $lt_i != ".") {
9496
if ($lt_i == "..") {
9499
if (lt_count == 0) {
9500
lt_foo="/" $lt_i lt_foo;
9507
if (lt_foo != "") { lt_freq[lt_foo]++; }
9508
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9510
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9512
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9515
libname_spec='lib$name'
9523
shlibpath_overrides_runpath=unknown
9525
dynamic_linker="$host_os ld.so"
9526
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9527
need_lib_prefix=unknown
9528
hardcode_into_libs=no
9530
# when you set need_version to no, make sure it does not cause -set_version
9531
# flags to be left without arguments
9532
need_version=unknown
9537
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9538
shlibpath_var=LIBPATH
9540
# AIX 3 has no versioning support, so we append a major version to the name.
9541
soname_spec='${libname}${release}${shared_ext}$major'
9548
hardcode_into_libs=yes
9549
if test "$host_cpu" = ia64; then
9550
# AIX 5 supports IA64
9551
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9552
shlibpath_var=LD_LIBRARY_PATH
9554
# With GCC up to 2.95.x, collect2 would create an import file
9555
# for dependence libraries. The import file would start with
9556
# the line `#! .'. This would cause the generated library to
9557
# depend on `.', always an invalid library. This was fixed in
9558
# development snapshots of GCC prior to 3.0.
9560
aix4 | aix4.[01] | aix4.[01].*)
9561
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9563
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9570
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9571
# soname into executable. Probably we can add versioning support to
9572
# collect2, so additional links can be useful in future.
9573
if test "$aix_use_runtimelinking" = yes; then
9574
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9575
# instead of lib<name>.a to let people know that these are not
9576
# typical AIX shared libraries.
9577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579
# We preserve .a as extension for shared libraries through AIX4.2
9580
# and later when we are not doing run time linking.
9581
library_names_spec='${libname}${release}.a $libname.a'
9582
soname_spec='${libname}${release}${shared_ext}$major'
9584
shlibpath_var=LIBPATH
9591
# Since July 2007 AmigaOS4 officially supports .so libraries.
9592
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596
library_names_spec='$libname.ixlibrary $libname.a'
9597
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9598
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'
9604
library_names_spec='${libname}${shared_ext}'
9605
dynamic_linker="$host_os ld.so"
9606
shlibpath_var=LIBRARY_PATH
9612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613
soname_spec='${libname}${release}${shared_ext}$major'
9614
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9615
shlibpath_var=LD_LIBRARY_PATH
9616
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9617
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9618
# the default ld.so.conf also contains /usr/contrib/lib and
9619
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9620
# libtool to hard-code these into programs
9623
cygwin* | mingw* | pw32* | cegcc*)
9624
version_type=windows
9629
case $GCC,$host_os in
9630
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9631
library_names_spec='$libname.dll.a'
9632
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9633
postinstall_cmds='base_file=`basename \${file}`~
9634
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9635
dldir=$destdir/`dirname \$dlpath`~
9636
test -d \$dldir || mkdir -p \$dldir~
9637
$install_prog $dir/$dlname \$dldir/$dlname~
9638
chmod a+x \$dldir/$dlname~
9639
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9640
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9642
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643
dlpath=$dir/\$dldll~
9645
shlibpath_overrides_runpath=yes
9649
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9654
# MinGW DLLs use traditional 'lib' prefix
9655
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9658
# It is most probably a Windows format PATH printed by
9659
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9660
# path with ; separators, and with drive letters. We can handle the
9661
# drive letters (cygwin fileutils understands them), so leave them,
9662
# especially as we might pass files found there to a mingw objdump,
9663
# which wouldn't understand a cygwinified path. Ahh.
9664
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9666
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9670
# pw32 DLLs use 'pw' prefix rather than 'lib'
9671
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9677
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9680
dynamic_linker='Win32 ld.exe'
9681
# FIXME: first we should search . and the directory the executable is in
9685
darwin* | rhapsody*)
9686
dynamic_linker="$host_os dyld"
9690
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9691
soname_spec='${libname}${release}${major}$shared_ext'
9692
shlibpath_overrides_runpath=yes
9693
shlibpath_var=DYLD_LIBRARY_PATH
9694
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9696
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9697
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9705
soname_spec='${libname}${release}${shared_ext}$major'
9706
shlibpath_var=LD_LIBRARY_PATH
9713
freebsd* | dragonfly*)
9714
# DragonFly does not have aout. When/if they implement a new
9715
# versioning mechanism, adjust this.
9716
if test -x /usr/bin/objformat; then
9717
objformat=`/usr/bin/objformat`
9720
freebsd[123]*) objformat=aout ;;
9724
version_type=freebsd-$objformat
9725
case $version_type in
9727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9736
shlibpath_var=LD_LIBRARY_PATH
9739
shlibpath_overrides_runpath=yes
9741
freebsd3.[01]* | freebsdelf3.[01]*)
9742
shlibpath_overrides_runpath=yes
9743
hardcode_into_libs=yes
9745
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9746
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9747
shlibpath_overrides_runpath=no
9748
hardcode_into_libs=yes
9750
*) # from 4.6 on, and DragonFly
9751
shlibpath_overrides_runpath=yes
9752
hardcode_into_libs=yes
9761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9762
soname_spec='${libname}${release}${shared_ext}$major'
9763
shlibpath_var=LD_LIBRARY_PATH
9764
hardcode_into_libs=yes
9767
hpux9* | hpux10* | hpux11*)
9768
# Give a soname corresponding to the major version so that dld.sl refuses to
9769
# link against other versions.
9776
hardcode_into_libs=yes
9777
dynamic_linker="$host_os dld.so"
9778
shlibpath_var=LD_LIBRARY_PATH
9779
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781
soname_spec='${libname}${release}${shared_ext}$major'
9782
if test "X$HPUX_IA64_MODE" = X32; then
9783
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9785
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9787
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9791
hardcode_into_libs=yes
9792
dynamic_linker="$host_os dld.sl"
9793
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9794
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796
soname_spec='${libname}${release}${shared_ext}$major'
9797
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9798
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9802
dynamic_linker="$host_os dld.sl"
9803
shlibpath_var=SHLIB_PATH
9804
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806
soname_spec='${libname}${release}${shared_ext}$major'
9809
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9810
postinstall_cmds='chmod 555 $lib'
9817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9818
soname_spec='${libname}${release}${shared_ext}$major'
9819
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9820
shlibpath_var=LD_LIBRARY_PATH
9821
shlibpath_overrides_runpath=no
9822
hardcode_into_libs=yes
9825
irix5* | irix6* | nonstopux*)
9827
nonstopux*) version_type=nonstopux ;;
9829
if test "$lt_cv_prog_gnu_ld" = yes; then
9837
soname_spec='${libname}${release}${shared_ext}$major'
9838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9840
irix5* | nonstopux*)
9844
case $LD in # libtool.m4 will add one of these switches to LD
9845
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9846
libsuff= shlibsuff= libmagic=32-bit;;
9847
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9848
libsuff=32 shlibsuff=N32 libmagic=N32;;
9849
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9850
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9851
*) libsuff= shlibsuff= libmagic=never-match;;
9855
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9856
shlibpath_overrides_runpath=no
9857
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9858
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9859
hardcode_into_libs=yes
9862
# No shared lib support for Linux oldld, aout, or coff.
9863
linux*oldld* | linux*aout* | linux*coff*)
9867
# This must be Linux ELF.
9868
linux* | k*bsd*-gnu)
9872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873
soname_spec='${libname}${release}${shared_ext}$major'
9874
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9875
shlibpath_var=LD_LIBRARY_PATH
9876
shlibpath_overrides_runpath=no
9877
# Some binutils ld are patched to set DT_RUNPATH
9878
save_LDFLAGS=$LDFLAGS
9880
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9881
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883
/* end confdefs.h. */
9893
if ac_fn_c_try_link "$LINENO"; then :
9894
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9895
shlibpath_overrides_runpath=yes
9898
rm -f core conftest.err conftest.$ac_objext \
9899
conftest$ac_exeext conftest.$ac_ext
9900
LDFLAGS=$save_LDFLAGS
9903
# This implies no fast_install, which is unacceptable.
9904
# Some rework will be needed to allow for fast_install
9905
# before this can be enabled.
9906
hardcode_into_libs=yes
9908
# Append ld.so.conf contents to the search path
9909
if test -f /etc/ld.so.conf; then
9910
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' ' '`
9911
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9914
# We used to test for /lib/ld.so.1 and disable shared libraries on
9915
# powerpc, because MkLinux only supported shared libraries with the
9916
# GNU dynamic linker. Since this was broken with cross compilers,
9917
# most powerpc-linux boxes support dynamic linking these days and
9918
# people can always --disable-shared, the test was removed, and we
9919
# assume the GNU/Linux dynamic linker is in use.
9920
dynamic_linker='GNU/Linux ld.so'
9927
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9929
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9930
dynamic_linker='NetBSD (a.out) ld.so'
9932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9933
soname_spec='${libname}${release}${shared_ext}$major'
9934
dynamic_linker='NetBSD ld.elf_so'
9936
shlibpath_var=LD_LIBRARY_PATH
9937
shlibpath_overrides_runpath=yes
9938
hardcode_into_libs=yes
9943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944
shlibpath_var=LD_LIBRARY_PATH
9945
shlibpath_overrides_runpath=yes
9952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953
soname_spec='${libname}${release}${shared_ext}$major'
9954
shlibpath_var=LD_LIBRARY_PATH
9955
shlibpath_overrides_runpath=no
9956
hardcode_into_libs=yes
9957
dynamic_linker='ldqnx.so'
9962
sys_lib_dlsearch_path_spec="/usr/lib"
9964
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9966
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9967
*) need_version=no ;;
9969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9970
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9971
shlibpath_var=LD_LIBRARY_PATH
9972
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9974
openbsd2.[89] | openbsd2.[89].*)
9975
shlibpath_overrides_runpath=no
9978
shlibpath_overrides_runpath=yes
9982
shlibpath_overrides_runpath=yes
9987
libname_spec='$name'
9990
library_names_spec='$libname${shared_ext} $libname.a'
9991
dynamic_linker='OS/2 ld.exe'
9992
shlibpath_var=LIBPATH
9995
osf3* | osf4* | osf5*)
9999
soname_spec='${libname}${release}${shared_ext}$major'
10000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001
shlibpath_var=LD_LIBRARY_PATH
10002
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10003
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015
soname_spec='${libname}${release}${shared_ext}$major'
10016
shlibpath_var=LD_LIBRARY_PATH
10017
shlibpath_overrides_runpath=yes
10018
hardcode_into_libs=yes
10019
# ldd complains unless libraries are executable
10020
postinstall_cmds='chmod +x $lib'
10025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10026
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10027
shlibpath_var=LD_LIBRARY_PATH
10028
shlibpath_overrides_runpath=yes
10029
if test "$with_gnu_ld" = yes; then
10037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038
soname_spec='${libname}${release}${shared_ext}$major'
10039
shlibpath_var=LD_LIBRARY_PATH
10040
case $host_vendor in
10042
shlibpath_overrides_runpath=no
10044
runpath_var=LD_RUN_PATH
10052
shlibpath_overrides_runpath=no
10053
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10059
if test -d /usr/nec ;then
10061
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10062
soname_spec='$libname${shared_ext}.$major'
10063
shlibpath_var=LD_LIBRARY_PATH
10067
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10068
version_type=freebsd-elf
10071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10072
soname_spec='${libname}${release}${shared_ext}$major'
10073
shlibpath_var=LD_LIBRARY_PATH
10074
shlibpath_overrides_runpath=yes
10075
hardcode_into_libs=yes
10076
if test "$with_gnu_ld" = yes; then
10077
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10079
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10082
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10086
sys_lib_dlsearch_path_spec='/usr/lib'
10090
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095
shlibpath_var=LD_LIBRARY_PATH
10096
shlibpath_overrides_runpath=no
10097
hardcode_into_libs=yes
10102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103
soname_spec='${libname}${release}${shared_ext}$major'
10104
shlibpath_var=LD_LIBRARY_PATH
10111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10112
$as_echo "$dynamic_linker" >&6; }
10113
test "$dynamic_linker" = no && can_build_shared=no
10115
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10116
if test "$GCC" = yes; then
10117
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10120
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10121
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10123
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10124
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10214
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10216
if test -n "$hardcode_libdir_flag_spec" ||
10217
test -n "$runpath_var" ||
10218
test "X$hardcode_automatic" = "Xyes" ; then
10220
# We can hardcode non-existent directories.
10221
if test "$hardcode_direct" != no &&
10222
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10223
# have to relink, otherwise we might link with an installed library
10224
# when we should be linking with a yet-to-be-installed one
10225
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10226
test "$hardcode_minus_L" != no; then
10227
# Linking always hardcodes the temporary library directory.
10228
hardcode_action=relink
10230
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10231
hardcode_action=immediate
10234
# We cannot hardcode anything, or else we can only hardcode existing
10236
hardcode_action=unsupported
10238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10239
$as_echo "$hardcode_action" >&6; }
10241
if test "$hardcode_action" = relink ||
10242
test "$inherit_rpath" = yes; then
10243
# Fast installation is not supported
10244
enable_fast_install=no
10245
elif test "$shlibpath_overrides_runpath" = yes ||
10246
test "$enable_shared" = no; then
10247
# Fast installation is not necessary
10248
enable_fast_install=needless
10256
if test "x$enable_dlopen" != xyes; then
10257
enable_dlopen=unknown
10258
enable_dlopen_self=unknown
10259
enable_dlopen_self_static=unknown
10266
lt_cv_dlopen="load_add_on"
10268
lt_cv_dlopen_self=yes
10271
mingw* | pw32* | cegcc*)
10272
lt_cv_dlopen="LoadLibrary"
10277
lt_cv_dlopen="dlopen"
10282
# if libdl is installed we need to link against it
10283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10284
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10285
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10286
$as_echo_n "(cached) " >&6
10288
ac_check_lib_save_LIBS=$LIBS
10290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291
/* end confdefs.h. */
10293
/* Override any GCC internal prototype to avoid an error.
10294
Use char because int might match the return type of a GCC
10295
builtin and then its argument prototype would still apply. */
10308
if ac_fn_c_try_link "$LINENO"; then :
10309
ac_cv_lib_dl_dlopen=yes
10311
ac_cv_lib_dl_dlopen=no
10313
rm -f core conftest.err conftest.$ac_objext \
10314
conftest$ac_exeext conftest.$ac_ext
10315
LIBS=$ac_check_lib_save_LIBS
10317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10318
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10319
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10320
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10323
lt_cv_dlopen="dyld"
10325
lt_cv_dlopen_self=yes
10332
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10333
if test "x$ac_cv_func_shl_load" = x""yes; then :
10334
lt_cv_dlopen="shl_load"
10336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10337
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10338
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10339
$as_echo_n "(cached) " >&6
10341
ac_check_lib_save_LIBS=$LIBS
10343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344
/* end confdefs.h. */
10346
/* Override any GCC internal prototype to avoid an error.
10347
Use char because int might match the return type of a GCC
10348
builtin and then its argument prototype would still apply. */
10356
return shl_load ();
10361
if ac_fn_c_try_link "$LINENO"; then :
10362
ac_cv_lib_dld_shl_load=yes
10364
ac_cv_lib_dld_shl_load=no
10366
rm -f core conftest.err conftest.$ac_objext \
10367
conftest$ac_exeext conftest.$ac_ext
10368
LIBS=$ac_check_lib_save_LIBS
10370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10371
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10372
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10373
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10375
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10376
if test "x$ac_cv_func_dlopen" = x""yes; then :
10377
lt_cv_dlopen="dlopen"
10379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10380
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10381
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10382
$as_echo_n "(cached) " >&6
10384
ac_check_lib_save_LIBS=$LIBS
10386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387
/* end confdefs.h. */
10389
/* Override any GCC internal prototype to avoid an error.
10390
Use char because int might match the return type of a GCC
10391
builtin and then its argument prototype would still apply. */
10404
if ac_fn_c_try_link "$LINENO"; then :
10405
ac_cv_lib_dl_dlopen=yes
10407
ac_cv_lib_dl_dlopen=no
10409
rm -f core conftest.err conftest.$ac_objext \
10410
conftest$ac_exeext conftest.$ac_ext
10411
LIBS=$ac_check_lib_save_LIBS
10413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10414
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10415
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10416
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10419
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10420
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10421
$as_echo_n "(cached) " >&6
10423
ac_check_lib_save_LIBS=$LIBS
10424
LIBS="-lsvld $LIBS"
10425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426
/* end confdefs.h. */
10428
/* Override any GCC internal prototype to avoid an error.
10429
Use char because int might match the return type of a GCC
10430
builtin and then its argument prototype would still apply. */
10443
if ac_fn_c_try_link "$LINENO"; then :
10444
ac_cv_lib_svld_dlopen=yes
10446
ac_cv_lib_svld_dlopen=no
10448
rm -f core conftest.err conftest.$ac_objext \
10449
conftest$ac_exeext conftest.$ac_ext
10450
LIBS=$ac_check_lib_save_LIBS
10452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10453
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10454
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10455
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10458
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10459
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10460
$as_echo_n "(cached) " >&6
10462
ac_check_lib_save_LIBS=$LIBS
10464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465
/* end confdefs.h. */
10467
/* Override any GCC internal prototype to avoid an error.
10468
Use char because int might match the return type of a GCC
10469
builtin and then its argument prototype would still apply. */
10477
return dld_link ();
10482
if ac_fn_c_try_link "$LINENO"; then :
10483
ac_cv_lib_dld_dld_link=yes
10485
ac_cv_lib_dld_dld_link=no
10487
rm -f core conftest.err conftest.$ac_objext \
10488
conftest$ac_exeext conftest.$ac_ext
10489
LIBS=$ac_check_lib_save_LIBS
10491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10492
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10493
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10494
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10515
if test "x$lt_cv_dlopen" != xno; then
10521
case $lt_cv_dlopen in
10523
save_CPPFLAGS="$CPPFLAGS"
10524
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10526
save_LDFLAGS="$LDFLAGS"
10527
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10530
LIBS="$lt_cv_dlopen_libs $LIBS"
10532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10533
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10534
if test "${lt_cv_dlopen_self+set}" = set; then :
10535
$as_echo_n "(cached) " >&6
10537
if test "$cross_compiling" = yes; then :
10538
lt_cv_dlopen_self=cross
10540
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541
lt_status=$lt_dlunknown
10542
cat > conftest.$ac_ext <<_LT_EOF
10543
#line 10543 "configure"
10544
#include "confdefs.h"
10553
# define LT_DLGLOBAL RTLD_GLOBAL
10556
# define LT_DLGLOBAL DL_GLOBAL
10558
# define LT_DLGLOBAL 0
10562
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563
find out it does not work in some platform. */
10564
#ifndef LT_DLLAZY_OR_NOW
10566
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10569
# define LT_DLLAZY_OR_NOW DL_LAZY
10572
# define LT_DLLAZY_OR_NOW RTLD_NOW
10575
# define LT_DLLAZY_OR_NOW DL_NOW
10577
# define LT_DLLAZY_OR_NOW 0
10584
void fnord() { int i=42;}
10587
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588
int status = $lt_dlunknown;
10592
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10593
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594
/* dlclose (self); */
10602
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10603
(eval $ac_link) 2>&5
10605
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10606
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10607
(./conftest; exit; ) >&5 2>/dev/null
10609
case x$lt_status in
10610
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10611
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10612
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10615
# compilation failed
10616
lt_cv_dlopen_self=no
10623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10624
$as_echo "$lt_cv_dlopen_self" >&6; }
10626
if test "x$lt_cv_dlopen_self" = xyes; then
10627
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10629
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10630
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10631
$as_echo_n "(cached) " >&6
10633
if test "$cross_compiling" = yes; then :
10634
lt_cv_dlopen_self_static=cross
10636
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637
lt_status=$lt_dlunknown
10638
cat > conftest.$ac_ext <<_LT_EOF
10639
#line 10639 "configure"
10640
#include "confdefs.h"
10649
# define LT_DLGLOBAL RTLD_GLOBAL
10652
# define LT_DLGLOBAL DL_GLOBAL
10654
# define LT_DLGLOBAL 0
10658
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659
find out it does not work in some platform. */
10660
#ifndef LT_DLLAZY_OR_NOW
10662
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10665
# define LT_DLLAZY_OR_NOW DL_LAZY
10668
# define LT_DLLAZY_OR_NOW RTLD_NOW
10671
# define LT_DLLAZY_OR_NOW DL_NOW
10673
# define LT_DLLAZY_OR_NOW 0
10680
void fnord() { int i=42;}
10683
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10684
int status = $lt_dlunknown;
10688
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10689
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10690
/* dlclose (self); */
10698
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10699
(eval $ac_link) 2>&5
10701
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10702
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10703
(./conftest; exit; ) >&5 2>/dev/null
10705
case x$lt_status in
10706
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10707
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10708
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10711
# compilation failed
10712
lt_cv_dlopen_self_static=no
10719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10720
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10723
CPPFLAGS="$save_CPPFLAGS"
10724
LDFLAGS="$save_LDFLAGS"
10729
case $lt_cv_dlopen_self in
10730
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10731
*) enable_dlopen_self=unknown ;;
10734
case $lt_cv_dlopen_self_static in
10735
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10736
*) enable_dlopen_self_static=unknown ;;
10758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10759
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10760
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10761
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10762
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764
$as_echo "yes" >&6; }
10766
# FIXME - insert some real tests, host_os isn't really good enough
10769
if test -n "$STRIP" ; then
10770
striplib="$STRIP -x"
10771
old_striplib="$STRIP -S"
10772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773
$as_echo "yes" >&6; }
10775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776
$as_echo "no" >&6; }
10780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781
$as_echo "no" >&6; }
10797
# Report which library types will actually be built
10798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10799
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10801
$as_echo "$can_build_shared" >&6; }
10803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10804
$as_echo_n "checking whether to build shared libraries... " >&6; }
10805
test "$can_build_shared" = "no" && enable_shared=no
10807
# On AIX, shared libraries and static libraries use the same namespace, and
10808
# are all built from PIC.
10811
test "$enable_shared" = yes && enable_static=no
10812
if test -n "$RANLIB"; then
10813
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10814
postinstall_cmds='$RANLIB $lib'
10819
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10820
test "$enable_shared" = yes && enable_static=no
10824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10825
$as_echo "$enable_shared" >&6; }
10827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10828
$as_echo_n "checking whether to build static libraries... " >&6; }
10829
# Make sure either enable_shared or enable_static is yes.
10830
test "$enable_shared" = yes || enable_static=yes
10831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10832
$as_echo "$enable_static" >&6; }
10839
ac_cpp='$CPP $CPPFLAGS'
10840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10858
ac_config_commands="$ac_config_commands libtool"
10863
# Only expand once:
10871
*-*-mingw32* | *-*-cygwin*)
10873
$as_echo "#define HOST_W32 1" >>confdefs.h
10876
if test x"$enable_shared" != "xno" ; then
10877
NO_UNDEFINED="-no-undefined"
10881
EXTRA_LIBQUVI_LDFLAGS="$NO_UNDEFINED"
10884
# Checks for programs.
10885
for ac_prog in gawk mawk nawk awk
10887
# Extract the first word of "$ac_prog", so it can be a program name with args.
10888
set dummy $ac_prog; ac_word=$2
10889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890
$as_echo_n "checking for $ac_word... " >&6; }
10891
if test "${ac_cv_prog_AWK+set}" = set; then :
10892
$as_echo_n "(cached) " >&6
10894
if test -n "$AWK"; then
10895
ac_cv_prog_AWK="$AWK" # Let the user override the test.
10897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898
for as_dir in $PATH
10901
test -z "$as_dir" && as_dir=.
10902
for ac_exec_ext in '' $ac_executable_extensions; do
10903
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904
ac_cv_prog_AWK="$ac_prog"
10905
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914
AWK=$ac_cv_prog_AWK
10915
if test -n "$AWK"; then
10916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10917
$as_echo "$AWK" >&6; }
10919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920
$as_echo "no" >&6; }
10924
test -n "$AWK" && break
10928
ac_cpp='$CPP $CPPFLAGS'
10929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10932
if test -n "$ac_tool_prefix"; then
10933
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10934
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936
$as_echo_n "checking for $ac_word... " >&6; }
10937
if test "${ac_cv_prog_CC+set}" = set; then :
10938
$as_echo_n "(cached) " >&6
10940
if test -n "$CC"; then
10941
ac_cv_prog_CC="$CC" # Let the user override the test.
10943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944
for as_dir in $PATH
10947
test -z "$as_dir" && as_dir=.
10948
for ac_exec_ext in '' $ac_executable_extensions; do
10949
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950
ac_cv_prog_CC="${ac_tool_prefix}gcc"
10951
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961
if test -n "$CC"; then
10962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10963
$as_echo "$CC" >&6; }
10965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966
$as_echo "no" >&6; }
10971
if test -z "$ac_cv_prog_CC"; then
10973
# Extract the first word of "gcc", so it can be a program name with args.
10974
set dummy gcc; ac_word=$2
10975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976
$as_echo_n "checking for $ac_word... " >&6; }
10977
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10978
$as_echo_n "(cached) " >&6
10980
if test -n "$ac_ct_CC"; then
10981
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984
for as_dir in $PATH
10987
test -z "$as_dir" && as_dir=.
10988
for ac_exec_ext in '' $ac_executable_extensions; do
10989
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990
ac_cv_prog_ac_ct_CC="gcc"
10991
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11001
if test -n "$ac_ct_CC"; then
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11003
$as_echo "$ac_ct_CC" >&6; }
11005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006
$as_echo "no" >&6; }
11009
if test "x$ac_ct_CC" = x; then
11012
case $cross_compiling:$ac_tool_warned in
11014
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11015
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11016
ac_tool_warned=yes ;;
11021
CC="$ac_cv_prog_CC"
11024
if test -z "$CC"; then
11025
if test -n "$ac_tool_prefix"; then
11026
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11027
set dummy ${ac_tool_prefix}cc; ac_word=$2
11028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029
$as_echo_n "checking for $ac_word... " >&6; }
11030
if test "${ac_cv_prog_CC+set}" = set; then :
11031
$as_echo_n "(cached) " >&6
11033
if test -n "$CC"; then
11034
ac_cv_prog_CC="$CC" # Let the user override the test.
11036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037
for as_dir in $PATH
11040
test -z "$as_dir" && as_dir=.
11041
for ac_exec_ext in '' $ac_executable_extensions; do
11042
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043
ac_cv_prog_CC="${ac_tool_prefix}cc"
11044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054
if test -n "$CC"; then
11055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11056
$as_echo "$CC" >&6; }
11058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059
$as_echo "no" >&6; }
11065
if test -z "$CC"; then
11066
# Extract the first word of "cc", so it can be a program name with args.
11067
set dummy cc; ac_word=$2
11068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069
$as_echo_n "checking for $ac_word... " >&6; }
11070
if test "${ac_cv_prog_CC+set}" = set; then :
11071
$as_echo_n "(cached) " >&6
11073
if test -n "$CC"; then
11074
ac_cv_prog_CC="$CC" # Let the user override the test.
11076
ac_prog_rejected=no
11077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078
for as_dir in $PATH
11081
test -z "$as_dir" && as_dir=.
11082
for ac_exec_ext in '' $ac_executable_extensions; do
11083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11085
ac_prog_rejected=yes
11089
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096
if test $ac_prog_rejected = yes; then
11097
# We found a bogon in the path, so make sure we never use it.
11098
set dummy $ac_cv_prog_CC
11100
if test $# != 0; then
11101
# We chose a different compiler from the bogus one.
11102
# However, it has the same basename, so the bogon will be chosen
11103
# first if we set CC to just the basename; use the full file name.
11105
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11111
if test -n "$CC"; then
11112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11113
$as_echo "$CC" >&6; }
11115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116
$as_echo "no" >&6; }
11121
if test -z "$CC"; then
11122
if test -n "$ac_tool_prefix"; then
11123
for ac_prog in cl.exe
11125
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11126
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128
$as_echo_n "checking for $ac_word... " >&6; }
11129
if test "${ac_cv_prog_CC+set}" = set; then :
11130
$as_echo_n "(cached) " >&6
11132
if test -n "$CC"; then
11133
ac_cv_prog_CC="$CC" # Let the user override the test.
11135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136
for as_dir in $PATH
11139
test -z "$as_dir" && as_dir=.
11140
for ac_exec_ext in '' $ac_executable_extensions; do
11141
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11142
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11143
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153
if test -n "$CC"; then
11154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11155
$as_echo "$CC" >&6; }
11157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158
$as_echo "no" >&6; }
11162
test -n "$CC" && break
11165
if test -z "$CC"; then
11167
for ac_prog in cl.exe
11169
# Extract the first word of "$ac_prog", so it can be a program name with args.
11170
set dummy $ac_prog; ac_word=$2
11171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172
$as_echo_n "checking for $ac_word... " >&6; }
11173
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11174
$as_echo_n "(cached) " >&6
11176
if test -n "$ac_ct_CC"; then
11177
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180
for as_dir in $PATH
11183
test -z "$as_dir" && as_dir=.
11184
for ac_exec_ext in '' $ac_executable_extensions; do
11185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11186
ac_cv_prog_ac_ct_CC="$ac_prog"
11187
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11197
if test -n "$ac_ct_CC"; then
11198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11199
$as_echo "$ac_ct_CC" >&6; }
11201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202
$as_echo "no" >&6; }
11206
test -n "$ac_ct_CC" && break
11209
if test "x$ac_ct_CC" = x; then
11212
case $cross_compiling:$ac_tool_warned in
11214
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11215
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11216
ac_tool_warned=yes ;;
11225
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11226
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11227
as_fn_error "no acceptable C compiler found in \$PATH
11228
See \`config.log' for more details." "$LINENO" 5; }
11230
# Provide some information about the compiler.
11231
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11234
for ac_option in --version -v -V -qversion; do
11235
{ { ac_try="$ac_compiler $ac_option >&5"
11236
case "(($ac_try" in
11237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238
*) ac_try_echo=$ac_try;;
11240
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11241
$as_echo "$ac_try_echo"; } >&5
11242
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11244
if test -s conftest.err; then
11246
... rest of stderr output deleted ...
11247
10q' conftest.err >conftest.er1
11248
cat conftest.er1 >&5
11250
rm -f conftest.er1 conftest.err
11251
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11252
test $ac_status = 0; }
11255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11256
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11257
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11258
$as_echo_n "(cached) " >&6
11260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261
/* end confdefs.h. */
11274
if ac_fn_c_try_compile "$LINENO"; then :
11275
ac_compiler_gnu=yes
11279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11284
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11285
if test $ac_compiler_gnu = yes; then
11290
ac_test_CFLAGS=${CFLAGS+set}
11291
ac_save_CFLAGS=$CFLAGS
11292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11293
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11294
if test "${ac_cv_prog_cc_g+set}" = set; then :
11295
$as_echo_n "(cached) " >&6
11297
ac_save_c_werror_flag=$ac_c_werror_flag
11298
ac_c_werror_flag=yes
11301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302
/* end confdefs.h. */
11312
if ac_fn_c_try_compile "$LINENO"; then :
11313
ac_cv_prog_cc_g=yes
11316
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317
/* end confdefs.h. */
11327
if ac_fn_c_try_compile "$LINENO"; then :
11330
ac_c_werror_flag=$ac_save_c_werror_flag
11332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333
/* end confdefs.h. */
11343
if ac_fn_c_try_compile "$LINENO"; then :
11344
ac_cv_prog_cc_g=yes
11346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351
ac_c_werror_flag=$ac_save_c_werror_flag
11353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11354
$as_echo "$ac_cv_prog_cc_g" >&6; }
11355
if test "$ac_test_CFLAGS" = set; then
11356
CFLAGS=$ac_save_CFLAGS
11357
elif test $ac_cv_prog_cc_g = yes; then
11358
if test "$GCC" = yes; then
11364
if test "$GCC" = yes; then
11370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11371
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11372
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11373
$as_echo_n "(cached) " >&6
11375
ac_cv_prog_cc_c89=no
11377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378
/* end confdefs.h. */
11379
#include <stdarg.h>
11381
#include <sys/types.h>
11382
#include <sys/stat.h>
11383
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11384
struct buf { int x; };
11385
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386
static char *e (p, i)
11392
static char *f (char * (*g) (char **, int), char **p, ...)
11397
s = g (p, va_arg (v,int));
11402
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11403
function prototypes and stuff, but not '\xHH' hex character constants.
11404
These don't provoke an error unfortunately, instead are silently treated
11405
as 'x'. The following induces an error, until -std is added to get
11406
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11407
array size at least. It's necessary to write '\x00'==0 to get something
11408
that's true only with -std. */
11409
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11411
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11412
inside strings and character constants. */
11414
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11416
int test (int i, double x);
11417
struct s1 {int (*f) (int a);};
11418
struct s2 {int (*f) (double a);};
11419
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11425
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11430
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11431
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433
CC="$ac_save_CC $ac_arg"
11434
if ac_fn_c_try_compile "$LINENO"; then :
11435
ac_cv_prog_cc_c89=$ac_arg
11437
rm -f core conftest.err conftest.$ac_objext
11438
test "x$ac_cv_prog_cc_c89" != "xno" && break
11440
rm -f conftest.$ac_ext
11445
case "x$ac_cv_prog_cc_c89" in
11447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11448
$as_echo "none needed" >&6; } ;;
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11451
$as_echo "unsupported" >&6; } ;;
11453
CC="$CC $ac_cv_prog_cc_c89"
11454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11455
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11457
if test "x$ac_cv_prog_cc_c89" != xno; then :
11462
ac_cpp='$CPP $CPPFLAGS'
11463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468
ac_cpp='$CXXCPP $CPPFLAGS'
11469
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11472
if test -z "$CXX"; then
11473
if test -n "$CCC"; then
11476
if test -n "$ac_tool_prefix"; then
11477
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11479
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11480
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482
$as_echo_n "checking for $ac_word... " >&6; }
11483
if test "${ac_cv_prog_CXX+set}" = set; then :
11484
$as_echo_n "(cached) " >&6
11486
if test -n "$CXX"; then
11487
ac_cv_prog_CXX="$CXX" # Let the user override the test.
11489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490
for as_dir in $PATH
11493
test -z "$as_dir" && as_dir=.
11494
for ac_exec_ext in '' $ac_executable_extensions; do
11495
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11497
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506
CXX=$ac_cv_prog_CXX
11507
if test -n "$CXX"; then
11508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11509
$as_echo "$CXX" >&6; }
11511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512
$as_echo "no" >&6; }
11516
test -n "$CXX" && break
11519
if test -z "$CXX"; then
11521
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11523
# Extract the first word of "$ac_prog", so it can be a program name with args.
11524
set dummy $ac_prog; ac_word=$2
11525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526
$as_echo_n "checking for $ac_word... " >&6; }
11527
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11528
$as_echo_n "(cached) " >&6
11530
if test -n "$ac_ct_CXX"; then
11531
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534
for as_dir in $PATH
11537
test -z "$as_dir" && as_dir=.
11538
for ac_exec_ext in '' $ac_executable_extensions; do
11539
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540
ac_cv_prog_ac_ct_CXX="$ac_prog"
11541
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11551
if test -n "$ac_ct_CXX"; then
11552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11553
$as_echo "$ac_ct_CXX" >&6; }
11555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556
$as_echo "no" >&6; }
11560
test -n "$ac_ct_CXX" && break
11563
if test "x$ac_ct_CXX" = x; then
11566
case $cross_compiling:$ac_tool_warned in
11568
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11569
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11570
ac_tool_warned=yes ;;
11578
# Provide some information about the compiler.
11579
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11582
for ac_option in --version -v -V -qversion; do
11583
{ { ac_try="$ac_compiler $ac_option >&5"
11584
case "(($ac_try" in
11585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586
*) ac_try_echo=$ac_try;;
11588
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11589
$as_echo "$ac_try_echo"; } >&5
11590
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11592
if test -s conftest.err; then
11594
... rest of stderr output deleted ...
11595
10q' conftest.err >conftest.er1
11596
cat conftest.er1 >&5
11598
rm -f conftest.er1 conftest.err
11599
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600
test $ac_status = 0; }
11603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11604
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11605
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11606
$as_echo_n "(cached) " >&6
11608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609
/* end confdefs.h. */
11622
if ac_fn_cxx_try_compile "$LINENO"; then :
11623
ac_compiler_gnu=yes
11627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11632
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11633
if test $ac_compiler_gnu = yes; then
11638
ac_test_CXXFLAGS=${CXXFLAGS+set}
11639
ac_save_CXXFLAGS=$CXXFLAGS
11640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11641
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11642
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11643
$as_echo_n "(cached) " >&6
11645
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11646
ac_cxx_werror_flag=yes
11647
ac_cv_prog_cxx_g=no
11649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650
/* end confdefs.h. */
11660
if ac_fn_cxx_try_compile "$LINENO"; then :
11661
ac_cv_prog_cxx_g=yes
11664
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665
/* end confdefs.h. */
11675
if ac_fn_cxx_try_compile "$LINENO"; then :
11678
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681
/* end confdefs.h. */
11691
if ac_fn_cxx_try_compile "$LINENO"; then :
11692
ac_cv_prog_cxx_g=yes
11694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11702
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11703
if test "$ac_test_CXXFLAGS" = set; then
11704
CXXFLAGS=$ac_save_CXXFLAGS
11705
elif test $ac_cv_prog_cxx_g = yes; then
11706
if test "$GXX" = yes; then
11712
if test "$GXX" = yes; then
11719
ac_cpp='$CPP $CPPFLAGS'
11720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11724
depcc="$CXX" am_compiler_list=
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11727
$as_echo_n "checking dependency style of $depcc... " >&6; }
11728
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11729
$as_echo_n "(cached) " >&6
11731
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11732
# We make a subdir and do the tests there. Otherwise we can end up
11733
# making bogus files that we don't know about and never remove. For
11734
# instance it was reported that on HP-UX the gcc test will end up
11735
# making a dummy file named `D' -- because `-MD' means `put the output
11738
# Copy depcomp to subdir because otherwise we won't find it if we're
11739
# using a relative directory.
11740
cp "$am_depcomp" conftest.dir
11742
# We will build objects and dependencies in a subdirectory because
11743
# it helps to detect inapplicable dependency modes. For instance
11744
# both Tru64's cc and ICC support -MD to output dependencies as a
11745
# side effect of compilation, but ICC will put the dependencies in
11746
# the current directory while Tru64 will put them in the object
11750
am_cv_CXX_dependencies_compiler_type=none
11751
if test "$am_compiler_list" = ""; then
11752
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11754
am__universal=false
11755
case " $depcc " in #(
11756
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11759
for depmode in $am_compiler_list; do
11760
# Setup a source with many dependencies, because some compilers
11761
# like to wrap large dependency lists on column 80 (with \), and
11762
# we should not choose a depcomp mode which is confused by this.
11764
# We need to recreate these files for each test, as the compiler may
11765
# overwrite some of them when testing with obscure command lines.
11766
# This happens at least with the AIX C compiler.
11768
for i in 1 2 3 4 5 6; do
11769
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11770
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11771
# Solaris 8's {/usr,}/bin/sh.
11772
touch sub/conftst$i.h
11774
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11776
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11777
# mode. It turns out that the SunPro C++ compiler does not properly
11778
# handle `-M -o', and we need to detect this. Also, some Intel
11779
# versions had trouble with output in subdirs
11780
am__obj=sub/conftest.${OBJEXT-o}
11781
am__minus_obj="-o $am__obj"
11784
# This depmode causes a compiler race in universal mode.
11785
test "$am__universal" = false || continue
11788
# after this tag, mechanisms are not by side-effect, so they'll
11789
# only be used when explicitly requested
11790
if test "x$enable_dependency_tracking" = xyes; then
11796
msvisualcpp | msvcmsys)
11797
# This compiler won't grok `-c -o', but also, the minuso test has
11798
# not run yet. These depmodes are late enough in the game, and
11799
# so weak that their functioning should not be impacted.
11800
am__obj=conftest.${OBJEXT-o}
11805
if depmode=$depmode \
11806
source=sub/conftest.c object=$am__obj \
11807
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11808
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11809
>/dev/null 2>conftest.err &&
11810
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11811
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11812
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11813
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11814
# icc doesn't choke on unknown options, it will just issue warnings
11815
# or remarks (even with -Werror). So we grep stderr for any message
11816
# that says an option was ignored or not supported.
11817
# When given -MP, icc 7.0 and 7.1 complain thusly:
11818
# icc: Command line warning: ignoring option '-M'; no argument required
11819
# The diagnosis changed in icc 8.0:
11820
# icc: Command line remark: option '-MP' not supported
11821
if (grep 'ignoring option' conftest.err ||
11822
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11823
am_cv_CXX_dependencies_compiler_type=$depmode
11830
rm -rf conftest.dir
11832
am_cv_CXX_dependencies_compiler_type=none
11836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11837
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11838
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11841
test "x$enable_dependency_tracking" != xno \
11842
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11843
am__fastdepCXX_TRUE=
11844
am__fastdepCXX_FALSE='#'
11846
am__fastdepCXX_TRUE='#'
11847
am__fastdepCXX_FALSE=
11853
ac_cpp='$CXXCPP $CPPFLAGS'
11854
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11857
if test -z "$CXX"; then
11858
if test -n "$CCC"; then
11861
if test -n "$ac_tool_prefix"; then
11862
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11864
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867
$as_echo_n "checking for $ac_word... " >&6; }
11868
if test "${ac_cv_prog_CXX+set}" = set; then :
11869
$as_echo_n "(cached) " >&6
11871
if test -n "$CXX"; then
11872
ac_cv_prog_CXX="$CXX" # Let the user override the test.
11874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875
for as_dir in $PATH
11878
test -z "$as_dir" && as_dir=.
11879
for ac_exec_ext in '' $ac_executable_extensions; do
11880
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11882
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891
CXX=$ac_cv_prog_CXX
11892
if test -n "$CXX"; then
11893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11894
$as_echo "$CXX" >&6; }
11896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897
$as_echo "no" >&6; }
11901
test -n "$CXX" && break
11904
if test -z "$CXX"; then
11906
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11908
# Extract the first word of "$ac_prog", so it can be a program name with args.
11909
set dummy $ac_prog; ac_word=$2
11910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911
$as_echo_n "checking for $ac_word... " >&6; }
11912
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11913
$as_echo_n "(cached) " >&6
11915
if test -n "$ac_ct_CXX"; then
11916
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919
for as_dir in $PATH
11922
test -z "$as_dir" && as_dir=.
11923
for ac_exec_ext in '' $ac_executable_extensions; do
11924
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925
ac_cv_prog_ac_ct_CXX="$ac_prog"
11926
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11936
if test -n "$ac_ct_CXX"; then
11937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11938
$as_echo "$ac_ct_CXX" >&6; }
11940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941
$as_echo "no" >&6; }
11945
test -n "$ac_ct_CXX" && break
11948
if test "x$ac_ct_CXX" = x; then
11951
case $cross_compiling:$ac_tool_warned in
11953
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11955
ac_tool_warned=yes ;;
11963
# Provide some information about the compiler.
11964
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11967
for ac_option in --version -v -V -qversion; do
11968
{ { ac_try="$ac_compiler $ac_option >&5"
11969
case "(($ac_try" in
11970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971
*) ac_try_echo=$ac_try;;
11973
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11974
$as_echo "$ac_try_echo"; } >&5
11975
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11977
if test -s conftest.err; then
11979
... rest of stderr output deleted ...
11980
10q' conftest.err >conftest.er1
11981
cat conftest.er1 >&5
11983
rm -f conftest.er1 conftest.err
11984
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985
test $ac_status = 0; }
11988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11989
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11990
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11991
$as_echo_n "(cached) " >&6
11993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994
/* end confdefs.h. */
12007
if ac_fn_cxx_try_compile "$LINENO"; then :
12008
ac_compiler_gnu=yes
12012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12017
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12018
if test $ac_compiler_gnu = yes; then
12023
ac_test_CXXFLAGS=${CXXFLAGS+set}
12024
ac_save_CXXFLAGS=$CXXFLAGS
12025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12026
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12027
if test "${ac_cv_prog_cxx_g+set}" = set; then :
12028
$as_echo_n "(cached) " >&6
12030
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12031
ac_cxx_werror_flag=yes
12032
ac_cv_prog_cxx_g=no
12034
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035
/* end confdefs.h. */
12045
if ac_fn_cxx_try_compile "$LINENO"; then :
12046
ac_cv_prog_cxx_g=yes
12049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050
/* end confdefs.h. */
12060
if ac_fn_cxx_try_compile "$LINENO"; then :
12063
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12065
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066
/* end confdefs.h. */
12076
if ac_fn_cxx_try_compile "$LINENO"; then :
12077
ac_cv_prog_cxx_g=yes
12079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12087
$as_echo "$ac_cv_prog_cxx_g" >&6; }
12088
if test "$ac_test_CXXFLAGS" = set; then
12089
CXXFLAGS=$ac_save_CXXFLAGS
12090
elif test $ac_cv_prog_cxx_g = yes; then
12091
if test "$GXX" = yes; then
12097
if test "$GXX" = yes; then
12104
ac_cpp='$CPP $CPPFLAGS'
12105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12109
depcc="$CXX" am_compiler_list=
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12112
$as_echo_n "checking dependency style of $depcc... " >&6; }
12113
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12114
$as_echo_n "(cached) " >&6
12116
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12117
# We make a subdir and do the tests there. Otherwise we can end up
12118
# making bogus files that we don't know about and never remove. For
12119
# instance it was reported that on HP-UX the gcc test will end up
12120
# making a dummy file named `D' -- because `-MD' means `put the output
12123
# Copy depcomp to subdir because otherwise we won't find it if we're
12124
# using a relative directory.
12125
cp "$am_depcomp" conftest.dir
12127
# We will build objects and dependencies in a subdirectory because
12128
# it helps to detect inapplicable dependency modes. For instance
12129
# both Tru64's cc and ICC support -MD to output dependencies as a
12130
# side effect of compilation, but ICC will put the dependencies in
12131
# the current directory while Tru64 will put them in the object
12135
am_cv_CXX_dependencies_compiler_type=none
12136
if test "$am_compiler_list" = ""; then
12137
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12139
am__universal=false
12140
case " $depcc " in #(
12141
*\ -arch\ *\ -arch\ *) am__universal=true ;;
12144
for depmode in $am_compiler_list; do
12145
# Setup a source with many dependencies, because some compilers
12146
# like to wrap large dependency lists on column 80 (with \), and
12147
# we should not choose a depcomp mode which is confused by this.
12149
# We need to recreate these files for each test, as the compiler may
12150
# overwrite some of them when testing with obscure command lines.
12151
# This happens at least with the AIX C compiler.
12153
for i in 1 2 3 4 5 6; do
12154
echo '#include "conftst'$i'.h"' >> sub/conftest.c
12155
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12156
# Solaris 8's {/usr,}/bin/sh.
12157
touch sub/conftst$i.h
12159
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12161
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12162
# mode. It turns out that the SunPro C++ compiler does not properly
12163
# handle `-M -o', and we need to detect this. Also, some Intel
12164
# versions had trouble with output in subdirs
12165
am__obj=sub/conftest.${OBJEXT-o}
12166
am__minus_obj="-o $am__obj"
12169
# This depmode causes a compiler race in universal mode.
12170
test "$am__universal" = false || continue
12173
# after this tag, mechanisms are not by side-effect, so they'll
12174
# only be used when explicitly requested
12175
if test "x$enable_dependency_tracking" = xyes; then
12181
msvisualcpp | msvcmsys)
12182
# This compiler won't grok `-c -o', but also, the minuso test has
12183
# not run yet. These depmodes are late enough in the game, and
12184
# so weak that their functioning should not be impacted.
12185
am__obj=conftest.${OBJEXT-o}
12190
if depmode=$depmode \
12191
source=sub/conftest.c object=$am__obj \
12192
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12193
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12194
>/dev/null 2>conftest.err &&
12195
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12196
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12197
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12198
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12199
# icc doesn't choke on unknown options, it will just issue warnings
12200
# or remarks (even with -Werror). So we grep stderr for any message
12201
# that says an option was ignored or not supported.
12202
# When given -MP, icc 7.0 and 7.1 complain thusly:
12203
# icc: Command line warning: ignoring option '-M'; no argument required
12204
# The diagnosis changed in icc 8.0:
12205
# icc: Command line remark: option '-MP' not supported
12206
if (grep 'ignoring option' conftest.err ||
12207
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12208
am_cv_CXX_dependencies_compiler_type=$depmode
12215
rm -rf conftest.dir
12217
am_cv_CXX_dependencies_compiler_type=none
12221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12222
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12223
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12226
test "x$enable_dependency_tracking" != xno \
12227
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12228
am__fastdepCXX_TRUE=
12229
am__fastdepCXX_FALSE='#'
12231
am__fastdepCXX_TRUE='#'
12232
am__fastdepCXX_FALSE=
12236
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12237
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12238
(test "X$CXX" != "Xg++"))) ; then
12240
ac_cpp='$CXXCPP $CPPFLAGS'
12241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12245
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12246
if test -z "$CXXCPP"; then
12247
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12248
$as_echo_n "(cached) " >&6
12250
# Double quotes because CXXCPP needs to be expanded
12251
for CXXCPP in "$CXX -E" "/lib/cpp"
12253
ac_preproc_ok=false
12254
for ac_cxx_preproc_warn_flag in '' yes
12256
# Use a header file that comes with gcc, so configuring glibc
12257
# with a fresh cross-compiler works.
12258
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12259
# <limits.h> exists even on freestanding compilers.
12260
# On the NeXT, cc -E runs the code through the compiler's parser,
12261
# not just through cpp. "Syntax error" is here to catch this case.
12262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263
/* end confdefs.h. */
12265
# include <limits.h>
12267
# include <assert.h>
12271
if ac_fn_cxx_try_cpp "$LINENO"; then :
12274
# Broken: fails on valid input.
12277
rm -f conftest.err conftest.$ac_ext
12279
# OK, works on sane cases. Now check whether nonexistent headers
12280
# can be detected and how.
12281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282
/* end confdefs.h. */
12283
#include <ac_nonexistent.h>
12285
if ac_fn_cxx_try_cpp "$LINENO"; then :
12286
# Broken: success on invalid input.
12289
# Passes both tests.
12293
rm -f conftest.err conftest.$ac_ext
12296
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12297
rm -f conftest.err conftest.$ac_ext
12298
if $ac_preproc_ok; then :
12303
ac_cv_prog_CXXCPP=$CXXCPP
12306
CXXCPP=$ac_cv_prog_CXXCPP
12308
ac_cv_prog_CXXCPP=$CXXCPP
12310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12311
$as_echo "$CXXCPP" >&6; }
12312
ac_preproc_ok=false
12313
for ac_cxx_preproc_warn_flag in '' yes
12315
# Use a header file that comes with gcc, so configuring glibc
12316
# with a fresh cross-compiler works.
12317
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318
# <limits.h> exists even on freestanding compilers.
12319
# On the NeXT, cc -E runs the code through the compiler's parser,
12320
# not just through cpp. "Syntax error" is here to catch this case.
12321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322
/* end confdefs.h. */
12324
# include <limits.h>
12326
# include <assert.h>
12330
if ac_fn_cxx_try_cpp "$LINENO"; then :
12333
# Broken: fails on valid input.
12336
rm -f conftest.err conftest.$ac_ext
12338
# OK, works on sane cases. Now check whether nonexistent headers
12339
# can be detected and how.
12340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341
/* end confdefs.h. */
12342
#include <ac_nonexistent.h>
12344
if ac_fn_cxx_try_cpp "$LINENO"; then :
12345
# Broken: success on invalid input.
12348
# Passes both tests.
12352
rm -f conftest.err conftest.$ac_ext
12355
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12356
rm -f conftest.err conftest.$ac_ext
12357
if $ac_preproc_ok; then :
12360
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12361
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12362
_lt_caught_CXX_error=yes; }
12366
ac_cpp='$CPP $CPPFLAGS'
12367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
_lt_caught_CXX_error=yes
12379
ac_cpp='$CXXCPP $CPPFLAGS'
12380
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12384
archive_cmds_need_lc_CXX=no
12385
allow_undefined_flag_CXX=
12386
always_export_symbols_CXX=no
12387
archive_expsym_cmds_CXX=
12388
compiler_needs_object_CXX=no
12389
export_dynamic_flag_spec_CXX=
12390
hardcode_direct_CXX=no
12391
hardcode_direct_absolute_CXX=no
12392
hardcode_libdir_flag_spec_CXX=
12393
hardcode_libdir_flag_spec_ld_CXX=
12394
hardcode_libdir_separator_CXX=
12395
hardcode_minus_L_CXX=no
12396
hardcode_shlibpath_var_CXX=unsupported
12397
hardcode_automatic_CXX=no
12398
inherit_rpath_CXX=no
12400
module_expsym_cmds_CXX=
12401
link_all_deplibs_CXX=unknown
12402
old_archive_cmds_CXX=$old_archive_cmds
12403
no_undefined_flag_CXX=
12404
whole_archive_flag_spec_CXX=
12405
enable_shared_with_static_runtimes_CXX=no
12407
# Source file extension for C++ test sources.
12410
# Object file extension for compiled C++ test sources.
12414
# No sense in running all these tests if we already determined that
12415
# the CXX compiler isn't working. Some variables (like enable_shared)
12416
# are currently assumed to apply to all compilers on this platform,
12417
# and will be corrupted by setting them based on a non-working compiler.
12418
if test "$_lt_caught_CXX_error" != yes; then
12419
# Code to be used in simple compile tests
12420
lt_simple_compile_test_code="int some_variable = 0;"
12422
# Code to be used in simple link tests
12423
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12425
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12432
# If no C compiler was specified, use CC.
12435
# If no C compiler flags were specified, use CFLAGS.
12436
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438
# Allow CC to be a program name with arguments.
12442
# save warnings/boilerplate of simple test code
12443
ac_outfile=conftest.$ac_objext
12444
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12445
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12446
_lt_compiler_boilerplate=`cat conftest.err`
12449
ac_outfile=conftest.$ac_objext
12450
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12451
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12452
_lt_linker_boilerplate=`cat conftest.err`
12456
# Allow CC to be a program name with arguments.
12461
lt_save_with_gnu_ld=$with_gnu_ld
12462
lt_save_path_LD=$lt_cv_path_LD
12463
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12464
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12466
$as_unset lt_cv_prog_gnu_ld
12468
if test -n "${lt_cv_path_LDCXX+set}"; then
12469
lt_cv_path_LD=$lt_cv_path_LDCXX
12471
$as_unset lt_cv_path_LD
12473
test -z "${LDCXX+set}" || LD=$LDCXX
12477
for cc_temp in $compiler""; do
12479
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12480
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12485
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12488
if test -n "$compiler"; then
12489
# We don't want -fno-exception when compiling C++ code, so set the
12490
# no_builtin_flag separately
12491
if test "$GXX" = yes; then
12492
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12494
lt_prog_compiler_no_builtin_flag_CXX=
12497
if test "$GXX" = yes; then
12498
# Set up default GNU C++ configuration
12502
# Check whether --with-gnu-ld was given.
12503
if test "${with_gnu_ld+set}" = set; then :
12504
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12510
if test "$GCC" = yes; then
12511
# Check if gcc -print-prog-name=ld gives a path.
12512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12513
$as_echo_n "checking for ld used by $CC... " >&6; }
12516
# gcc leaves a trailing carriage return which upsets mingw
12517
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12519
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12522
# Accept absolute paths.
12524
re_direlt='/[^/][^/]*/\.\./'
12525
# Canonicalize the pathname of ld
12526
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12527
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12528
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12530
test -z "$LD" && LD="$ac_prog"
12533
# If it fails, then pretend we aren't using GCC.
12537
# If it is relative, then search for the first ld in PATH.
12538
with_gnu_ld=unknown
12541
elif test "$with_gnu_ld" = yes; then
12542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12543
$as_echo_n "checking for GNU ld... " >&6; }
12545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12546
$as_echo_n "checking for non-GNU ld... " >&6; }
12548
if test "${lt_cv_path_LD+set}" = set; then :
12549
$as_echo_n "(cached) " >&6
12551
if test -z "$LD"; then
12552
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12553
for ac_dir in $PATH; do
12555
test -z "$ac_dir" && ac_dir=.
12556
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12557
lt_cv_path_LD="$ac_dir/$ac_prog"
12558
# Check to see if the program is GNU ld. I'd rather use --version,
12559
# but apparently some variants of GNU ld only accept -v.
12560
# Break only if it was the GNU/non-GNU ld that we prefer.
12561
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12562
*GNU* | *'with BFD'*)
12563
test "$with_gnu_ld" != no && break
12566
test "$with_gnu_ld" != yes && break
12573
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12577
LD="$lt_cv_path_LD"
12578
if test -n "$LD"; then
12579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12580
$as_echo "$LD" >&6; }
12582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583
$as_echo "no" >&6; }
12585
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12587
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12588
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12589
$as_echo_n "(cached) " >&6
12591
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12592
case `$LD -v 2>&1 </dev/null` in
12593
*GNU* | *'with BFD'*)
12594
lt_cv_prog_gnu_ld=yes
12597
lt_cv_prog_gnu_ld=no
12601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12602
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12603
with_gnu_ld=$lt_cv_prog_gnu_ld
12611
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12612
# archiving commands below assume that GNU ld is being used.
12613
if test "$with_gnu_ld" = yes; then
12614
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12615
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12617
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12618
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12620
# If archive_cmds runs LD, not CC, wlarc should be empty
12621
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12622
# investigate it a little bit more. (MM)
12625
# ancient GNU ld didn't support --whole-archive et. al.
12626
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12627
$GREP 'no-whole-archive' > /dev/null; then
12628
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12630
whole_archive_flag_spec_CXX=
12636
# A generic and very simple default shared library creation
12637
# command for GNU C++ for the case where it uses the native
12638
# linker, instead of GNU ld. If possible, this setting should
12639
# overridden to take advantage of the native linker features on
12640
# the platform it is being used on.
12641
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12644
# Commands to make compiler produce verbose output that lists
12645
# what "hidden" libraries, object files and flags are used when
12646
# linking a shared library.
12647
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12655
# PORTME: fill in a description of your system's C++ link characteristics
12656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12657
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12661
# FIXME: insert proper C++ library support
12665
if test "$host_cpu" = ia64; then
12666
# On IA64, the linker does run time linking by default, so we don't
12667
# have to do anything special.
12668
aix_use_runtimelinking=no
12669
exp_sym_flag='-Bexport'
12672
aix_use_runtimelinking=no
12674
# Test if we are trying to use run time linking or normal
12675
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12676
# need to do runtime linking.
12677
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12678
for ld_flag in $LDFLAGS; do
12681
aix_use_runtimelinking=yes
12689
exp_sym_flag='-bexport'
12690
no_entry_flag='-bnoentry'
12693
# When large executables or shared objects are built, AIX ld can
12694
# have problems creating the table of contents. If linking a library
12695
# or program results in "error TOC overflow" add -mminimal-toc to
12696
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12697
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12699
archive_cmds_CXX=''
12700
hardcode_direct_CXX=yes
12701
hardcode_direct_absolute_CXX=yes
12702
hardcode_libdir_separator_CXX=':'
12703
link_all_deplibs_CXX=yes
12704
file_list_spec_CXX='${wl}-f,'
12706
if test "$GXX" = yes; then
12707
case $host_os in aix4.[012]|aix4.[012].*)
12708
# We only want to do this on AIX 4.2 and lower, the check
12709
# below for broken collect2 doesn't work under 4.3+
12710
collect2name=`${CC} -print-prog-name=collect2`
12711
if test -f "$collect2name" &&
12712
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12714
# We have reworked collect2
12717
# We have old collect2
12718
hardcode_direct_CXX=unsupported
12719
# It fails to find uninstalled libraries when the uninstalled
12720
# path is not listed in the libpath. Setting hardcode_minus_L
12721
# to unsupported forces relinking
12722
hardcode_minus_L_CXX=yes
12723
hardcode_libdir_flag_spec_CXX='-L$libdir'
12724
hardcode_libdir_separator_CXX=
12727
shared_flag='-shared'
12728
if test "$aix_use_runtimelinking" = yes; then
12729
shared_flag="$shared_flag "'${wl}-G'
12733
if test "$host_cpu" = ia64; then
12734
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12735
# chokes on -Wl,-G. The following line is correct:
12738
if test "$aix_use_runtimelinking" = yes; then
12739
shared_flag='${wl}-G'
12741
shared_flag='${wl}-bM:SRE'
12746
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12747
# It seems that -bexpall does not export symbols beginning with
12748
# underscore (_), so it is better to generate a list of symbols to
12750
always_export_symbols_CXX=yes
12751
if test "$aix_use_runtimelinking" = yes; then
12752
# Warning - without using the other runtime loading flags (-brtl),
12753
# -berok will link without error, but may produce a broken library.
12754
allow_undefined_flag_CXX='-berok'
12755
# Determine the default libpath from the value encoded in an empty
12757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758
/* end confdefs.h. */
12768
if ac_fn_cxx_try_link "$LINENO"; then :
12770
lt_aix_libpath_sed='
12771
/Import File Strings/,/^$/ {
12777
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12778
# Check for a 64-bit object if we didn't find anything.
12779
if test -z "$aix_libpath"; then
12780
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12783
rm -f core conftest.err conftest.$ac_objext \
12784
conftest$ac_exeext conftest.$ac_ext
12785
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12787
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12789
archive_expsym_cmds_CXX='$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"
12791
if test "$host_cpu" = ia64; then
12792
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12793
allow_undefined_flag_CXX="-z nodefs"
12794
archive_expsym_cmds_CXX="\$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"
12796
# Determine the default libpath from the value encoded in an
12797
# empty executable.
12798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799
/* end confdefs.h. */
12809
if ac_fn_cxx_try_link "$LINENO"; then :
12811
lt_aix_libpath_sed='
12812
/Import File Strings/,/^$/ {
12818
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12819
# Check for a 64-bit object if we didn't find anything.
12820
if test -z "$aix_libpath"; then
12821
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12824
rm -f core conftest.err conftest.$ac_objext \
12825
conftest$ac_exeext conftest.$ac_ext
12826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12828
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12829
# Warning - without using the other run time loading flags,
12830
# -berok will link without error, but may produce a broken library.
12831
no_undefined_flag_CXX=' ${wl}-bernotok'
12832
allow_undefined_flag_CXX=' ${wl}-berok'
12833
# Exported symbols can be pulled into shared objects from archives
12834
whole_archive_flag_spec_CXX='$convenience'
12835
archive_cmds_need_lc_CXX=yes
12836
# This is similar to how AIX traditionally builds its shared
12838
archive_expsym_cmds_CXX="\$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'
12844
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12845
allow_undefined_flag_CXX=unsupported
12846
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12847
# support --undefined. This deserves some investigation. FIXME
12848
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12855
case $cc_basename in
12857
# FIXME: insert proper C++ library support
12863
cygwin* | mingw* | pw32* | cegcc*)
12864
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12865
# as there is no search path for DLLs.
12866
hardcode_libdir_flag_spec_CXX='-L$libdir'
12867
allow_undefined_flag_CXX=unsupported
12868
always_export_symbols_CXX=no
12869
enable_shared_with_static_runtimes_CXX=yes
12871
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12872
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12873
# If the export-symbols file already is a .def file (1st line
12874
# is EXPORTS), use it as is; otherwise, prepend...
12875
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12876
cp $export_symbols $output_objdir/$soname.def;
12878
echo EXPORTS > $output_objdir/$soname.def;
12879
cat $export_symbols >> $output_objdir/$soname.def;
12881
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12886
darwin* | rhapsody*)
12889
archive_cmds_need_lc_CXX=no
12890
hardcode_direct_CXX=no
12891
hardcode_automatic_CXX=yes
12892
hardcode_shlibpath_var_CXX=unsupported
12893
whole_archive_flag_spec_CXX=''
12894
link_all_deplibs_CXX=yes
12895
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12896
case $cc_basename in
12897
ifort*) _lt_dar_can_shared=yes ;;
12898
*) _lt_dar_can_shared=$GCC ;;
12900
if test "$_lt_dar_can_shared" = "yes"; then
12901
output_verbose_link_cmd=echo
12902
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12903
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12904
archive_expsym_cmds_CXX="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}"
12905
module_expsym_cmds_CXX="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}"
12906
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12907
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12908
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12918
case $cc_basename in
12920
# FIXME: insert proper C++ library support
12924
# Green Hills C++ Compiler
12925
# FIXME: insert proper C++ library support
12929
# FIXME: insert proper C++ library support
12936
# C++ shared libraries reported to be fairly broken before
12942
archive_cmds_need_lc_CXX=no
12945
freebsd* | dragonfly*)
12946
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12955
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12956
hardcode_libdir_separator_CXX=:
12957
export_dynamic_flag_spec_CXX='${wl}-E'
12958
hardcode_direct_CXX=yes
12959
hardcode_minus_L_CXX=yes # Not in the search PATH,
12960
# but as the default
12961
# location of the library.
12963
case $cc_basename in
12965
# FIXME: insert proper C++ library support
12969
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12970
# Commands to make compiler produce verbose output that lists
12971
# what "hidden" libraries, object files and flags are used when
12972
# linking a shared library.
12974
# There doesn't appear to be a way to prevent this compiler from
12975
# explicitly linking system object files so we need to strip them
12976
# from the output so that they don't get included in the library
12978
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12981
if test "$GXX" = yes; then
12982
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12984
# FIXME: insert proper C++ library support
12992
if test $with_gnu_ld = no; then
12993
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12994
hardcode_libdir_separator_CXX=:
13000
export_dynamic_flag_spec_CXX='${wl}-E'
13006
hardcode_direct_CXX=no
13007
hardcode_shlibpath_var_CXX=no
13010
hardcode_direct_CXX=yes
13011
hardcode_direct_absolute_CXX=yes
13012
hardcode_minus_L_CXX=yes # Not in the search PATH,
13013
# but as the default
13014
# location of the library.
13018
case $cc_basename in
13020
# FIXME: insert proper C++ library support
13026
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13035
# Commands to make compiler produce verbose output that lists
13036
# what "hidden" libraries, object files and flags are used when
13037
# linking a shared library.
13039
# There doesn't appear to be a way to prevent this compiler from
13040
# explicitly linking system object files so we need to strip them
13041
# from the output so that they don't get included in the library
13043
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13046
if test "$GXX" = yes; then
13047
if test $with_gnu_ld = no; then
13050
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13061
# FIXME: insert proper C++ library support
13069
hardcode_direct_CXX=no
13070
hardcode_shlibpath_var_CXX=no
13071
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13072
export_dynamic_flag_spec_CXX='${wl}-E'
13073
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13074
# Instead, shared libraries are loaded at an image base (0x10000000 by
13075
# default) and relocated if they conflict, which is a slow very memory
13076
# consuming and fragmenting process. To avoid this, we pick a random,
13077
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13078
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13079
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13080
archive_expsym_cmds_CXX='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'
13083
case $cc_basename in
13086
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13088
# Archives containing C++ object files must be created using
13089
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13090
# necessary to make sure instantiated templates are included
13092
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13095
if test "$GXX" = yes; then
13096
if test "$with_gnu_ld" = no; then
13097
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13099
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13102
link_all_deplibs_CXX=yes
13105
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13106
hardcode_libdir_separator_CXX=:
13107
inherit_rpath_CXX=yes
13110
linux* | k*bsd*-gnu)
13111
case $cc_basename in
13113
# Kuck and Associates, Inc. (KAI) C++ Compiler
13115
# KCC will only create a shared library if the output file
13116
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13117
# to its proper name (with version) after linking.
13118
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13119
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13120
# Commands to make compiler produce verbose output that lists
13121
# what "hidden" libraries, object files and flags are used when
13122
# linking a shared library.
13124
# There doesn't appear to be a way to prevent this compiler from
13125
# explicitly linking system object files so we need to strip them
13126
# from the output so that they don't get included in the library
13128
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13130
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13133
# Archives containing C++ object files must be created using
13134
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13135
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13140
# version 8.0 and above of icpc choke on multiply defined symbols
13141
# if we add $predep_objects and $postdep_objects, however 7.1 and
13142
# earlier do not add the objects themselves.
13143
case `$CC -V 2>&1` in
13145
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148
*) # Version 8.0 or newer
13151
ia64*) tmp_idyn=' -i_dynamic';;
13153
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13154
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13157
archive_cmds_need_lc_CXX=no
13158
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13159
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13160
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13163
# Portland Group C++ compiler
13165
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13166
prelink_cmds_CXX='tpldir=Template.dir~
13168
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13169
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13170
old_archive_cmds_CXX='tpldir=Template.dir~
13172
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13173
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13175
archive_cmds_CXX='tpldir=Template.dir~
13177
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13178
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13179
archive_expsym_cmds_CXX='tpldir=Template.dir~
13181
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13182
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13184
*) # Version 6 will use weak symbols
13185
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13186
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13190
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13191
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13192
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13196
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13197
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13199
runpath_var=LD_RUN_PATH
13200
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13201
hardcode_libdir_separator_CXX=:
13203
# Commands to make compiler produce verbose output that lists
13204
# what "hidden" libraries, object files and flags are used when
13205
# linking a shared library.
13207
# There doesn't appear to be a way to prevent this compiler from
13208
# explicitly linking system object files so we need to strip them
13209
# from the output so that they don't get included in the library
13211
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13214
# IBM XL 8.0 on PPC, with GNU ld
13215
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13216
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13217
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218
if test "x$supports_anon_versioning" = xyes; then
13219
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13220
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13221
echo "local: *; };" >> $output_objdir/$libname.ver~
13222
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13226
case `$CC -V 2>&1 | sed 5q` in
13229
no_undefined_flag_CXX=' -zdefs'
13230
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13231
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13232
hardcode_libdir_flag_spec_CXX='-R$libdir'
13233
whole_archive_flag_spec_CXX='${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'
13234
compiler_needs_object_CXX=yes
13236
# Not sure whether something based on
13237
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13239
output_verbose_link_cmd='echo'
13241
# Archives containing C++ object files must be created using
13242
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13243
# necessary to make sure instantiated templates are included
13245
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13253
# FIXME: insert proper C++ library support
13258
# FIXME: insert proper C++ library support
13263
case $cc_basename in
13265
# FIXME: insert proper C++ library support
13269
# FIXME: insert proper C++ library support
13276
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13277
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13279
hardcode_libdir_flag_spec_CXX='-R$libdir'
13280
hardcode_direct_CXX=yes
13281
hardcode_shlibpath_var_CXX=no
13283
# Workaround some broken pre-1.5 toolchains
13284
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13292
# C++ shared libraries are fairly broken
13297
if test -f /usr/libexec/ld.so; then
13298
hardcode_direct_CXX=yes
13299
hardcode_shlibpath_var_CXX=no
13300
hardcode_direct_absolute_CXX=yes
13301
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13302
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13304
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13305
export_dynamic_flag_spec_CXX='${wl}-E'
13306
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13308
output_verbose_link_cmd=echo
13314
osf3* | osf4* | osf5*)
13315
case $cc_basename in
13317
# Kuck and Associates, Inc. (KAI) C++ Compiler
13319
# KCC will only create a shared library if the output file
13320
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13321
# to its proper name (with version) after linking.
13322
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13324
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13325
hardcode_libdir_separator_CXX=:
13327
# Archives containing C++ object files must be created using
13328
# the KAI C++ compiler.
13330
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13331
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13335
# Rational C++ 2.4.1
13336
# FIXME: insert proper C++ library support
13342
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13343
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13344
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13347
allow_undefined_flag_CXX=' -expect_unresolved \*'
13348
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13349
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13350
echo "-hidden">> $lib.exp~
13351
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13353
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13357
hardcode_libdir_separator_CXX=:
13359
# Commands to make compiler produce verbose output that lists
13360
# what "hidden" libraries, object files and flags are used when
13361
# linking a shared library.
13363
# There doesn't appear to be a way to prevent this compiler from
13364
# explicitly linking system object files so we need to strip them
13365
# from the output so that they don't get included in the library
13367
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13370
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13371
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13374
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13377
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13381
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13382
hardcode_libdir_separator_CXX=:
13384
# Commands to make compiler produce verbose output that lists
13385
# what "hidden" libraries, object files and flags are used when
13386
# linking a shared library.
13387
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13390
# FIXME: insert proper C++ library support
13398
# FIXME: insert proper C++ library support
13403
case $cc_basename in
13406
# FIXME: insert proper C++ library support
13411
# FIXME: insert proper C++ library support
13415
# FIXME: insert proper C++ library support
13422
case $cc_basename in
13424
# Sun C++ 4.2, 5.x and Centerline C++
13425
archive_cmds_need_lc_CXX=yes
13426
no_undefined_flag_CXX=' -zdefs'
13427
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13428
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13429
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13431
hardcode_libdir_flag_spec_CXX='-R$libdir'
13432
hardcode_shlibpath_var_CXX=no
13434
solaris2.[0-5] | solaris2.[0-5].*) ;;
13436
# The compiler driver will combine and reorder linker options,
13437
# but understands `-z linker_flag'.
13438
# Supported since Solaris 2.6 (maybe 2.5.1?)
13439
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13442
link_all_deplibs_CXX=yes
13444
output_verbose_link_cmd='echo'
13446
# Archives containing C++ object files must be created using
13447
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13448
# necessary to make sure instantiated templates are included
13450
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13453
# Green Hills C++ Compiler
13454
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13456
# The C++ compiler must be used to create the archive.
13457
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13460
# GNU C++ compiler with Solaris linker
13461
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13462
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13463
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13464
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13465
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13466
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13468
# Commands to make compiler produce verbose output that lists
13469
# what "hidden" libraries, object files and flags are used when
13470
# linking a shared library.
13471
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13473
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13475
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13476
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13479
# Commands to make compiler produce verbose output that lists
13480
# what "hidden" libraries, object files and flags are used when
13481
# linking a shared library.
13482
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13485
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13487
solaris2.[0-5] | solaris2.[0-5].*) ;;
13489
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13497
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13498
no_undefined_flag_CXX='${wl}-z,text'
13499
archive_cmds_need_lc_CXX=no
13500
hardcode_shlibpath_var_CXX=no
13501
runpath_var='LD_RUN_PATH'
13503
case $cc_basename in
13505
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515
sysv5* | sco3.2v5* | sco5v6*)
13516
# Note: We can NOT use -z defs as we might desire, because we do not
13517
# link with -lc, and that would cause any symbols used from libc to
13518
# always be unresolved, which means just about no library would
13519
# ever link correctly. If we're not using GNU ld we use -z text
13520
# though, which does catch some bad symbols but isn't as heavy-handed
13522
no_undefined_flag_CXX='${wl}-z,text'
13523
allow_undefined_flag_CXX='${wl}-z,nodefs'
13524
archive_cmds_need_lc_CXX=no
13525
hardcode_shlibpath_var_CXX=no
13526
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13527
hardcode_libdir_separator_CXX=':'
13528
link_all_deplibs_CXX=yes
13529
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13530
runpath_var='LD_RUN_PATH'
13532
case $cc_basename in
13534
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13538
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13539
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13545
case $cc_basename in
13547
# NonStop-UX NCC 3.20
13548
# FIXME: insert proper C++ library support
13552
# FIXME: insert proper C++ library support
13559
# FIXME: insert proper C++ library support
13564
# FIXME: insert proper C++ library support
13569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13570
$as_echo "$ld_shlibs_CXX" >&6; }
13571
test "$ld_shlibs_CXX" = no && can_build_shared=no
13577
## There is no encapsulation within the following macros, do not change
13578
## the running order or otherwise move them around unless you know exactly
13579
## what you are doing...
13580
# Dependencies to place before and after the object being linked:
13581
predep_objects_CXX=
13582
postdep_objects_CXX=
13585
compiler_lib_search_path_CXX=
13587
cat > conftest.$ac_ext <<_LT_EOF
13591
Foo (void) { a = 0; }
13597
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13598
(eval $ac_compile) 2>&5
13600
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601
test $ac_status = 0; }; then
13602
# Parse the compiler output and extract the necessary
13603
# objects, libraries and library flags.
13605
# Sentinel used to keep track of whether or not we are before
13606
# the conftest object file.
13607
pre_test_object_deps_done=no
13609
for p in `eval "$output_verbose_link_cmd"`; do
13613
# Some compilers place space between "-{L,R}" and the path.
13614
# Remove the space.
13615
if test $p = "-L" ||
13616
test $p = "-R"; then
13623
if test "$pre_test_object_deps_done" = no; then
13626
# Internal compiler library paths should come after those
13627
# provided the user. The postdeps already come after the
13628
# user supplied libs so there is no need to process them.
13629
if test -z "$compiler_lib_search_path_CXX"; then
13630
compiler_lib_search_path_CXX="${prev}${p}"
13632
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13635
# The "-l" case would never come before the object being
13636
# linked, so don't bother handling this case.
13639
if test -z "$postdeps_CXX"; then
13640
postdeps_CXX="${prev}${p}"
13642
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13648
# This assumes that the test object file only shows up
13649
# once in the compiler output.
13650
if test "$p" = "conftest.$objext"; then
13651
pre_test_object_deps_done=yes
13655
if test "$pre_test_object_deps_done" = no; then
13656
if test -z "$predep_objects_CXX"; then
13657
predep_objects_CXX="$p"
13659
predep_objects_CXX="$predep_objects_CXX $p"
13662
if test -z "$postdep_objects_CXX"; then
13663
postdep_objects_CXX="$p"
13665
postdep_objects_CXX="$postdep_objects_CXX $p"
13670
*) ;; # Ignore the rest.
13678
echo "libtool.m4: error: problem compiling CXX test program"
13681
$RM -f confest.$objext
13683
# PORTME: override above test on systems where it is broken
13686
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13687
# hack all around it, let's just trust "g++" to DTRT.
13688
predep_objects_CXX=
13689
postdep_objects_CXX=
13694
case `$CC -V 2>&1 | sed 5q` in
13698
# The more standards-conforming stlport4 library is
13699
# incompatible with the Cstd library. Avoid specifying
13700
# it if it's in CXXFLAGS. Ignore libCrun as
13701
# -library=stlport4 depends on it.
13702
case " $CXX $CXXFLAGS " in
13703
*" -library=stlport4 "*)
13704
solaris_use_stlport4=yes
13708
if test "$solaris_use_stlport4" != yes; then
13709
postdeps_CXX='-library=Cstd -library=Crun'
13716
case $cc_basename in
13718
# The more standards-conforming stlport4 library is
13719
# incompatible with the Cstd library. Avoid specifying
13720
# it if it's in CXXFLAGS. Ignore libCrun as
13721
# -library=stlport4 depends on it.
13722
case " $CXX $CXXFLAGS " in
13723
*" -library=stlport4 "*)
13724
solaris_use_stlport4=yes
13728
# Adding this requires a known-good setup of shared libraries for
13729
# Sun compiler versions before 5.6, else PIC objects from an old
13730
# archive will be linked into the output, leading to subtle bugs.
13731
if test "$solaris_use_stlport4" != yes; then
13732
postdeps_CXX='-library=Cstd -library=Crun'
13740
case " $postdeps_CXX " in
13741
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13743
compiler_lib_search_dirs_CXX=
13744
if test -n "${compiler_lib_search_path_CXX}"; then
13745
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13778
lt_prog_compiler_wl_CXX=
13779
lt_prog_compiler_pic_CXX=
13780
lt_prog_compiler_static_CXX=
13782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13783
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13785
# C++ specific cases for pic, static, wl, etc.
13786
if test "$GXX" = yes; then
13787
lt_prog_compiler_wl_CXX='-Wl,'
13788
lt_prog_compiler_static_CXX='-static'
13792
# All AIX code is PIC.
13793
if test "$host_cpu" = ia64; then
13794
# AIX 5 now supports IA64 processor
13795
lt_prog_compiler_static_CXX='-Bstatic'
13802
# see comment about AmigaOS4 .so support
13803
lt_prog_compiler_pic_CXX='-fPIC'
13806
# FIXME: we need at least 68020 code to build shared libraries, but
13807
# adding the `-m68020' flag to GCC prevents building anything better,
13809
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13814
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13815
# PIC is the default for these OSes.
13817
mingw* | cygwin* | os2* | pw32* | cegcc*)
13818
# This hack is so that the source file can tell whether it is being
13819
# built for inclusion in a dll (and should export symbols for example).
13820
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13821
# (--disable-auto-import) libraries
13822
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13824
darwin* | rhapsody*)
13825
# PIC is the default on this platform
13826
# Common symbols not allowed in MH_DYLIB files
13827
lt_prog_compiler_pic_CXX='-fno-common'
13830
# DJGPP does not support shared libraries at all
13831
lt_prog_compiler_pic_CXX=
13834
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13835
# Instead, we relocate shared libraries at runtime.
13838
if test -d /usr/nec; then
13839
lt_prog_compiler_pic_CXX=-Kconform_pic
13843
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13844
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13845
# sets the default TLS model and affects inlining.
13850
lt_prog_compiler_pic_CXX='-fPIC'
13855
# QNX uses GNU C++, but need to define -shared option too, otherwise
13856
# it will coredump.
13857
lt_prog_compiler_pic_CXX='-fPIC -shared'
13860
lt_prog_compiler_pic_CXX='-fPIC'
13866
# All AIX code is PIC.
13867
if test "$host_cpu" = ia64; then
13868
# AIX 5 now supports IA64 processor
13869
lt_prog_compiler_static_CXX='-Bstatic'
13871
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13875
case $cc_basename in
13877
# Green Hills C++ Compiler
13878
# _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13883
case $cc_basename in
13885
lt_prog_compiler_pic_CXX='-KPIC'
13888
# Green Hills C++ Compiler
13889
lt_prog_compiler_pic_CXX='-pic'
13895
freebsd* | dragonfly*)
13896
# FreeBSD uses GNU C++
13898
hpux9* | hpux10* | hpux11*)
13899
case $cc_basename in
13901
lt_prog_compiler_wl_CXX='-Wl,'
13902
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13903
if test "$host_cpu" != ia64; then
13904
lt_prog_compiler_pic_CXX='+Z'
13908
lt_prog_compiler_wl_CXX='-Wl,'
13909
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13915
lt_prog_compiler_pic_CXX='+Z'
13924
# This is c89, which is MS Visual C++ (no shared libs)
13925
# Anyone wants to do a port?
13927
irix5* | irix6* | nonstopux*)
13928
case $cc_basename in
13930
lt_prog_compiler_wl_CXX='-Wl,'
13931
lt_prog_compiler_static_CXX='-non_shared'
13932
# CC pic flag -KPIC is the default.
13938
linux* | k*bsd*-gnu)
13939
case $cc_basename in
13942
lt_prog_compiler_wl_CXX='--backend -Wl,'
13943
lt_prog_compiler_pic_CXX='-fPIC'
13946
# old Intel C++ for x86_64 which still supported -KPIC.
13947
lt_prog_compiler_wl_CXX='-Wl,'
13948
lt_prog_compiler_pic_CXX='-KPIC'
13949
lt_prog_compiler_static_CXX='-static'
13952
# Intel C++, used to be incompatible with GCC.
13953
# ICC 10 doesn't accept -KPIC any more.
13954
lt_prog_compiler_wl_CXX='-Wl,'
13955
lt_prog_compiler_pic_CXX='-fPIC'
13956
lt_prog_compiler_static_CXX='-static'
13959
# Portland Group C++ compiler
13960
lt_prog_compiler_wl_CXX='-Wl,'
13961
lt_prog_compiler_pic_CXX='-fpic'
13962
lt_prog_compiler_static_CXX='-Bstatic'
13966
# Make sure the PIC flag is empty. It appears that all Alpha
13967
# Linux and Compaq Tru64 Unix objects are PIC.
13968
lt_prog_compiler_pic_CXX=
13969
lt_prog_compiler_static_CXX='-non_shared'
13972
# IBM XL 8.0 on PPC
13973
lt_prog_compiler_wl_CXX='-Wl,'
13974
lt_prog_compiler_pic_CXX='-qpic'
13975
lt_prog_compiler_static_CXX='-qstaticlink'
13978
case `$CC -V 2>&1 | sed 5q` in
13981
lt_prog_compiler_pic_CXX='-KPIC'
13982
lt_prog_compiler_static_CXX='-Bstatic'
13983
lt_prog_compiler_wl_CXX='-Qoption ld '
13994
case $cc_basename in
13996
lt_prog_compiler_pic_CXX='-W c,exportall'
14005
# QNX uses GNU C++, but need to define -shared option too, otherwise
14006
# it will coredump.
14007
lt_prog_compiler_pic_CXX='-fPIC -shared'
14009
osf3* | osf4* | osf5*)
14010
case $cc_basename in
14012
lt_prog_compiler_wl_CXX='--backend -Wl,'
14015
# Rational C++ 2.4.1
14016
lt_prog_compiler_pic_CXX='-pic'
14019
# Digital/Compaq C++
14020
lt_prog_compiler_wl_CXX='-Wl,'
14021
# Make sure the PIC flag is empty. It appears that all Alpha
14022
# Linux and Compaq Tru64 Unix objects are PIC.
14023
lt_prog_compiler_pic_CXX=
14024
lt_prog_compiler_static_CXX='-non_shared'
14033
case $cc_basename in
14035
# Sun C++ 4.2, 5.x and Centerline C++
14036
lt_prog_compiler_pic_CXX='-KPIC'
14037
lt_prog_compiler_static_CXX='-Bstatic'
14038
lt_prog_compiler_wl_CXX='-Qoption ld '
14041
# Green Hills C++ Compiler
14042
lt_prog_compiler_pic_CXX='-PIC'
14049
case $cc_basename in
14052
lt_prog_compiler_pic_CXX='-pic'
14053
lt_prog_compiler_static_CXX='-Bstatic'
14057
lt_prog_compiler_pic_CXX='-pic'
14063
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14064
case $cc_basename in
14066
lt_prog_compiler_wl_CXX='-Wl,'
14067
lt_prog_compiler_pic_CXX='-KPIC'
14068
lt_prog_compiler_static_CXX='-Bstatic'
14073
case $cc_basename in
14075
# NonStop-UX NCC 3.20
14076
lt_prog_compiler_pic_CXX='-KPIC'
14085
lt_prog_compiler_can_build_shared_CXX=no
14091
# For platforms which do not support PIC, -DPIC is meaningless:
14093
lt_prog_compiler_pic_CXX=
14096
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14100
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14105
# Check to make sure the PIC flag actually works.
14107
if test -n "$lt_prog_compiler_pic_CXX"; then
14108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14109
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14110
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14111
$as_echo_n "(cached) " >&6
14113
lt_cv_prog_compiler_pic_works_CXX=no
14114
ac_outfile=conftest.$ac_objext
14115
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14116
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14117
# Insert the option either (1) after the last *FLAGS variable, or
14118
# (2) before a word containing "conftest.", or (3) at the end.
14119
# Note that $ac_compile itself does not contain backslashes and begins
14120
# with a dollar sign (not a hyphen), so the echo should work correctly.
14121
# The option is referenced via a variable to avoid confusing sed.
14122
lt_compile=`echo "$ac_compile" | $SED \
14123
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14124
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14125
-e 's:$: $lt_compiler_flag:'`
14126
(eval echo "\"\$as_me:14126: $lt_compile\"" >&5)
14127
(eval "$lt_compile" 2>conftest.err)
14129
cat conftest.err >&5
14130
echo "$as_me:14130: \$? = $ac_status" >&5
14131
if (exit $ac_status) && test -s "$ac_outfile"; then
14132
# The compiler can only warn and ignore the option if not recognized
14133
# So say no if there are warnings other than the usual output.
14134
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14135
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14136
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14137
lt_cv_prog_compiler_pic_works_CXX=yes
14143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14144
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14146
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14147
case $lt_prog_compiler_pic_CXX in
14149
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14152
lt_prog_compiler_pic_CXX=
14153
lt_prog_compiler_can_build_shared_CXX=no
14161
# Check to make sure the static flag actually works.
14163
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14165
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14166
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14167
$as_echo_n "(cached) " >&6
14169
lt_cv_prog_compiler_static_works_CXX=no
14170
save_LDFLAGS="$LDFLAGS"
14171
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14172
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14173
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14174
# The linker can only warn and ignore the option if not recognized
14175
# So say no if there are warnings
14176
if test -s conftest.err; then
14177
# Append any errors to the config.log.
14178
cat conftest.err 1>&5
14179
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14180
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14181
if diff conftest.exp conftest.er2 >/dev/null; then
14182
lt_cv_prog_compiler_static_works_CXX=yes
14185
lt_cv_prog_compiler_static_works_CXX=yes
14189
LDFLAGS="$save_LDFLAGS"
14192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14193
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14195
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14198
lt_prog_compiler_static_CXX=
14204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14205
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14206
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14207
$as_echo_n "(cached) " >&6
14209
lt_cv_prog_compiler_c_o_CXX=no
14210
$RM -r conftest 2>/dev/null
14214
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216
lt_compiler_flag="-o out/conftest2.$ac_objext"
14217
# Insert the option either (1) after the last *FLAGS variable, or
14218
# (2) before a word containing "conftest.", or (3) at the end.
14219
# Note that $ac_compile itself does not contain backslashes and begins
14220
# with a dollar sign (not a hyphen), so the echo should work correctly.
14221
lt_compile=`echo "$ac_compile" | $SED \
14222
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224
-e 's:$: $lt_compiler_flag:'`
14225
(eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226
(eval "$lt_compile" 2>out/conftest.err)
14228
cat out/conftest.err >&5
14229
echo "$as_me:14229: \$? = $ac_status" >&5
14230
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232
# The compiler can only warn and ignore the option if not recognized
14233
# So say no if there are warnings
14234
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14235
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14236
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14237
lt_cv_prog_compiler_c_o_CXX=yes
14242
# SGI C++ compiler will create directory out/ii_files/ for
14243
# template instantiation
14244
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14245
$RM out/* && rmdir out
14251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14252
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14257
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14258
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14259
$as_echo_n "(cached) " >&6
14261
lt_cv_prog_compiler_c_o_CXX=no
14262
$RM -r conftest 2>/dev/null
14266
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14268
lt_compiler_flag="-o out/conftest2.$ac_objext"
14269
# Insert the option either (1) after the last *FLAGS variable, or
14270
# (2) before a word containing "conftest.", or (3) at the end.
14271
# Note that $ac_compile itself does not contain backslashes and begins
14272
# with a dollar sign (not a hyphen), so the echo should work correctly.
14273
lt_compile=`echo "$ac_compile" | $SED \
14274
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14275
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14276
-e 's:$: $lt_compiler_flag:'`
14277
(eval echo "\"\$as_me:14277: $lt_compile\"" >&5)
14278
(eval "$lt_compile" 2>out/conftest.err)
14280
cat out/conftest.err >&5
14281
echo "$as_me:14281: \$? = $ac_status" >&5
14282
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14284
# The compiler can only warn and ignore the option if not recognized
14285
# So say no if there are warnings
14286
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14287
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14288
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14289
lt_cv_prog_compiler_c_o_CXX=yes
14294
# SGI C++ compiler will create directory out/ii_files/ for
14295
# template instantiation
14296
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14297
$RM out/* && rmdir out
14303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14304
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14309
hard_links="nottested"
14310
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14311
# do not overwrite the value of need_locks provided by the user
14312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14313
$as_echo_n "checking if we can lock with hard links... " >&6; }
14316
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14318
ln conftest.a conftest.b 2>&5 || hard_links=no
14319
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14321
$as_echo "$hard_links" >&6; }
14322
if test "$hard_links" = no; then
14323
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14324
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14334
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14336
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14339
# If we're using GNU nm, then we don't want the "-C" option.
14340
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14341
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14342
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14344
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14348
export_symbols_cmds_CXX="$ltdll_cmds"
14350
cygwin* | mingw* | cegcc*)
14351
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14354
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14357
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14360
$as_echo "$ld_shlibs_CXX" >&6; }
14361
test "$ld_shlibs_CXX" = no && can_build_shared=no
14363
with_gnu_ld_CXX=$with_gnu_ld
14371
# Do we need to explicitly link libc?
14373
case "x$archive_cmds_need_lc_CXX" in
14375
# Assume -lc should be added
14376
archive_cmds_need_lc_CXX=yes
14378
if test "$enable_shared" = yes && test "$GCC" = yes; then
14379
case $archive_cmds_CXX in
14381
# FIXME: we may have to deal with multi-command sequences.
14384
# Test whether the compiler implicitly links with -lc since on some
14385
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14386
# to ld, don't add -lc before -lgcc.
14387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14388
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14390
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14393
(eval $ac_compile) 2>&5
14395
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14396
test $ac_status = 0; } 2>conftest.err; then
14399
libobjs=conftest.$ac_objext
14401
wl=$lt_prog_compiler_wl_CXX
14402
pic_flag=$lt_prog_compiler_pic_CXX
14408
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14409
allow_undefined_flag_CXX=
14410
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14411
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14413
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414
test $ac_status = 0; }
14416
archive_cmds_need_lc_CXX=no
14418
archive_cmds_need_lc_CXX=yes
14420
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14422
cat conftest.err 1>&5
14425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14426
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14497
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14499
library_names_spec=
14500
libname_spec='lib$name'
14504
postuninstall_cmds=
14508
shlibpath_overrides_runpath=unknown
14510
dynamic_linker="$host_os ld.so"
14511
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14512
need_lib_prefix=unknown
14513
hardcode_into_libs=no
14515
# when you set need_version to no, make sure it does not cause -set_version
14516
# flags to be left without arguments
14517
need_version=unknown
14522
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14523
shlibpath_var=LIBPATH
14525
# AIX 3 has no versioning support, so we append a major version to the name.
14526
soname_spec='${libname}${release}${shared_ext}$major'
14533
hardcode_into_libs=yes
14534
if test "$host_cpu" = ia64; then
14535
# AIX 5 supports IA64
14536
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14537
shlibpath_var=LD_LIBRARY_PATH
14539
# With GCC up to 2.95.x, collect2 would create an import file
14540
# for dependence libraries. The import file would start with
14541
# the line `#! .'. This would cause the generated library to
14542
# depend on `.', always an invalid library. This was fixed in
14543
# development snapshots of GCC prior to 3.0.
14545
aix4 | aix4.[01] | aix4.[01].*)
14546
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14548
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14551
can_build_shared=no
14555
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14556
# soname into executable. Probably we can add versioning support to
14557
# collect2, so additional links can be useful in future.
14558
if test "$aix_use_runtimelinking" = yes; then
14559
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14560
# instead of lib<name>.a to let people know that these are not
14561
# typical AIX shared libraries.
14562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564
# We preserve .a as extension for shared libraries through AIX4.2
14565
# and later when we are not doing run time linking.
14566
library_names_spec='${libname}${release}.a $libname.a'
14567
soname_spec='${libname}${release}${shared_ext}$major'
14569
shlibpath_var=LIBPATH
14576
# Since July 2007 AmigaOS4 officially supports .so libraries.
14577
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581
library_names_spec='$libname.ixlibrary $libname.a'
14582
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14583
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'
14589
library_names_spec='${libname}${shared_ext}'
14590
dynamic_linker="$host_os ld.so"
14591
shlibpath_var=LIBRARY_PATH
14597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598
soname_spec='${libname}${release}${shared_ext}$major'
14599
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14600
shlibpath_var=LD_LIBRARY_PATH
14601
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14602
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14603
# the default ld.so.conf also contains /usr/contrib/lib and
14604
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14605
# libtool to hard-code these into programs
14608
cygwin* | mingw* | pw32* | cegcc*)
14609
version_type=windows
14614
case $GCC,$host_os in
14615
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14616
library_names_spec='$libname.dll.a'
14617
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14618
postinstall_cmds='base_file=`basename \${file}`~
14619
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14620
dldir=$destdir/`dirname \$dlpath`~
14621
test -d \$dldir || mkdir -p \$dldir~
14622
$install_prog $dir/$dlname \$dldir/$dlname~
14623
chmod a+x \$dldir/$dlname~
14624
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14625
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14627
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14628
dlpath=$dir/\$dldll~
14630
shlibpath_overrides_runpath=yes
14634
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14635
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14639
# MinGW DLLs use traditional 'lib' prefix
14640
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14642
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14643
# It is most probably a Windows format PATH printed by
14644
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14645
# path with ; separators, and with drive letters. We can handle the
14646
# drive letters (cygwin fileutils understands them), so leave them,
14647
# especially as we might pass files found there to a mingw objdump,
14648
# which wouldn't understand a cygwinified path. Ahh.
14649
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14651
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14655
# pw32 DLLs use 'pw' prefix rather than 'lib'
14656
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14662
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14665
dynamic_linker='Win32 ld.exe'
14666
# FIXME: first we should search . and the directory the executable is in
14670
darwin* | rhapsody*)
14671
dynamic_linker="$host_os dyld"
14672
version_type=darwin
14675
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14676
soname_spec='${libname}${release}${major}$shared_ext'
14677
shlibpath_overrides_runpath=yes
14678
shlibpath_var=DYLD_LIBRARY_PATH
14679
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14681
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689
soname_spec='${libname}${release}${shared_ext}$major'
14690
shlibpath_var=LD_LIBRARY_PATH
14697
freebsd* | dragonfly*)
14698
# DragonFly does not have aout. When/if they implement a new
14699
# versioning mechanism, adjust this.
14700
if test -x /usr/bin/objformat; then
14701
objformat=`/usr/bin/objformat`
14704
freebsd[123]*) objformat=aout ;;
14705
*) objformat=elf ;;
14708
version_type=freebsd-$objformat
14709
case $version_type in
14711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14716
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14720
shlibpath_var=LD_LIBRARY_PATH
14723
shlibpath_overrides_runpath=yes
14725
freebsd3.[01]* | freebsdelf3.[01]*)
14726
shlibpath_overrides_runpath=yes
14727
hardcode_into_libs=yes
14729
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14730
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14731
shlibpath_overrides_runpath=no
14732
hardcode_into_libs=yes
14734
*) # from 4.6 on, and DragonFly
14735
shlibpath_overrides_runpath=yes
14736
hardcode_into_libs=yes
14745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14746
soname_spec='${libname}${release}${shared_ext}$major'
14747
shlibpath_var=LD_LIBRARY_PATH
14748
hardcode_into_libs=yes
14751
hpux9* | hpux10* | hpux11*)
14752
# Give a soname corresponding to the major version so that dld.sl refuses to
14753
# link against other versions.
14760
hardcode_into_libs=yes
14761
dynamic_linker="$host_os dld.so"
14762
shlibpath_var=LD_LIBRARY_PATH
14763
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765
soname_spec='${libname}${release}${shared_ext}$major'
14766
if test "X$HPUX_IA64_MODE" = X32; then
14767
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14769
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14771
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14775
hardcode_into_libs=yes
14776
dynamic_linker="$host_os dld.sl"
14777
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14778
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780
soname_spec='${libname}${release}${shared_ext}$major'
14781
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14782
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14786
dynamic_linker="$host_os dld.sl"
14787
shlibpath_var=SHLIB_PATH
14788
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790
soname_spec='${libname}${release}${shared_ext}$major'
14793
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14794
postinstall_cmds='chmod 555 $lib'
14801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802
soname_spec='${libname}${release}${shared_ext}$major'
14803
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14804
shlibpath_var=LD_LIBRARY_PATH
14805
shlibpath_overrides_runpath=no
14806
hardcode_into_libs=yes
14809
irix5* | irix6* | nonstopux*)
14811
nonstopux*) version_type=nonstopux ;;
14813
if test "$lt_cv_prog_gnu_ld" = yes; then
14821
soname_spec='${libname}${release}${shared_ext}$major'
14822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14824
irix5* | nonstopux*)
14825
libsuff= shlibsuff=
14828
case $LD in # libtool.m4 will add one of these switches to LD
14829
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14830
libsuff= shlibsuff= libmagic=32-bit;;
14831
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14832
libsuff=32 shlibsuff=N32 libmagic=N32;;
14833
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14834
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14835
*) libsuff= shlibsuff= libmagic=never-match;;
14839
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14840
shlibpath_overrides_runpath=no
14841
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14842
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14843
hardcode_into_libs=yes
14846
# No shared lib support for Linux oldld, aout, or coff.
14847
linux*oldld* | linux*aout* | linux*coff*)
14851
# This must be Linux ELF.
14852
linux* | k*bsd*-gnu)
14856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857
soname_spec='${libname}${release}${shared_ext}$major'
14858
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14859
shlibpath_var=LD_LIBRARY_PATH
14860
shlibpath_overrides_runpath=no
14861
# Some binutils ld are patched to set DT_RUNPATH
14862
save_LDFLAGS=$LDFLAGS
14863
save_libdir=$libdir
14864
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14865
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867
/* end confdefs.h. */
14877
if ac_fn_cxx_try_link "$LINENO"; then :
14878
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14879
shlibpath_overrides_runpath=yes
14882
rm -f core conftest.err conftest.$ac_objext \
14883
conftest$ac_exeext conftest.$ac_ext
14884
LDFLAGS=$save_LDFLAGS
14885
libdir=$save_libdir
14887
# This implies no fast_install, which is unacceptable.
14888
# Some rework will be needed to allow for fast_install
14889
# before this can be enabled.
14890
hardcode_into_libs=yes
14892
# Append ld.so.conf contents to the search path
14893
if test -f /etc/ld.so.conf; then
14894
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' ' '`
14895
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14898
# We used to test for /lib/ld.so.1 and disable shared libraries on
14899
# powerpc, because MkLinux only supported shared libraries with the
14900
# GNU dynamic linker. Since this was broken with cross compilers,
14901
# most powerpc-linux boxes support dynamic linking these days and
14902
# people can always --disable-shared, the test was removed, and we
14903
# assume the GNU/Linux dynamic linker is in use.
14904
dynamic_linker='GNU/Linux ld.so'
14911
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14913
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14914
dynamic_linker='NetBSD (a.out) ld.so'
14916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917
soname_spec='${libname}${release}${shared_ext}$major'
14918
dynamic_linker='NetBSD ld.elf_so'
14920
shlibpath_var=LD_LIBRARY_PATH
14921
shlibpath_overrides_runpath=yes
14922
hardcode_into_libs=yes
14927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928
shlibpath_var=LD_LIBRARY_PATH
14929
shlibpath_overrides_runpath=yes
14936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937
soname_spec='${libname}${release}${shared_ext}$major'
14938
shlibpath_var=LD_LIBRARY_PATH
14939
shlibpath_overrides_runpath=no
14940
hardcode_into_libs=yes
14941
dynamic_linker='ldqnx.so'
14946
sys_lib_dlsearch_path_spec="/usr/lib"
14948
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14950
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14951
*) need_version=no ;;
14953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14954
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14955
shlibpath_var=LD_LIBRARY_PATH
14956
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14958
openbsd2.[89] | openbsd2.[89].*)
14959
shlibpath_overrides_runpath=no
14962
shlibpath_overrides_runpath=yes
14966
shlibpath_overrides_runpath=yes
14971
libname_spec='$name'
14974
library_names_spec='$libname${shared_ext} $libname.a'
14975
dynamic_linker='OS/2 ld.exe'
14976
shlibpath_var=LIBPATH
14979
osf3* | osf4* | osf5*)
14983
soname_spec='${libname}${release}${shared_ext}$major'
14984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985
shlibpath_var=LD_LIBRARY_PATH
14986
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14987
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999
soname_spec='${libname}${release}${shared_ext}$major'
15000
shlibpath_var=LD_LIBRARY_PATH
15001
shlibpath_overrides_runpath=yes
15002
hardcode_into_libs=yes
15003
# ldd complains unless libraries are executable
15004
postinstall_cmds='chmod +x $lib'
15009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15010
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15011
shlibpath_var=LD_LIBRARY_PATH
15012
shlibpath_overrides_runpath=yes
15013
if test "$with_gnu_ld" = yes; then
15021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022
soname_spec='${libname}${release}${shared_ext}$major'
15023
shlibpath_var=LD_LIBRARY_PATH
15024
case $host_vendor in
15026
shlibpath_overrides_runpath=no
15028
runpath_var=LD_RUN_PATH
15036
shlibpath_overrides_runpath=no
15037
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15043
if test -d /usr/nec ;then
15045
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15046
soname_spec='$libname${shared_ext}.$major'
15047
shlibpath_var=LD_LIBRARY_PATH
15051
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15052
version_type=freebsd-elf
15055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15056
soname_spec='${libname}${release}${shared_ext}$major'
15057
shlibpath_var=LD_LIBRARY_PATH
15058
shlibpath_overrides_runpath=yes
15059
hardcode_into_libs=yes
15060
if test "$with_gnu_ld" = yes; then
15061
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15063
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15066
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15070
sys_lib_dlsearch_path_spec='/usr/lib'
15074
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079
shlibpath_var=LD_LIBRARY_PATH
15080
shlibpath_overrides_runpath=no
15081
hardcode_into_libs=yes
15086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087
soname_spec='${libname}${release}${shared_ext}$major'
15088
shlibpath_var=LD_LIBRARY_PATH
15095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15096
$as_echo "$dynamic_linker" >&6; }
15097
test "$dynamic_linker" = no && can_build_shared=no
15099
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15100
if test "$GCC" = yes; then
15101
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15104
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15105
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15107
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15108
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15147
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15148
hardcode_action_CXX=
15149
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15150
test -n "$runpath_var_CXX" ||
15151
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15153
# We can hardcode non-existent directories.
15154
if test "$hardcode_direct_CXX" != no &&
15155
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15156
# have to relink, otherwise we might link with an installed library
15157
# when we should be linking with a yet-to-be-installed one
15158
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15159
test "$hardcode_minus_L_CXX" != no; then
15160
# Linking always hardcodes the temporary library directory.
15161
hardcode_action_CXX=relink
15163
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15164
hardcode_action_CXX=immediate
15167
# We cannot hardcode anything, or else we can only hardcode existing
15169
hardcode_action_CXX=unsupported
15171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15172
$as_echo "$hardcode_action_CXX" >&6; }
15174
if test "$hardcode_action_CXX" = relink ||
15175
test "$inherit_rpath_CXX" = yes; then
15176
# Fast installation is not supported
15177
enable_fast_install=no
15178
elif test "$shlibpath_overrides_runpath" = yes ||
15179
test "$enable_shared" = no; then
15180
# Fast installation is not necessary
15181
enable_fast_install=needless
15190
fi # test -n "$compiler"
15196
with_gnu_ld=$lt_save_with_gnu_ld
15197
lt_cv_path_LDCXX=$lt_cv_path_LD
15198
lt_cv_path_LD=$lt_save_path_LD
15199
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15200
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15201
fi # test "$_lt_caught_CXX_error" != yes
15204
ac_cpp='$CPP $CPPFLAGS'
15205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15211
$as_echo_n "checking whether ln -s works... " >&6; }
15213
if test "$LN_S" = "ln -s"; then
15214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15215
$as_echo "yes" >&6; }
15217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15218
$as_echo "no, using $LN_S" >&6; }
15222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15223
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15225
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15226
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15227
$as_echo_n "(cached) " >&6
15229
cat >conftest.make <<\_ACEOF
15232
@echo '@@@%%%=$(MAKE)=@@@%%%'
15234
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15235
case `${MAKE-make} -f conftest.make 2>/dev/null` in
15236
*@@@%%%=?*=@@@%%%*)
15237
eval ac_cv_prog_make_${ac_make}_set=yes;;
15239
eval ac_cv_prog_make_${ac_make}_set=no;;
15241
rm -f conftest.make
15243
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15245
$as_echo "yes" >&6; }
15248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249
$as_echo "no" >&6; }
15250
SET_MAKE="MAKE=${MAKE-make}"
15255
# Extract the first word of "gengetopt", so it can be a program name with args.
15256
set dummy gengetopt; ac_word=$2
15257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258
$as_echo_n "checking for $ac_word... " >&6; }
15259
if test "${ac_cv_path_GENGETOPT+set}" = set; then :
15260
$as_echo_n "(cached) " >&6
15264
ac_cv_path_GENGETOPT="$GENGETOPT" # Let the user override the test with a path.
15267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268
for as_dir in $PATH
15271
test -z "$as_dir" && as_dir=.
15272
for ac_exec_ext in '' $ac_executable_extensions; do
15273
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15274
ac_cv_path_GENGETOPT="$as_dir/$ac_word$ac_exec_ext"
15275
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15282
test -z "$ac_cv_path_GENGETOPT" && ac_cv_path_GENGETOPT="no"
15286
GENGETOPT=$ac_cv_path_GENGETOPT
15287
if test -n "$GENGETOPT"; then
15288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENGETOPT" >&5
15289
$as_echo "$GENGETOPT" >&6; }
15291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292
$as_echo "no" >&6; }
15296
if test x"$GENGETOPT" != "xno"; then
15297
HAVE_GENGETOPT_TRUE=
15298
HAVE_GENGETOPT_FALSE='#'
15300
HAVE_GENGETOPT_TRUE='#'
15301
HAVE_GENGETOPT_FALSE=
15306
# Extract the first word of "doxygen", so it can be a program name with args.
15307
set dummy doxygen; ac_word=$2
15308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15309
$as_echo_n "checking for $ac_word... " >&6; }
15310
if test "${ac_cv_path_DOXYGEN+set}" = set; then :
15311
$as_echo_n "(cached) " >&6
15315
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
15318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319
for as_dir in $PATH
15322
test -z "$as_dir" && as_dir=.
15323
for ac_exec_ext in '' $ac_executable_extensions; do
15324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15325
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15326
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15333
test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
15337
DOXYGEN=$ac_cv_path_DOXYGEN
15338
if test -n "$DOXYGEN"; then
15339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15340
$as_echo "$DOXYGEN" >&6; }
15342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343
$as_echo "no" >&6; }
15347
if test x"$DOXYGEN" != "xno"; then
15349
HAVE_DOXYGEN_FALSE='#'
15351
HAVE_DOXYGEN_TRUE='#'
15352
HAVE_DOXYGEN_FALSE=
15357
# Extract the first word of "perl", so it can be a program name with args.
15358
set dummy perl; ac_word=$2
15359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15360
$as_echo_n "checking for $ac_word... " >&6; }
15361
if test "${ac_cv_path_PERL+set}" = set; then :
15362
$as_echo_n "(cached) " >&6
15366
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370
for as_dir in $PATH
15373
test -z "$as_dir" && as_dir=.
15374
for ac_exec_ext in '' $ac_executable_extensions; do
15375
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15376
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15377
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15384
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
15388
PERL=$ac_cv_path_PERL
15389
if test -n "$PERL"; then
15390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15391
$as_echo "$PERL" >&6; }
15393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394
$as_echo "no" >&6; }
15398
if test x"$PERL" != "xno"; then
15400
HAVE_PERL_FALSE='#'
15408
have_pod_checker=no
15409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pod::Checker" >&5
15410
$as_echo_n "checking for Pod::Checker... " >&6; }
15411
if $PERL -mPod::Checker >/dev/null 2>&1 ; then
15412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15413
$as_echo "yes" >&6; }
15414
have_pod_checker=yes
15416
if test x"$have_pod_checker" = "xyes"; then
15417
HAVE_PERL_POD_CHECKER_TRUE=
15418
HAVE_PERL_POD_CHECKER_FALSE='#'
15420
HAVE_PERL_POD_CHECKER_TRUE='#'
15421
HAVE_PERL_POD_CHECKER_FALSE=
15425
# Extract the first word of "pod2man", so it can be a program name with args.
15426
set dummy pod2man; ac_word=$2
15427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428
$as_echo_n "checking for $ac_word... " >&6; }
15429
if test "${ac_cv_path_POD2MAN+set}" = set; then :
15430
$as_echo_n "(cached) " >&6
15434
ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
15437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15438
for as_dir in $PATH
15441
test -z "$as_dir" && as_dir=.
15442
for ac_exec_ext in '' $ac_executable_extensions; do
15443
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15444
ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
15445
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15452
test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
15456
POD2MAN=$ac_cv_path_POD2MAN
15457
if test -n "$POD2MAN"; then
15458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
15459
$as_echo "$POD2MAN" >&6; }
15461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462
$as_echo "no" >&6; }
15466
if test x"$POD2MAN" != "xno"; then
15468
HAVE_POD2MAN_FALSE='#'
15470
HAVE_POD2MAN_TRUE='#'
15471
HAVE_POD2MAN_FALSE=
15476
# Extract the first word of "pod2html", so it can be a program name with args.
15477
set dummy pod2html; ac_word=$2
15478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479
$as_echo_n "checking for $ac_word... " >&6; }
15480
if test "${ac_cv_path_POD2HTML+set}" = set; then :
15481
$as_echo_n "(cached) " >&6
15485
ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
15488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489
for as_dir in $PATH
15492
test -z "$as_dir" && as_dir=.
15493
for ac_exec_ext in '' $ac_executable_extensions; do
15494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15495
ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
15496
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503
test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
15507
POD2HTML=$ac_cv_path_POD2HTML
15508
if test -n "$POD2HTML"; then
15509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
15510
$as_echo "$POD2HTML" >&6; }
15512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513
$as_echo "no" >&6; }
15517
if test x"$POD2HTML" != "xno"; then
15518
HAVE_POD2HTML_TRUE=
15519
HAVE_POD2HTML_FALSE='#'
15521
HAVE_POD2HTML_TRUE='#'
15522
HAVE_POD2HTML_FALSE=
15528
# Extract the first word of "date", so it can be a program name with args.
15529
set dummy date; ac_word=$2
15530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15531
$as_echo_n "checking for $ac_word... " >&6; }
15532
if test "${ac_cv_path_DATE+set}" = set; then :
15533
$as_echo_n "(cached) " >&6
15537
ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
15540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15541
for as_dir in $PATH
15544
test -z "$as_dir" && as_dir=.
15545
for ac_exec_ext in '' $ac_executable_extensions; do
15546
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15547
ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
15548
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15555
test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="no"
15559
DATE=$ac_cv_path_DATE
15560
if test -n "$DATE"; then
15561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
15562
$as_echo "$DATE" >&6; }
15564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15565
$as_echo "no" >&6; }
15569
if test x"$DATE" != "xno" ; then
15570
build_date=`"$DATE" +%Y%m%d`
15573
cat >>confdefs.h <<_ACEOF
15574
#define BUILD_DATE "$build_date"
15578
# Checks for libraries.
15580
if test "X$prefix" = "XNONE"; then
15581
acl_final_prefix="$ac_default_prefix"
15583
acl_final_prefix="$prefix"
15585
if test "X$exec_prefix" = "XNONE"; then
15586
acl_final_exec_prefix='${prefix}'
15588
acl_final_exec_prefix="$exec_prefix"
15590
acl_save_prefix="$prefix"
15591
prefix="$acl_final_prefix"
15592
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15593
prefix="$acl_save_prefix"
15596
# Check whether --with-gnu-ld was given.
15597
if test "${with_gnu_ld+set}" = set; then :
15598
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15603
# Prepare PATH_SEPARATOR.
15604
# The user is always right.
15605
if test "${PATH_SEPARATOR+set}" != set; then
15606
echo "#! /bin/sh" >conf$$.sh
15607
echo "exit 0" >>conf$$.sh
15609
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15617
if test "$GCC" = yes; then
15618
# Check if gcc -print-prog-name=ld gives a path.
15619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15620
$as_echo_n "checking for ld used by GCC... " >&6; }
15623
# gcc leaves a trailing carriage return which upsets mingw
15624
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15626
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15629
# Accept absolute paths.
15630
[\\/]* | [A-Za-z]:[\\/]*)
15631
re_direlt='/[^/][^/]*/\.\./'
15632
# Canonicalize the path of ld
15633
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15634
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15635
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15637
test -z "$LD" && LD="$ac_prog"
15640
# If it fails, then pretend we aren't using GCC.
15644
# If it is relative, then search for the first ld in PATH.
15645
with_gnu_ld=unknown
15648
elif test "$with_gnu_ld" = yes; then
15649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15650
$as_echo_n "checking for GNU ld... " >&6; }
15652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15653
$as_echo_n "checking for non-GNU ld... " >&6; }
15655
if test "${acl_cv_path_LD+set}" = set; then :
15656
$as_echo_n "(cached) " >&6
15658
if test -z "$LD"; then
15659
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15660
for ac_dir in $PATH; do
15661
test -z "$ac_dir" && ac_dir=.
15662
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15663
acl_cv_path_LD="$ac_dir/$ac_prog"
15664
# Check to see if the program is GNU ld. I'd rather use --version,
15665
# but apparently some GNU ld's only accept -v.
15666
# Break only if it was the GNU/non-GNU ld that we prefer.
15667
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15668
*GNU* | *'with BFD'*)
15669
test "$with_gnu_ld" != no && break ;;
15671
test "$with_gnu_ld" != yes && break ;;
15677
acl_cv_path_LD="$LD" # Let the user override the test with a path.
15681
LD="$acl_cv_path_LD"
15682
if test -n "$LD"; then
15683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15684
$as_echo "$LD" >&6; }
15686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687
$as_echo "no" >&6; }
15689
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15691
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15692
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15693
$as_echo_n "(cached) " >&6
15695
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
15696
case `$LD -v 2>&1 </dev/null` in
15697
*GNU* | *'with BFD'*)
15698
acl_cv_prog_gnu_ld=yes ;;
15700
acl_cv_prog_gnu_ld=no ;;
15703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15704
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15705
with_gnu_ld=$acl_cv_prog_gnu_ld
15710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15711
$as_echo_n "checking for shared library run path origin... " >&6; }
15712
if test "${acl_cv_rpath+set}" = set; then :
15713
$as_echo_n "(cached) " >&6
15716
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15717
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15719
rm -f ./conftest.sh
15723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15724
$as_echo "$acl_cv_rpath" >&6; }
15726
acl_libext="$acl_cv_libext"
15727
acl_shlibext="$acl_cv_shlibext"
15728
acl_libname_spec="$acl_cv_libname_spec"
15729
acl_library_names_spec="$acl_cv_library_names_spec"
15730
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15731
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15732
acl_hardcode_direct="$acl_cv_hardcode_direct"
15733
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15734
# Check whether --enable-rpath was given.
15735
if test "${enable_rpath+set}" = set; then :
15736
enableval=$enable_rpath; :
15744
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15745
if test -n "$searchpath"; then
15746
acl_save_IFS="${IFS= }"; IFS=":"
15747
for searchdir in $searchpath; do
15748
if test -d "$searchdir"; then
15749
case "$searchdir" in
15750
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15751
*) searchdir=`cd "$searchdir" && pwd`
15752
case "$searchdir" in
15753
*/lib64 ) acl_libdirstem=lib64 ;;
15758
IFS="$acl_save_IFS"
15771
acl_save_prefix="$prefix"
15772
prefix="$acl_final_prefix"
15773
acl_save_exec_prefix="$exec_prefix"
15774
exec_prefix="$acl_final_exec_prefix"
15776
eval additional_includedir=\"$includedir\"
15777
eval additional_libdir=\"$libdir\"
15779
exec_prefix="$acl_save_exec_prefix"
15780
prefix="$acl_save_prefix"
15783
# Check whether --with-libiconv-prefix was given.
15784
if test "${with_libiconv_prefix+set}" = set; then :
15785
withval=$with_libiconv_prefix;
15786
if test "X$withval" = "Xno"; then
15789
if test "X$withval" = "X"; then
15791
acl_save_prefix="$prefix"
15792
prefix="$acl_final_prefix"
15793
acl_save_exec_prefix="$exec_prefix"
15794
exec_prefix="$acl_final_exec_prefix"
15796
eval additional_includedir=\"$includedir\"
15797
eval additional_libdir=\"$libdir\"
15799
exec_prefix="$acl_save_exec_prefix"
15800
prefix="$acl_save_prefix"
15803
additional_includedir="$withval/include"
15804
additional_libdir="$withval/$acl_libdirstem"
15816
names_already_handled=
15817
names_next_round='iconv '
15818
while test -n "$names_next_round"; do
15819
names_this_round="$names_next_round"
15821
for name in $names_this_round; do
15823
for n in $names_already_handled; do
15824
if test "$n" = "$name"; then
15825
already_handled=yes
15829
if test -z "$already_handled"; then
15830
names_already_handled="$names_already_handled $name"
15831
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15832
eval value=\"\$HAVE_LIB$uppername\"
15833
if test -n "$value"; then
15834
if test "$value" = yes; then
15835
eval value=\"\$LIB$uppername\"
15836
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15837
eval value=\"\$LTLIB$uppername\"
15838
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15847
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15848
if test -n "$acl_shlibext"; then
15849
shrext=".$acl_shlibext" # typically: shrext=.so
15853
if test $use_additional = yes; then
15854
dir="$additional_libdir"
15855
if test -n "$acl_shlibext"; then
15856
if test -f "$dir/$libname$shrext"; then
15858
found_so="$dir/$libname$shrext"
15860
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15861
ver=`(cd "$dir" && \
15862
for f in "$libname$shrext".*; do echo "$f"; done \
15863
| sed -e "s,^$libname$shrext\\\\.,," \
15864
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15865
| sed 1q ) 2>/dev/null`
15866
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15868
found_so="$dir/$libname$shrext.$ver"
15871
eval library_names=\"$acl_library_names_spec\"
15872
for f in $library_names; do
15873
if test -f "$dir/$f"; then
15882
if test "X$found_dir" = "X"; then
15883
if test -f "$dir/$libname.$acl_libext"; then
15885
found_a="$dir/$libname.$acl_libext"
15888
if test "X$found_dir" != "X"; then
15889
if test -f "$dir/$libname.la"; then
15890
found_la="$dir/$libname.la"
15894
if test "X$found_dir" = "X"; then
15895
for x in $LDFLAGS $LTLIBICONV; do
15897
acl_save_prefix="$prefix"
15898
prefix="$acl_final_prefix"
15899
acl_save_exec_prefix="$exec_prefix"
15900
exec_prefix="$acl_final_exec_prefix"
15902
exec_prefix="$acl_save_exec_prefix"
15903
prefix="$acl_save_prefix"
15907
dir=`echo "X$x" | sed -e 's/^X-L//'`
15908
if test -n "$acl_shlibext"; then
15909
if test -f "$dir/$libname$shrext"; then
15911
found_so="$dir/$libname$shrext"
15913
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15914
ver=`(cd "$dir" && \
15915
for f in "$libname$shrext".*; do echo "$f"; done \
15916
| sed -e "s,^$libname$shrext\\\\.,," \
15917
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15918
| sed 1q ) 2>/dev/null`
15919
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15921
found_so="$dir/$libname$shrext.$ver"
15924
eval library_names=\"$acl_library_names_spec\"
15925
for f in $library_names; do
15926
if test -f "$dir/$f"; then
15935
if test "X$found_dir" = "X"; then
15936
if test -f "$dir/$libname.$acl_libext"; then
15938
found_a="$dir/$libname.$acl_libext"
15941
if test "X$found_dir" != "X"; then
15942
if test -f "$dir/$libname.la"; then
15943
found_la="$dir/$libname.la"
15948
if test "X$found_dir" != "X"; then
15953
if test "X$found_dir" != "X"; then
15954
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15955
if test "X$found_so" != "X"; then
15956
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15957
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15960
for x in $ltrpathdirs; do
15961
if test "X$x" = "X$found_dir"; then
15966
if test -z "$haveit"; then
15967
ltrpathdirs="$ltrpathdirs $found_dir"
15969
if test "$acl_hardcode_direct" = yes; then
15970
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15972
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15973
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15975
for x in $rpathdirs; do
15976
if test "X$x" = "X$found_dir"; then
15981
if test -z "$haveit"; then
15982
rpathdirs="$rpathdirs $found_dir"
15986
for x in $LDFLAGS $LIBICONV; do
15988
acl_save_prefix="$prefix"
15989
prefix="$acl_final_prefix"
15990
acl_save_exec_prefix="$exec_prefix"
15991
exec_prefix="$acl_final_exec_prefix"
15993
exec_prefix="$acl_save_exec_prefix"
15994
prefix="$acl_save_prefix"
15996
if test "X$x" = "X-L$found_dir"; then
16001
if test -z "$haveit"; then
16002
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16004
if test "$acl_hardcode_minus_L" != no; then
16005
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16007
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16013
if test "X$found_a" != "X"; then
16014
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16016
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16019
additional_includedir=
16020
case "$found_dir" in
16021
*/$acl_libdirstem | */$acl_libdirstem/)
16022
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16023
LIBICONV_PREFIX="$basedir"
16024
additional_includedir="$basedir/include"
16027
if test "X$additional_includedir" != "X"; then
16028
if test "X$additional_includedir" != "X/usr/include"; then
16030
if test "X$additional_includedir" = "X/usr/local/include"; then
16031
if test -n "$GCC"; then
16033
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16037
if test -z "$haveit"; then
16038
for x in $CPPFLAGS $INCICONV; do
16040
acl_save_prefix="$prefix"
16041
prefix="$acl_final_prefix"
16042
acl_save_exec_prefix="$exec_prefix"
16043
exec_prefix="$acl_final_exec_prefix"
16045
exec_prefix="$acl_save_exec_prefix"
16046
prefix="$acl_save_prefix"
16048
if test "X$x" = "X-I$additional_includedir"; then
16053
if test -z "$haveit"; then
16054
if test -d "$additional_includedir"; then
16055
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16061
if test -n "$found_la"; then
16062
save_libdir="$libdir"
16063
case "$found_la" in
16064
*/* | *\\*) . "$found_la" ;;
16065
*) . "./$found_la" ;;
16067
libdir="$save_libdir"
16068
for dep in $dependency_libs; do
16071
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16072
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16074
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16075
if test -n "$GCC"; then
16077
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16081
if test -z "$haveit"; then
16083
for x in $LDFLAGS $LIBICONV; do
16085
acl_save_prefix="$prefix"
16086
prefix="$acl_final_prefix"
16087
acl_save_exec_prefix="$exec_prefix"
16088
exec_prefix="$acl_final_exec_prefix"
16090
exec_prefix="$acl_save_exec_prefix"
16091
prefix="$acl_save_prefix"
16093
if test "X$x" = "X-L$additional_libdir"; then
16098
if test -z "$haveit"; then
16099
if test -d "$additional_libdir"; then
16100
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16104
for x in $LDFLAGS $LTLIBICONV; do
16106
acl_save_prefix="$prefix"
16107
prefix="$acl_final_prefix"
16108
acl_save_exec_prefix="$exec_prefix"
16109
exec_prefix="$acl_final_exec_prefix"
16111
exec_prefix="$acl_save_exec_prefix"
16112
prefix="$acl_save_prefix"
16114
if test "X$x" = "X-L$additional_libdir"; then
16119
if test -z "$haveit"; then
16120
if test -d "$additional_libdir"; then
16121
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16128
dir=`echo "X$dep" | sed -e 's/^X-R//'`
16129
if test "$enable_rpath" != no; then
16131
for x in $rpathdirs; do
16132
if test "X$x" = "X$dir"; then
16137
if test -z "$haveit"; then
16138
rpathdirs="$rpathdirs $dir"
16141
for x in $ltrpathdirs; do
16142
if test "X$x" = "X$dir"; then
16147
if test -z "$haveit"; then
16148
ltrpathdirs="$ltrpathdirs $dir"
16153
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16156
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16159
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16160
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16166
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16167
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16173
if test "X$rpathdirs" != "X"; then
16174
if test -n "$acl_hardcode_libdir_separator"; then
16176
for found_dir in $rpathdirs; do
16177
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16179
acl_save_libdir="$libdir"
16181
eval flag=\"$acl_hardcode_libdir_flag_spec\"
16182
libdir="$acl_save_libdir"
16183
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16185
for found_dir in $rpathdirs; do
16186
acl_save_libdir="$libdir"
16187
libdir="$found_dir"
16188
eval flag=\"$acl_hardcode_libdir_flag_spec\"
16189
libdir="$acl_save_libdir"
16190
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16194
if test "X$ltrpathdirs" != "X"; then
16195
for found_dir in $ltrpathdirs; do
16196
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16206
am_save_CPPFLAGS="$CPPFLAGS"
16208
for element in $INCICONV; do
16210
for x in $CPPFLAGS; do
16212
acl_save_prefix="$prefix"
16213
prefix="$acl_final_prefix"
16214
acl_save_exec_prefix="$exec_prefix"
16215
exec_prefix="$acl_final_exec_prefix"
16217
exec_prefix="$acl_save_exec_prefix"
16218
prefix="$acl_save_prefix"
16220
if test "X$x" = "X$element"; then
16225
if test -z "$haveit"; then
16226
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16232
$as_echo_n "checking for iconv... " >&6; }
16233
if test "${am_cv_func_iconv+set}" = set; then :
16234
$as_echo_n "(cached) " >&6
16237
am_cv_func_iconv="no, consider installing GNU libiconv"
16239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240
/* end confdefs.h. */
16241
#include <stdlib.h>
16246
iconv_t cd = iconv_open("","");
16247
iconv(cd,NULL,NULL,NULL,NULL);
16253
if ac_fn_c_try_link "$LINENO"; then :
16254
am_cv_func_iconv=yes
16256
rm -f core conftest.err conftest.$ac_objext \
16257
conftest$ac_exeext conftest.$ac_ext
16258
if test "$am_cv_func_iconv" != yes; then
16259
am_save_LIBS="$LIBS"
16260
LIBS="$LIBS $LIBICONV"
16261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262
/* end confdefs.h. */
16263
#include <stdlib.h>
16268
iconv_t cd = iconv_open("","");
16269
iconv(cd,NULL,NULL,NULL,NULL);
16275
if ac_fn_c_try_link "$LINENO"; then :
16276
am_cv_lib_iconv=yes
16277
am_cv_func_iconv=yes
16279
rm -f core conftest.err conftest.$ac_objext \
16280
conftest$ac_exeext conftest.$ac_ext
16281
LIBS="$am_save_LIBS"
16285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16286
$as_echo "$am_cv_func_iconv" >&6; }
16287
if test "$am_cv_func_iconv" = yes; then
16288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16289
$as_echo_n "checking for working iconv... " >&6; }
16290
if test "${am_cv_func_iconv_works+set}" = set; then :
16291
$as_echo_n "(cached) " >&6
16294
am_save_LIBS="$LIBS"
16295
if test $am_cv_lib_iconv = yes; then
16296
LIBS="$LIBS $LIBICONV"
16298
if test "$cross_compiling" = yes; then :
16300
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16301
*) am_cv_func_iconv_works="guessing yes" ;;
16304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305
/* end confdefs.h. */
16308
#include <string.h>
16311
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16314
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16315
if (cd_utf8_to_88591 != (iconv_t)(-1))
16317
static const char input[] = "\342\202\254"; /* EURO SIGN */
16319
const char *inptr = input;
16320
size_t inbytesleft = strlen (input);
16321
char *outptr = buf;
16322
size_t outbytesleft = sizeof (buf);
16323
size_t res = iconv (cd_utf8_to_88591,
16324
(char **) &inptr, &inbytesleft,
16325
&outptr, &outbytesleft);
16330
#if 0 /* This bug could be worked around by the caller. */
16331
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16333
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16334
if (cd_88591_to_utf8 != (iconv_t)(-1))
16336
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16338
const char *inptr = input;
16339
size_t inbytesleft = strlen (input);
16340
char *outptr = buf;
16341
size_t outbytesleft = sizeof (buf);
16342
size_t res = iconv (cd_88591_to_utf8,
16343
(char **) &inptr, &inbytesleft,
16344
&outptr, &outbytesleft);
16350
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16352
if (/* Try standardized names. */
16353
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16354
/* Try IRIX, OSF/1 names. */
16355
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16356
/* Try AIX names. */
16357
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16358
/* Try HP-UX names. */
16359
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16364
if ac_fn_c_try_run "$LINENO"; then :
16365
am_cv_func_iconv_works=yes
16367
am_cv_func_iconv_works=no
16369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16370
conftest.$ac_objext conftest.beam conftest.$ac_ext
16373
LIBS="$am_save_LIBS"
16376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16377
$as_echo "$am_cv_func_iconv_works" >&6; }
16378
case "$am_cv_func_iconv_works" in
16379
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
16380
*) am_func_iconv=yes ;;
16383
am_func_iconv=no am_cv_lib_iconv=no
16385
if test "$am_func_iconv" = yes; then
16387
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16390
if test "$am_cv_lib_iconv" = yes; then
16391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16392
$as_echo_n "checking how to link with libiconv... " >&6; }
16393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16394
$as_echo "$LIBICONV" >&6; }
16396
CPPFLAGS="$am_save_CPPFLAGS"
16403
if test "$am_cv_func_iconv" = yes; then
16404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16405
$as_echo_n "checking for iconv declaration... " >&6; }
16406
if test "${am_cv_proto_iconv+set}" = set; then :
16407
$as_echo_n "(cached) " >&6
16410
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411
/* end confdefs.h. */
16413
#include <stdlib.h>
16419
#if defined(__STDC__) || defined(__cplusplus)
16420
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16433
if ac_fn_c_try_compile "$LINENO"; then :
16434
am_cv_proto_iconv_arg1=""
16436
am_cv_proto_iconv_arg1="const"
16438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16442
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
16444
}$am_cv_proto_iconv" >&5
16446
}$am_cv_proto_iconv" >&6; }
16448
cat >>confdefs.h <<_ACEOF
16449
#define ICONV_CONST $am_cv_proto_iconv_arg1
16456
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16457
if test -n "$ac_tool_prefix"; then
16458
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16459
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16461
$as_echo_n "checking for $ac_word... " >&6; }
16462
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16463
$as_echo_n "(cached) " >&6
16465
case $PKG_CONFIG in
16467
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471
for as_dir in $PATH
16474
test -z "$as_dir" && as_dir=.
16475
for ac_exec_ext in '' $ac_executable_extensions; do
16476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16477
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16478
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16488
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16489
if test -n "$PKG_CONFIG"; then
16490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16491
$as_echo "$PKG_CONFIG" >&6; }
16493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494
$as_echo "no" >&6; }
16499
if test -z "$ac_cv_path_PKG_CONFIG"; then
16500
ac_pt_PKG_CONFIG=$PKG_CONFIG
16501
# Extract the first word of "pkg-config", so it can be a program name with args.
16502
set dummy pkg-config; ac_word=$2
16503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504
$as_echo_n "checking for $ac_word... " >&6; }
16505
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16506
$as_echo_n "(cached) " >&6
16508
case $ac_pt_PKG_CONFIG in
16510
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514
for as_dir in $PATH
16517
test -z "$as_dir" && as_dir=.
16518
for ac_exec_ext in '' $ac_executable_extensions; do
16519
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16521
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16531
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16532
if test -n "$ac_pt_PKG_CONFIG"; then
16533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16534
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537
$as_echo "no" >&6; }
16540
if test "x$ac_pt_PKG_CONFIG" = x; then
16543
case $cross_compiling:$ac_tool_warned in
16545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16547
ac_tool_warned=yes ;;
16549
PKG_CONFIG=$ac_pt_PKG_CONFIG
16552
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16556
if test -n "$PKG_CONFIG"; then
16557
_pkg_min_version=0.9.0
16558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16559
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16560
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562
$as_echo "yes" >&6; }
16564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16565
$as_echo "no" >&6; }
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
16573
$as_echo_n "checking for libcurl... " >&6; }
16575
if test -n "$libcurl_CFLAGS"; then
16576
pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
16577
elif test -n "$PKG_CONFIG"; then
16578
if test -n "$PKG_CONFIG" && \
16579
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
16580
($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
16582
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16583
test $ac_status = 0; }; then
16584
pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.0" 2>/dev/null`
16591
if test -n "$libcurl_LIBS"; then
16592
pkg_cv_libcurl_LIBS="$libcurl_LIBS"
16593
elif test -n "$PKG_CONFIG"; then
16594
if test -n "$PKG_CONFIG" && \
16595
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5
16596
($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5
16598
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599
test $ac_status = 0; }; then
16600
pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.0" 2>/dev/null`
16610
if test $pkg_failed = yes; then
16612
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16613
_pkg_short_errors_supported=yes
16615
_pkg_short_errors_supported=no
16617
if test $_pkg_short_errors_supported = yes; then
16618
libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl >= 7.18.0" 2>&1`
16620
libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl >= 7.18.0" 2>&1`
16622
# Put the nasty error message in config.log where it belongs
16623
echo "$libcurl_PKG_ERRORS" >&5
16625
as_fn_error "Package requirements (libcurl >= 7.18.0) were not met:
16627
$libcurl_PKG_ERRORS
16629
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16630
installed software in a non-standard prefix.
16632
Alternatively, you may set the environment variables libcurl_CFLAGS
16633
and libcurl_LIBS to avoid the need to call pkg-config.
16634
See the pkg-config man page for more details.
16636
elif test $pkg_failed = untried; then
16637
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16639
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16640
is in your PATH or set the PKG_CONFIG environment variable to the full
16641
path to pkg-config.
16643
Alternatively, you may set the environment variables libcurl_CFLAGS
16644
and libcurl_LIBS to avoid the need to call pkg-config.
16645
See the pkg-config man page for more details.
16647
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16648
See \`config.log' for more details." "$LINENO" 5; }
16650
libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
16651
libcurl_LIBS=$pkg_cv_libcurl_LIBS
16652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16653
$as_echo "yes" >&6; }
16658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre" >&5
16659
$as_echo_n "checking for libpcre... " >&6; }
16661
if test -n "$libpcre_CFLAGS"; then
16662
pkg_cv_libpcre_CFLAGS="$libpcre_CFLAGS"
16663
elif test -n "$PKG_CONFIG"; then
16664
if test -n "$PKG_CONFIG" && \
16665
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7.8\""; } >&5
16666
($PKG_CONFIG --exists --print-errors "libpcre >= 7.8") 2>&5
16668
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16669
test $ac_status = 0; }; then
16670
pkg_cv_libpcre_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= 7.8" 2>/dev/null`
16677
if test -n "$libpcre_LIBS"; then
16678
pkg_cv_libpcre_LIBS="$libpcre_LIBS"
16679
elif test -n "$PKG_CONFIG"; then
16680
if test -n "$PKG_CONFIG" && \
16681
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7.8\""; } >&5
16682
($PKG_CONFIG --exists --print-errors "libpcre >= 7.8") 2>&5
16684
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685
test $ac_status = 0; }; then
16686
pkg_cv_libpcre_LIBS=`$PKG_CONFIG --libs "libpcre >= 7.8" 2>/dev/null`
16696
if test $pkg_failed = yes; then
16698
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16699
_pkg_short_errors_supported=yes
16701
_pkg_short_errors_supported=no
16703
if test $_pkg_short_errors_supported = yes; then
16704
libpcre_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= 7.8" 2>&1`
16706
libpcre_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= 7.8" 2>&1`
16708
# Put the nasty error message in config.log where it belongs
16709
echo "$libpcre_PKG_ERRORS" >&5
16711
as_fn_error "Package requirements (libpcre >= 7.8) were not met:
16713
$libpcre_PKG_ERRORS
16715
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16716
installed software in a non-standard prefix.
16718
Alternatively, you may set the environment variables libpcre_CFLAGS
16719
and libpcre_LIBS to avoid the need to call pkg-config.
16720
See the pkg-config man page for more details.
16722
elif test $pkg_failed = untried; then
16723
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16724
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16725
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16726
is in your PATH or set the PKG_CONFIG environment variable to the full
16727
path to pkg-config.
16729
Alternatively, you may set the environment variables libpcre_CFLAGS
16730
and libpcre_LIBS to avoid the need to call pkg-config.
16731
See the pkg-config man page for more details.
16733
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16734
See \`config.log' for more details." "$LINENO" 5; }
16736
libpcre_CFLAGS=$pkg_cv_libpcre_CFLAGS
16737
libpcre_LIBS=$pkg_cv_libpcre_LIBS
16738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739
$as_echo "yes" >&6; }
16744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
16745
$as_echo_n "checking for liblua... " >&6; }
16747
if test -n "$liblua_CFLAGS"; then
16748
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
16749
elif test -n "$PKG_CONFIG"; then
16750
if test -n "$PKG_CONFIG" && \
16751
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16752
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16754
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755
test $ac_status = 0; }; then
16756
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16763
if test -n "$liblua_LIBS"; then
16764
pkg_cv_liblua_LIBS="$liblua_LIBS"
16765
elif test -n "$PKG_CONFIG"; then
16766
if test -n "$PKG_CONFIG" && \
16767
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16768
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16770
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16771
test $ac_status = 0; }; then
16772
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16782
if test $pkg_failed = yes; then
16784
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16785
_pkg_short_errors_supported=yes
16787
_pkg_short_errors_supported=no
16789
if test $_pkg_short_errors_supported = yes; then
16790
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
16792
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
16794
# Put the nasty error message in config.log where it belongs
16795
echo "$liblua_PKG_ERRORS" >&5
16797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798
$as_echo "no" >&6; }
16802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
16803
$as_echo_n "checking for liblua... " >&6; }
16805
if test -n "$liblua_CFLAGS"; then
16806
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
16807
elif test -n "$PKG_CONFIG"; then
16808
if test -n "$PKG_CONFIG" && \
16809
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
16810
($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
16812
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16813
test $ac_status = 0; }; then
16814
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
16821
if test -n "$liblua_LIBS"; then
16822
pkg_cv_liblua_LIBS="$liblua_LIBS"
16823
elif test -n "$PKG_CONFIG"; then
16824
if test -n "$PKG_CONFIG" && \
16825
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
16826
($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
16828
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16829
test $ac_status = 0; }; then
16830
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
16840
if test $pkg_failed = yes; then
16842
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16843
_pkg_short_errors_supported=yes
16845
_pkg_short_errors_supported=no
16847
if test $_pkg_short_errors_supported = yes; then
16848
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
16850
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
16852
# Put the nasty error message in config.log where it belongs
16853
echo "$liblua_PKG_ERRORS" >&5
16855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856
$as_echo "no" >&6; }
16860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
16861
$as_echo_n "checking for liblua... " >&6; }
16863
if test -n "$liblua_CFLAGS"; then
16864
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
16865
elif test -n "$PKG_CONFIG"; then
16866
if test -n "$PKG_CONFIG" && \
16867
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
16868
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
16870
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16871
test $ac_status = 0; }; then
16872
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
16879
if test -n "$liblua_LIBS"; then
16880
pkg_cv_liblua_LIBS="$liblua_LIBS"
16881
elif test -n "$PKG_CONFIG"; then
16882
if test -n "$PKG_CONFIG" && \
16883
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
16884
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
16886
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16887
test $ac_status = 0; }; then
16888
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
16898
if test $pkg_failed = yes; then
16900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16901
_pkg_short_errors_supported=yes
16903
_pkg_short_errors_supported=no
16905
if test $_pkg_short_errors_supported = yes; then
16906
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
16908
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
16910
# Put the nasty error message in config.log where it belongs
16911
echo "$liblua_PKG_ERRORS" >&5
16913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914
$as_echo "no" >&6; }
16918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
16919
$as_echo_n "checking for liblua... " >&6; }
16921
if test -n "$liblua_CFLAGS"; then
16922
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
16923
elif test -n "$PKG_CONFIG"; then
16924
if test -n "$PKG_CONFIG" && \
16925
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
16926
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
16928
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16929
test $ac_status = 0; }; then
16930
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
16937
if test -n "$liblua_LIBS"; then
16938
pkg_cv_liblua_LIBS="$liblua_LIBS"
16939
elif test -n "$PKG_CONFIG"; then
16940
if test -n "$PKG_CONFIG" && \
16941
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
16942
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
16944
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945
test $ac_status = 0; }; then
16946
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
16956
if test $pkg_failed = yes; then
16958
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16959
_pkg_short_errors_supported=yes
16961
_pkg_short_errors_supported=no
16963
if test $_pkg_short_errors_supported = yes; then
16964
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
16966
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
16968
# Put the nasty error message in config.log where it belongs
16969
echo "$liblua_PKG_ERRORS" >&5
16971
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
16975
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16976
installed software in a non-standard prefix.
16978
Alternatively, you may set the environment variables liblua_CFLAGS
16979
and liblua_LIBS to avoid the need to call pkg-config.
16980
See the pkg-config man page for more details.
16982
elif test $pkg_failed = untried; then
16983
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16984
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16985
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
16986
is in your PATH or set the PKG_CONFIG environment variable to the full
16987
path to pkg-config.
16989
Alternatively, you may set the environment variables liblua_CFLAGS
16990
and liblua_LIBS to avoid the need to call pkg-config.
16991
See the pkg-config man page for more details.
16993
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16994
See \`config.log' for more details." "$LINENO" 5; }
16996
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
16997
liblua_LIBS=$pkg_cv_liblua_LIBS
16998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16999
$as_echo "yes" >&6; }
17003
elif test $pkg_failed = untried; then
17007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17008
$as_echo_n "checking for liblua... " >&6; }
17010
if test -n "$liblua_CFLAGS"; then
17011
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17012
elif test -n "$PKG_CONFIG"; then
17013
if test -n "$PKG_CONFIG" && \
17014
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17015
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17017
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17018
test $ac_status = 0; }; then
17019
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17026
if test -n "$liblua_LIBS"; then
17027
pkg_cv_liblua_LIBS="$liblua_LIBS"
17028
elif test -n "$PKG_CONFIG"; then
17029
if test -n "$PKG_CONFIG" && \
17030
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17031
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17033
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17034
test $ac_status = 0; }; then
17035
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17045
if test $pkg_failed = yes; then
17047
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17048
_pkg_short_errors_supported=yes
17050
_pkg_short_errors_supported=no
17052
if test $_pkg_short_errors_supported = yes; then
17053
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17055
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17057
# Put the nasty error message in config.log where it belongs
17058
echo "$liblua_PKG_ERRORS" >&5
17060
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17064
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17065
installed software in a non-standard prefix.
17067
Alternatively, you may set the environment variables liblua_CFLAGS
17068
and liblua_LIBS to avoid the need to call pkg-config.
17069
See the pkg-config man page for more details.
17071
elif test $pkg_failed = untried; then
17072
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17074
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17075
is in your PATH or set the PKG_CONFIG environment variable to the full
17076
path to pkg-config.
17078
Alternatively, you may set the environment variables liblua_CFLAGS
17079
and liblua_LIBS to avoid the need to call pkg-config.
17080
See the pkg-config man page for more details.
17082
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17083
See \`config.log' for more details." "$LINENO" 5; }
17085
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17086
liblua_LIBS=$pkg_cv_liblua_LIBS
17087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17088
$as_echo "yes" >&6; }
17093
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17094
liblua_LIBS=$pkg_cv_liblua_LIBS
17095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096
$as_echo "yes" >&6; }
17100
elif test $pkg_failed = untried; then
17104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17105
$as_echo_n "checking for liblua... " >&6; }
17107
if test -n "$liblua_CFLAGS"; then
17108
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17109
elif test -n "$PKG_CONFIG"; then
17110
if test -n "$PKG_CONFIG" && \
17111
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17112
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17114
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115
test $ac_status = 0; }; then
17116
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
17123
if test -n "$liblua_LIBS"; then
17124
pkg_cv_liblua_LIBS="$liblua_LIBS"
17125
elif test -n "$PKG_CONFIG"; then
17126
if test -n "$PKG_CONFIG" && \
17127
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17128
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17130
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17131
test $ac_status = 0; }; then
17132
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
17142
if test $pkg_failed = yes; then
17144
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17145
_pkg_short_errors_supported=yes
17147
_pkg_short_errors_supported=no
17149
if test $_pkg_short_errors_supported = yes; then
17150
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
17152
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
17154
# Put the nasty error message in config.log where it belongs
17155
echo "$liblua_PKG_ERRORS" >&5
17157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17158
$as_echo "no" >&6; }
17162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17163
$as_echo_n "checking for liblua... " >&6; }
17165
if test -n "$liblua_CFLAGS"; then
17166
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17167
elif test -n "$PKG_CONFIG"; then
17168
if test -n "$PKG_CONFIG" && \
17169
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17170
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17172
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173
test $ac_status = 0; }; then
17174
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17181
if test -n "$liblua_LIBS"; then
17182
pkg_cv_liblua_LIBS="$liblua_LIBS"
17183
elif test -n "$PKG_CONFIG"; then
17184
if test -n "$PKG_CONFIG" && \
17185
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17186
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17188
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17189
test $ac_status = 0; }; then
17190
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17200
if test $pkg_failed = yes; then
17202
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17203
_pkg_short_errors_supported=yes
17205
_pkg_short_errors_supported=no
17207
if test $_pkg_short_errors_supported = yes; then
17208
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17210
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17212
# Put the nasty error message in config.log where it belongs
17213
echo "$liblua_PKG_ERRORS" >&5
17215
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17219
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17220
installed software in a non-standard prefix.
17222
Alternatively, you may set the environment variables liblua_CFLAGS
17223
and liblua_LIBS to avoid the need to call pkg-config.
17224
See the pkg-config man page for more details.
17226
elif test $pkg_failed = untried; then
17227
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17228
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17229
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17230
is in your PATH or set the PKG_CONFIG environment variable to the full
17231
path to pkg-config.
17233
Alternatively, you may set the environment variables liblua_CFLAGS
17234
and liblua_LIBS to avoid the need to call pkg-config.
17235
See the pkg-config man page for more details.
17237
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17238
See \`config.log' for more details." "$LINENO" 5; }
17240
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17241
liblua_LIBS=$pkg_cv_liblua_LIBS
17242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17243
$as_echo "yes" >&6; }
17247
elif test $pkg_failed = untried; then
17251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17252
$as_echo_n "checking for liblua... " >&6; }
17254
if test -n "$liblua_CFLAGS"; then
17255
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17256
elif test -n "$PKG_CONFIG"; then
17257
if test -n "$PKG_CONFIG" && \
17258
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17259
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17261
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17262
test $ac_status = 0; }; then
17263
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17270
if test -n "$liblua_LIBS"; then
17271
pkg_cv_liblua_LIBS="$liblua_LIBS"
17272
elif test -n "$PKG_CONFIG"; then
17273
if test -n "$PKG_CONFIG" && \
17274
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17275
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17277
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17278
test $ac_status = 0; }; then
17279
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17289
if test $pkg_failed = yes; then
17291
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17292
_pkg_short_errors_supported=yes
17294
_pkg_short_errors_supported=no
17296
if test $_pkg_short_errors_supported = yes; then
17297
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17299
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17301
# Put the nasty error message in config.log where it belongs
17302
echo "$liblua_PKG_ERRORS" >&5
17304
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17308
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17309
installed software in a non-standard prefix.
17311
Alternatively, you may set the environment variables liblua_CFLAGS
17312
and liblua_LIBS to avoid the need to call pkg-config.
17313
See the pkg-config man page for more details.
17315
elif test $pkg_failed = untried; then
17316
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17317
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17318
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17319
is in your PATH or set the PKG_CONFIG environment variable to the full
17320
path to pkg-config.
17322
Alternatively, you may set the environment variables liblua_CFLAGS
17323
and liblua_LIBS to avoid the need to call pkg-config.
17324
See the pkg-config man page for more details.
17326
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17327
See \`config.log' for more details." "$LINENO" 5; }
17329
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17330
liblua_LIBS=$pkg_cv_liblua_LIBS
17331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17332
$as_echo "yes" >&6; }
17337
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17338
liblua_LIBS=$pkg_cv_liblua_LIBS
17339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17340
$as_echo "yes" >&6; }
17345
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17346
liblua_LIBS=$pkg_cv_liblua_LIBS
17347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348
$as_echo "yes" >&6; }
17352
elif test $pkg_failed = untried; then
17356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17357
$as_echo_n "checking for liblua... " >&6; }
17359
if test -n "$liblua_CFLAGS"; then
17360
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17361
elif test -n "$PKG_CONFIG"; then
17362
if test -n "$PKG_CONFIG" && \
17363
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
17364
($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
17366
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17367
test $ac_status = 0; }; then
17368
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1" 2>/dev/null`
17375
if test -n "$liblua_LIBS"; then
17376
pkg_cv_liblua_LIBS="$liblua_LIBS"
17377
elif test -n "$PKG_CONFIG"; then
17378
if test -n "$PKG_CONFIG" && \
17379
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51 >= 5.1\""; } >&5
17380
($PKG_CONFIG --exists --print-errors "lua51 >= 5.1") 2>&5
17382
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17383
test $ac_status = 0; }; then
17384
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1" 2>/dev/null`
17394
if test $pkg_failed = yes; then
17396
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17397
_pkg_short_errors_supported=yes
17399
_pkg_short_errors_supported=no
17401
if test $_pkg_short_errors_supported = yes; then
17402
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1" 2>&1`
17404
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1" 2>&1`
17406
# Put the nasty error message in config.log where it belongs
17407
echo "$liblua_PKG_ERRORS" >&5
17409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410
$as_echo "no" >&6; }
17414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17415
$as_echo_n "checking for liblua... " >&6; }
17417
if test -n "$liblua_CFLAGS"; then
17418
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17419
elif test -n "$PKG_CONFIG"; then
17420
if test -n "$PKG_CONFIG" && \
17421
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17422
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17424
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17425
test $ac_status = 0; }; then
17426
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
17433
if test -n "$liblua_LIBS"; then
17434
pkg_cv_liblua_LIBS="$liblua_LIBS"
17435
elif test -n "$PKG_CONFIG"; then
17436
if test -n "$PKG_CONFIG" && \
17437
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17438
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17440
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17441
test $ac_status = 0; }; then
17442
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
17452
if test $pkg_failed = yes; then
17454
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17455
_pkg_short_errors_supported=yes
17457
_pkg_short_errors_supported=no
17459
if test $_pkg_short_errors_supported = yes; then
17460
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
17462
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
17464
# Put the nasty error message in config.log where it belongs
17465
echo "$liblua_PKG_ERRORS" >&5
17467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17468
$as_echo "no" >&6; }
17472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17473
$as_echo_n "checking for liblua... " >&6; }
17475
if test -n "$liblua_CFLAGS"; then
17476
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17477
elif test -n "$PKG_CONFIG"; then
17478
if test -n "$PKG_CONFIG" && \
17479
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17480
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17482
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17483
test $ac_status = 0; }; then
17484
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17491
if test -n "$liblua_LIBS"; then
17492
pkg_cv_liblua_LIBS="$liblua_LIBS"
17493
elif test -n "$PKG_CONFIG"; then
17494
if test -n "$PKG_CONFIG" && \
17495
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17496
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17498
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17499
test $ac_status = 0; }; then
17500
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17510
if test $pkg_failed = yes; then
17512
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17513
_pkg_short_errors_supported=yes
17515
_pkg_short_errors_supported=no
17517
if test $_pkg_short_errors_supported = yes; then
17518
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17520
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17522
# Put the nasty error message in config.log where it belongs
17523
echo "$liblua_PKG_ERRORS" >&5
17525
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17529
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17530
installed software in a non-standard prefix.
17532
Alternatively, you may set the environment variables liblua_CFLAGS
17533
and liblua_LIBS to avoid the need to call pkg-config.
17534
See the pkg-config man page for more details.
17536
elif test $pkg_failed = untried; then
17537
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17538
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17539
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17540
is in your PATH or set the PKG_CONFIG environment variable to the full
17541
path to pkg-config.
17543
Alternatively, you may set the environment variables liblua_CFLAGS
17544
and liblua_LIBS to avoid the need to call pkg-config.
17545
See the pkg-config man page for more details.
17547
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17548
See \`config.log' for more details." "$LINENO" 5; }
17550
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17551
liblua_LIBS=$pkg_cv_liblua_LIBS
17552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17553
$as_echo "yes" >&6; }
17557
elif test $pkg_failed = untried; then
17561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17562
$as_echo_n "checking for liblua... " >&6; }
17564
if test -n "$liblua_CFLAGS"; then
17565
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17566
elif test -n "$PKG_CONFIG"; then
17567
if test -n "$PKG_CONFIG" && \
17568
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17569
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17571
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17572
test $ac_status = 0; }; then
17573
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17580
if test -n "$liblua_LIBS"; then
17581
pkg_cv_liblua_LIBS="$liblua_LIBS"
17582
elif test -n "$PKG_CONFIG"; then
17583
if test -n "$PKG_CONFIG" && \
17584
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17585
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17588
test $ac_status = 0; }; then
17589
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17599
if test $pkg_failed = yes; then
17601
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17602
_pkg_short_errors_supported=yes
17604
_pkg_short_errors_supported=no
17606
if test $_pkg_short_errors_supported = yes; then
17607
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17609
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17611
# Put the nasty error message in config.log where it belongs
17612
echo "$liblua_PKG_ERRORS" >&5
17614
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17618
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17619
installed software in a non-standard prefix.
17621
Alternatively, you may set the environment variables liblua_CFLAGS
17622
and liblua_LIBS to avoid the need to call pkg-config.
17623
See the pkg-config man page for more details.
17625
elif test $pkg_failed = untried; then
17626
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17627
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17628
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17629
is in your PATH or set the PKG_CONFIG environment variable to the full
17630
path to pkg-config.
17632
Alternatively, you may set the environment variables liblua_CFLAGS
17633
and liblua_LIBS to avoid the need to call pkg-config.
17634
See the pkg-config man page for more details.
17636
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17637
See \`config.log' for more details." "$LINENO" 5; }
17639
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17640
liblua_LIBS=$pkg_cv_liblua_LIBS
17641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642
$as_echo "yes" >&6; }
17647
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17648
liblua_LIBS=$pkg_cv_liblua_LIBS
17649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17650
$as_echo "yes" >&6; }
17654
elif test $pkg_failed = untried; then
17658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17659
$as_echo_n "checking for liblua... " >&6; }
17661
if test -n "$liblua_CFLAGS"; then
17662
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17663
elif test -n "$PKG_CONFIG"; then
17664
if test -n "$PKG_CONFIG" && \
17665
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17666
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17668
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17669
test $ac_status = 0; }; then
17670
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
17677
if test -n "$liblua_LIBS"; then
17678
pkg_cv_liblua_LIBS="$liblua_LIBS"
17679
elif test -n "$PKG_CONFIG"; then
17680
if test -n "$PKG_CONFIG" && \
17681
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
17682
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
17684
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17685
test $ac_status = 0; }; then
17686
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
17696
if test $pkg_failed = yes; then
17698
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17699
_pkg_short_errors_supported=yes
17701
_pkg_short_errors_supported=no
17703
if test $_pkg_short_errors_supported = yes; then
17704
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
17706
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
17708
# Put the nasty error message in config.log where it belongs
17709
echo "$liblua_PKG_ERRORS" >&5
17711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712
$as_echo "no" >&6; }
17716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17717
$as_echo_n "checking for liblua... " >&6; }
17719
if test -n "$liblua_CFLAGS"; then
17720
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17721
elif test -n "$PKG_CONFIG"; then
17722
if test -n "$PKG_CONFIG" && \
17723
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17724
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17727
test $ac_status = 0; }; then
17728
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17735
if test -n "$liblua_LIBS"; then
17736
pkg_cv_liblua_LIBS="$liblua_LIBS"
17737
elif test -n "$PKG_CONFIG"; then
17738
if test -n "$PKG_CONFIG" && \
17739
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17740
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17742
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743
test $ac_status = 0; }; then
17744
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17754
if test $pkg_failed = yes; then
17756
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17757
_pkg_short_errors_supported=yes
17759
_pkg_short_errors_supported=no
17761
if test $_pkg_short_errors_supported = yes; then
17762
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17764
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17766
# Put the nasty error message in config.log where it belongs
17767
echo "$liblua_PKG_ERRORS" >&5
17769
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17773
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17774
installed software in a non-standard prefix.
17776
Alternatively, you may set the environment variables liblua_CFLAGS
17777
and liblua_LIBS to avoid the need to call pkg-config.
17778
See the pkg-config man page for more details.
17780
elif test $pkg_failed = untried; then
17781
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17782
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17783
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17784
is in your PATH or set the PKG_CONFIG environment variable to the full
17785
path to pkg-config.
17787
Alternatively, you may set the environment variables liblua_CFLAGS
17788
and liblua_LIBS to avoid the need to call pkg-config.
17789
See the pkg-config man page for more details.
17791
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17792
See \`config.log' for more details." "$LINENO" 5; }
17794
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17795
liblua_LIBS=$pkg_cv_liblua_LIBS
17796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17797
$as_echo "yes" >&6; }
17801
elif test $pkg_failed = untried; then
17805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblua" >&5
17806
$as_echo_n "checking for liblua... " >&6; }
17808
if test -n "$liblua_CFLAGS"; then
17809
pkg_cv_liblua_CFLAGS="$liblua_CFLAGS"
17810
elif test -n "$PKG_CONFIG"; then
17811
if test -n "$PKG_CONFIG" && \
17812
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17813
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17815
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17816
test $ac_status = 0; }; then
17817
pkg_cv_liblua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
17824
if test -n "$liblua_LIBS"; then
17825
pkg_cv_liblua_LIBS="$liblua_LIBS"
17826
elif test -n "$PKG_CONFIG"; then
17827
if test -n "$PKG_CONFIG" && \
17828
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
17829
($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
17831
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832
test $ac_status = 0; }; then
17833
pkg_cv_liblua_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
17843
if test $pkg_failed = yes; then
17845
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17846
_pkg_short_errors_supported=yes
17848
_pkg_short_errors_supported=no
17850
if test $_pkg_short_errors_supported = yes; then
17851
liblua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
17853
liblua_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
17855
# Put the nasty error message in config.log where it belongs
17856
echo "$liblua_PKG_ERRORS" >&5
17858
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
17862
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17863
installed software in a non-standard prefix.
17865
Alternatively, you may set the environment variables liblua_CFLAGS
17866
and liblua_LIBS to avoid the need to call pkg-config.
17867
See the pkg-config man page for more details.
17869
elif test $pkg_failed = untried; then
17870
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17871
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17872
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17873
is in your PATH or set the PKG_CONFIG environment variable to the full
17874
path to pkg-config.
17876
Alternatively, you may set the environment variables liblua_CFLAGS
17877
and liblua_LIBS to avoid the need to call pkg-config.
17878
See the pkg-config man page for more details.
17880
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17881
See \`config.log' for more details." "$LINENO" 5; }
17883
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17884
liblua_LIBS=$pkg_cv_liblua_LIBS
17885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17886
$as_echo "yes" >&6; }
17891
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17892
liblua_LIBS=$pkg_cv_liblua_LIBS
17893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17894
$as_echo "yes" >&6; }
17899
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17900
liblua_LIBS=$pkg_cv_liblua_LIBS
17901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17902
$as_echo "yes" >&6; }
17907
liblua_CFLAGS=$pkg_cv_liblua_CFLAGS
17908
liblua_LIBS=$pkg_cv_liblua_LIBS
17909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17910
$as_echo "yes" >&6; }
17913
# Check whether --enable-silent-rules was given.
17914
if test "${enable_silent_rules+set}" = set; then :
17915
enableval=$enable_silent_rules;
17918
case $enable_silent_rules in
17919
yes) AM_DEFAULT_VERBOSITY=0;;
17920
no) AM_DEFAULT_VERBOSITY=1;;
17921
*) AM_DEFAULT_VERBOSITY=0;;
17926
# Checks for header files.
17927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17928
$as_echo_n "checking for ANSI C header files... " >&6; }
17929
if test "${ac_cv_header_stdc+set}" = set; then :
17930
$as_echo_n "(cached) " >&6
17932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933
/* end confdefs.h. */
17934
#include <stdlib.h>
17935
#include <stdarg.h>
17936
#include <string.h>
17947
if ac_fn_c_try_compile "$LINENO"; then :
17948
ac_cv_header_stdc=yes
17950
ac_cv_header_stdc=no
17952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954
if test $ac_cv_header_stdc = yes; then
17955
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957
/* end confdefs.h. */
17958
#include <string.h>
17961
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17962
$EGREP "memchr" >/dev/null 2>&1; then :
17965
ac_cv_header_stdc=no
17971
if test $ac_cv_header_stdc = yes; then
17972
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17973
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974
/* end confdefs.h. */
17975
#include <stdlib.h>
17978
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17979
$EGREP "free" >/dev/null 2>&1; then :
17982
ac_cv_header_stdc=no
17988
if test $ac_cv_header_stdc = yes; then
17989
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17990
if test "$cross_compiling" = yes; then :
17993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994
/* end confdefs.h. */
17996
#include <stdlib.h>
17997
#if ((' ' & 0x0FF) == 0x020)
17998
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17999
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18001
# define ISLOWER(c) \
18002
(('a' <= (c) && (c) <= 'i') \
18003
|| ('j' <= (c) && (c) <= 'r') \
18004
|| ('s' <= (c) && (c) <= 'z'))
18005
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18008
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18013
for (i = 0; i < 256; i++)
18014
if (XOR (islower (i), ISLOWER (i))
18015
|| toupper (i) != TOUPPER (i))
18020
if ac_fn_c_try_run "$LINENO"; then :
18023
ac_cv_header_stdc=no
18025
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18026
conftest.$ac_objext conftest.beam conftest.$ac_ext
18031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18032
$as_echo "$ac_cv_header_stdc" >&6; }
18033
if test $ac_cv_header_stdc = yes; then
18035
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18038
# `stdlib.h', `stdarg.h', `string.h', ...
18039
for ac_header in memory.h stdint.h stdlib.h limits.h stddef.h
18041
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18042
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18043
eval as_val=\$$as_ac_Header
18044
if test "x$as_val" = x""yes; then :
18045
cat >>confdefs.h <<_ACEOF
18046
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18054
# Checks for typedefs, structures, and compiler characteristics.
18055
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18056
if test "x$ac_cv_type_size_t" = x""yes; then :
18060
cat >>confdefs.h <<_ACEOF
18061
#define size_t unsigned int
18066
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18067
case $ac_cv_c_uint32_t in #(
18071
$as_echo "#define _UINT32_T 1" >>confdefs.h
18074
cat >>confdefs.h <<_ACEOF
18075
#define uint32_t $ac_cv_c_uint32_t
18080
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18081
case $ac_cv_c_uint64_t in #(
18085
$as_echo "#define _UINT64_T 1" >>confdefs.h
18088
cat >>confdefs.h <<_ACEOF
18089
#define uint64_t $ac_cv_c_uint64_t
18094
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18095
case $ac_cv_c_uint8_t in #(
18099
$as_echo "#define _UINT8_T 1" >>confdefs.h
18102
cat >>confdefs.h <<_ACEOF
18103
#define uint8_t $ac_cv_c_uint8_t
18108
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18109
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18111
cat >>confdefs.h <<_ACEOF
18112
#define HAVE_PTRDIFF_T 1
18119
# Checks for library functions.
18120
if test x"$host_w32" = "xno" ; then
18121
for ac_header in stdlib.h
18123
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18124
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18125
cat >>confdefs.h <<_ACEOF
18126
#define HAVE_STDLIB_H 1
18133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18134
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18135
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
18136
$as_echo_n "(cached) " >&6
18138
if test "$cross_compiling" = yes; then :
18139
ac_cv_func_malloc_0_nonnull=no
18141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142
/* end confdefs.h. */
18143
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18144
# include <stdlib.h>
18152
return ! malloc (0);
18157
if ac_fn_c_try_run "$LINENO"; then :
18158
ac_cv_func_malloc_0_nonnull=yes
18160
ac_cv_func_malloc_0_nonnull=no
18162
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18163
conftest.$ac_objext conftest.beam conftest.$ac_ext
18167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18168
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18169
if test $ac_cv_func_malloc_0_nonnull = yes; then :
18171
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
18174
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h
18176
case " $LIBOBJS " in
18177
*" malloc.$ac_objext "* ) ;;
18178
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18183
$as_echo "#define malloc rpl_malloc" >>confdefs.h
18188
for ac_header in stdlib.h
18190
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18191
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
18192
cat >>confdefs.h <<_ACEOF
18193
#define HAVE_STDLIB_H 1
18200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
18201
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
18202
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
18203
$as_echo_n "(cached) " >&6
18205
if test "$cross_compiling" = yes; then :
18206
ac_cv_func_realloc_0_nonnull=no
18208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209
/* end confdefs.h. */
18210
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18211
# include <stdlib.h>
18219
return ! realloc (0, 0);
18224
if ac_fn_c_try_run "$LINENO"; then :
18225
ac_cv_func_realloc_0_nonnull=yes
18227
ac_cv_func_realloc_0_nonnull=no
18229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18230
conftest.$ac_objext conftest.beam conftest.$ac_ext
18234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18235
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
18236
if test $ac_cv_func_realloc_0_nonnull = yes; then :
18238
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
18241
$as_echo "#define HAVE_REALLOC 0" >>confdefs.h
18243
case " $LIBOBJS " in
18244
*" realloc.$ac_objext "* ) ;;
18245
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
18250
$as_echo "#define realloc rpl_realloc" >>confdefs.h
18256
for ac_func in memset strdup strstr strtol strerror strcspn getcwd
18258
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18260
eval as_val=\$$as_ac_var
18261
if test "x$as_val" = x""yes; then :
18262
cat >>confdefs.h <<_ACEOF
18263
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
18270
$as_echo_n "checking for working strtod... " >&6; }
18271
if test "${ac_cv_func_strtod+set}" = set; then :
18272
$as_echo_n "(cached) " >&6
18274
if test "$cross_compiling" = yes; then :
18275
ac_cv_func_strtod=no
18277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278
/* end confdefs.h. */
18280
$ac_includes_default
18288
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
18289
char *string = " +69";
18292
value = strtod (string, &term);
18293
if (value != 69 || term != (string + 4))
18298
/* Under Solaris 2.4, strtod returns the wrong value for the
18299
terminating character under some conditions. */
18300
char *string = "NaN";
18302
strtod (string, &term);
18303
if (term != string && *(term - 1) == 0)
18310
if ac_fn_c_try_run "$LINENO"; then :
18311
ac_cv_func_strtod=yes
18313
ac_cv_func_strtod=no
18315
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18316
conftest.$ac_objext conftest.beam conftest.$ac_ext
18320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
18321
$as_echo "$ac_cv_func_strtod" >&6; }
18322
if test $ac_cv_func_strtod = no; then
18323
case " $LIBOBJS " in
18324
*" strtod.$ac_objext "* ) ;;
18325
*) LIBOBJS="$LIBOBJS strtod.$ac_objext"
18329
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
18330
if test "x$ac_cv_func_pow" = x""yes; then :
18334
if test $ac_cv_func_pow = no; then
18335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18336
$as_echo_n "checking for pow in -lm... " >&6; }
18337
if test "${ac_cv_lib_m_pow+set}" = set; then :
18338
$as_echo_n "(cached) " >&6
18340
ac_check_lib_save_LIBS=$LIBS
18342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343
/* end confdefs.h. */
18345
/* Override any GCC internal prototype to avoid an error.
18346
Use char because int might match the return type of a GCC
18347
builtin and then its argument prototype would still apply. */
18360
if ac_fn_c_try_link "$LINENO"; then :
18361
ac_cv_lib_m_pow=yes
18365
rm -f core conftest.err conftest.$ac_objext \
18366
conftest$ac_exeext conftest.$ac_ext
18367
LIBS=$ac_check_lib_save_LIBS
18369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
18370
$as_echo "$ac_cv_lib_m_pow" >&6; }
18371
if test "x$ac_cv_lib_m_pow" = x""yes; then :
18374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
18375
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
18384
for ac_func in vasprintf
18386
ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
18387
if test "x$ac_cv_func_vasprintf" = x""yes; then :
18388
cat >>confdefs.h <<_ACEOF
18389
#define HAVE_VASPRINTF 1
18392
for ac_func in asprintf
18394
ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
18395
if test "x$ac_cv_func_asprintf" = x""yes; then :
18396
cat >>confdefs.h <<_ACEOF
18397
#define HAVE_ASPRINTF 1
18407
if test x"$have_asprintf" != "xyes"; then
18409
NO_ASPRINTF_FALSE='#'
18411
NO_ASPRINTF_TRUE='#'
18417
for ac_func in strupr
18419
ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
18420
if test "x$ac_cv_func_strupr" = x""yes; then :
18421
cat >>confdefs.h <<_ACEOF
18422
#define HAVE_STRUPR 1
18428
if test x"$have_strupr" != "xyes"; then
18430
NO_STRUPR_FALSE='#'
18438
for ac_func in strtok_r
18440
ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18441
if test "x$ac_cv_func_strtok_r" = x""yes; then :
18442
cat >>confdefs.h <<_ACEOF
18443
#define HAVE_STRTOK_R 1
18449
if test x"$have_strtok_r" != "xyes"; then
18451
NO_STRTOK_R_FALSE='#'
18453
NO_STRTOK_R_TRUE='#'
18458
if test x"$have_strtok_r" = "xno" ; then
18459
for ac_func in strchr strpbrk strspn
18461
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18462
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18463
eval as_val=\$$as_ac_var
18464
if test "x$as_val" = x""yes; then :
18465
cat >>confdefs.h <<_ACEOF
18466
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18475
# Check whether --enable-quvi was given.
18476
if test "${enable_quvi+set}" = set; then :
18477
enableval=$enable_quvi;
18482
if test x"$enable_quvi" != "xno"; then
18484
ENABLE_QUVI_FALSE='#'
18486
ENABLE_QUVI_TRUE='#'
18491
# --enable-examples
18492
# Check whether --enable-examples was given.
18493
if test "${enable_examples+set}" = set; then :
18494
enableval=$enable_examples;
18499
if test x"$enable_examples" != "xno"; then
18500
ENABLE_EXAMPLES_TRUE=
18501
ENABLE_EXAMPLES_FALSE='#'
18503
ENABLE_EXAMPLES_TRUE='#'
18504
ENABLE_EXAMPLES_FALSE=
18509
# Check whether --enable-smut was given.
18510
if test "${enable_smut+set}" = set; then :
18511
enableval=$enable_smut;
18516
if test x"$enable_smut" != "xno"; then
18518
ENABLE_SMUT_FALSE='#'
18520
ENABLE_SMUT_TRUE='#'
18525
if test x"$enable_smut" != "xno" ; then
18527
$as_echo "#define ENABLE_SMUT 1" >>confdefs.h
18532
# Check whether --enable-broken was given.
18533
if test "${enable_broken+set}" = set; then :
18534
enableval=$enable_broken;
18539
if test x"$enable_broken" != "xno"; then
18540
ENABLE_BROKEN_TRUE=
18541
ENABLE_BROKEN_FALSE='#'
18543
ENABLE_BROKEN_TRUE='#'
18544
ENABLE_BROKEN_FALSE=
18548
if test x"$enable_broken" != "xno" ; then
18550
$as_echo "#define ENABLE_BROKEN 1" >>confdefs.h
18557
# Check whether --with-man was given.
18558
if test "${with_man+set}" = set; then :
18564
if test x"$with_man" != "xno"; then
18575
# Check whether --with-doc was given.
18576
if test "${with_doc+set}" = set; then :
18582
if test x"$with_doc" != "xno"; then
18592
if test x"$with_gnu_ld" = "xyes"; then
18594
HAVE_GNU_LD_FALSE='#'
18596
HAVE_GNU_LD_TRUE='#'
18601
ac_config_files="$ac_config_files Makefile include/Makefile include/quvi/Makefile include/quvi/quvi.h lib/Makefile share/Makefile doc/Makefile src/Makefile examples/Makefile tests/Makefile tests/quviTest.pm libquvi.pc doxygen.conf"
18604
cat >confcache <<\_ACEOF
18605
# This file is a shell script that caches the results of configure
18606
# tests run on this system so they can be shared between configure
18607
# scripts and configure runs, see configure's option --config-cache.
18608
# It is not useful on other systems. If it contains results you don't
18609
# want to keep, you may remove or edit it.
18611
# config.status only pays attention to the cache file if you give it
18612
# the --recheck option to rerun configure.
18614
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18615
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18616
# following values.
18620
# The following way of writing the cache mishandles newlines in values,
18621
# but we know of no workaround that is simple, portable, and efficient.
18622
# So, we kill variables containing newlines.
18623
# Ultrix sh set writes to stderr and can't be redirected directly,
18624
# and sets the high bit in the cache file unless we assign to the vars.
18626
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18627
eval ac_val=\$$ac_var
18631
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18632
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18635
_ | IFS | as_nl) ;; #(
18636
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18637
*) { eval $ac_var=; unset $ac_var;} ;;
18643
case $as_nl`(ac_space=' '; set) 2>&1` in #(
18644
*${as_nl}ac_space=\ *)
18645
# `set' does not quote correctly, so add quotes: double-quote
18646
# substitution turns \\\\ into \\, and sed turns \\ into \.
18649
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18652
# `set' quotes correctly as required by POSIX, so do not add quotes.
18653
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18662
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18664
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18666
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18667
if test -w "$cache_file"; then
18668
test "x$cache_file" != "x/dev/null" &&
18669
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18670
$as_echo "$as_me: updating cache $cache_file" >&6;}
18671
cat confcache >$cache_file
18673
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18674
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18679
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18680
# Let make expand exec_prefix.
18681
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18683
DEFS=-DHAVE_CONFIG_H
18687
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18688
# 1. Remove the extension, and $U if already installed.
18689
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18690
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18691
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18692
# will be set to the directory where LIBOBJS objects are built.
18693
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18694
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18696
LIBOBJS=$ac_libobjs
18698
LTLIBOBJS=$ac_ltlibobjs
18701
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18702
as_fn_error "conditional \"AMDEP\" was never defined.
18703
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18705
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18706
as_fn_error "conditional \"am__fastdepCC\" was never defined.
18707
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18709
if test -n "$EXEEXT"; then
18711
am__EXEEXT_FALSE='#'
18713
am__EXEEXT_TRUE='#'
18717
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18718
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18719
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18721
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18722
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18723
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18725
if test -z "${HAVE_GENGETOPT_TRUE}" && test -z "${HAVE_GENGETOPT_FALSE}"; then
18726
as_fn_error "conditional \"HAVE_GENGETOPT\" was never defined.
18727
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18729
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
18730
as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
18731
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18733
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
18734
as_fn_error "conditional \"HAVE_PERL\" was never defined.
18735
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18737
if test -z "${HAVE_PERL_POD_CHECKER_TRUE}" && test -z "${HAVE_PERL_POD_CHECKER_FALSE}"; then
18738
as_fn_error "conditional \"HAVE_PERL_POD_CHECKER\" was never defined.
18739
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18741
if test -z "${HAVE_POD2MAN_TRUE}" && test -z "${HAVE_POD2MAN_FALSE}"; then
18742
as_fn_error "conditional \"HAVE_POD2MAN\" was never defined.
18743
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18745
if test -z "${HAVE_POD2HTML_TRUE}" && test -z "${HAVE_POD2HTML_FALSE}"; then
18746
as_fn_error "conditional \"HAVE_POD2HTML\" was never defined.
18747
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18749
if test -z "${NO_ASPRINTF_TRUE}" && test -z "${NO_ASPRINTF_FALSE}"; then
18750
as_fn_error "conditional \"NO_ASPRINTF\" was never defined.
18751
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18753
if test -z "${NO_STRUPR_TRUE}" && test -z "${NO_STRUPR_FALSE}"; then
18754
as_fn_error "conditional \"NO_STRUPR\" was never defined.
18755
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18757
if test -z "${NO_STRTOK_R_TRUE}" && test -z "${NO_STRTOK_R_FALSE}"; then
18758
as_fn_error "conditional \"NO_STRTOK_R\" was never defined.
18759
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18761
if test -z "${ENABLE_QUVI_TRUE}" && test -z "${ENABLE_QUVI_FALSE}"; then
18762
as_fn_error "conditional \"ENABLE_QUVI\" was never defined.
18763
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18765
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
18766
as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
18767
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18769
if test -z "${ENABLE_SMUT_TRUE}" && test -z "${ENABLE_SMUT_FALSE}"; then
18770
as_fn_error "conditional \"ENABLE_SMUT\" was never defined.
18771
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18773
if test -z "${ENABLE_BROKEN_TRUE}" && test -z "${ENABLE_BROKEN_FALSE}"; then
18774
as_fn_error "conditional \"ENABLE_BROKEN\" was never defined.
18775
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18777
if test -z "${WITH_MAN_TRUE}" && test -z "${WITH_MAN_FALSE}"; then
18778
as_fn_error "conditional \"WITH_MAN\" was never defined.
18779
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18781
if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
18782
as_fn_error "conditional \"WITH_DOC\" was never defined.
18783
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18785
if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
18786
as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
18787
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18790
: ${CONFIG_STATUS=./config.status}
18792
ac_clean_files_save=$ac_clean_files
18793
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18794
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18795
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18797
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18799
# Generated by $as_me.
18800
# Run this file to recreate the current configuration.
18801
# Compiler output produced by configure, useful for debugging
18802
# configure, is in config.log if it exists.
18805
ac_cs_recheck=false
18808
SHELL=\${CONFIG_SHELL-$SHELL}
18811
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18812
## -------------------- ##
18813
## M4sh Initialization. ##
18814
## -------------------- ##
18816
# Be more Bourne compatible
18817
DUALCASE=1; export DUALCASE # for MKS sh
18818
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18821
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18822
# is contrary to our usage. Disable this feature.
18823
alias -g '${1+"$@"}'='"$@"'
18824
setopt NO_GLOB_SUBST
18826
case `(set -o) 2>/dev/null` in #(
18838
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18839
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18840
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18841
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18842
# Prefer a ksh shell builtin over an external printf program on Solaris,
18843
# but without wasting forks for bash or zsh.
18844
if test -z "$BASH_VERSION$ZSH_VERSION" \
18845
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18846
as_echo='print -r --'
18847
as_echo_n='print -rn --'
18848
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18849
as_echo='printf %s\n'
18850
as_echo_n='printf %s'
18852
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18853
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18854
as_echo_n='/usr/ucb/echo -n'
18856
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18857
as_echo_n_body='eval
18861
expr "X$arg" : "X\\(.*\\)$as_nl";
18862
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18864
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18866
export as_echo_n_body
18867
as_echo_n='sh -c $as_echo_n_body as_echo'
18869
export as_echo_body
18870
as_echo='sh -c $as_echo_body as_echo'
18873
# The user is always right.
18874
if test "${PATH_SEPARATOR+set}" != set; then
18876
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18877
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18884
# We need space, tab and new line, in precisely that order. Quoting is
18885
# there to prevent editors from complaining about space-tab.
18886
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18887
# splitting by setting IFS to empty value.)
18890
# Find who we are. Look in the path if we contain no directory separator.
18892
*[\\/]* ) as_myself=$0 ;;
18893
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18894
for as_dir in $PATH
18897
test -z "$as_dir" && as_dir=.
18898
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18904
# We did not find ourselves, most probably we were run as `sh COMMAND'
18905
# in which case we are not to be found in the path.
18906
if test "x$as_myself" = x; then
18909
if test ! -f "$as_myself"; then
18910
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18914
# Unset variables that we do not need and which cause bugs (e.g. in
18915
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18916
# suppresses any "Segmentation fault" message there. '((' could
18917
# trigger a bug in pdksh 5.2.14.
18918
for as_var in BASH_ENV ENV MAIL MAILPATH
18919
do eval test x\${$as_var+set} = xset \
18920
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18933
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18936
# as_fn_error ERROR [LINENO LOG_FD]
18937
# ---------------------------------
18938
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18939
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18940
# script with status $?, using 1 if that was 0.
18943
as_status=$?; test $as_status -eq 0 && as_status=1
18945
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18946
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18948
$as_echo "$as_me: error: $1" >&2
18949
as_fn_exit $as_status
18953
# as_fn_set_status STATUS
18954
# -----------------------
18955
# Set $? to STATUS, without forking.
18956
as_fn_set_status ()
18959
} # as_fn_set_status
18961
# as_fn_exit STATUS
18962
# -----------------
18963
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18967
as_fn_set_status $1
18973
# Portably unset VAR.
18976
{ eval $1=; unset $1;}
18978
as_unset=as_fn_unset
18979
# as_fn_append VAR VALUE
18980
# ----------------------
18981
# Append the text in VALUE to the end of the definition contained in VAR. Take
18982
# advantage of any shell optimizations that allow amortized linear growth over
18983
# repeated appends, instead of the typical quadratic growth present in naive
18985
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18986
eval 'as_fn_append ()
18997
# as_fn_arith ARG...
18998
# ------------------
18999
# Perform arithmetic evaluation on the ARGs, and store the result in the
19000
# global $as_val. Take advantage of shells that can avoid forks. The arguments
19001
# must be portable across $(()) and expr.
19002
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19003
eval 'as_fn_arith ()
19010
as_val=`expr "$@" || test $? -eq 1`
19015
if expr a : '\(a\)' >/dev/null 2>&1 &&
19016
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19022
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19023
as_basename=basename
19028
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19034
as_me=`$as_basename -- "$0" ||
19035
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19036
X"$0" : 'X\(//\)$' \| \
19037
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19039
sed '/^.*\/\([^/][^/]*\)\/*$/{
19053
# Avoid depending upon Character Ranges.
19054
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19055
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19056
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19057
as_cr_digits='0123456789'
19058
as_cr_alnum=$as_cr_Letters$as_cr_digits
19060
ECHO_C= ECHO_N= ECHO_T=
19061
case `echo -n x` in #(((((
19063
case `echo 'xy\c'` in
19064
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
19066
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19073
rm -f conf$$ conf$$.exe conf$$.file
19074
if test -d conf$$.dir; then
19075
rm -f conf$$.dir/conf$$.file
19078
mkdir conf$$.dir 2>/dev/null
19080
if (echo >conf$$.file) 2>/dev/null; then
19081
if ln -s conf$$.file conf$$ 2>/dev/null; then
19083
# ... but there are two gotchas:
19084
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19085
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19086
# In both cases, we have to default to `cp -p'.
19087
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19089
elif ln conf$$.file conf$$ 2>/dev/null; then
19097
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19098
rmdir conf$$.dir 2>/dev/null
19103
# Create "$as_dir" as a directory, including parents if necessary.
19108
-*) as_dir=./$as_dir;;
19110
test -d "$as_dir" || eval $as_mkdir_p || {
19114
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19115
*) as_qdir=$as_dir;;
19117
as_dirs="'$as_qdir' $as_dirs"
19118
as_dir=`$as_dirname -- "$as_dir" ||
19119
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19120
X"$as_dir" : 'X\(//\)[^/]' \| \
19121
X"$as_dir" : 'X\(//\)$' \| \
19122
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19123
$as_echo X"$as_dir" |
19124
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19128
/^X\(\/\/\)[^/].*/{
19141
test -d "$as_dir" && break
19143
test -z "$as_dirs" || eval "mkdir $as_dirs"
19144
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19148
if mkdir -p . 2>/dev/null; then
19149
as_mkdir_p='mkdir -p "$as_dir"'
19151
test -d ./-p && rmdir ./-p
19155
if test -x / >/dev/null 2>&1; then
19156
as_test_x='test -x'
19158
if ls -dL / >/dev/null 2>&1; then
19165
if test -d "$1"; then
19171
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19172
???[sx]*):;;*)false;;esac;fi
19176
as_executable_p=$as_test_x
19178
# Sed expression to map a string onto a valid CPP name.
19179
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19181
# Sed expression to map a string onto a valid variable name.
19182
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19186
## ----------------------------------- ##
19187
## Main body of $CONFIG_STATUS script. ##
19188
## ----------------------------------- ##
19190
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19193
# Save the log message, to keep $0 and so on meaningful, and to
19194
# report actual input values of CONFIG_FILES etc. instead of their
19195
# values after options handling.
19197
This file was extended by quvi $as_me 0.2.0, which was
19198
generated by GNU Autoconf 2.65. Invocation command line was
19200
CONFIG_FILES = $CONFIG_FILES
19201
CONFIG_HEADERS = $CONFIG_HEADERS
19202
CONFIG_LINKS = $CONFIG_LINKS
19203
CONFIG_COMMANDS = $CONFIG_COMMANDS
19206
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19211
case $ac_config_files in *"
19212
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19215
case $ac_config_headers in *"
19216
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19220
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19221
# Files that config.status was made for.
19222
config_files="$ac_config_files"
19223
config_headers="$ac_config_headers"
19224
config_commands="$ac_config_commands"
19228
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230
\`$as_me' instantiates files and other configuration actions
19231
from templates according to the current configuration. Unless the files
19232
and actions are specified as TAGs, all are instantiated by default.
19234
Usage: $0 [OPTION]... [TAG]...
19236
-h, --help print this help, then exit
19237
-V, --version print version number and configuration settings, then exit
19238
--config print configuration, then exit
19239
-q, --quiet, --silent
19240
do not print progress messages
19241
-d, --debug don't remove temporary files
19242
--recheck update $as_me by reconfiguring in the same conditions
19243
--file=FILE[:TEMPLATE]
19244
instantiate the configuration file FILE
19245
--header=FILE[:TEMPLATE]
19246
instantiate the configuration header FILE
19248
Configuration files:
19251
Configuration headers:
19254
Configuration commands:
19257
Report bugs to <legatvs@gmail.com>."
19260
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19261
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19263
quvi config.status 0.2.0
19264
configured by $0, generated by GNU Autoconf 2.65,
19265
with options \\"\$ac_cs_config\\"
19267
Copyright (C) 2009 Free Software Foundation, Inc.
19268
This config.status script is free software; the Free Software Foundation
19269
gives unlimited permission to copy, distribute and modify it."
19276
test -n "\$AWK" || AWK=awk
19279
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19280
# The default lists apply if the user does not specify any file.
19286
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19287
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19298
# Handling of the options.
19299
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19301
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19302
$as_echo "$ac_cs_version"; exit ;;
19303
--config | --confi | --conf | --con | --co | --c )
19304
$as_echo "$ac_cs_config"; exit ;;
19305
--debug | --debu | --deb | --de | --d | -d )
19307
--file | --fil | --fi | --f )
19310
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19312
as_fn_append CONFIG_FILES " '$ac_optarg'"
19313
ac_need_defaults=false;;
19314
--header | --heade | --head | --hea )
19317
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19319
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19320
ac_need_defaults=false;;
19322
# Conflict between --help and --header
19323
as_fn_error "ambiguous option: \`$1'
19324
Try \`$0 --help' for more information.";;
19325
--help | --hel | -h )
19326
$as_echo "$ac_cs_usage"; exit ;;
19327
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19328
| -silent | --silent | --silen | --sile | --sil | --si | --s)
19331
# This is an error.
19332
-*) as_fn_error "unrecognized option: \`$1'
19333
Try \`$0 --help' for more information." ;;
19335
*) as_fn_append ac_config_targets " $1"
19336
ac_need_defaults=false ;;
19342
ac_configure_extra_args=
19344
if $ac_cs_silent; then
19346
ac_configure_extra_args="$ac_configure_extra_args --silent"
19350
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19351
if \$ac_cs_recheck; then
19352
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19354
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19355
CONFIG_SHELL='$SHELL'
19356
export CONFIG_SHELL
19361
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19365
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19366
## Running $as_me. ##
19372
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19376
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19379
# The HP-UX ksh and POSIX shell print the target directory to stdout
19380
# if CDPATH is set.
19381
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19383
sed_quote_subst='$sed_quote_subst'
19384
double_quote_subst='$double_quote_subst'
19385
delay_variable_subst='$delay_variable_subst'
19386
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19387
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19388
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19389
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19390
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19391
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19392
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19393
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19394
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19395
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19396
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19397
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19398
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19399
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19400
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19401
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19402
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19403
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19404
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19405
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19406
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19407
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19408
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19409
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19410
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19411
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19412
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19413
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19414
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19415
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19416
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19417
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19418
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19419
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19420
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19421
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19422
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19423
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19424
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19425
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19426
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19427
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19428
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19429
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19430
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"`'
19431
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"`'
19432
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19433
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19434
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19435
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19436
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19437
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19438
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19439
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19440
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19441
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19442
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19443
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19444
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19445
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19446
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19447
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19448
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19449
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19450
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19451
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19452
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19453
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19454
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19455
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19456
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19457
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19458
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19459
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19460
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19461
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19462
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19463
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19464
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19465
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19466
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19467
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19468
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19469
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19470
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19471
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19472
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19473
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19474
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19475
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19476
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19477
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19478
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19479
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19480
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19481
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19482
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19483
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19484
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19485
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19486
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19487
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19488
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19489
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19490
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19491
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19492
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19493
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19494
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19495
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19496
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19497
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19498
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19499
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19500
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19501
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19502
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19503
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19504
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19505
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19506
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19507
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19508
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19509
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19510
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19511
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19512
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19513
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19514
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19515
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19516
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19517
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19518
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19519
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19520
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19521
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19522
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19523
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19524
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19525
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19526
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19527
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19528
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19529
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19530
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19531
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19532
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19533
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19534
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19535
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19536
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19537
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19538
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19539
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19540
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19541
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19542
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19543
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19544
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19545
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19546
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19547
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19548
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19549
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19550
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19551
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19552
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19553
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19554
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19555
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19556
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19559
LTCFLAGS='$LTCFLAGS'
19560
compiler='$compiler_DEFAULT'
19562
# Quote evaled strings.
19574
deplibs_check_method \
19583
lt_cv_sys_global_symbol_pipe \
19584
lt_cv_sys_global_symbol_to_cdecl \
19585
lt_cv_sys_global_symbol_to_c_name_address \
19586
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19589
lt_prog_compiler_no_builtin_flag \
19590
lt_prog_compiler_wl \
19591
lt_prog_compiler_pic \
19592
lt_prog_compiler_static \
19593
lt_cv_prog_compiler_c_o \
19601
export_dynamic_flag_spec \
19602
whole_archive_flag_spec \
19603
compiler_needs_object \
19605
allow_undefined_flag \
19606
no_undefined_flag \
19607
hardcode_libdir_flag_spec \
19608
hardcode_libdir_flag_spec_ld \
19609
hardcode_libdir_separator \
19614
variables_saved_for_relink \
19616
library_names_spec \
19621
compiler_lib_search_dirs \
19626
compiler_lib_search_path \
19629
lt_prog_compiler_no_builtin_flag_CXX \
19630
lt_prog_compiler_wl_CXX \
19631
lt_prog_compiler_pic_CXX \
19632
lt_prog_compiler_static_CXX \
19633
lt_cv_prog_compiler_c_o_CXX \
19634
export_dynamic_flag_spec_CXX \
19635
whole_archive_flag_spec_CXX \
19636
compiler_needs_object_CXX \
19638
allow_undefined_flag_CXX \
19639
no_undefined_flag_CXX \
19640
hardcode_libdir_flag_spec_CXX \
19641
hardcode_libdir_flag_spec_ld_CXX \
19642
hardcode_libdir_separator_CXX \
19643
fix_srcfile_path_CXX \
19644
exclude_expsyms_CXX \
19645
include_expsyms_CXX \
19646
file_list_spec_CXX \
19647
compiler_lib_search_dirs_CXX \
19648
predep_objects_CXX \
19649
postdep_objects_CXX \
19652
compiler_lib_search_path_CXX; do
19653
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19654
*[\\\\\\\`\\"\\\$]*)
19655
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19658
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19663
# Double-quote double-evaled strings.
19664
for var in reload_cmds \
19665
old_postinstall_cmds \
19666
old_postuninstall_cmds \
19668
extract_expsyms_cmds \
19669
old_archive_from_new_cmds \
19670
old_archive_from_expsyms_cmds \
19672
archive_expsym_cmds \
19674
module_expsym_cmds \
19675
export_symbols_cmds \
19678
postuninstall_cmds \
19680
sys_lib_search_path_spec \
19681
sys_lib_dlsearch_path_spec \
19682
old_archive_cmds_CXX \
19683
old_archive_from_new_cmds_CXX \
19684
old_archive_from_expsyms_cmds_CXX \
19686
archive_expsym_cmds_CXX \
19688
module_expsym_cmds_CXX \
19689
export_symbols_cmds_CXX \
19690
prelink_cmds_CXX; do
19691
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19692
*[\\\\\\\`\\"\\\$]*)
19693
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19696
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19701
# Fix-up fallback echo if it was mangled by the above quoting rules.
19703
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19707
ac_aux_dir='$ac_aux_dir'
19708
xsi_shell='$xsi_shell'
19709
lt_shell_append='$lt_shell_append'
19711
# See if we are running on zsh, and set the options which allow our
19712
# commands through without removal of \ escapes INIT.
19713
if test -n "\${ZSH_VERSION+set}" ; then
19714
setopt NO_GLOB_SUBST
19720
TIMESTAMP='$TIMESTAMP'
19731
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19733
# Handling of arguments.
19734
for ac_config_target in $ac_config_targets
19736
case $ac_config_target in
19737
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19738
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19739
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19740
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19741
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19742
"include/quvi/Makefile") CONFIG_FILES="$CONFIG_FILES include/quvi/Makefile" ;;
19743
"include/quvi/quvi.h") CONFIG_FILES="$CONFIG_FILES include/quvi/quvi.h" ;;
19744
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19745
"share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
19746
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19747
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19748
"examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19749
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19750
"tests/quviTest.pm") CONFIG_FILES="$CONFIG_FILES tests/quviTest.pm" ;;
19751
"libquvi.pc") CONFIG_FILES="$CONFIG_FILES libquvi.pc" ;;
19752
"doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf" ;;
19754
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19759
# If the user did not use the arguments to specify the items to instantiate,
19760
# then the envvar interface is used. Set only those that are not.
19761
# We use the long form for the default assignment because of an extremely
19762
# bizarre bug on SunOS 4.1.3.
19763
if $ac_need_defaults; then
19764
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19765
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19766
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19769
# Have a temporary directory for convenience. Make it in the build tree
19770
# simply because there is no reason against having it here, and in addition,
19771
# creating and moving files from /tmp can sometimes cause problems.
19772
# Hook for its removal unless debugging.
19773
# Note that there is a small window in which the directory will not be cleaned:
19774
# after its creation but before its name has been assigned to `$tmp'.
19778
trap 'exit_status=$?
19779
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19781
trap 'as_fn_exit 1' 1 2 13 15
19783
# Create a (secure) tmp directory for tmp files.
19786
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19787
test -n "$tmp" && test -d "$tmp"
19790
tmp=./conf$$-$RANDOM
19791
(umask 077 && mkdir "$tmp")
19792
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19794
# Set up the scripts for CONFIG_FILES section.
19795
# No need to generate them if there are no CONFIG_FILES.
19796
# This happens for instance with `./config.status config.h'.
19797
if test -n "$CONFIG_FILES"; then
19800
ac_cr=`echo X | tr X '\015'`
19801
# On cygwin, bash can eat \r inside `` if the user requested igncr.
19802
# But we know of no other shell where ac_cr would be empty at this
19803
# point, so we can use a bashism as a fallback.
19804
if test "x$ac_cr" = x; then
19805
eval ac_cr=\$\'\\r\'
19807
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19808
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19811
ac_cs_awk_cr=$ac_cr
19814
echo 'BEGIN {' >"$tmp/subs1.awk" &&
19819
echo "cat >conf$$subs.awk <<_ACEOF" &&
19820
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19822
} >conf$$subs.sh ||
19823
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19824
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19826
for ac_last_try in false false false false false :; do
19827
. ./conf$$subs.sh ||
19828
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19830
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19831
if test $ac_delim_n = $ac_delim_num; then
19833
elif $ac_last_try; then
19834
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19836
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19839
rm -f conf$$subs.sh
19841
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19842
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19846
s/^/S["/; s/!.*/"]=/
19856
s/\(.\{148\}\)..*/\1/
19858
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19863
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19870
s/\(.\{148\}\)..*/\1/
19872
s/["\\]/\\&/g; s/^/"/; s/$/"/
19876
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19881
' <conf$$subs.awk | sed '
19886
' >>$CONFIG_STATUS || ac_write_fail=1
19887
rm -f conf$$subs.awk
19888
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19891
for (key in S) S_is_set[key] = 1
19897
nfields = split(line, field, "@")
19899
len = length(field[1])
19900
for (i = 2; i < nfields; i++) {
19902
keylen = length(key)
19903
if (S_is_set[key]) {
19905
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19906
len += length(value) + length(field[++i])
19917
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19919
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19922
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19923
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
19926
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19927
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19928
# trailing colons and then remove the whole line if VPATH becomes empty
19929
# (actually we leave an empty line to preserve line numbers).
19930
if test "x$srcdir" = x.; then
19931
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19932
s/:*\$(srcdir):*/:/
19933
s/:*\${srcdir}:*/:/
19935
s/^\([^=]*=[ ]*\):*/\1/
19941
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942
fi # test -n "$CONFIG_FILES"
19944
# Set up the scripts for CONFIG_HEADERS section.
19945
# No need to generate them if there are no CONFIG_HEADERS.
19946
# This happens for instance with `./config.status Makefile'.
19947
if test -n "$CONFIG_HEADERS"; then
19948
cat >"$tmp/defines.awk" <<\_ACAWK ||
19952
# Transform confdefs.h into an awk script `defines.awk', embedded as
19953
# here-document in config.status, that substitutes the proper values into
19954
# config.h.in to produce config.h.
19956
# Create a delimiter string that does not exist in confdefs.h, to ease
19957
# handling of long lines.
19959
for ac_last_try in false false :; do
19960
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19961
if test -z "$ac_t"; then
19963
elif $ac_last_try; then
19964
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19966
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19970
# For the awk script, D is an array of macro values keyed by name,
19971
# likewise P contains macro parameters if any. Preserve backslash
19972
# newline sequences.
19974
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19976
s/.\{148\}/&'"$ac_delim"'/g
19979
s/^[ ]*#[ ]*define[ ][ ]*/ /
19986
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19988
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19992
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19993
D["\1"]=" \3\\\\\\n"\\/p
19995
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20000
s/.\{148\}/&'"$ac_delim"'/g
20005
s/["\\]/\\&/g; s/^/"/; s/$/"/p
20008
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20010
' <confdefs.h | sed '
20011
s/'"$ac_delim"'/"\\\
20012
"/g' >>$CONFIG_STATUS || ac_write_fail=1
20014
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20015
for (key in D) D_is_set[key] = 1
20018
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20020
split(line, arg, " ")
20021
if (arg[1] == "#") {
20025
defundef = substr(arg[1], 2)
20028
split(mac1, mac2, "(") #)
20030
prefix = substr(line, 1, index(line, defundef) - 1)
20031
if (D_is_set[macro]) {
20032
# Preserve the white space surrounding the "#".
20033
print prefix "define", macro P[macro] D[macro]
20036
# Replace #undef with comments. This is necessary, for example,
20037
# in the case of _POSIX_SOURCE, which is predefined and required
20038
# on some systems where configure will not decide to define it.
20039
if (defundef == "undef") {
20040
print "/*", prefix defundef, macro, "*/"
20048
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20049
as_fn_error "could not setup config headers machinery" "$LINENO" 5
20050
fi # test -n "$CONFIG_HEADERS"
20053
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20058
:[FHLC]) ac_mode=$ac_tag; continue;;
20060
case $ac_mode$ac_tag in
20062
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20063
:[FH]-) ac_tag=-:-;;
20064
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20081
-) ac_f="$tmp/stdin";;
20082
*) # Look for the file first in the build tree, then in the source tree
20083
# (if the path is not absolute). The absolute path cannot be DOS-style,
20084
# because $ac_f cannot contain `:'.
20088
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20090
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20092
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20093
as_fn_append ac_file_inputs " '$ac_f'"
20096
# Let's still pretend it is `configure' which instantiates (i.e., don't
20097
# use $as_me), people would be surprised to read:
20098
# /* config.h. Generated by config.status. */
20099
configure_input='Generated from '`
20100
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20102
if test x"$ac_file" != x-; then
20103
configure_input="$ac_file. $configure_input"
20104
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20105
$as_echo "$as_me: creating $ac_file" >&6;}
20107
# Neutralize special characters interpreted by sed in replacement strings.
20108
case $configure_input in #(
20109
*\&* | *\|* | *\\* )
20110
ac_sed_conf_input=`$as_echo "$configure_input" |
20111
sed 's/[\\\\&|]/\\\\&/g'`;; #(
20112
*) ac_sed_conf_input=$configure_input;;
20116
*:-:* | *:-) cat >"$tmp/stdin" \
20117
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20122
ac_dir=`$as_dirname -- "$ac_file" ||
20123
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20124
X"$ac_file" : 'X\(//\)[^/]' \| \
20125
X"$ac_file" : 'X\(//\)$' \| \
20126
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20127
$as_echo X"$ac_file" |
20128
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20132
/^X\(\/\/\)[^/].*/{
20145
as_dir="$ac_dir"; as_fn_mkdir_p
20149
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20151
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20152
# A ".." for each directory in $ac_dir_suffix.
20153
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20154
case $ac_top_builddir_sub in
20155
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20156
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20159
ac_abs_top_builddir=$ac_pwd
20160
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20161
# for backward compatibility:
20162
ac_top_builddir=$ac_top_build_prefix
20165
.) # We are building in place.
20167
ac_top_srcdir=$ac_top_builddir_sub
20168
ac_abs_top_srcdir=$ac_pwd ;;
20169
[\\/]* | ?:[\\/]* ) # Absolute name.
20170
ac_srcdir=$srcdir$ac_dir_suffix;
20171
ac_top_srcdir=$srcdir
20172
ac_abs_top_srcdir=$srcdir ;;
20173
*) # Relative name.
20174
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20175
ac_top_srcdir=$ac_top_build_prefix$srcdir
20176
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20178
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20188
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20189
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20191
ac_MKDIR_P=$MKDIR_P
20193
[\\/$]* | ?:[\\/]* ) ;;
20194
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20198
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199
# If the template does not know about datarootdir, expand it.
20200
# FIXME: This hack should be removed a few years after 2.60.
20201
ac_datarootdir_hack=; ac_datarootdir_seen=
20212
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20213
*datarootdir*) ac_datarootdir_seen=yes;;
20214
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20215
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20216
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20218
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20219
ac_datarootdir_hack='
20220
s&@datadir@&$datadir&g
20221
s&@docdir@&$docdir&g
20222
s&@infodir@&$infodir&g
20223
s&@localedir@&$localedir&g
20224
s&@mandir@&$mandir&g
20225
s&\\\${datarootdir}&$datarootdir&g' ;;
20229
# Neutralize VPATH when `$srcdir' = `.'.
20230
# Shell code in configure.ac might set extrasub.
20231
# FIXME: do we really want to maintain this feature?
20232
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233
ac_sed_extra="$ac_vpsub
20236
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20238
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20239
s|@configure_input@|$ac_sed_conf_input|;t t
20240
s&@top_builddir@&$ac_top_builddir_sub&;t t
20241
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20242
s&@srcdir@&$ac_srcdir&;t t
20243
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20244
s&@top_srcdir@&$ac_top_srcdir&;t t
20245
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20246
s&@builddir@&$ac_builddir&;t t
20247
s&@abs_builddir@&$ac_abs_builddir&;t t
20248
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20249
s&@INSTALL@&$ac_INSTALL&;t t
20250
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20251
$ac_datarootdir_hack
20253
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20254
|| as_fn_error "could not create $ac_file" "$LINENO" 5
20256
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20257
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20258
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20259
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20260
which seems to be undefined. Please make sure it is defined." >&5
20261
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20262
which seems to be undefined. Please make sure it is defined." >&2;}
20266
-) cat "$tmp/out" && rm -f "$tmp/out";;
20267
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20269
|| as_fn_error "could not create $ac_file" "$LINENO" 5
20275
if test x"$ac_file" != x-; then
20277
$as_echo "/* $configure_input */" \
20278
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20279
} >"$tmp/config.h" \
20280
|| as_fn_error "could not create $ac_file" "$LINENO" 5
20281
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20282
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20283
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20286
mv "$tmp/config.h" "$ac_file" \
20287
|| as_fn_error "could not create $ac_file" "$LINENO" 5
20290
$as_echo "/* $configure_input */" \
20291
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20292
|| as_fn_error "could not create -" "$LINENO" 5
20294
# Compute "$ac_file"'s index in $config_headers.
20297
for _am_header in $config_headers :; do
20298
case $_am_header in
20299
$_am_arg | $_am_arg:* )
20302
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
20305
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20306
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20307
X"$_am_arg" : 'X\(//\)[^/]' \| \
20308
X"$_am_arg" : 'X\(//\)$' \| \
20309
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20310
$as_echo X"$_am_arg" |
20311
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20315
/^X\(\/\/\)[^/].*/{
20327
s/.*/./; q'`/stamp-h$_am_stamp_count
20330
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20331
$as_echo "$as_me: executing $ac_file commands" >&6;}
20336
case $ac_file$ac_mode in
20337
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20338
# Autoconf 2.62 quotes --file arguments for eval, but not when files
20339
# are listed without --file. Let's play safe and only enable the eval
20340
# if we detect the quoting.
20341
case $CONFIG_FILES in
20342
*\'*) eval set x "$CONFIG_FILES" ;;
20343
*) set x $CONFIG_FILES ;;
20348
# Strip MF so we end up with the name of the file.
20349
mf=`echo "$mf" | sed -e 's/:.*$//'`
20350
# Check whether this is an Automake generated Makefile or not.
20351
# We used to match only the files named `Makefile.in', but
20352
# some people rename them; so instead we look at the file content.
20353
# Grep'ing the first line is not enough: some people post-process
20354
# each Makefile.in and add a new line on top of each file to say so.
20355
# Grep'ing the whole file is not good either: AIX grep has a line
20356
# limit of 2048, but all sed's we know have understand at least 4000.
20357
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20358
dirpart=`$as_dirname -- "$mf" ||
20359
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20360
X"$mf" : 'X\(//\)[^/]' \| \
20361
X"$mf" : 'X\(//\)$' \| \
20362
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20364
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20368
/^X\(\/\/\)[^/].*/{
20384
# Extract the definition of DEPDIR, am__include, and am__quote
20385
# from the Makefile without running `make'.
20386
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20387
test -z "$DEPDIR" && continue
20388
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20389
test -z "am__include" && continue
20390
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20391
# When using ansi2knr, U may be empty or an underscore; expand it
20392
U=`sed -n 's/^U = //p' < "$mf"`
20393
# Find all dependency output files, they are included files with
20394
# $(DEPDIR) in their names. We invoke sed twice because it is the
20395
# simplest approach to changing $(DEPDIR) to its actual value in the
20397
for file in `sed -n "
20398
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20399
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20400
# Make sure the directory exists.
20401
test -f "$dirpart/$file" && continue
20402
fdir=`$as_dirname -- "$file" ||
20403
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20404
X"$file" : 'X\(//\)[^/]' \| \
20405
X"$file" : 'X\(//\)$' \| \
20406
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20407
$as_echo X"$file" |
20408
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20412
/^X\(\/\/\)[^/].*/{
20425
as_dir=$dirpart/$fdir; as_fn_mkdir_p
20426
# echo "creating $dirpart/$file"
20427
echo '# dummy' > "$dirpart/$file"
20434
# See if we are running on zsh, and set the options which allow our
20435
# commands through without removal of \ escapes.
20436
if test -n "${ZSH_VERSION+set}" ; then
20437
setopt NO_GLOB_SUBST
20440
cfgfile="${ofile}T"
20441
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20444
cat <<_LT_EOF >> "$cfgfile"
20447
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20448
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20449
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20450
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20452
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20453
# 2006, 2007, 2008 Free Software Foundation, Inc.
20454
# Written by Gordon Matzigkeit, 1996
20456
# This file is part of GNU Libtool.
20458
# GNU Libtool is free software; you can redistribute it and/or
20459
# modify it under the terms of the GNU General Public License as
20460
# published by the Free Software Foundation; either version 2 of
20461
# the License, or (at your option) any later version.
20463
# As a special exception to the GNU General Public License,
20464
# if you distribute this file as part of a program or library that
20465
# is built using GNU Libtool, you may include this file under the
20466
# same distribution terms that you use for the rest of that program.
20468
# GNU Libtool is distributed in the hope that it will be useful,
20469
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20470
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20471
# GNU General Public License for more details.
20473
# You should have received a copy of the GNU General Public License
20474
# along with GNU Libtool; see the file COPYING. If not, a copy
20475
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20476
# obtained by writing to the Free Software Foundation, Inc.,
20477
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20480
# The names of the tagged configurations supported by this script.
20481
available_tags="CXX "
20483
# ### BEGIN LIBTOOL CONFIG
20485
# Which release of libtool.m4 was used?
20486
macro_version=$macro_version
20487
macro_revision=$macro_revision
20489
# Whether or not to build shared libraries.
20490
build_libtool_libs=$enable_shared
20492
# Whether or not to build static libraries.
20493
build_old_libs=$enable_static
20495
# What type of objects to build.
20498
# Whether or not to optimize for fast installation.
20499
fast_install=$enable_fast_install
20502
host_alias=$host_alias
20506
# The build system.
20507
build_alias=$build_alias
20511
# A sed program that does not truncate output.
20514
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20515
Xsed="\$SED -e 1s/^X//"
20517
# A grep program that handles long lines.
20523
# A literal string matcher.
20526
# A BSD- or MS-compatible name lister.
20529
# Whether we need soft or hard links.
20532
# What is the maximum length of a command?
20533
max_cmd_len=$max_cmd_len
20535
# Object file suffix (normally "o").
20538
# Executable file suffix (normally "").
20541
# whether the shell understands "unset".
20544
# turn spaces into newlines.
20547
# turn newlines into spaces.
20550
# How to create reloadable object files.
20551
reload_flag=$lt_reload_flag
20552
reload_cmds=$lt_reload_cmds
20554
# An object symbol dumper.
20555
OBJDUMP=$lt_OBJDUMP
20557
# Method to check whether dependent libraries are shared objects.
20558
deplibs_check_method=$lt_deplibs_check_method
20560
# Command to use when deplibs_check_method == "file_magic".
20561
file_magic_cmd=$lt_file_magic_cmd
20565
AR_FLAGS=$lt_AR_FLAGS
20567
# A symbol stripping program.
20570
# Commands used to install an old-style archive.
20572
old_postinstall_cmds=$lt_old_postinstall_cmds
20573
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20578
# LTCC compiler flags.
20579
LTCFLAGS=$lt_CFLAGS
20581
# Take the output of nm and produce a listing of raw symbols and C names.
20582
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20584
# Transform the output of nm in a proper C declaration.
20585
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20587
# Transform the output of nm in a C name address pair.
20588
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20590
# Transform the output of nm in a C name address pair when lib prefix is needed.
20591
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20593
# The name of the directory that contains temporary libtool files.
20596
# Shell to use when invoking shell scripts.
20599
# An echo program that does not interpret backslashes.
20602
# Used to examine libraries when file_magic_cmd begins with "file".
20603
MAGIC_CMD=$MAGIC_CMD
20605
# Must we lock files when doing compilation?
20606
need_locks=$lt_need_locks
20608
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20609
DSYMUTIL=$lt_DSYMUTIL
20611
# Tool to change global to local symbols on Mac OS X.
20614
# Tool to manipulate fat objects and archives on Mac OS X.
20617
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20620
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20621
OTOOL64=$lt_OTOOL64
20623
# Old archive suffix (normally "a").
20626
# Shared library suffix (normally ".so").
20627
shrext_cmds=$lt_shrext_cmds
20629
# The commands to extract the exported symbol list from a shared archive.
20630
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20632
# Variables whose values should be saved in libtool wrapper scripts and
20633
# restored at link time.
20634
variables_saved_for_relink=$lt_variables_saved_for_relink
20636
# Do we need the "lib" prefix for modules?
20637
need_lib_prefix=$need_lib_prefix
20639
# Do we need a version for libraries?
20640
need_version=$need_version
20642
# Library versioning type.
20643
version_type=$version_type
20645
# Shared library runtime path variable.
20646
runpath_var=$runpath_var
20648
# Shared library path variable.
20649
shlibpath_var=$shlibpath_var
20651
# Is shlibpath searched before the hard-coded library search path?
20652
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20654
# Format of library name prefix.
20655
libname_spec=$lt_libname_spec
20657
# List of archive names. First name is the real one, the rest are links.
20658
# The last name is the one that the linker finds with -lNAME
20659
library_names_spec=$lt_library_names_spec
20661
# The coded name of the library, if different from the real name.
20662
soname_spec=$lt_soname_spec
20664
# Command to use after installation of a shared archive.
20665
postinstall_cmds=$lt_postinstall_cmds
20667
# Command to use after uninstallation of a shared archive.
20668
postuninstall_cmds=$lt_postuninstall_cmds
20670
# Commands used to finish a libtool library installation in a directory.
20671
finish_cmds=$lt_finish_cmds
20673
# As "finish_cmds", except a single script fragment to be evaled but
20675
finish_eval=$lt_finish_eval
20677
# Whether we should hardcode library paths into libraries.
20678
hardcode_into_libs=$hardcode_into_libs
20680
# Compile-time system search path for libraries.
20681
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20683
# Run-time system search path for libraries.
20684
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20686
# Whether dlopen is supported.
20687
dlopen_support=$enable_dlopen
20689
# Whether dlopen of programs is supported.
20690
dlopen_self=$enable_dlopen_self
20692
# Whether dlopen of statically linked programs is supported.
20693
dlopen_self_static=$enable_dlopen_self_static
20695
# Commands to strip libraries.
20696
old_striplib=$lt_old_striplib
20697
striplib=$lt_striplib
20700
# The linker used to build libraries.
20703
# Commands used to build an old-style archive.
20704
old_archive_cmds=$lt_old_archive_cmds
20706
# A language specific compiler.
20709
# Is the compiler the GNU compiler?
20712
# Compiler flag to turn off builtin functions.
20713
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20715
# How to pass a linker flag through the compiler.
20716
wl=$lt_lt_prog_compiler_wl
20718
# Additional compiler flags for building library objects.
20719
pic_flag=$lt_lt_prog_compiler_pic
20721
# Compiler flag to prevent dynamic linking.
20722
link_static_flag=$lt_lt_prog_compiler_static
20724
# Does compiler simultaneously support -c and -o options?
20725
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20727
# Whether or not to add -lc for building shared libraries.
20728
build_libtool_need_lc=$archive_cmds_need_lc
20730
# Whether or not to disallow shared libs when runtime libs are static.
20731
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20733
# Compiler flag to allow reflexive dlopens.
20734
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20736
# Compiler flag to generate shared objects directly from archives.
20737
whole_archive_flag_spec=$lt_whole_archive_flag_spec
20739
# Whether the compiler copes with passing no objects directly.
20740
compiler_needs_object=$lt_compiler_needs_object
20742
# Create an old-style archive from a shared archive.
20743
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20745
# Create a temporary old-style archive to link instead of a shared archive.
20746
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20748
# Commands used to build a shared archive.
20749
archive_cmds=$lt_archive_cmds
20750
archive_expsym_cmds=$lt_archive_expsym_cmds
20752
# Commands used to build a loadable module if different from building
20753
# a shared archive.
20754
module_cmds=$lt_module_cmds
20755
module_expsym_cmds=$lt_module_expsym_cmds
20757
# Whether we are building with GNU ld or not.
20758
with_gnu_ld=$lt_with_gnu_ld
20760
# Flag that allows shared libraries with undefined symbols to be built.
20761
allow_undefined_flag=$lt_allow_undefined_flag
20763
# Flag that enforces no undefined symbols.
20764
no_undefined_flag=$lt_no_undefined_flag
20766
# Flag to hardcode \$libdir into a binary during linking.
20767
# This must work even if \$libdir does not exist
20768
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20770
# If ld is used when linking, flag to hardcode \$libdir into a binary
20771
# during linking. This must work even if \$libdir does not exist.
20772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20774
# Whether we need a single "-rpath" flag with a separated argument.
20775
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20777
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20778
# DIR into the resulting binary.
20779
hardcode_direct=$hardcode_direct
20781
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20782
# DIR into the resulting binary and the resulting library dependency is
20783
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20784
# library is relocated.
20785
hardcode_direct_absolute=$hardcode_direct_absolute
20787
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20788
# into the resulting binary.
20789
hardcode_minus_L=$hardcode_minus_L
20791
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20792
# into the resulting binary.
20793
hardcode_shlibpath_var=$hardcode_shlibpath_var
20795
# Set to "yes" if building a shared library automatically hardcodes DIR
20796
# into the library and all subsequent libraries and executables linked
20798
hardcode_automatic=$hardcode_automatic
20800
# Set to yes if linker adds runtime paths of dependent libraries
20801
# to runtime path list.
20802
inherit_rpath=$inherit_rpath
20804
# Whether libtool must link a program against all its dependency libraries.
20805
link_all_deplibs=$link_all_deplibs
20807
# Fix the shell variable \$srcfile for the compiler.
20808
fix_srcfile_path=$lt_fix_srcfile_path
20810
# Set to "yes" if exported symbols are required.
20811
always_export_symbols=$always_export_symbols
20813
# The commands to list exported symbols.
20814
export_symbols_cmds=$lt_export_symbols_cmds
20816
# Symbols that should not be listed in the preloaded symbols.
20817
exclude_expsyms=$lt_exclude_expsyms
20819
# Symbols that must always be exported.
20820
include_expsyms=$lt_include_expsyms
20822
# Commands necessary for linking programs (against libraries) with templates.
20823
prelink_cmds=$lt_prelink_cmds
20825
# Specify filename containing input files.
20826
file_list_spec=$lt_file_list_spec
20828
# How to hardcode a shared library path into an executable.
20829
hardcode_action=$hardcode_action
20831
# The directories searched by this compiler when creating a shared library.
20832
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20834
# Dependencies to place before and after the objects being linked to
20835
# create a shared library.
20836
predep_objects=$lt_predep_objects
20837
postdep_objects=$lt_postdep_objects
20838
predeps=$lt_predeps
20839
postdeps=$lt_postdeps
20841
# The library search path used internally by the compiler when linking
20842
# a shared library.
20843
compiler_lib_search_path=$lt_compiler_lib_search_path
20845
# ### END LIBTOOL CONFIG
20851
cat <<\_LT_EOF >> "$cfgfile"
20852
# AIX sometimes has problems with the GCC collect2 program. For some
20853
# reason, if we set the COLLECT_NAMES environment variable, the problems
20854
# vanish in a puff of smoke.
20855
if test "X${COLLECT_NAMES+set}" != Xset; then
20857
export COLLECT_NAMES
20864
ltmain="$ac_aux_dir/ltmain.sh"
20867
# We use sed instead of cat because bash on DJGPP gets confused if
20868
# if finds mixed CR/LF and LF-only lines. Since sed operates in
20869
# text mode, it properly converts lines to CR/LF. This bash problem
20870
# is reportedly fixed, but why not run on old versions too?
20871
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20872
|| (rm -f "$cfgfile"; exit 1)
20876
cat << \_LT_EOF >> "$cfgfile"
20878
# func_dirname file append nondir_replacement
20879
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20880
# otherwise set result to NONDIR_REPLACEMENT.
20884
*/*) func_dirname_result="${1%/*}${2}" ;;
20885
* ) func_dirname_result="${3}" ;;
20889
# func_basename file
20892
func_basename_result="${1##*/}"
20895
# func_dirname_and_basename file append nondir_replacement
20896
# perform func_basename and func_dirname in a single function
20898
# dirname: Compute the dirname of FILE. If nonempty,
20899
# add APPEND to the result, otherwise set result
20900
# to NONDIR_REPLACEMENT.
20901
# value returned in "$func_dirname_result"
20902
# basename: Compute filename of FILE.
20903
# value retuned in "$func_basename_result"
20904
# Implementation must be kept synchronized with func_dirname
20905
# and func_basename. For efficiency, we do not delegate to
20906
# those functions but instead duplicate the functionality here.
20907
func_dirname_and_basename ()
20910
*/*) func_dirname_result="${1%/*}${2}" ;;
20911
* ) func_dirname_result="${3}" ;;
20913
func_basename_result="${1##*/}"
20916
# func_stripname prefix suffix name
20917
# strip PREFIX and SUFFIX off of NAME.
20918
# PREFIX and SUFFIX must not contain globbing or regex special
20919
# characters, hashes, percent signs, but SUFFIX may contain a leading
20920
# dot (in which case that matches only a dot).
20923
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20924
# positional parameters, so assign one to ordinary parameter first.
20925
func_stripname_result=${3}
20926
func_stripname_result=${func_stripname_result#"${1}"}
20927
func_stripname_result=${func_stripname_result%"${2}"}
20933
func_opt_split_opt=${1%%=*}
20934
func_opt_split_arg=${1#*=}
20941
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20942
*) func_lo2o_result=${1} ;;
20946
# func_xform libobj-or-source
20949
func_xform_result=${1%.*}.lo
20952
# func_arith arithmetic-term...
20955
func_arith_result=$(( $* ))
20959
# STRING may not start with a hyphen.
20962
func_len_result=${#1}
20967
*) # Bourne compatible functions.
20968
cat << \_LT_EOF >> "$cfgfile"
20970
# func_dirname file append nondir_replacement
20971
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20972
# otherwise set result to NONDIR_REPLACEMENT.
20975
# Extract subdirectory from the argument.
20976
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20977
if test "X$func_dirname_result" = "X${1}"; then
20978
func_dirname_result="${3}"
20980
func_dirname_result="$func_dirname_result${2}"
20984
# func_basename file
20987
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20991
# func_stripname prefix suffix name
20992
# strip PREFIX and SUFFIX off of NAME.
20993
# PREFIX and SUFFIX must not contain globbing or regex special
20994
# characters, hashes, percent signs, but SUFFIX may contain a leading
20995
# dot (in which case that matches only a dot).
20996
# func_strip_suffix prefix name
21000
.*) func_stripname_result=`$ECHO "X${3}" \
21001
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21002
*) func_stripname_result=`$ECHO "X${3}" \
21003
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21008
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21009
my_sed_long_arg='1s/^-[^=]*=//'
21014
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21015
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21021
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21024
# func_xform libobj-or-source
21027
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21030
# func_arith arithmetic-term...
21033
func_arith_result=`expr "$@"`
21037
# STRING may not start with a hyphen.
21040
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21046
case $lt_shell_append in
21048
cat << \_LT_EOF >> "$cfgfile"
21050
# func_append var value
21051
# Append VALUE to the end of shell variable VAR.
21059
cat << \_LT_EOF >> "$cfgfile"
21061
# func_append var value
21062
# Append VALUE to the end of shell variable VAR.
21073
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21074
|| (rm -f "$cfgfile"; exit 1)
21076
mv -f "$cfgfile" "$ofile" ||
21077
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21081
cat <<_LT_EOF >> "$ofile"
21083
# ### BEGIN LIBTOOL TAG CONFIG: CXX
21085
# The linker used to build libraries.
21088
# Commands used to build an old-style archive.
21089
old_archive_cmds=$lt_old_archive_cmds_CXX
21091
# A language specific compiler.
21092
CC=$lt_compiler_CXX
21094
# Is the compiler the GNU compiler?
21097
# Compiler flag to turn off builtin functions.
21098
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21100
# How to pass a linker flag through the compiler.
21101
wl=$lt_lt_prog_compiler_wl_CXX
21103
# Additional compiler flags for building library objects.
21104
pic_flag=$lt_lt_prog_compiler_pic_CXX
21106
# Compiler flag to prevent dynamic linking.
21107
link_static_flag=$lt_lt_prog_compiler_static_CXX
21109
# Does compiler simultaneously support -c and -o options?
21110
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21112
# Whether or not to add -lc for building shared libraries.
21113
build_libtool_need_lc=$archive_cmds_need_lc_CXX
21115
# Whether or not to disallow shared libs when runtime libs are static.
21116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21118
# Compiler flag to allow reflexive dlopens.
21119
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21121
# Compiler flag to generate shared objects directly from archives.
21122
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21124
# Whether the compiler copes with passing no objects directly.
21125
compiler_needs_object=$lt_compiler_needs_object_CXX
21127
# Create an old-style archive from a shared archive.
21128
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21130
# Create a temporary old-style archive to link instead of a shared archive.
21131
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21133
# Commands used to build a shared archive.
21134
archive_cmds=$lt_archive_cmds_CXX
21135
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21137
# Commands used to build a loadable module if different from building
21138
# a shared archive.
21139
module_cmds=$lt_module_cmds_CXX
21140
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21142
# Whether we are building with GNU ld or not.
21143
with_gnu_ld=$lt_with_gnu_ld_CXX
21145
# Flag that allows shared libraries with undefined symbols to be built.
21146
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21148
# Flag that enforces no undefined symbols.
21149
no_undefined_flag=$lt_no_undefined_flag_CXX
21151
# Flag to hardcode \$libdir into a binary during linking.
21152
# This must work even if \$libdir does not exist
21153
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21155
# If ld is used when linking, flag to hardcode \$libdir into a binary
21156
# during linking. This must work even if \$libdir does not exist.
21157
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21159
# Whether we need a single "-rpath" flag with a separated argument.
21160
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21162
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21163
# DIR into the resulting binary.
21164
hardcode_direct=$hardcode_direct_CXX
21166
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21167
# DIR into the resulting binary and the resulting library dependency is
21168
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21169
# library is relocated.
21170
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21172
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21173
# into the resulting binary.
21174
hardcode_minus_L=$hardcode_minus_L_CXX
21176
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21177
# into the resulting binary.
21178
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21180
# Set to "yes" if building a shared library automatically hardcodes DIR
21181
# into the library and all subsequent libraries and executables linked
21183
hardcode_automatic=$hardcode_automatic_CXX
21185
# Set to yes if linker adds runtime paths of dependent libraries
21186
# to runtime path list.
21187
inherit_rpath=$inherit_rpath_CXX
21189
# Whether libtool must link a program against all its dependency libraries.
21190
link_all_deplibs=$link_all_deplibs_CXX
21192
# Fix the shell variable \$srcfile for the compiler.
21193
fix_srcfile_path=$lt_fix_srcfile_path_CXX
21195
# Set to "yes" if exported symbols are required.
21196
always_export_symbols=$always_export_symbols_CXX
21198
# The commands to list exported symbols.
21199
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21201
# Symbols that should not be listed in the preloaded symbols.
21202
exclude_expsyms=$lt_exclude_expsyms_CXX
21204
# Symbols that must always be exported.
21205
include_expsyms=$lt_include_expsyms_CXX
21207
# Commands necessary for linking programs (against libraries) with templates.
21208
prelink_cmds=$lt_prelink_cmds_CXX
21210
# Specify filename containing input files.
21211
file_list_spec=$lt_file_list_spec_CXX
21213
# How to hardcode a shared library path into an executable.
21214
hardcode_action=$hardcode_action_CXX
21216
# The directories searched by this compiler when creating a shared library.
21217
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21219
# Dependencies to place before and after the objects being linked to
21220
# create a shared library.
21221
predep_objects=$lt_predep_objects_CXX
21222
postdep_objects=$lt_postdep_objects_CXX
21223
predeps=$lt_predeps_CXX
21224
postdeps=$lt_postdeps_CXX
21226
# The library search path used internally by the compiler when linking
21227
# a shared library.
21228
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21230
# ### END LIBTOOL TAG CONFIG: CXX
21241
ac_clean_files=$ac_clean_files_save
21243
test $ac_write_fail = 0 ||
21244
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21247
# configure is writing to config.log, and then calls config.status.
21248
# config.status does its own redirection, appending to config.log.
21249
# Unfortunately, on DOS this fails, as config.log is still kept open
21250
# by configure, so config.status won't be able to write to it; its
21251
# output is simply discarded. So we exec the FD to /dev/null,
21252
# effectively closing config.log, so it can be properly (re)opened and
21253
# appended to by config.status. When coming back to configure, we
21254
# need to make the FD available again.
21255
if test "$no_create" != yes; then
21257
ac_config_status_args=
21258
test "$silent" = yes &&
21259
ac_config_status_args="$ac_config_status_args --quiet"
21261
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21263
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21264
# would make configure fail if this is the last instruction.
21265
$ac_cs_success || as_fn_exit $?
21267
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21269
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21273
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build quvi/libquvi:
21275
quvi version: ${VERSION}
21276
host setup: ${host}
21277
install prefix: ${prefix}
21282
build libquvi: shared=${enable_shared} static=${enable_static}
21283
build quvi: ${enable_quvi}
21284
build examples: ${enable_examples}
21285
adult support: ${enable_smut}
21286
broken support: ${enable_broken}
21287
install manual: ${with_man}
21288
install docs: ${with_doc}
21291
gengetopt: ${GENGETOPT}
21292
doxygen: ${DOXYGEN}
21294
Pod::Checker: ${have_pod_checker}
21295
pod2man: ${POD2MAN}
21296
pod2html: ${POD2HTML}
21298
$as_echo "$as_me: Configured to build quvi/libquvi:
21300
quvi version: ${VERSION}
21301
host setup: ${host}
21302
install prefix: ${prefix}
21307
build libquvi: shared=${enable_shared} static=${enable_static}
21308
build quvi: ${enable_quvi}
21309
build examples: ${enable_examples}
21310
adult support: ${enable_smut}
21311
broken support: ${enable_broken}
21312
install manual: ${with_man}
21313
install docs: ${with_doc}
21316
gengetopt: ${GENGETOPT}
21317
doxygen: ${DOXYGEN}
21319
Pod::Checker: ${have_pod_checker}
21320
pod2man: ${POD2MAN}
21321
pod2html: ${POD2HTML}