2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="libspeex/speex.h"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPEEX_LT_CURRENT SPEEX_LT_REVISION SPEEX_LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL OGG_LIBS OGG_INCLUDES OGG_LDFLAGS src LIBOBJS LTLIBOBJS'
469
# Initialize some variables set by options.
471
ac_init_version=false
472
# The variables have the same names as the options, with
473
# dashes changed to underlines.
481
program_transform_name=s,x,x,
489
# Installation directory options.
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
# and all the variables that are supposed to be based on exec_prefix
492
# by default will actually change.
493
# Use braces instead of parens because sh, perl, etc. also accept them.
494
bindir='${exec_prefix}/bin'
495
sbindir='${exec_prefix}/sbin'
496
libexecdir='${exec_prefix}/libexec'
497
datadir='${prefix}/share'
498
sysconfdir='${prefix}/etc'
499
sharedstatedir='${prefix}/com'
500
localstatedir='${prefix}/var'
501
libdir='${exec_prefix}/lib'
502
includedir='${prefix}/include'
503
oldincludedir='/usr/include'
504
infodir='${prefix}/info'
505
mandir='${prefix}/man'
510
# If the previous option needs an argument, assign it.
511
if test -n "$ac_prev"; then
512
eval "$ac_prev=\$ac_option"
517
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
# Accept the important Cygnus configure options, so we can diagnose typos.
523
-bindir | --bindir | --bindi | --bind | --bin | --bi)
525
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
-build | --build | --buil | --bui | --bu)
529
ac_prev=build_alias ;;
530
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
build_alias=$ac_optarg ;;
533
-cache-file | --cache-file | --cache-fil | --cache-fi \
534
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
ac_prev=cache_file ;;
536
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
cache_file=$ac_optarg ;;
541
cache_file=config.cache ;;
543
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
datadir=$ac_optarg ;;
549
-disable-* | --disable-*)
550
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
{ (exit 1); exit 1; }; }
555
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
eval "enable_$ac_feature=no" ;;
558
-enable-* | --enable-*)
559
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
# Reject names that are not valid shell variable names.
561
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
{ (exit 1); exit 1; }; }
564
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
eval "enable_$ac_feature='$ac_optarg'" ;;
571
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
| --exec | --exe | --ex)
574
ac_prev=exec_prefix ;;
575
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
| --exec=* | --exe=* | --ex=*)
578
exec_prefix=$ac_optarg ;;
580
-gas | --gas | --ga | --g)
581
# Obsolete; use --with-gas.
584
-help | --help | --hel | --he | -h)
586
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
ac_init_help=recursive ;;
588
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
ac_init_help=short ;;
591
-host | --host | --hos | --ho)
592
ac_prev=host_alias ;;
593
-host=* | --host=* | --hos=* | --ho=*)
594
host_alias=$ac_optarg ;;
596
-includedir | --includedir | --includedi | --included | --include \
597
| --includ | --inclu | --incl | --inc)
598
ac_prev=includedir ;;
599
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
| --includ=* | --inclu=* | --incl=* | --inc=*)
601
includedir=$ac_optarg ;;
603
-infodir | --infodir | --infodi | --infod | --info | --inf)
605
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
infodir=$ac_optarg ;;
608
-libdir | --libdir | --libdi | --libd)
610
-libdir=* | --libdir=* | --libdi=* | --libd=*)
613
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
| --libexe | --libex | --libe)
615
ac_prev=libexecdir ;;
616
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
| --libexe=* | --libex=* | --libe=*)
618
libexecdir=$ac_optarg ;;
620
-localstatedir | --localstatedir | --localstatedi | --localstated \
621
| --localstate | --localstat | --localsta | --localst \
622
| --locals | --local | --loca | --loc | --lo)
623
ac_prev=localstatedir ;;
624
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
localstatedir=$ac_optarg ;;
629
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635
# Obsolete; use --without-fp.
638
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
| --no-cr | --no-c | -n)
642
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
| --oldin | --oldi | --old | --ol | --o)
649
ac_prev=oldincludedir ;;
650
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
oldincludedir=$ac_optarg ;;
655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
-program-prefix | --program-prefix | --program-prefi | --program-pref \
661
| --program-pre | --program-pr | --program-p)
662
ac_prev=program_prefix ;;
663
-program-prefix=* | --program-prefix=* | --program-prefi=* \
664
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
program_prefix=$ac_optarg ;;
667
-program-suffix | --program-suffix | --program-suffi | --program-suff \
668
| --program-suf | --program-su | --program-s)
669
ac_prev=program_suffix ;;
670
-program-suffix=* | --program-suffix=* | --program-suffi=* \
671
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
program_suffix=$ac_optarg ;;
674
-program-transform-name | --program-transform-name \
675
| --program-transform-nam | --program-transform-na \
676
| --program-transform-n | --program-transform- \
677
| --program-transform | --program-transfor \
678
| --program-transfo | --program-transf \
679
| --program-trans | --program-tran \
680
| --progr-tra | --program-tr | --program-t)
681
ac_prev=program_transform_name ;;
682
-program-transform-name=* | --program-transform-name=* \
683
| --program-transform-nam=* | --program-transform-na=* \
684
| --program-transform-n=* | --program-transform-=* \
685
| --program-transform=* | --program-transfor=* \
686
| --program-transfo=* | --program-transf=* \
687
| --program-trans=* | --program-tran=* \
688
| --progr-tra=* | --program-tr=* | --program-t=*)
689
program_transform_name=$ac_optarg ;;
691
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
| -silent | --silent | --silen | --sile | --sil)
695
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
sbindir=$ac_optarg ;;
701
-sharedstatedir | --sharedstatedir | --sharedstatedi \
702
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
| --sharedst | --shareds | --shared | --share | --shar \
705
ac_prev=sharedstatedir ;;
706
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
sharedstatedir=$ac_optarg ;;
712
-site | --site | --sit)
714
-site=* | --site=* | --sit=*)
717
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
| --syscon | --sysco | --sysc | --sys | --sy)
724
ac_prev=sysconfdir ;;
725
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
sysconfdir=$ac_optarg ;;
729
-target | --target | --targe | --targ | --tar | --ta | --t)
730
ac_prev=target_alias ;;
731
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
target_alias=$ac_optarg ;;
734
-v | -verbose | --verbose | --verbos | --verbo | --verb)
737
-version | --version | --versio | --versi | --vers | -V)
741
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
# Reject names that are not valid shell variable names.
743
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
{ echo "$as_me: error: invalid package name: $ac_package" >&2
745
{ (exit 1); exit 1; }; }
746
ac_package=`echo $ac_package| sed 's/-/_/g'`
748
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
eval "with_$ac_package='$ac_optarg'" ;;
753
-without-* | --without-*)
754
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
# Reject names that are not valid shell variable names.
756
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
{ echo "$as_me: error: invalid package name: $ac_package" >&2
758
{ (exit 1); exit 1; }; }
759
ac_package=`echo $ac_package | sed 's/-/_/g'`
760
eval "with_$ac_package=no" ;;
763
# Obsolete; use --with-x.
766
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
| --x-incl | --x-inc | --x-in | --x-i)
768
ac_prev=x_includes ;;
769
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
x_includes=$ac_optarg ;;
773
-x-libraries | --x-libraries | --x-librarie | --x-librari \
774
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
ac_prev=x_libraries ;;
776
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
x_libraries=$ac_optarg ;;
780
-*) { echo "$as_me: error: unrecognized option: $ac_option
781
Try \`$0 --help' for more information." >&2
782
{ (exit 1); exit 1; }; }
786
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
# Reject names that are not valid shell variable names.
788
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
{ (exit 1); exit 1; }; }
791
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
eval "$ac_envvar='$ac_optarg'"
796
# FIXME: should be removed in autoconf 3.0.
797
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806
if test -n "$ac_prev"; then
807
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
{ echo "$as_me: error: missing argument to $ac_option" >&2
809
{ (exit 1); exit 1; }; }
812
# Be sure to have absolute paths.
813
for ac_var in exec_prefix prefix
815
eval ac_val=$`echo $ac_var`
817
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
{ (exit 1); exit 1; }; };;
823
# Be sure to have absolute paths.
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
localstatedir libdir includedir oldincludedir infodir mandir
827
eval ac_val=$`echo $ac_var`
829
[\\/$]* | ?:[\\/]* ) ;;
830
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
{ (exit 1); exit 1; }; };;
835
# There might be people who depend on the old broken behavior: `$host'
836
# used to hold the argument of --host etc.
837
# FIXME: To remove some day.
842
# FIXME: To remove some day.
843
if test "x$host_alias" != x; then
844
if test "x$build_alias" = x; then
845
cross_compiling=maybe
846
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
If a cross compiler is detected then cross compile mode will be used." >&2
848
elif test "x$build_alias" != "x$host_alias"; then
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
test "$silent" = yes && exec 6>/dev/null
859
# Find the source files, if location was not specified.
860
if test -z "$srcdir"; then
861
ac_srcdir_defaulted=yes
862
# Try the directory containing this script, then its parent.
863
ac_confdir=`(dirname "$0") 2>/dev/null ||
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
X"$0" : 'X\(//\)[^/]' \| \
866
X"$0" : 'X\(//\)$' \| \
867
X"$0" : 'X\(/\)' \| \
868
. : '\(.\)' 2>/dev/null ||
870
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
/^X\(\/\/\)$/{ s//\1/; q; }
873
/^X\(\/\).*/{ s//\1/; q; }
876
if test ! -r $srcdir/$ac_unique_file; then
880
ac_srcdir_defaulted=no
882
if test ! -r $srcdir/$ac_unique_file; then
883
if test "$ac_srcdir_defaulted" = yes; then
884
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
{ (exit 1); exit 1; }; }
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
{ (exit 1); exit 1; }; }
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
{ (exit 1); exit 1; }; }
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
ac_env_build_alias_set=${build_alias+set}
896
ac_env_build_alias_value=$build_alias
897
ac_cv_env_build_alias_set=${build_alias+set}
898
ac_cv_env_build_alias_value=$build_alias
899
ac_env_host_alias_set=${host_alias+set}
900
ac_env_host_alias_value=$host_alias
901
ac_cv_env_host_alias_set=${host_alias+set}
902
ac_cv_env_host_alias_value=$host_alias
903
ac_env_target_alias_set=${target_alias+set}
904
ac_env_target_alias_value=$target_alias
905
ac_cv_env_target_alias_set=${target_alias+set}
906
ac_cv_env_target_alias_value=$target_alias
907
ac_env_CC_set=${CC+set}
909
ac_cv_env_CC_set=${CC+set}
910
ac_cv_env_CC_value=$CC
911
ac_env_CFLAGS_set=${CFLAGS+set}
912
ac_env_CFLAGS_value=$CFLAGS
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
ac_cv_env_CFLAGS_value=$CFLAGS
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
ac_env_LDFLAGS_value=$LDFLAGS
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
ac_env_CPPFLAGS_value=$CPPFLAGS
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
ac_env_CPP_set=${CPP+set}
924
ac_env_CPP_value=$CPP
925
ac_cv_env_CPP_set=${CPP+set}
926
ac_cv_env_CPP_value=$CPP
927
ac_env_CXX_set=${CXX+set}
928
ac_env_CXX_value=$CXX
929
ac_cv_env_CXX_set=${CXX+set}
930
ac_cv_env_CXX_value=$CXX
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
ac_env_CXXFLAGS_value=$CXXFLAGS
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
ac_env_CXXCPP_set=${CXXCPP+set}
936
ac_env_CXXCPP_value=$CXXCPP
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
ac_cv_env_CXXCPP_value=$CXXCPP
939
ac_env_F77_set=${F77+set}
940
ac_env_F77_value=$F77
941
ac_cv_env_F77_set=${F77+set}
942
ac_cv_env_F77_value=$F77
943
ac_env_FFLAGS_set=${FFLAGS+set}
944
ac_env_FFLAGS_value=$FFLAGS
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
ac_cv_env_FFLAGS_value=$FFLAGS
949
# Report the --help message.
951
if test "$ac_init_help" = "long"; then
952
# Omit some internal or obsolete options to make the list less imposing.
953
# This message is too long to be a string in the A/UX 3.1 sh.
955
\`configure' configures this package to adapt to many kinds of systems.
957
Usage: $0 [OPTION]... [VAR=VALUE]...
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
VAR=VALUE. See below for descriptions of some of the useful variables.
962
Defaults for the options are specified in brackets.
965
-h, --help display this help and exit
966
--help=short display options specific to this package
967
--help=recursive display the short help of all the included packages
968
-V, --version display version information and exit
969
-q, --quiet, --silent do not print \`checking...' messages
970
--cache-file=FILE cache test results in FILE [disabled]
971
-C, --config-cache alias for \`--cache-file=config.cache'
972
-n, --no-create do not create output files
973
--srcdir=DIR find the sources in DIR [configure dir or \`..']
978
Installation directories:
979
--prefix=PREFIX install architecture-independent files in PREFIX
981
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984
By default, \`make install' will install all the files in
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
for instance \`--prefix=\$HOME'.
989
For better control, use the options below.
991
Fine tuning of the installation directories:
992
--bindir=DIR user executables [EPREFIX/bin]
993
--sbindir=DIR system admin executables [EPREFIX/sbin]
994
--libexecdir=DIR program executables [EPREFIX/libexec]
995
--datadir=DIR read-only architecture-independent data [PREFIX/share]
996
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
999
--libdir=DIR object code libraries [EPREFIX/lib]
1000
--includedir=DIR C header files [PREFIX/include]
1001
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1002
--infodir=DIR info documentation [PREFIX/info]
1003
--mandir=DIR man documentation [PREFIX/man]
1009
--program-prefix=PREFIX prepend PREFIX to installed program names
1010
--program-suffix=SUFFIX append SUFFIX to installed program names
1011
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
--build=BUILD configure for building on BUILD [guessed]
1015
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1019
if test -n "$ac_init_help"; then
1024
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026
--enable-maintainer-mode enable make rules and dependencies not useful
1027
(and sometimes confusing) to the casual installer
1028
--enable-shared[=PKGS]
1029
build shared libraries [default=yes]
1030
--enable-static[=PKGS]
1031
build static libraries [default=yes]
1032
--enable-fast-install[=PKGS]
1033
optimize for fast installation [default=yes]
1034
--disable-dependency-tracking Speeds up one-time builds
1035
--enable-dependency-tracking Do not reject slow dependency extractors
1036
--disable-libtool-lock avoid locking (might break parallel builds)
1037
--enable-ogg=yes/no Turn on or off the use of ogg
1038
libraries default=yes
1039
--enable-sse enable SSE support
1040
--enable-fixed-point compile as fixed-point
1041
--enable-arm-asm make use of ARM assembly instructions
1042
--enable-fixed-point-debug Debug fixed-point implementation
1043
--enable-epic-48k enable support for epic 4.8 kbps mode
1046
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049
--with-pic try to use only PIC/non-PIC objects [default=use
1052
include additional configurations [automatic]
1053
--with-ogg-dir=DIR where the root of OGG is installed
1054
--with-ogg-includes=DIR where the OGG includes are.
1055
--with-ogg-libraries=DIR where the OGG library is installed.
1057
Some influential environment variables:
1058
CC C compiler command
1059
CFLAGS C compiler flags
1060
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061
nonstandard directory <lib dir>
1062
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
headers in a nonstandard directory <include dir>
1065
CXX C++ compiler command
1066
CXXFLAGS C++ compiler flags
1067
CXXCPP C++ preprocessor
1068
F77 Fortran 77 compiler command
1069
FFLAGS Fortran 77 compiler flags
1071
Use these variables to override the choices made by `configure' or to help
1072
it to find libraries and programs with nonstandard names/locations.
1077
if test "$ac_init_help" = "recursive"; then
1078
# If there are subdirs, report their specific --help.
1080
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081
test -d $ac_dir || continue
1084
if test "$ac_dir" != .; then
1085
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086
# A "../" for each directory in $ac_dir_suffix.
1087
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089
ac_dir_suffix= ac_top_builddir=
1093
.) # No --srcdir option. We are building in place.
1095
if test -z "$ac_top_builddir"; then
1098
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100
[\\/]* | ?:[\\/]* ) # Absolute path.
1101
ac_srcdir=$srcdir$ac_dir_suffix;
1102
ac_top_srcdir=$srcdir ;;
1104
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
1109
# the directories may not exist.
1111
.) ac_abs_builddir="$ac_dir";;
1114
.) ac_abs_builddir=`pwd`;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1119
case $ac_abs_builddir in
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1122
case ${ac_top_builddir}. in
1123
.) ac_abs_top_builddir=$ac_abs_builddir;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128
case $ac_abs_builddir in
1129
.) ac_abs_srcdir=$ac_srcdir;;
1132
.) ac_abs_srcdir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1140
case $ac_top_srcdir in
1141
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
# Check for guested configure; otherwise get Cygnus style configure.
1149
if test -f $ac_srcdir/configure.gnu; then
1151
$SHELL $ac_srcdir/configure.gnu --help=recursive
1152
elif test -f $ac_srcdir/configure; then
1154
$SHELL $ac_srcdir/configure --help=recursive
1155
elif test -f $ac_srcdir/configure.ac ||
1156
test -f $ac_srcdir/configure.in; then
1158
$ac_configure --help
1160
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166
test -n "$ac_init_help" && exit 0
1167
if $ac_init_version; then
1170
Copyright (C) 2003 Free Software Foundation, Inc.
1171
This configure script is free software; the Free Software Foundation
1172
gives unlimited permission to copy, distribute and modify it.
1178
This file contains any messages produced by compilers while
1179
running configure, to aid debugging if configure makes a mistake.
1181
It was created by $as_me, which was
1182
generated by GNU Autoconf 2.59. Invocation command line was
1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216
test -z "$as_dir" && as_dir=.
1217
echo "PATH: $as_dir"
1232
# Keep a trace of the command line.
1233
# Strip out --no-create and --no-recursion so they do not pile up.
1234
# Strip out --silent because we don't want to record it for future runs.
1235
# Also quote any args containing shell meta-characters.
1236
# Make two passes to allow for proper duplicate-argument suppression.
1241
ac_must_keep_next=false
1247
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249
| -silent | --silent | --silen | --sile | --sil)
1251
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258
if test $ac_must_keep_next = true; then
1259
ac_must_keep_next=false # Got value, back to normal.
1262
*=* | --config-cache | -C | -disable-* | --disable-* \
1263
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265
| -with-* | --with-* | -without-* | --without-* | --x)
1266
case "$ac_configure_args0 " in
1267
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270
-* ) ac_must_keep_next=true ;;
1273
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274
# Get rid of the leading space.
1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
# When interrupted or exit'd, cleanup temporary files, and complete
1284
# config.log. We remove comments because anyway the quotes in there
1285
# would cause problems or look ugly.
1286
# WARNING: Be sure not to use single quotes in there, as some shells,
1287
# such as our DU 5.0 friend, will then `close' the trap.
1288
trap 'exit_status=$?
1289
# Save into config.log some information that might help in debugging.
1294
## ---------------- ##
1295
## Cache variables. ##
1296
## ---------------- ##
1299
# The following way of writing the cache mishandles newlines in values,
1302
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317
## ----------------- ##
1318
## Output variables. ##
1319
## ----------------- ##
1322
for ac_var in $ac_subst_vars
1324
eval ac_val=$`echo $ac_var`
1325
echo "$ac_var='"'"'$ac_val'"'"'"
1329
if test -n "$ac_subst_files"; then
1336
for ac_var in $ac_subst_files
1338
eval ac_val=$`echo $ac_var`
1339
echo "$ac_var='"'"'$ac_val'"'"'"
1344
if test -s confdefs.h; then
1351
sed "/^$/d" confdefs.h | sort
1354
test "$ac_signal" != 0 &&
1355
echo "$as_me: caught signal $ac_signal"
1356
echo "$as_me: exit $exit_status"
1358
rm -f core *.core &&
1359
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362
for ac_signal in 1 2 13 15; do
1363
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368
rm -rf conftest* confdefs.h
1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372
# Predefined preprocessor variables.
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_NAME "$PACKAGE_NAME"
1379
cat >>confdefs.h <<_ACEOF
1380
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384
cat >>confdefs.h <<_ACEOF
1385
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389
cat >>confdefs.h <<_ACEOF
1390
#define PACKAGE_STRING "$PACKAGE_STRING"
1394
cat >>confdefs.h <<_ACEOF
1395
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399
# Let the site file select an alternate cache file if it wants to.
1400
# Prefer explicitly selected file to automatically selected ones.
1401
if test -z "$CONFIG_SITE"; then
1402
if test "x$prefix" != xNONE; then
1403
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408
for ac_site_file in $CONFIG_SITE; do
1409
if test -r "$ac_site_file"; then
1410
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411
echo "$as_me: loading site script $ac_site_file" >&6;}
1412
sed 's/^/| /' "$ac_site_file" >&5
1417
if test -r "$cache_file"; then
1418
# Some versions of bash will fail to source /dev/null (special
1419
# files actually), so we avoid doing that.
1420
if test -f "$cache_file"; then
1421
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422
echo "$as_me: loading cache $cache_file" >&6;}
1424
[\\/]* | ?:[\\/]* ) . $cache_file;;
1425
*) . ./$cache_file;;
1429
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430
echo "$as_me: creating cache $cache_file" >&6;}
1434
# Check that the precious variables saved in the cache have kept the same
1436
ac_cache_corrupted=false
1437
for ac_var in `(set) 2>&1 |
1438
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440
eval ac_new_set=\$ac_env_${ac_var}_set
1441
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442
eval ac_new_val="\$ac_env_${ac_var}_value"
1443
case $ac_old_set,$ac_new_set in
1445
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447
ac_cache_corrupted=: ;;
1449
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451
ac_cache_corrupted=: ;;
1454
if test "x$ac_old_val" != "x$ac_new_val"; then
1455
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458
echo "$as_me: former value: $ac_old_val" >&2;}
1459
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460
echo "$as_me: current value: $ac_new_val" >&2;}
1461
ac_cache_corrupted=:
1464
# Pass precious variables to config.status.
1465
if test "$ac_new_set" = set; then
1467
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469
*) ac_arg=$ac_var=$ac_new_val ;;
1471
case " $ac_configure_args " in
1472
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477
if $ac_cache_corrupted; then
1478
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482
{ (exit 1); exit 1; }; }
1486
ac_cpp='$CPP $CPPFLAGS'
1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
SPEEX_MAJOR_VERSION=1
1511
SPEEX_MINOR_VERSION=1
1512
SPEEX_MICRO_VERSION=4
1524
VERSION=$SPEEX_VERSION
1527
am__api_version="1.6"
1529
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
if test -f $ac_dir/install-sh; then
1532
ac_install_sh="$ac_aux_dir/install-sh -c"
1534
elif test -f $ac_dir/install.sh; then
1536
ac_install_sh="$ac_aux_dir/install.sh -c"
1538
elif test -f $ac_dir/shtool; then
1540
ac_install_sh="$ac_aux_dir/shtool install -c"
1544
if test -z "$ac_aux_dir"; then
1545
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547
{ (exit 1); exit 1; }; }
1549
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
# Find a good install program. We prefer a C program (faster),
1554
# so one script is as good as another. But avoid the broken or
1555
# incompatible versions:
1556
# SysV /etc/install, /usr/sbin/install
1557
# SunOS /usr/etc/install
1558
# IRIX /sbin/install
1560
# AmigaOS /C/install, which installs bootblocks on floppy discs
1561
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564
# OS/2's system install, which has a completely different semantic
1565
# ./install, which can be erroneously created by make from ./install.sh.
1566
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1567
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1568
if test -z "$INSTALL"; then
1569
if test "${ac_cv_path_install+set}" = set; then
1570
echo $ECHO_N "(cached) $ECHO_C" >&6
1572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576
test -z "$as_dir" && as_dir=.
1577
# Account for people who put trailing slashes in PATH elements.
1579
./ | .// | /cC/* | \
1580
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1581
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1584
# OSF1 and SCO ODT 3.0 have their own names for install.
1585
# Don't use installbsd from OSF since it installs stuff as root
1587
for ac_prog in ginstall scoinst install; do
1588
for ac_exec_ext in '' $ac_executable_extensions; do
1589
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1590
if test $ac_prog = install &&
1591
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592
# AIX install. It has an incompatible calling convention.
1594
elif test $ac_prog = install &&
1595
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596
# program-specific install script used by HP pwplus--don't use.
1599
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611
if test "${ac_cv_path_install+set}" = set; then
1612
INSTALL=$ac_cv_path_install
1614
# As a last resort, use the slow shell script. We don't cache a
1615
# path for INSTALL within a source directory, because that will
1616
# break other packages using the cache if that directory is
1617
# removed, or if the path is relative.
1618
INSTALL=$ac_install_sh
1621
echo "$as_me:$LINENO: result: $INSTALL" >&5
1622
echo "${ECHO_T}$INSTALL" >&6
1624
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1625
# It thinks the first close brace ends the variable substitution.
1626
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1630
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1633
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1636
echo timestamp > conftest.file
1637
# Do `set' in a subshell so we don't clobber the current shell's
1638
# arguments. Must try -L first in case configure is actually a
1639
# symlink; some systems play weird games with the mod time of symlinks
1640
# (eg FreeBSD returns the mod time of the symlink's containing
1643
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1644
if test "$*" = "X"; then
1646
set X `ls -t $srcdir/configure conftest.file`
1649
if test "$*" != "X $srcdir/configure conftest.file" \
1650
&& test "$*" != "X conftest.file $srcdir/configure"; then
1652
# If neither matched, then we have a broken ls. This can happen
1653
# if, for instance, CONFIG_SHELL is bash and it inherits a
1654
# broken ls alias from the environment. This has actually
1655
# happened. Such a system could not be considered "sane".
1656
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1657
alias in your environment" >&5
1658
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1659
alias in your environment" >&2;}
1660
{ (exit 1); exit 1; }; }
1663
test "$2" = conftest.file
1669
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1670
Check your system clock" >&5
1671
echo "$as_me: error: newly created file is older than distributed files!
1672
Check your system clock" >&2;}
1673
{ (exit 1); exit 1; }; }
1675
echo "$as_me:$LINENO: result: yes" >&5
1676
echo "${ECHO_T}yes" >&6
1677
test "$program_prefix" != NONE &&
1678
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1679
# Use a double $ so make ignores it.
1680
test "$program_suffix" != NONE &&
1681
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682
# Double any \ or $. echo might interpret backslashes.
1683
# By default was `s,x,x', remove it if useless.
1684
cat <<\_ACEOF >conftest.sed
1685
s/[\\$]/&&/g;s/;s,x,x,$//
1687
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691
# expand $ac_aux_dir to an absolute path
1692
am_aux_dir=`cd $ac_aux_dir && pwd`
1694
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695
# Use eval to expand $SHELL
1696
if eval "$MISSING --run true"; then
1697
am_missing_run="$MISSING --run "
1700
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704
for ac_prog in gawk mawk nawk awk
1706
# Extract the first word of "$ac_prog", so it can be a program name with args.
1707
set dummy $ac_prog; ac_word=$2
1708
echo "$as_me:$LINENO: checking for $ac_word" >&5
1709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710
if test "${ac_cv_prog_AWK+set}" = set; then
1711
echo $ECHO_N "(cached) $ECHO_C" >&6
1713
if test -n "$AWK"; then
1714
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720
test -z "$as_dir" && as_dir=.
1721
for ac_exec_ext in '' $ac_executable_extensions; do
1722
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723
ac_cv_prog_AWK="$ac_prog"
1724
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733
if test -n "$AWK"; then
1734
echo "$as_me:$LINENO: result: $AWK" >&5
1735
echo "${ECHO_T}$AWK" >&6
1737
echo "$as_me:$LINENO: result: no" >&5
1738
echo "${ECHO_T}no" >&6
1741
test -n "$AWK" && break
1744
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1745
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1746
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1747
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1748
echo $ECHO_N "(cached) $ECHO_C" >&6
1750
cat >conftest.make <<\_ACEOF
1752
@echo 'ac_maketemp="$(MAKE)"'
1754
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1755
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1756
if test -n "$ac_maketemp"; then
1757
eval ac_cv_prog_make_${ac_make}_set=yes
1759
eval ac_cv_prog_make_${ac_make}_set=no
1763
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1764
echo "$as_me:$LINENO: result: yes" >&5
1765
echo "${ECHO_T}yes" >&6
1768
echo "$as_me:$LINENO: result: no" >&5
1769
echo "${ECHO_T}no" >&6
1770
SET_MAKE="MAKE=${MAKE-make}"
1773
# test to see if srcdir already configured
1774
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1775
test -f $srcdir/config.status; then
1776
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1777
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1778
{ (exit 1); exit 1; }; }
1781
# Define the identity of the package.
1786
# Some tools Automake needs.
1788
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1791
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1794
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1797
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1800
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1803
AMTAR=${AMTAR-"${am_missing_run}tar"}
1805
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1807
# Installed binaries are usually stripped using `strip' when the user
1808
# run `make install-strip'. However `strip' might not be the right
1809
# tool to use in cross-compilation environments, therefore Automake
1810
# will honor the `STRIP' environment variable to overrule this program.
1811
if test "$cross_compiling" != no; then
1812
if test -n "$ac_tool_prefix"; then
1813
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1814
set dummy ${ac_tool_prefix}strip; ac_word=$2
1815
echo "$as_me:$LINENO: checking for $ac_word" >&5
1816
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817
if test "${ac_cv_prog_STRIP+set}" = set; then
1818
echo $ECHO_N "(cached) $ECHO_C" >&6
1820
if test -n "$STRIP"; then
1821
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1823
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827
test -z "$as_dir" && as_dir=.
1828
for ac_exec_ext in '' $ac_executable_extensions; do
1829
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1831
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839
STRIP=$ac_cv_prog_STRIP
1840
if test -n "$STRIP"; then
1841
echo "$as_me:$LINENO: result: $STRIP" >&5
1842
echo "${ECHO_T}$STRIP" >&6
1844
echo "$as_me:$LINENO: result: no" >&5
1845
echo "${ECHO_T}no" >&6
1849
if test -z "$ac_cv_prog_STRIP"; then
1851
# Extract the first word of "strip", so it can be a program name with args.
1852
set dummy strip; ac_word=$2
1853
echo "$as_me:$LINENO: checking for $ac_word" >&5
1854
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1856
echo $ECHO_N "(cached) $ECHO_C" >&6
1858
if test -n "$ac_ct_STRIP"; then
1859
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865
test -z "$as_dir" && as_dir=.
1866
for ac_exec_ext in '' $ac_executable_extensions; do
1867
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868
ac_cv_prog_ac_ct_STRIP="strip"
1869
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1878
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1879
if test -n "$ac_ct_STRIP"; then
1880
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1881
echo "${ECHO_T}$ac_ct_STRIP" >&6
1883
echo "$as_me:$LINENO: result: no" >&5
1884
echo "${ECHO_T}no" >&6
1889
STRIP="$ac_cv_prog_STRIP"
1893
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1895
# We need awk for the "check" target. The system "awk" is bad on
1900
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1901
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1902
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1903
if test "${enable_maintainer_mode+set}" = set; then
1904
enableval="$enable_maintainer_mode"
1905
USE_MAINTAINER_MODE=$enableval
1907
USE_MAINTAINER_MODE=no
1909
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1910
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1913
if test $USE_MAINTAINER_MODE = yes; then
1914
MAINTAINER_MODE_TRUE=
1915
MAINTAINER_MODE_FALSE='#'
1917
MAINTAINER_MODE_TRUE='#'
1918
MAINTAINER_MODE_FALSE=
1921
MAINT=$MAINTAINER_MODE_TRUE
1925
# Make sure we can run config.sub.
1926
$ac_config_sub sun4 >/dev/null 2>&1 ||
1927
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1928
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1929
{ (exit 1); exit 1; }; }
1931
echo "$as_me:$LINENO: checking build system type" >&5
1932
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1933
if test "${ac_cv_build+set}" = set; then
1934
echo $ECHO_N "(cached) $ECHO_C" >&6
1936
ac_cv_build_alias=$build_alias
1937
test -z "$ac_cv_build_alias" &&
1938
ac_cv_build_alias=`$ac_config_guess`
1939
test -z "$ac_cv_build_alias" &&
1940
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942
{ (exit 1); exit 1; }; }
1943
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1944
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1945
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1946
{ (exit 1); exit 1; }; }
1949
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950
echo "${ECHO_T}$ac_cv_build" >&6
1952
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1953
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1954
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1957
echo "$as_me:$LINENO: checking host system type" >&5
1958
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1959
if test "${ac_cv_host+set}" = set; then
1960
echo $ECHO_N "(cached) $ECHO_C" >&6
1962
ac_cv_host_alias=$host_alias
1963
test -z "$ac_cv_host_alias" &&
1964
ac_cv_host_alias=$ac_cv_build_alias
1965
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1966
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1967
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1968
{ (exit 1); exit 1; }; }
1971
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972
echo "${ECHO_T}$ac_cv_host" >&6
1974
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1975
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1976
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1979
# Check whether --enable-shared or --disable-shared was given.
1980
if test "${enable_shared+set}" = set; then
1981
enableval="$enable_shared"
1982
p=${PACKAGE-default}
1984
yes) enable_shared=yes ;;
1985
no) enable_shared=no ;;
1988
# Look at the argument we got. We use all the common list separators.
1989
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1990
for pkg in $enableval; do
1992
if test "X$pkg" = "X$p"; then
2003
# Check whether --enable-static or --disable-static was given.
2004
if test "${enable_static+set}" = set; then
2005
enableval="$enable_static"
2006
p=${PACKAGE-default}
2008
yes) enable_static=yes ;;
2009
no) enable_static=no ;;
2012
# Look at the argument we got. We use all the common list separators.
2013
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014
for pkg in $enableval; do
2016
if test "X$pkg" = "X$p"; then
2027
# Check whether --enable-fast-install or --disable-fast-install was given.
2028
if test "${enable_fast_install+set}" = set; then
2029
enableval="$enable_fast_install"
2030
p=${PACKAGE-default}
2032
yes) enable_fast_install=yes ;;
2033
no) enable_fast_install=no ;;
2035
enable_fast_install=no
2036
# Look at the argument we got. We use all the common list separators.
2037
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2038
for pkg in $enableval; do
2040
if test "X$pkg" = "X$p"; then
2041
enable_fast_install=yes
2048
enable_fast_install=yes
2051
rm -f .deps 2>/dev/null
2052
mkdir .deps 2>/dev/null
2053
if test -d .deps; then
2056
# MS-DOS does not allow filenames that begin with a dot.
2059
rmdir .deps 2>/dev/null
2062
ac_config_commands="$ac_config_commands depfiles"
2065
am_make=${MAKE-make}
2066
cat > confinc << 'END'
2070
# If we don't find an include directive, just comment out the code.
2071
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2072
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2076
# First try GNU make style include.
2077
echo "include confinc" > confmf
2078
# We grep out `Entering directory' and `Leaving directory'
2079
# messages which can occur if `w' ends up in MAKEFLAGS.
2080
# In particular we don't look at `^make:' because GNU make might
2081
# be invoked under some other name (usually "gmake"), in which
2082
# case it prints its new name instead of `make'.
2083
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2088
# Now try BSD make style include.
2089
if test "$am__include" = "#"; then
2090
echo '.include "confinc"' > confmf
2091
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2092
am__include=.include
2099
echo "$as_me:$LINENO: result: $_am_result" >&5
2100
echo "${ECHO_T}$_am_result" >&6
2101
rm -f confinc confmf
2103
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2104
if test "${enable_dependency_tracking+set}" = set; then
2105
enableval="$enable_dependency_tracking"
2108
if test "x$enable_dependency_tracking" != xno; then
2109
am_depcomp="$ac_aux_dir/depcomp"
2114
if test "x$enable_dependency_tracking" != xno; then
2125
ac_cpp='$CPP $CPPFLAGS'
2126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129
if test -n "$ac_tool_prefix"; then
2130
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2131
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
if test "${ac_cv_prog_CC+set}" = set; then
2135
echo $ECHO_N "(cached) $ECHO_C" >&6
2137
if test -n "$CC"; then
2138
ac_cv_prog_CC="$CC" # Let the user override the test.
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144
test -z "$as_dir" && as_dir=.
2145
for ac_exec_ext in '' $ac_executable_extensions; do
2146
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2148
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157
if test -n "$CC"; then
2158
echo "$as_me:$LINENO: result: $CC" >&5
2159
echo "${ECHO_T}$CC" >&6
2161
echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2166
if test -z "$ac_cv_prog_CC"; then
2168
# Extract the first word of "gcc", so it can be a program name with args.
2169
set dummy gcc; ac_word=$2
2170
echo "$as_me:$LINENO: checking for $ac_word" >&5
2171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173
echo $ECHO_N "(cached) $ECHO_C" >&6
2175
if test -n "$ac_ct_CC"; then
2176
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182
test -z "$as_dir" && as_dir=.
2183
for ac_exec_ext in '' $ac_executable_extensions; do
2184
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185
ac_cv_prog_ac_ct_CC="gcc"
2186
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195
if test -n "$ac_ct_CC"; then
2196
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197
echo "${ECHO_T}$ac_ct_CC" >&6
2199
echo "$as_me:$LINENO: result: no" >&5
2200
echo "${ECHO_T}no" >&6
2208
if test -z "$CC"; then
2209
if test -n "$ac_tool_prefix"; then
2210
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211
set dummy ${ac_tool_prefix}cc; ac_word=$2
2212
echo "$as_me:$LINENO: checking for $ac_word" >&5
2213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214
if test "${ac_cv_prog_CC+set}" = set; then
2215
echo $ECHO_N "(cached) $ECHO_C" >&6
2217
if test -n "$CC"; then
2218
ac_cv_prog_CC="$CC" # Let the user override the test.
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
test -z "$as_dir" && as_dir=.
2225
for ac_exec_ext in '' $ac_executable_extensions; do
2226
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227
ac_cv_prog_CC="${ac_tool_prefix}cc"
2228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237
if test -n "$CC"; then
2238
echo "$as_me:$LINENO: result: $CC" >&5
2239
echo "${ECHO_T}$CC" >&6
2241
echo "$as_me:$LINENO: result: no" >&5
2242
echo "${ECHO_T}no" >&6
2246
if test -z "$ac_cv_prog_CC"; then
2248
# Extract the first word of "cc", so it can be a program name with args.
2249
set dummy cc; ac_word=$2
2250
echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253
echo $ECHO_N "(cached) $ECHO_C" >&6
2255
if test -n "$ac_ct_CC"; then
2256
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262
test -z "$as_dir" && as_dir=.
2263
for ac_exec_ext in '' $ac_executable_extensions; do
2264
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265
ac_cv_prog_ac_ct_CC="cc"
2266
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275
if test -n "$ac_ct_CC"; then
2276
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277
echo "${ECHO_T}$ac_ct_CC" >&6
2279
echo "$as_me:$LINENO: result: no" >&5
2280
echo "${ECHO_T}no" >&6
2289
if test -z "$CC"; then
2290
# Extract the first word of "cc", so it can be a program name with args.
2291
set dummy cc; ac_word=$2
2292
echo "$as_me:$LINENO: checking for $ac_word" >&5
2293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294
if test "${ac_cv_prog_CC+set}" = set; then
2295
echo $ECHO_N "(cached) $ECHO_C" >&6
2297
if test -n "$CC"; then
2298
ac_cv_prog_CC="$CC" # Let the user override the test.
2301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305
test -z "$as_dir" && as_dir=.
2306
for ac_exec_ext in '' $ac_executable_extensions; do
2307
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309
ac_prog_rejected=yes
2313
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319
if test $ac_prog_rejected = yes; then
2320
# We found a bogon in the path, so make sure we never use it.
2321
set dummy $ac_cv_prog_CC
2323
if test $# != 0; then
2324
# We chose a different compiler from the bogus one.
2325
# However, it has the same basename, so the bogon will be chosen
2326
# first if we set CC to just the basename; use the full file name.
2328
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334
if test -n "$CC"; then
2335
echo "$as_me:$LINENO: result: $CC" >&5
2336
echo "${ECHO_T}$CC" >&6
2338
echo "$as_me:$LINENO: result: no" >&5
2339
echo "${ECHO_T}no" >&6
2343
if test -z "$CC"; then
2344
if test -n "$ac_tool_prefix"; then
2347
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2348
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2349
echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351
if test "${ac_cv_prog_CC+set}" = set; then
2352
echo $ECHO_N "(cached) $ECHO_C" >&6
2354
if test -n "$CC"; then
2355
ac_cv_prog_CC="$CC" # Let the user override the test.
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
test -z "$as_dir" && as_dir=.
2362
for ac_exec_ext in '' $ac_executable_extensions; do
2363
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2365
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
if test -n "$CC"; then
2375
echo "$as_me:$LINENO: result: $CC" >&5
2376
echo "${ECHO_T}$CC" >&6
2378
echo "$as_me:$LINENO: result: no" >&5
2379
echo "${ECHO_T}no" >&6
2382
test -n "$CC" && break
2385
if test -z "$CC"; then
2389
# Extract the first word of "$ac_prog", so it can be a program name with args.
2390
set dummy $ac_prog; ac_word=$2
2391
echo "$as_me:$LINENO: checking for $ac_word" >&5
2392
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394
echo $ECHO_N "(cached) $ECHO_C" >&6
2396
if test -n "$ac_ct_CC"; then
2397
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403
test -z "$as_dir" && as_dir=.
2404
for ac_exec_ext in '' $ac_executable_extensions; do
2405
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406
ac_cv_prog_ac_ct_CC="$ac_prog"
2407
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416
if test -n "$ac_ct_CC"; then
2417
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418
echo "${ECHO_T}$ac_ct_CC" >&6
2420
echo "$as_me:$LINENO: result: no" >&5
2421
echo "${ECHO_T}no" >&6
2424
test -n "$ac_ct_CC" && break
2433
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2434
See \`config.log' for more details." >&5
2435
echo "$as_me: error: no acceptable C compiler found in \$PATH
2436
See \`config.log' for more details." >&2;}
2437
{ (exit 1); exit 1; }; }
2439
# Provide some information about the compiler.
2440
echo "$as_me:$LINENO:" \
2441
"checking for C compiler version" >&5
2442
ac_compiler=`set X $ac_compile; echo $2`
2443
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2444
(eval $ac_compiler --version </dev/null >&5) 2>&5
2446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
(exit $ac_status); }
2448
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2449
(eval $ac_compiler -v </dev/null >&5) 2>&5
2451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452
(exit $ac_status); }
2453
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2454
(eval $ac_compiler -V </dev/null >&5) 2>&5
2456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
(exit $ac_status); }
2459
cat >conftest.$ac_ext <<_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464
/* end confdefs.h. */
2474
ac_clean_files_save=$ac_clean_files
2475
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2476
# Try to create an executable without -o first, disregard a.out.
2477
# It will help us diagnose broken compilers, and finding out an intuition
2479
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2481
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2483
(eval $ac_link_default) 2>&5
2485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
(exit $ac_status); }; then
2487
# Find the output, starting from the most likely. This scheme is
2488
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2491
# Be careful to initialize this variable, since it used to be cached.
2492
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2494
# b.out is created by i960 compilers.
2495
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2497
test -f "$ac_file" || continue
2499
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2502
# This is the source file.
2505
# We found the default executable, but exeext='' is most
2509
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510
# FIXME: I believe we export ac_cv_exeext for Libtool,
2511
# but it would be cool to find out if it's true. Does anybody
2512
# maintain Libtool? --akim.
2520
echo "$as_me: failed program was:" >&5
2521
sed 's/^/| /' conftest.$ac_ext >&5
2523
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524
See \`config.log' for more details." >&5
2525
echo "$as_me: error: C compiler cannot create executables
2526
See \`config.log' for more details." >&2;}
2527
{ (exit 77); exit 77; }; }
2530
ac_exeext=$ac_cv_exeext
2531
echo "$as_me:$LINENO: result: $ac_file" >&5
2532
echo "${ECHO_T}$ac_file" >&6
2534
# Check the compiler produces executables we can run. If not, either
2535
# the compiler is broken, or we cross compile.
2536
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2538
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539
# If not cross compiling, check that we can run a simple program.
2540
if test "$cross_compiling" != yes; then
2541
if { ac_try='./$ac_file'
2542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546
(exit $ac_status); }; }; then
2549
if test "$cross_compiling" = maybe; then
2552
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2553
If you meant to cross compile, use \`--host'.
2554
See \`config.log' for more details." >&5
2555
echo "$as_me: error: cannot run C compiled programs.
2556
If you meant to cross compile, use \`--host'.
2557
See \`config.log' for more details." >&2;}
2558
{ (exit 1); exit 1; }; }
2562
echo "$as_me:$LINENO: result: yes" >&5
2563
echo "${ECHO_T}yes" >&6
2565
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2566
ac_clean_files=$ac_clean_files_save
2567
# Check the compiler produces executables we can run. If not, either
2568
# the compiler is broken, or we cross compile.
2569
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2570
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2571
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2572
echo "${ECHO_T}$cross_compiling" >&6
2574
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2575
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2577
(eval $ac_link) 2>&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }; then
2581
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2582
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2583
# work properly (i.e., refer to `conftest.exe'), while it won't with
2585
for ac_file in conftest.exe conftest conftest.*; do
2586
test -f "$ac_file" || continue
2588
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2589
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2597
See \`config.log' for more details." >&5
2598
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2599
See \`config.log' for more details." >&2;}
2600
{ (exit 1); exit 1; }; }
2603
rm -f conftest$ac_cv_exeext
2604
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2605
echo "${ECHO_T}$ac_cv_exeext" >&6
2607
rm -f conftest.$ac_ext
2608
EXEEXT=$ac_cv_exeext
2610
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2611
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2612
if test "${ac_cv_objext+set}" = set; then
2613
echo $ECHO_N "(cached) $ECHO_C" >&6
2615
cat >conftest.$ac_ext <<_ACEOF
2618
cat confdefs.h >>conftest.$ac_ext
2619
cat >>conftest.$ac_ext <<_ACEOF
2620
/* end confdefs.h. */
2630
rm -f conftest.o conftest.obj
2631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632
(eval $ac_compile) 2>&5
2634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635
(exit $ac_status); }; then
2636
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2638
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2639
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644
echo "$as_me: failed program was:" >&5
2645
sed 's/^/| /' conftest.$ac_ext >&5
2647
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2648
See \`config.log' for more details." >&5
2649
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2650
See \`config.log' for more details." >&2;}
2651
{ (exit 1); exit 1; }; }
2654
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2657
echo "${ECHO_T}$ac_cv_objext" >&6
2658
OBJEXT=$ac_cv_objext
2660
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2661
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2662
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2663
echo $ECHO_N "(cached) $ECHO_C" >&6
2665
cat >conftest.$ac_ext <<_ACEOF
2668
cat confdefs.h >>conftest.$ac_ext
2669
cat >>conftest.$ac_ext <<_ACEOF
2670
/* end confdefs.h. */
2683
rm -f conftest.$ac_objext
2684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685
(eval $ac_compile) 2>conftest.er1
2687
grep -v '^ *+' conftest.er1 >conftest.err
2689
cat conftest.err >&5
2690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
(exit $ac_status); } &&
2692
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
(exit $ac_status); }; } &&
2698
{ ac_try='test -s conftest.$ac_objext'
2699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
(exit $ac_status); }; }; then
2706
echo "$as_me: failed program was:" >&5
2707
sed 's/^/| /' conftest.$ac_ext >&5
2711
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2715
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2716
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2717
GCC=`test $ac_compiler_gnu = yes && echo yes`
2718
ac_test_CFLAGS=${CFLAGS+set}
2719
ac_save_CFLAGS=$CFLAGS
2721
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2722
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2723
if test "${ac_cv_prog_cc_g+set}" = set; then
2724
echo $ECHO_N "(cached) $ECHO_C" >&6
2726
cat >conftest.$ac_ext <<_ACEOF
2729
cat confdefs.h >>conftest.$ac_ext
2730
cat >>conftest.$ac_ext <<_ACEOF
2731
/* end confdefs.h. */
2741
rm -f conftest.$ac_objext
2742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743
(eval $ac_compile) 2>conftest.er1
2745
grep -v '^ *+' conftest.er1 >conftest.err
2747
cat conftest.err >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); } &&
2750
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); }; } &&
2756
{ ac_try='test -s conftest.$ac_objext'
2757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
(exit $ac_status); }; }; then
2764
echo "$as_me: failed program was:" >&5
2765
sed 's/^/| /' conftest.$ac_ext >&5
2769
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2773
if test "$ac_test_CFLAGS" = set; then
2774
CFLAGS=$ac_save_CFLAGS
2775
elif test $ac_cv_prog_cc_g = yes; then
2776
if test "$GCC" = yes; then
2782
if test "$GCC" = yes; then
2788
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2789
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2790
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2791
echo $ECHO_N "(cached) $ECHO_C" >&6
2793
ac_cv_prog_cc_stdc=no
2795
cat >conftest.$ac_ext <<_ACEOF
2798
cat confdefs.h >>conftest.$ac_ext
2799
cat >>conftest.$ac_ext <<_ACEOF
2800
/* end confdefs.h. */
2803
#include <sys/types.h>
2804
#include <sys/stat.h>
2805
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2806
struct buf { int x; };
2807
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808
static char *e (p, i)
2814
static char *f (char * (*g) (char **, int), char **p, ...)
2819
s = g (p, va_arg (v,int));
2824
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2825
function prototypes and stuff, but not '\xHH' hex character constants.
2826
These don't provoke an error unfortunately, instead are silently treated
2827
as 'x'. The following induces an error, until -std1 is added to get
2828
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2829
array size at least. It's necessary to write '\x00'==0 to get something
2830
that's true only with -std1. */
2831
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833
int test (int i, double x);
2834
struct s1 {int (*f) (int a);};
2835
struct s2 {int (*f) (double a);};
2836
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2842
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2847
# Don't try gcc -ansi; that turns off useful extensions and
2848
# breaks some systems' header files.
2849
# AIX -qlanglvl=ansi
2850
# Ultrix and OSF/1 -std1
2851
# HP-UX 10.20 and later -Ae
2852
# HP-UX older versions -Aa -D_HPUX_SOURCE
2853
# SVR4 -Xc -D__EXTENSIONS__
2854
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856
CC="$ac_save_CC $ac_arg"
2857
rm -f conftest.$ac_objext
2858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859
(eval $ac_compile) 2>conftest.er1
2861
grep -v '^ *+' conftest.er1 >conftest.err
2863
cat conftest.err >&5
2864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865
(exit $ac_status); } &&
2866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
(exit $ac_status); }; } &&
2872
{ ac_try='test -s conftest.$ac_objext'
2873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
(exit $ac_status); }; }; then
2878
ac_cv_prog_cc_stdc=$ac_arg
2881
echo "$as_me: failed program was:" >&5
2882
sed 's/^/| /' conftest.$ac_ext >&5
2885
rm -f conftest.err conftest.$ac_objext
2887
rm -f conftest.$ac_ext conftest.$ac_objext
2892
case "x$ac_cv_prog_cc_stdc" in
2894
echo "$as_me:$LINENO: result: none needed" >&5
2895
echo "${ECHO_T}none needed" >&6 ;;
2897
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2898
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2899
CC="$CC $ac_cv_prog_cc_stdc" ;;
2902
# Some people use a C++ compiler to compile C. Since we use `exit',
2903
# in C++ we need to declare it. In case someone uses the same compiler
2904
# for both compiling C and C++ we need to have the C++ compiler decide
2905
# the declaration of exit, since it's the most demanding environment.
2906
cat >conftest.$ac_ext <<_ACEOF
2911
rm -f conftest.$ac_objext
2912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913
(eval $ac_compile) 2>conftest.er1
2915
grep -v '^ *+' conftest.er1 >conftest.err
2917
cat conftest.err >&5
2918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
(exit $ac_status); } &&
2920
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
(exit $ac_status); }; } &&
2926
{ ac_try='test -s conftest.$ac_objext'
2927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
(exit $ac_status); }; }; then
2932
for ac_declaration in \
2934
'extern "C" void std::exit (int) throw (); using std::exit;' \
2935
'extern "C" void std::exit (int); using std::exit;' \
2936
'extern "C" void exit (int) throw ();' \
2937
'extern "C" void exit (int);' \
2940
cat >conftest.$ac_ext <<_ACEOF
2943
cat confdefs.h >>conftest.$ac_ext
2944
cat >>conftest.$ac_ext <<_ACEOF
2945
/* end confdefs.h. */
2956
rm -f conftest.$ac_objext
2957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958
(eval $ac_compile) 2>conftest.er1
2960
grep -v '^ *+' conftest.er1 >conftest.err
2962
cat conftest.err >&5
2963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964
(exit $ac_status); } &&
2965
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970
(exit $ac_status); }; } &&
2971
{ ac_try='test -s conftest.$ac_objext'
2972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976
(exit $ac_status); }; }; then
2979
echo "$as_me: failed program was:" >&5
2980
sed 's/^/| /' conftest.$ac_ext >&5
2984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985
cat >conftest.$ac_ext <<_ACEOF
2988
cat confdefs.h >>conftest.$ac_ext
2989
cat >>conftest.$ac_ext <<_ACEOF
2990
/* end confdefs.h. */
3000
rm -f conftest.$ac_objext
3001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002
(eval $ac_compile) 2>conftest.er1
3004
grep -v '^ *+' conftest.er1 >conftest.err
3006
cat conftest.err >&5
3007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
(exit $ac_status); } &&
3009
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); }; } &&
3015
{ ac_try='test -s conftest.$ac_objext'
3016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; }; then
3023
echo "$as_me: failed program was:" >&5
3024
sed 's/^/| /' conftest.$ac_ext >&5
3027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030
if test -n "$ac_declaration"; then
3031
echo '#ifdef __cplusplus' >>confdefs.h
3032
echo $ac_declaration >>confdefs.h
3033
echo '#endif' >>confdefs.h
3037
echo "$as_me: failed program was:" >&5
3038
sed 's/^/| /' conftest.$ac_ext >&5
3041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043
ac_cpp='$CPP $CPPFLAGS'
3044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048
depcc="$CC" am_compiler_list=
3050
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3051
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3052
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3053
echo $ECHO_N "(cached) $ECHO_C" >&6
3055
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3056
# We make a subdir and do the tests there. Otherwise we can end up
3057
# making bogus files that we don't know about and never remove. For
3058
# instance it was reported that on HP-UX the gcc test will end up
3059
# making a dummy file named `D' -- because `-MD' means `put the output
3062
# Copy depcomp to subdir because otherwise we won't find it if we're
3063
# using a relative directory.
3064
cp "$am_depcomp" conftest.dir
3067
am_cv_CC_dependencies_compiler_type=none
3068
if test "$am_compiler_list" = ""; then
3069
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3071
for depmode in $am_compiler_list; do
3072
# We need to recreate these files for each test, as the compiler may
3073
# overwrite some of them when testing with obscure command lines.
3074
# This happens at least with the AIX C compiler.
3075
echo '#include "conftest.h"' > conftest.c
3076
echo 'int i;' > conftest.h
3077
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3081
# after this tag, mechanisms are not by side-effect, so they'll
3082
# only be used when explicitly requested
3083
if test "x$enable_dependency_tracking" = xyes; then
3091
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3092
# mode. It turns out that the SunPro C++ compiler does not properly
3093
# handle `-M -o', and we need to detect this.
3094
if depmode=$depmode \
3095
source=conftest.c object=conftest.o \
3096
depfile=conftest.Po tmpdepfile=conftest.TPo \
3097
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3098
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3099
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3100
am_cv_CC_dependencies_compiler_type=$depmode
3108
am_cv_CC_dependencies_compiler_type=none
3112
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3113
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3114
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3117
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3118
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3119
if test "${lt_cv_path_SED+set}" = set; then
3120
echo $ECHO_N "(cached) $ECHO_C" >&6
3122
# Loop through the user's path and test for sed and gsed.
3123
# Then use that list of sed's as ones to test for truncation.
3124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128
test -z "$as_dir" && as_dir=.
3129
for lt_ac_prog in sed gsed; do
3130
for ac_exec_ext in '' $ac_executable_extensions; do
3131
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3132
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3139
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3140
# along with /bin/sed that truncates output.
3141
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3142
test ! -f $lt_ac_sed && break
3143
cat /dev/null > conftest.in
3145
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3146
# Check for GNU sed and select it if it is found.
3147
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3148
lt_cv_path_SED=$lt_ac_sed
3152
cat conftest.in conftest.in >conftest.tmp
3153
mv conftest.tmp conftest.in
3154
cp conftest.in conftest.nl
3156
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3157
cmp -s conftest.out conftest.nl || break
3158
# 10000 chars as input seems more than enough
3159
test $lt_ac_count -gt 10 && break
3160
lt_ac_count=`expr $lt_ac_count + 1`
3161
if test $lt_ac_count -gt $lt_ac_max; then
3162
lt_ac_max=$lt_ac_count
3163
lt_cv_path_SED=$lt_ac_sed
3171
echo "$as_me:$LINENO: result: $SED" >&5
3172
echo "${ECHO_T}$SED" >&6
3174
echo "$as_me:$LINENO: checking for egrep" >&5
3175
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3176
if test "${ac_cv_prog_egrep+set}" = set; then
3177
echo $ECHO_N "(cached) $ECHO_C" >&6
3179
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3180
then ac_cv_prog_egrep='grep -E'
3181
else ac_cv_prog_egrep='egrep'
3184
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3185
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3186
EGREP=$ac_cv_prog_egrep
3190
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3191
if test "${with_gnu_ld+set}" = set; then
3192
withval="$with_gnu_ld"
3193
test "$withval" = no || with_gnu_ld=yes
3198
if test "$GCC" = yes; then
3199
# Check if gcc -print-prog-name=ld gives a path.
3200
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3201
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3204
# gcc leaves a trailing carriage return which upsets mingw
3205
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3207
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3210
# Accept absolute paths.
3212
re_direlt='/[^/][^/]*/\.\./'
3213
# Canonicalize the pathname of ld
3214
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3215
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3216
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3218
test -z "$LD" && LD="$ac_prog"
3221
# If it fails, then pretend we aren't using GCC.
3225
# If it is relative, then search for the first ld in PATH.
3229
elif test "$with_gnu_ld" = yes; then
3230
echo "$as_me:$LINENO: checking for GNU ld" >&5
3231
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3233
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3234
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3236
if test "${lt_cv_path_LD+set}" = set; then
3237
echo $ECHO_N "(cached) $ECHO_C" >&6
3239
if test -z "$LD"; then
3240
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3241
for ac_dir in $PATH; do
3243
test -z "$ac_dir" && ac_dir=.
3244
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3245
lt_cv_path_LD="$ac_dir/$ac_prog"
3246
# Check to see if the program is GNU ld. I'd rather use --version,
3247
# but apparently some GNU ld's only accept -v.
3248
# Break only if it was the GNU/non-GNU ld that we prefer.
3249
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3250
*GNU* | *'with BFD'*)
3251
test "$with_gnu_ld" != no && break
3254
test "$with_gnu_ld" != yes && break
3261
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3266
if test -n "$LD"; then
3267
echo "$as_me:$LINENO: result: $LD" >&5
3268
echo "${ECHO_T}$LD" >&6
3270
echo "$as_me:$LINENO: result: no" >&5
3271
echo "${ECHO_T}no" >&6
3273
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3274
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3275
{ (exit 1); exit 1; }; }
3276
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3277
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3278
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3279
echo $ECHO_N "(cached) $ECHO_C" >&6
3281
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3282
case `$LD -v 2>&1 </dev/null` in
3283
*GNU* | *'with BFD'*)
3284
lt_cv_prog_gnu_ld=yes
3287
lt_cv_prog_gnu_ld=no
3291
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3292
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3293
with_gnu_ld=$lt_cv_prog_gnu_ld
3296
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3297
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3298
if test "${lt_cv_ld_reload_flag+set}" = set; then
3299
echo $ECHO_N "(cached) $ECHO_C" >&6
3301
lt_cv_ld_reload_flag='-r'
3303
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3304
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3305
reload_flag=$lt_cv_ld_reload_flag
3306
case $reload_flag in
3308
*) reload_flag=" $reload_flag" ;;
3310
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3312
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3313
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3314
if test "${lt_cv_path_NM+set}" = set; then
3315
echo $ECHO_N "(cached) $ECHO_C" >&6
3317
if test -n "$NM"; then
3318
# Let the user override the test.
3321
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3322
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3324
test -z "$ac_dir" && ac_dir=.
3325
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3326
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3327
# Check to see if the nm accepts a BSD-compat flag.
3328
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3329
# nm: unknown option "B" ignored
3330
# Tru64's nm complains that /dev/null is an invalid object file
3331
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3332
*/dev/null* | *'Invalid file or object type'*)
3333
lt_cv_path_NM="$tmp_nm -B"
3337
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3339
lt_cv_path_NM="$tmp_nm -p"
3343
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3344
continue # so that we can try to find one that supports BSD flags
3351
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3354
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3355
echo "${ECHO_T}$lt_cv_path_NM" >&6
3358
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3359
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3361
if test "$LN_S" = "ln -s"; then
3362
echo "$as_me:$LINENO: result: yes" >&5
3363
echo "${ECHO_T}yes" >&6
3365
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3366
echo "${ECHO_T}no, using $LN_S" >&6
3369
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3370
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3371
if test "${lt_cv_deplibs_check_method+set}" = set; then
3372
echo $ECHO_N "(cached) $ECHO_C" >&6
3374
lt_cv_file_magic_cmd='$MAGIC_CMD'
3375
lt_cv_file_magic_test_file=
3376
lt_cv_deplibs_check_method='unknown'
3377
# Need to set the preceding variable on all platforms that support
3378
# interlibrary dependencies.
3379
# 'none' -- dependencies not supported.
3380
# `unknown' -- same as none, but documents that we really don't know.
3381
# 'pass_all' -- all dependencies passed with no checks.
3382
# 'test_compile' -- check by making test program.
3383
# 'file_magic [[regex]]' -- check by looking for files in library path
3384
# which responds to the $file_magic_cmd with a given extended regex.
3385
# If you have `file' or equivalent on your system and you're not sure
3386
# whether `pass_all' will *always* work, you probably want this one.
3390
lt_cv_deplibs_check_method=pass_all
3394
lt_cv_deplibs_check_method=pass_all
3398
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3399
lt_cv_file_magic_cmd='/usr/bin/file -L'
3400
lt_cv_file_magic_test_file=/shlib/libc.so
3404
# win32_libid is a shell function defined in ltmain.sh
3405
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3406
lt_cv_file_magic_cmd='win32_libid'
3410
# Base MSYS/MinGW do not provide the 'file' command needed by
3411
# win32_libid shell function, so use a weaker test based on 'objdump'.
3412
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3413
lt_cv_file_magic_cmd='$OBJDUMP -f'
3416
darwin* | rhapsody*)
3417
lt_cv_deplibs_check_method=pass_all
3420
freebsd* | kfreebsd*-gnu)
3421
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3424
# Not sure whether the presence of OpenBSD here was a mistake.
3425
# Let's accept both of them until this is cleared up.
3426
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3427
lt_cv_file_magic_cmd=/usr/bin/file
3428
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3432
lt_cv_deplibs_check_method=pass_all
3437
lt_cv_deplibs_check_method=pass_all
3440
hpux10.20* | hpux11*)
3441
lt_cv_file_magic_cmd=/usr/bin/file
3444
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3445
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3448
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]'
3449
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3452
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3453
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3458
irix5* | irix6* | nonstopux*)
3460
*-32|*"-32 ") libmagic=32-bit;;
3461
*-n32|*"-n32 ") libmagic=N32;;
3462
*-64|*"-64 ") libmagic=64-bit;;
3463
*) libmagic=never-match;;
3465
lt_cv_deplibs_check_method=pass_all
3468
# This must be Linux ELF.
3470
lt_cv_deplibs_check_method=pass_all
3473
netbsd* | knetbsd*-gnu)
3474
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3475
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3477
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3482
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3483
lt_cv_file_magic_cmd=/usr/bin/file
3484
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3488
lt_cv_deplibs_check_method=unknown
3492
lt_cv_file_magic_cmd=/usr/bin/file
3493
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3494
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3495
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3497
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3501
osf3* | osf4* | osf5*)
3502
lt_cv_deplibs_check_method=pass_all
3506
lt_cv_deplibs_check_method=pass_all
3510
lt_cv_deplibs_check_method=pass_all
3513
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3514
case $host_vendor in
3516
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]'
3517
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3520
lt_cv_deplibs_check_method=pass_all
3523
lt_cv_file_magic_cmd='/bin/file'
3524
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3527
lt_cv_file_magic_cmd='/bin/file'
3528
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3529
lt_cv_file_magic_test_file=/lib/libc.so
3532
lt_cv_deplibs_check_method=pass_all
3537
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3538
lt_cv_deplibs_check_method=pass_all
3543
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3544
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3545
file_magic_cmd=$lt_cv_file_magic_cmd
3546
deplibs_check_method=$lt_cv_deplibs_check_method
3547
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3552
# If no C compiler was specified, use CC.
3555
# Allow CC to be a program name with arguments.
3559
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3560
if test "${enable_libtool_lock+set}" = set; then
3561
enableval="$enable_libtool_lock"
3564
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3566
# Some flags need to be propagated to the compiler or linker for good
3570
# Find out which ABI we are using.
3571
echo 'int i;' > conftest.$ac_ext
3572
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573
(eval $ac_compile) 2>&5
3575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576
(exit $ac_status); }; then
3577
case `/usr/bin/file conftest.$ac_objext` in
3589
# Find out which ABI we are using.
3590
echo '#line 3590 "configure"' > conftest.$ac_ext
3591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592
(eval $ac_compile) 2>&5
3594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595
(exit $ac_status); }; then
3596
if test "$lt_cv_prog_gnu_ld" = yes; then
3597
case `/usr/bin/file conftest.$ac_objext` in
3599
LD="${LD-ld} -melf32bsmip"
3602
LD="${LD-ld} -melf32bmipn32"
3605
LD="${LD-ld} -melf64bmip"
3609
case `/usr/bin/file conftest.$ac_objext` in
3625
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3626
# Find out which ABI we are using.
3627
echo 'int i;' > conftest.$ac_ext
3628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629
(eval $ac_compile) 2>&5
3631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
(exit $ac_status); }; then
3633
case "`/usr/bin/file conftest.o`" in
3637
LD="${LD-ld} -m elf_i386"
3639
ppc64-*linux*|powerpc64-*linux*)
3640
LD="${LD-ld} -m elf32ppclinux"
3643
LD="${LD-ld} -m elf_s390"
3646
LD="${LD-ld} -m elf32_sparc"
3653
LD="${LD-ld} -m elf_x86_64"
3655
ppc*-*linux*|powerpc*-*linux*)
3656
LD="${LD-ld} -m elf64ppc"
3659
LD="${LD-ld} -m elf64_s390"
3662
LD="${LD-ld} -m elf64_sparc"
3672
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3673
SAVE_CFLAGS="$CFLAGS"
3674
CFLAGS="$CFLAGS -belf"
3675
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3676
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3677
if test "${lt_cv_cc_needs_belf+set}" = set; then
3678
echo $ECHO_N "(cached) $ECHO_C" >&6
3681
ac_cpp='$CPP $CPPFLAGS'
3682
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
cat >conftest.$ac_ext <<_ACEOF
3689
cat confdefs.h >>conftest.$ac_ext
3690
cat >>conftest.$ac_ext <<_ACEOF
3691
/* end confdefs.h. */
3701
rm -f conftest.$ac_objext conftest$ac_exeext
3702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703
(eval $ac_link) 2>conftest.er1
3705
grep -v '^ *+' conftest.er1 >conftest.err
3707
cat conftest.err >&5
3708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
(exit $ac_status); } &&
3710
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); }; } &&
3716
{ ac_try='test -s conftest$ac_exeext'
3717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721
(exit $ac_status); }; }; then
3722
lt_cv_cc_needs_belf=yes
3724
echo "$as_me: failed program was:" >&5
3725
sed 's/^/| /' conftest.$ac_ext >&5
3727
lt_cv_cc_needs_belf=no
3729
rm -f conftest.err conftest.$ac_objext \
3730
conftest$ac_exeext conftest.$ac_ext
3732
ac_cpp='$CPP $CPPFLAGS'
3733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3739
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3740
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3741
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3742
CFLAGS="$SAVE_CFLAGS"
3748
need_locks="$enable_libtool_lock"
3752
ac_cpp='$CPP $CPPFLAGS'
3753
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3757
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3758
# On Suns, sometimes $CPP names a directory.
3759
if test -n "$CPP" && test -d "$CPP"; then
3762
if test -z "$CPP"; then
3763
if test "${ac_cv_prog_CPP+set}" = set; then
3764
echo $ECHO_N "(cached) $ECHO_C" >&6
3766
# Double quotes because CPP needs to be expanded
3767
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3770
for ac_c_preproc_warn_flag in '' yes
3772
# Use a header file that comes with gcc, so configuring glibc
3773
# with a fresh cross-compiler works.
3774
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775
# <limits.h> exists even on freestanding compilers.
3776
# On the NeXT, cc -E runs the code through the compiler's parser,
3777
# not just through cpp. "Syntax error" is here to catch this case.
3778
cat >conftest.$ac_ext <<_ACEOF
3781
cat confdefs.h >>conftest.$ac_ext
3782
cat >>conftest.$ac_ext <<_ACEOF
3783
/* end confdefs.h. */
3785
# include <limits.h>
3787
# include <assert.h>
3791
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3792
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3794
grep -v '^ *+' conftest.er1 >conftest.err
3796
cat conftest.err >&5
3797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
(exit $ac_status); } >/dev/null; then
3799
if test -s conftest.err; then
3800
ac_cpp_err=$ac_c_preproc_warn_flag
3801
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3808
if test -z "$ac_cpp_err"; then
3811
echo "$as_me: failed program was:" >&5
3812
sed 's/^/| /' conftest.$ac_ext >&5
3814
# Broken: fails on valid input.
3817
rm -f conftest.err conftest.$ac_ext
3819
# OK, works on sane cases. Now check whether non-existent headers
3820
# can be detected and how.
3821
cat >conftest.$ac_ext <<_ACEOF
3824
cat confdefs.h >>conftest.$ac_ext
3825
cat >>conftest.$ac_ext <<_ACEOF
3826
/* end confdefs.h. */
3827
#include <ac_nonexistent.h>
3829
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832
grep -v '^ *+' conftest.er1 >conftest.err
3834
cat conftest.err >&5
3835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
(exit $ac_status); } >/dev/null; then
3837
if test -s conftest.err; then
3838
ac_cpp_err=$ac_c_preproc_warn_flag
3839
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3846
if test -z "$ac_cpp_err"; then
3847
# Broken: success on invalid input.
3850
echo "$as_me: failed program was:" >&5
3851
sed 's/^/| /' conftest.$ac_ext >&5
3853
# Passes both tests.
3857
rm -f conftest.err conftest.$ac_ext
3860
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861
rm -f conftest.err conftest.$ac_ext
3862
if $ac_preproc_ok; then
3874
echo "$as_me:$LINENO: result: $CPP" >&5
3875
echo "${ECHO_T}$CPP" >&6
3877
for ac_c_preproc_warn_flag in '' yes
3879
# Use a header file that comes with gcc, so configuring glibc
3880
# with a fresh cross-compiler works.
3881
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882
# <limits.h> exists even on freestanding compilers.
3883
# On the NeXT, cc -E runs the code through the compiler's parser,
3884
# not just through cpp. "Syntax error" is here to catch this case.
3885
cat >conftest.$ac_ext <<_ACEOF
3888
cat confdefs.h >>conftest.$ac_ext
3889
cat >>conftest.$ac_ext <<_ACEOF
3890
/* end confdefs.h. */
3892
# include <limits.h>
3894
# include <assert.h>
3898
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3899
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3901
grep -v '^ *+' conftest.er1 >conftest.err
3903
cat conftest.err >&5
3904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905
(exit $ac_status); } >/dev/null; then
3906
if test -s conftest.err; then
3907
ac_cpp_err=$ac_c_preproc_warn_flag
3908
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3915
if test -z "$ac_cpp_err"; then
3918
echo "$as_me: failed program was:" >&5
3919
sed 's/^/| /' conftest.$ac_ext >&5
3921
# Broken: fails on valid input.
3924
rm -f conftest.err conftest.$ac_ext
3926
# OK, works on sane cases. Now check whether non-existent headers
3927
# can be detected and how.
3928
cat >conftest.$ac_ext <<_ACEOF
3931
cat confdefs.h >>conftest.$ac_ext
3932
cat >>conftest.$ac_ext <<_ACEOF
3933
/* end confdefs.h. */
3934
#include <ac_nonexistent.h>
3936
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3939
grep -v '^ *+' conftest.er1 >conftest.err
3941
cat conftest.err >&5
3942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
(exit $ac_status); } >/dev/null; then
3944
if test -s conftest.err; then
3945
ac_cpp_err=$ac_c_preproc_warn_flag
3946
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953
if test -z "$ac_cpp_err"; then
3954
# Broken: success on invalid input.
3957
echo "$as_me: failed program was:" >&5
3958
sed 's/^/| /' conftest.$ac_ext >&5
3960
# Passes both tests.
3964
rm -f conftest.err conftest.$ac_ext
3967
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968
rm -f conftest.err conftest.$ac_ext
3969
if $ac_preproc_ok; then
3972
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3973
See \`config.log' for more details." >&5
3974
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3975
See \`config.log' for more details." >&2;}
3976
{ (exit 1); exit 1; }; }
3980
ac_cpp='$CPP $CPPFLAGS'
3981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3987
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3988
if test "${ac_cv_header_stdc+set}" = set; then
3989
echo $ECHO_N "(cached) $ECHO_C" >&6
3991
cat >conftest.$ac_ext <<_ACEOF
3994
cat confdefs.h >>conftest.$ac_ext
3995
cat >>conftest.$ac_ext <<_ACEOF
3996
/* end confdefs.h. */
4010
rm -f conftest.$ac_objext
4011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012
(eval $ac_compile) 2>conftest.er1
4014
grep -v '^ *+' conftest.er1 >conftest.err
4016
cat conftest.err >&5
4017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018
(exit $ac_status); } &&
4019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
(exit $ac_status); }; } &&
4025
{ ac_try='test -s conftest.$ac_objext'
4026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
(exit $ac_status); }; }; then
4031
ac_cv_header_stdc=yes
4033
echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4036
ac_cv_header_stdc=no
4038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4040
if test $ac_cv_header_stdc = yes; then
4041
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4042
cat >conftest.$ac_ext <<_ACEOF
4045
cat confdefs.h >>conftest.$ac_ext
4046
cat >>conftest.$ac_ext <<_ACEOF
4047
/* end confdefs.h. */
4051
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052
$EGREP "memchr" >/dev/null 2>&1; then
4055
ac_cv_header_stdc=no
4061
if test $ac_cv_header_stdc = yes; then
4062
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4063
cat >conftest.$ac_ext <<_ACEOF
4066
cat confdefs.h >>conftest.$ac_ext
4067
cat >>conftest.$ac_ext <<_ACEOF
4068
/* end confdefs.h. */
4072
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073
$EGREP "free" >/dev/null 2>&1; then
4076
ac_cv_header_stdc=no
4082
if test $ac_cv_header_stdc = yes; then
4083
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4084
if test "$cross_compiling" = yes; then
4087
cat >conftest.$ac_ext <<_ACEOF
4090
cat confdefs.h >>conftest.$ac_ext
4091
cat >>conftest.$ac_ext <<_ACEOF
4092
/* end confdefs.h. */
4094
#if ((' ' & 0x0FF) == 0x020)
4095
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4098
# define ISLOWER(c) \
4099
(('a' <= (c) && (c) <= 'i') \
4100
|| ('j' <= (c) && (c) <= 'r') \
4101
|| ('s' <= (c) && (c) <= 'z'))
4102
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4105
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4110
for (i = 0; i < 256; i++)
4111
if (XOR (islower (i), ISLOWER (i))
4112
|| toupper (i) != TOUPPER (i))
4117
rm -f conftest$ac_exeext
4118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119
(eval $ac_link) 2>&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127
(exit $ac_status); }; }; then
4130
echo "$as_me: program exited with status $ac_status" >&5
4131
echo "$as_me: failed program was:" >&5
4132
sed 's/^/| /' conftest.$ac_ext >&5
4135
ac_cv_header_stdc=no
4137
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4141
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143
if test $ac_cv_header_stdc = yes; then
4145
cat >>confdefs.h <<\_ACEOF
4146
#define STDC_HEADERS 1
4151
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4161
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4162
inttypes.h stdint.h unistd.h
4164
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165
echo "$as_me:$LINENO: checking for $ac_header" >&5
4166
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168
echo $ECHO_N "(cached) $ECHO_C" >&6
4170
cat >conftest.$ac_ext <<_ACEOF
4173
cat confdefs.h >>conftest.$ac_ext
4174
cat >>conftest.$ac_ext <<_ACEOF
4175
/* end confdefs.h. */
4176
$ac_includes_default
4178
#include <$ac_header>
4180
rm -f conftest.$ac_objext
4181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182
(eval $ac_compile) 2>conftest.er1
4184
grep -v '^ *+' conftest.er1 >conftest.err
4186
cat conftest.err >&5
4187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
(exit $ac_status); } &&
4189
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
(exit $ac_status); }; } &&
4195
{ ac_try='test -s conftest.$ac_objext'
4196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
(exit $ac_status); }; }; then
4201
eval "$as_ac_Header=yes"
4203
echo "$as_me: failed program was:" >&5
4204
sed 's/^/| /' conftest.$ac_ext >&5
4206
eval "$as_ac_Header=no"
4208
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4211
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4212
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213
cat >>confdefs.h <<_ACEOF
4214
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223
for ac_header in dlfcn.h
4225
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4226
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4227
echo "$as_me:$LINENO: checking for $ac_header" >&5
4228
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4229
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4230
echo $ECHO_N "(cached) $ECHO_C" >&6
4232
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4233
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235
# Is the header compilable?
4236
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4237
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4238
cat >conftest.$ac_ext <<_ACEOF
4241
cat confdefs.h >>conftest.$ac_ext
4242
cat >>conftest.$ac_ext <<_ACEOF
4243
/* end confdefs.h. */
4244
$ac_includes_default
4245
#include <$ac_header>
4247
rm -f conftest.$ac_objext
4248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
(eval $ac_compile) 2>conftest.er1
4251
grep -v '^ *+' conftest.er1 >conftest.err
4253
cat conftest.err >&5
4254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
(exit $ac_status); } &&
4256
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); }; } &&
4262
{ ac_try='test -s conftest.$ac_objext'
4263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); }; }; then
4268
ac_header_compiler=yes
4270
echo "$as_me: failed program was:" >&5
4271
sed 's/^/| /' conftest.$ac_ext >&5
4273
ac_header_compiler=no
4275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4277
echo "${ECHO_T}$ac_header_compiler" >&6
4279
# Is the header present?
4280
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4281
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4282
cat >conftest.$ac_ext <<_ACEOF
4285
cat confdefs.h >>conftest.$ac_ext
4286
cat >>conftest.$ac_ext <<_ACEOF
4287
/* end confdefs.h. */
4288
#include <$ac_header>
4290
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4291
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4293
grep -v '^ *+' conftest.er1 >conftest.err
4295
cat conftest.err >&5
4296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
(exit $ac_status); } >/dev/null; then
4298
if test -s conftest.err; then
4299
ac_cpp_err=$ac_c_preproc_warn_flag
4300
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4307
if test -z "$ac_cpp_err"; then
4308
ac_header_preproc=yes
4310
echo "$as_me: failed program was:" >&5
4311
sed 's/^/| /' conftest.$ac_ext >&5
4313
ac_header_preproc=no
4315
rm -f conftest.err conftest.$ac_ext
4316
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4317
echo "${ECHO_T}$ac_header_preproc" >&6
4319
# So? What about this header?
4320
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4322
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4323
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4324
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4325
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4326
ac_header_preproc=yes
4329
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4330
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4331
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4332
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4333
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4334
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4335
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4336
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4337
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4338
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4339
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4340
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4343
## ------------------------------------------ ##
4344
## Report this to the AC_PACKAGE_NAME lists. ##
4345
## ------------------------------------------ ##
4348
sed "s/^/$as_me: WARNING: /" >&2
4351
echo "$as_me:$LINENO: checking for $ac_header" >&5
4352
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354
echo $ECHO_N "(cached) $ECHO_C" >&6
4356
eval "$as_ac_Header=\$ac_header_preproc"
4358
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4363
cat >>confdefs.h <<_ACEOF
4364
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4372
ac_cpp='$CXXCPP $CPPFLAGS'
4373
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376
if test -n "$ac_tool_prefix"; then
4377
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4379
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381
echo "$as_me:$LINENO: checking for $ac_word" >&5
4382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383
if test "${ac_cv_prog_CXX+set}" = set; then
4384
echo $ECHO_N "(cached) $ECHO_C" >&6
4386
if test -n "$CXX"; then
4387
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393
test -z "$as_dir" && as_dir=.
4394
for ac_exec_ext in '' $ac_executable_extensions; do
4395
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406
if test -n "$CXX"; then
4407
echo "$as_me:$LINENO: result: $CXX" >&5
4408
echo "${ECHO_T}$CXX" >&6
4410
echo "$as_me:$LINENO: result: no" >&5
4411
echo "${ECHO_T}no" >&6
4414
test -n "$CXX" && break
4417
if test -z "$CXX"; then
4419
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4421
# Extract the first word of "$ac_prog", so it can be a program name with args.
4422
set dummy $ac_prog; ac_word=$2
4423
echo "$as_me:$LINENO: checking for $ac_word" >&5
4424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4426
echo $ECHO_N "(cached) $ECHO_C" >&6
4428
if test -n "$ac_ct_CXX"; then
4429
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435
test -z "$as_dir" && as_dir=.
4436
for ac_exec_ext in '' $ac_executable_extensions; do
4437
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438
ac_cv_prog_ac_ct_CXX="$ac_prog"
4439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4448
if test -n "$ac_ct_CXX"; then
4449
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4450
echo "${ECHO_T}$ac_ct_CXX" >&6
4452
echo "$as_me:$LINENO: result: no" >&5
4453
echo "${ECHO_T}no" >&6
4456
test -n "$ac_ct_CXX" && break
4458
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4464
# Provide some information about the compiler.
4465
echo "$as_me:$LINENO:" \
4466
"checking for C++ compiler version" >&5
4467
ac_compiler=`set X $ac_compile; echo $2`
4468
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4469
(eval $ac_compiler --version </dev/null >&5) 2>&5
4471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
(exit $ac_status); }
4473
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4474
(eval $ac_compiler -v </dev/null >&5) 2>&5
4476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
(exit $ac_status); }
4478
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4479
(eval $ac_compiler -V </dev/null >&5) 2>&5
4481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482
(exit $ac_status); }
4484
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4485
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4486
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4487
echo $ECHO_N "(cached) $ECHO_C" >&6
4489
cat >conftest.$ac_ext <<_ACEOF
4492
cat confdefs.h >>conftest.$ac_ext
4493
cat >>conftest.$ac_ext <<_ACEOF
4494
/* end confdefs.h. */
4507
rm -f conftest.$ac_objext
4508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509
(eval $ac_compile) 2>conftest.er1
4511
grep -v '^ *+' conftest.er1 >conftest.err
4513
cat conftest.err >&5
4514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
(exit $ac_status); } &&
4516
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
(exit $ac_status); }; } &&
4522
{ ac_try='test -s conftest.$ac_objext'
4523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527
(exit $ac_status); }; }; then
4530
echo "$as_me: failed program was:" >&5
4531
sed 's/^/| /' conftest.$ac_ext >&5
4535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4539
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4540
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4541
GXX=`test $ac_compiler_gnu = yes && echo yes`
4542
ac_test_CXXFLAGS=${CXXFLAGS+set}
4543
ac_save_CXXFLAGS=$CXXFLAGS
4545
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4546
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4547
if test "${ac_cv_prog_cxx_g+set}" = set; then
4548
echo $ECHO_N "(cached) $ECHO_C" >&6
4550
cat >conftest.$ac_ext <<_ACEOF
4553
cat confdefs.h >>conftest.$ac_ext
4554
cat >>conftest.$ac_ext <<_ACEOF
4555
/* end confdefs.h. */
4565
rm -f conftest.$ac_objext
4566
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567
(eval $ac_compile) 2>conftest.er1
4569
grep -v '^ *+' conftest.er1 >conftest.err
4571
cat conftest.err >&5
4572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
(exit $ac_status); } &&
4574
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
(exit $ac_status); }; } &&
4580
{ ac_try='test -s conftest.$ac_objext'
4581
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); }; }; then
4586
ac_cv_prog_cxx_g=yes
4588
echo "$as_me: failed program was:" >&5
4589
sed 's/^/| /' conftest.$ac_ext >&5
4593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4595
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4596
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4597
if test "$ac_test_CXXFLAGS" = set; then
4598
CXXFLAGS=$ac_save_CXXFLAGS
4599
elif test $ac_cv_prog_cxx_g = yes; then
4600
if test "$GXX" = yes; then
4606
if test "$GXX" = yes; then
4612
for ac_declaration in \
4614
'extern "C" void std::exit (int) throw (); using std::exit;' \
4615
'extern "C" void std::exit (int); using std::exit;' \
4616
'extern "C" void exit (int) throw ();' \
4617
'extern "C" void exit (int);' \
4620
cat >conftest.$ac_ext <<_ACEOF
4623
cat confdefs.h >>conftest.$ac_ext
4624
cat >>conftest.$ac_ext <<_ACEOF
4625
/* end confdefs.h. */
4636
rm -f conftest.$ac_objext
4637
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638
(eval $ac_compile) 2>conftest.er1
4640
grep -v '^ *+' conftest.er1 >conftest.err
4642
cat conftest.err >&5
4643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
(exit $ac_status); } &&
4645
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650
(exit $ac_status); }; } &&
4651
{ ac_try='test -s conftest.$ac_objext'
4652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
(exit $ac_status); }; }; then
4659
echo "$as_me: failed program was:" >&5
4660
sed 's/^/| /' conftest.$ac_ext >&5
4664
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665
cat >conftest.$ac_ext <<_ACEOF
4668
cat confdefs.h >>conftest.$ac_ext
4669
cat >>conftest.$ac_ext <<_ACEOF
4670
/* end confdefs.h. */
4680
rm -f conftest.$ac_objext
4681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682
(eval $ac_compile) 2>conftest.er1
4684
grep -v '^ *+' conftest.er1 >conftest.err
4686
cat conftest.err >&5
4687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
(exit $ac_status); } &&
4689
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
(exit $ac_status); }; } &&
4695
{ ac_try='test -s conftest.$ac_objext'
4696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
(exit $ac_status); }; }; then
4703
echo "$as_me: failed program was:" >&5
4704
sed 's/^/| /' conftest.$ac_ext >&5
4707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710
if test -n "$ac_declaration"; then
4711
echo '#ifdef __cplusplus' >>confdefs.h
4712
echo $ac_declaration >>confdefs.h
4713
echo '#endif' >>confdefs.h
4717
ac_cpp='$CXXCPP $CPPFLAGS'
4718
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4722
depcc="$CXX" am_compiler_list=
4724
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4725
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4726
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4727
echo $ECHO_N "(cached) $ECHO_C" >&6
4729
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4730
# We make a subdir and do the tests there. Otherwise we can end up
4731
# making bogus files that we don't know about and never remove. For
4732
# instance it was reported that on HP-UX the gcc test will end up
4733
# making a dummy file named `D' -- because `-MD' means `put the output
4736
# Copy depcomp to subdir because otherwise we won't find it if we're
4737
# using a relative directory.
4738
cp "$am_depcomp" conftest.dir
4741
am_cv_CXX_dependencies_compiler_type=none
4742
if test "$am_compiler_list" = ""; then
4743
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4745
for depmode in $am_compiler_list; do
4746
# We need to recreate these files for each test, as the compiler may
4747
# overwrite some of them when testing with obscure command lines.
4748
# This happens at least with the AIX C compiler.
4749
echo '#include "conftest.h"' > conftest.c
4750
echo 'int i;' > conftest.h
4751
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4755
# after this tag, mechanisms are not by side-effect, so they'll
4756
# only be used when explicitly requested
4757
if test "x$enable_dependency_tracking" = xyes; then
4765
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4766
# mode. It turns out that the SunPro C++ compiler does not properly
4767
# handle `-M -o', and we need to detect this.
4768
if depmode=$depmode \
4769
source=conftest.c object=conftest.o \
4770
depfile=conftest.Po tmpdepfile=conftest.TPo \
4771
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4772
grep conftest.h conftest.Po > /dev/null 2>&1 &&
4773
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4774
am_cv_CXX_dependencies_compiler_type=$depmode
4782
am_cv_CXX_dependencies_compiler_type=none
4786
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4787
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4788
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4792
ac_cpp='$CXXCPP $CPPFLAGS'
4793
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4797
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4798
if test -z "$CXXCPP"; then
4799
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4800
echo $ECHO_N "(cached) $ECHO_C" >&6
4802
# Double quotes because CXXCPP needs to be expanded
4803
for CXXCPP in "$CXX -E" "/lib/cpp"
4806
for ac_cxx_preproc_warn_flag in '' yes
4808
# Use a header file that comes with gcc, so configuring glibc
4809
# with a fresh cross-compiler works.
4810
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811
# <limits.h> exists even on freestanding compilers.
4812
# On the NeXT, cc -E runs the code through the compiler's parser,
4813
# not just through cpp. "Syntax error" is here to catch this case.
4814
cat >conftest.$ac_ext <<_ACEOF
4817
cat confdefs.h >>conftest.$ac_ext
4818
cat >>conftest.$ac_ext <<_ACEOF
4819
/* end confdefs.h. */
4821
# include <limits.h>
4823
# include <assert.h>
4827
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830
grep -v '^ *+' conftest.er1 >conftest.err
4832
cat conftest.err >&5
4833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834
(exit $ac_status); } >/dev/null; then
4835
if test -s conftest.err; then
4836
ac_cpp_err=$ac_cxx_preproc_warn_flag
4837
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4844
if test -z "$ac_cpp_err"; then
4847
echo "$as_me: failed program was:" >&5
4848
sed 's/^/| /' conftest.$ac_ext >&5
4850
# Broken: fails on valid input.
4853
rm -f conftest.err conftest.$ac_ext
4855
# OK, works on sane cases. Now check whether non-existent headers
4856
# can be detected and how.
4857
cat >conftest.$ac_ext <<_ACEOF
4860
cat confdefs.h >>conftest.$ac_ext
4861
cat >>conftest.$ac_ext <<_ACEOF
4862
/* end confdefs.h. */
4863
#include <ac_nonexistent.h>
4865
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868
grep -v '^ *+' conftest.er1 >conftest.err
4870
cat conftest.err >&5
4871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872
(exit $ac_status); } >/dev/null; then
4873
if test -s conftest.err; then
4874
ac_cpp_err=$ac_cxx_preproc_warn_flag
4875
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4882
if test -z "$ac_cpp_err"; then
4883
# Broken: success on invalid input.
4886
echo "$as_me: failed program was:" >&5
4887
sed 's/^/| /' conftest.$ac_ext >&5
4889
# Passes both tests.
4893
rm -f conftest.err conftest.$ac_ext
4896
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897
rm -f conftest.err conftest.$ac_ext
4898
if $ac_preproc_ok; then
4903
ac_cv_prog_CXXCPP=$CXXCPP
4906
CXXCPP=$ac_cv_prog_CXXCPP
4908
ac_cv_prog_CXXCPP=$CXXCPP
4910
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4911
echo "${ECHO_T}$CXXCPP" >&6
4913
for ac_cxx_preproc_warn_flag in '' yes
4915
# Use a header file that comes with gcc, so configuring glibc
4916
# with a fresh cross-compiler works.
4917
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918
# <limits.h> exists even on freestanding compilers.
4919
# On the NeXT, cc -E runs the code through the compiler's parser,
4920
# not just through cpp. "Syntax error" is here to catch this case.
4921
cat >conftest.$ac_ext <<_ACEOF
4924
cat confdefs.h >>conftest.$ac_ext
4925
cat >>conftest.$ac_ext <<_ACEOF
4926
/* end confdefs.h. */
4928
# include <limits.h>
4930
# include <assert.h>
4934
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937
grep -v '^ *+' conftest.er1 >conftest.err
4939
cat conftest.err >&5
4940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
(exit $ac_status); } >/dev/null; then
4942
if test -s conftest.err; then
4943
ac_cpp_err=$ac_cxx_preproc_warn_flag
4944
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4951
if test -z "$ac_cpp_err"; then
4954
echo "$as_me: failed program was:" >&5
4955
sed 's/^/| /' conftest.$ac_ext >&5
4957
# Broken: fails on valid input.
4960
rm -f conftest.err conftest.$ac_ext
4962
# OK, works on sane cases. Now check whether non-existent headers
4963
# can be detected and how.
4964
cat >conftest.$ac_ext <<_ACEOF
4967
cat confdefs.h >>conftest.$ac_ext
4968
cat >>conftest.$ac_ext <<_ACEOF
4969
/* end confdefs.h. */
4970
#include <ac_nonexistent.h>
4972
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975
grep -v '^ *+' conftest.er1 >conftest.err
4977
cat conftest.err >&5
4978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
(exit $ac_status); } >/dev/null; then
4980
if test -s conftest.err; then
4981
ac_cpp_err=$ac_cxx_preproc_warn_flag
4982
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989
if test -z "$ac_cpp_err"; then
4990
# Broken: success on invalid input.
4993
echo "$as_me: failed program was:" >&5
4994
sed 's/^/| /' conftest.$ac_ext >&5
4996
# Passes both tests.
5000
rm -f conftest.err conftest.$ac_ext
5003
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004
rm -f conftest.err conftest.$ac_ext
5005
if $ac_preproc_ok; then
5008
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5009
See \`config.log' for more details." >&5
5010
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5011
See \`config.log' for more details." >&2;}
5012
{ (exit 1); exit 1; }; }
5016
ac_cpp='$CXXCPP $CPPFLAGS'
5017
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5024
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5026
if test -n "$ac_tool_prefix"; then
5027
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5029
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5030
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5031
echo "$as_me:$LINENO: checking for $ac_word" >&5
5032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033
if test "${ac_cv_prog_F77+set}" = set; then
5034
echo $ECHO_N "(cached) $ECHO_C" >&6
5036
if test -n "$F77"; then
5037
ac_cv_prog_F77="$F77" # Let the user override the test.
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043
test -z "$as_dir" && as_dir=.
5044
for ac_exec_ext in '' $ac_executable_extensions; do
5045
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5047
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056
if test -n "$F77"; then
5057
echo "$as_me:$LINENO: result: $F77" >&5
5058
echo "${ECHO_T}$F77" >&6
5060
echo "$as_me:$LINENO: result: no" >&5
5061
echo "${ECHO_T}no" >&6
5064
test -n "$F77" && break
5067
if test -z "$F77"; then
5069
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5071
# Extract the first word of "$ac_prog", so it can be a program name with args.
5072
set dummy $ac_prog; ac_word=$2
5073
echo "$as_me:$LINENO: checking for $ac_word" >&5
5074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5076
echo $ECHO_N "(cached) $ECHO_C" >&6
5078
if test -n "$ac_ct_F77"; then
5079
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085
test -z "$as_dir" && as_dir=.
5086
for ac_exec_ext in '' $ac_executable_extensions; do
5087
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088
ac_cv_prog_ac_ct_F77="$ac_prog"
5089
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5098
if test -n "$ac_ct_F77"; then
5099
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5100
echo "${ECHO_T}$ac_ct_F77" >&6
5102
echo "$as_me:$LINENO: result: no" >&5
5103
echo "${ECHO_T}no" >&6
5106
test -n "$ac_ct_F77" && break
5113
# Provide some information about the compiler.
5114
echo "$as_me:5114:" \
5115
"checking for Fortran 77 compiler version" >&5
5116
ac_compiler=`set X $ac_compile; echo $2`
5117
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5118
(eval $ac_compiler --version </dev/null >&5) 2>&5
5120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
(exit $ac_status); }
5122
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5123
(eval $ac_compiler -v </dev/null >&5) 2>&5
5125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
(exit $ac_status); }
5127
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5128
(eval $ac_compiler -V </dev/null >&5) 2>&5
5130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131
(exit $ac_status); }
5134
# If we don't use `.F' as extension, the preprocessor is not run on the
5135
# input file. (Note that this only needs to work for GNU compilers.)
5138
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5139
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5140
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5141
echo $ECHO_N "(cached) $ECHO_C" >&6
5143
cat >conftest.$ac_ext <<_ACEOF
5151
rm -f conftest.$ac_objext
5152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153
(eval $ac_compile) 2>conftest.er1
5155
grep -v '^ *+' conftest.er1 >conftest.err
5157
cat conftest.err >&5
5158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
(exit $ac_status); } &&
5160
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
(exit $ac_status); }; } &&
5166
{ ac_try='test -s conftest.$ac_objext'
5167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171
(exit $ac_status); }; }; then
5174
echo "$as_me: failed program was:" >&5
5175
sed 's/^/| /' conftest.$ac_ext >&5
5179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5183
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5184
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5186
ac_test_FFLAGS=${FFLAGS+set}
5187
ac_save_FFLAGS=$FFLAGS
5189
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5190
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5191
if test "${ac_cv_prog_f77_g+set}" = set; then
5192
echo $ECHO_N "(cached) $ECHO_C" >&6
5195
cat >conftest.$ac_ext <<_ACEOF
5200
rm -f conftest.$ac_objext
5201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202
(eval $ac_compile) 2>conftest.er1
5204
grep -v '^ *+' conftest.er1 >conftest.err
5206
cat conftest.err >&5
5207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
(exit $ac_status); } &&
5209
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
(exit $ac_status); }; } &&
5215
{ ac_try='test -s conftest.$ac_objext'
5216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220
(exit $ac_status); }; }; then
5221
ac_cv_prog_f77_g=yes
5223
echo "$as_me: failed program was:" >&5
5224
sed 's/^/| /' conftest.$ac_ext >&5
5228
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5232
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5233
if test "$ac_test_FFLAGS" = set; then
5234
FFLAGS=$ac_save_FFLAGS
5235
elif test $ac_cv_prog_f77_g = yes; then
5236
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5242
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5249
G77=`test $ac_compiler_gnu = yes && echo yes`
5251
ac_cpp='$CPP $CPPFLAGS'
5252
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5260
# find the maximum length of command line arguments
5261
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5262
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5263
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5264
echo $ECHO_N "(cached) $ECHO_C" >&6
5271
# On DJGPP, this test can blow up pretty badly due to problems in libc
5272
# (any single argument exceeding 2000 bytes causes a buffer overrun
5273
# during glob expansion). Even if it were fixed, the result of this
5274
# check would be larger than it should be.
5275
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5279
# Under GNU Hurd, this test is not required because there is
5280
# no limit to the length of command line arguments.
5281
# Libtool will interpret -1 as no limit whatsoever
5282
lt_cv_sys_max_cmd_len=-1;
5286
# On Win9x/ME, this test blows up -- it succeeds, but takes
5287
# about 5 minutes as the teststring grows exponentially.
5288
# Worse, since 9x/ME are not pre-emptively multitasking,
5289
# you end up with a "frozen" computer, even though with patience
5290
# the test eventually succeeds (with a max line length of 256k).
5291
# Instead, let's just punt: use the minimum linelength reported by
5292
# all of the supported platforms: 8192 (on NT/2K/XP).
5293
lt_cv_sys_max_cmd_len=8192;
5297
# On AmigaOS with pdksh, this test takes hours, literally.
5298
# So we just punt and use a minimum line length of 8192.
5299
lt_cv_sys_max_cmd_len=8192;
5303
# If test is not a shell built-in, we'll probably end up computing a
5304
# maximum length that is only half of the actual maximum length, but
5306
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5307
= "XX$testring") >/dev/null 2>&1 &&
5308
new_result=`expr "X$testring" : ".*" 2>&1` &&
5309
lt_cv_sys_max_cmd_len=$new_result &&
5310
test $i != 17 # 1/2 MB should be enough
5313
testring=$testring$testring
5316
# Add a significant safety factor because C++ compilers can tack on massive
5317
# amounts of additional arguments before passing them to the linker.
5318
# It appears as though 1/2 is a usable value.
5319
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5325
if test -n $lt_cv_sys_max_cmd_len ; then
5326
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5327
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5329
echo "$as_me:$LINENO: result: none" >&5
5330
echo "${ECHO_T}none" >&6
5336
# Check for command to grab the raw symbol name followed by C symbol from nm.
5337
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5338
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5339
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5340
echo $ECHO_N "(cached) $ECHO_C" >&6
5343
# These are sane defaults that work on at least a few old systems.
5344
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5346
# Character class describing NM global symbol codes.
5347
symcode='[BCDEGRST]'
5349
# Regexp to match symbols that can be accessed directly from C.
5350
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5352
# Transform the above into a raw symbol and a C symbol.
5353
symxfrm='\1 \2\3 \3'
5355
# Transform an extracted symbol line into a proper C declaration
5356
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5358
# Transform an extracted symbol line into symbol name and symbol address
5359
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5361
# Define system-specific variables.
5366
cygwin* | mingw* | pw32*)
5367
symcode='[ABCDGISTW]'
5369
hpux*) # Its linker distinguishes data from code symbols
5370
if test "$host_cpu" = ia64; then
5371
symcode='[ABCDEGRST]'
5373
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5374
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5377
symcode='[BCDEGRST]'
5380
symcode='[BCDEGQRST]'
5390
# Handle CRLF in mingw tool chain
5394
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5398
# If we're using GNU nm, then use its standard symbol codes.
5399
case `$NM -V 2>&1` in
5400
*GNU* | *'with BFD'*)
5401
symcode='[ABCDGIRSTW]' ;;
5404
# Try without a prefix undercore, then with it.
5405
for ac_symprfx in "" "_"; do
5407
# Write the raw and C identifiers.
5408
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5410
# Check to see that the pipe works correctly.
5414
cat > conftest.$ac_ext <<EOF
5419
void nm_test_func(){}
5423
int main(){nm_test_var='a';nm_test_func();return(0);}
5426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427
(eval $ac_compile) 2>&5
5429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
(exit $ac_status); }; then
5431
# Now try to grab the symbols.
5433
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5434
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
(exit $ac_status); } && test -s "$nlist"; then
5438
# Try sorting and uniquifying the output.
5439
if sort "$nlist" | uniq > "$nlist"T; then
5440
mv -f "$nlist"T "$nlist"
5445
# Make sure that we snagged all the symbols we need.
5446
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5447
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5448
cat <<EOF > conftest.$ac_ext
5454
# Now generate the symbol file.
5455
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5457
cat <<EOF >> conftest.$ac_ext
5458
#if defined (__STDC__) && __STDC__
5459
# define lt_ptr_t void *
5461
# define lt_ptr_t char *
5465
/* The mapping between symbol names and symbols. */
5470
lt_preloaded_symbols[] =
5473
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5474
cat <<\EOF >> conftest.$ac_ext
5482
# Now try linking the two files.
5483
mv conftest.$ac_objext conftstm.$ac_objext
5484
lt_save_LIBS="$LIBS"
5485
lt_save_CFLAGS="$CFLAGS"
5486
LIBS="conftstm.$ac_objext"
5487
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5488
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5489
(eval $ac_link) 2>&5
5491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5495
LIBS="$lt_save_LIBS"
5496
CFLAGS="$lt_save_CFLAGS"
5498
echo "cannot find nm_test_func in $nlist" >&5
5501
echo "cannot find nm_test_var in $nlist" >&5
5504
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5507
echo "$progname: failed program was:" >&5
5508
cat conftest.$ac_ext >&5
5510
rm -f conftest* conftst*
5512
# Do not use the global_symbol_pipe unless it works.
5513
if test "$pipe_works" = yes; then
5516
lt_cv_sys_global_symbol_pipe=
5522
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5523
lt_cv_sys_global_symbol_to_cdecl=
5525
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5526
echo "$as_me:$LINENO: result: failed" >&5
5527
echo "${ECHO_T}failed" >&6
5529
echo "$as_me:$LINENO: result: ok" >&5
5530
echo "${ECHO_T}ok" >&6
5533
echo "$as_me:$LINENO: checking for objdir" >&5
5534
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5535
if test "${lt_cv_objdir+set}" = set; then
5536
echo $ECHO_N "(cached) $ECHO_C" >&6
5538
rm -f .libs 2>/dev/null
5539
mkdir .libs 2>/dev/null
5540
if test -d .libs; then
5543
# MS-DOS does not allow filenames that begin with a dot.
5546
rmdir .libs 2>/dev/null
5548
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5549
echo "${ECHO_T}$lt_cv_objdir" >&6
5550
objdir=$lt_cv_objdir
5558
# AIX sometimes has problems with the GCC collect2 program. For some
5559
# reason, if we set the COLLECT_NAMES environment variable, the problems
5560
# vanish in a puff of smoke.
5561
if test "X${COLLECT_NAMES+set}" != Xset; then
5563
export COLLECT_NAMES
5568
# Sed substitution that helps us do robust quoting. It backslashifies
5569
# metacharacters that are still active within double-quoted strings.
5570
Xsed='sed -e s/^X//'
5571
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5573
# Same as above, but do not quote variable references.
5574
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5576
# Sed substitution to delay expansion of an escaped shell variable in a
5577
# double_quote_subst'ed string.
5578
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5580
# Sed substitution to avoid accidental globbing in evaled expressions
5581
no_glob_subst='s/\*/\\\*/g'
5587
default_ofile=libtool
5588
can_build_shared=yes
5590
# All known linkers require a `.a' archive for static linking (except M$VC,
5591
# which needs '.lib').
5593
ltmain="$ac_aux_dir/ltmain.sh"
5594
ofile="$default_ofile"
5595
with_gnu_ld="$lt_cv_prog_gnu_ld"
5597
if test -n "$ac_tool_prefix"; then
5598
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5599
set dummy ${ac_tool_prefix}ar; ac_word=$2
5600
echo "$as_me:$LINENO: checking for $ac_word" >&5
5601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602
if test "${ac_cv_prog_AR+set}" = set; then
5603
echo $ECHO_N "(cached) $ECHO_C" >&6
5605
if test -n "$AR"; then
5606
ac_cv_prog_AR="$AR" # Let the user override the test.
5608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612
test -z "$as_dir" && as_dir=.
5613
for ac_exec_ext in '' $ac_executable_extensions; do
5614
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615
ac_cv_prog_AR="${ac_tool_prefix}ar"
5616
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625
if test -n "$AR"; then
5626
echo "$as_me:$LINENO: result: $AR" >&5
5627
echo "${ECHO_T}$AR" >&6
5629
echo "$as_me:$LINENO: result: no" >&5
5630
echo "${ECHO_T}no" >&6
5634
if test -z "$ac_cv_prog_AR"; then
5636
# Extract the first word of "ar", so it can be a program name with args.
5637
set dummy ar; ac_word=$2
5638
echo "$as_me:$LINENO: checking for $ac_word" >&5
5639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5641
echo $ECHO_N "(cached) $ECHO_C" >&6
5643
if test -n "$ac_ct_AR"; then
5644
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650
test -z "$as_dir" && as_dir=.
5651
for ac_exec_ext in '' $ac_executable_extensions; do
5652
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653
ac_cv_prog_ac_ct_AR="ar"
5654
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5663
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5664
if test -n "$ac_ct_AR"; then
5665
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5666
echo "${ECHO_T}$ac_ct_AR" >&6
5668
echo "$as_me:$LINENO: result: no" >&5
5669
echo "${ECHO_T}no" >&6
5677
if test -n "$ac_tool_prefix"; then
5678
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5679
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5680
echo "$as_me:$LINENO: checking for $ac_word" >&5
5681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5682
if test "${ac_cv_prog_RANLIB+set}" = set; then
5683
echo $ECHO_N "(cached) $ECHO_C" >&6
5685
if test -n "$RANLIB"; then
5686
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692
test -z "$as_dir" && as_dir=.
5693
for ac_exec_ext in '' $ac_executable_extensions; do
5694
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5696
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704
RANLIB=$ac_cv_prog_RANLIB
5705
if test -n "$RANLIB"; then
5706
echo "$as_me:$LINENO: result: $RANLIB" >&5
5707
echo "${ECHO_T}$RANLIB" >&6
5709
echo "$as_me:$LINENO: result: no" >&5
5710
echo "${ECHO_T}no" >&6
5714
if test -z "$ac_cv_prog_RANLIB"; then
5715
ac_ct_RANLIB=$RANLIB
5716
# Extract the first word of "ranlib", so it can be a program name with args.
5717
set dummy ranlib; ac_word=$2
5718
echo "$as_me:$LINENO: checking for $ac_word" >&5
5719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5721
echo $ECHO_N "(cached) $ECHO_C" >&6
5723
if test -n "$ac_ct_RANLIB"; then
5724
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730
test -z "$as_dir" && as_dir=.
5731
for ac_exec_ext in '' $ac_executable_extensions; do
5732
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733
ac_cv_prog_ac_ct_RANLIB="ranlib"
5734
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5743
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744
if test -n "$ac_ct_RANLIB"; then
5745
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5746
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5748
echo "$as_me:$LINENO: result: no" >&5
5749
echo "${ECHO_T}no" >&6
5752
RANLIB=$ac_ct_RANLIB
5754
RANLIB="$ac_cv_prog_RANLIB"
5757
if test -n "$ac_tool_prefix"; then
5758
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759
set dummy ${ac_tool_prefix}strip; ac_word=$2
5760
echo "$as_me:$LINENO: checking for $ac_word" >&5
5761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762
if test "${ac_cv_prog_STRIP+set}" = set; then
5763
echo $ECHO_N "(cached) $ECHO_C" >&6
5765
if test -n "$STRIP"; then
5766
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772
test -z "$as_dir" && as_dir=.
5773
for ac_exec_ext in '' $ac_executable_extensions; do
5774
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784
STRIP=$ac_cv_prog_STRIP
5785
if test -n "$STRIP"; then
5786
echo "$as_me:$LINENO: result: $STRIP" >&5
5787
echo "${ECHO_T}$STRIP" >&6
5789
echo "$as_me:$LINENO: result: no" >&5
5790
echo "${ECHO_T}no" >&6
5794
if test -z "$ac_cv_prog_STRIP"; then
5796
# Extract the first word of "strip", so it can be a program name with args.
5797
set dummy strip; ac_word=$2
5798
echo "$as_me:$LINENO: checking for $ac_word" >&5
5799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5801
echo $ECHO_N "(cached) $ECHO_C" >&6
5803
if test -n "$ac_ct_STRIP"; then
5804
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810
test -z "$as_dir" && as_dir=.
5811
for ac_exec_ext in '' $ac_executable_extensions; do
5812
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813
ac_cv_prog_ac_ct_STRIP="strip"
5814
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5823
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5824
if test -n "$ac_ct_STRIP"; then
5825
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5826
echo "${ECHO_T}$ac_ct_STRIP" >&6
5828
echo "$as_me:$LINENO: result: no" >&5
5829
echo "${ECHO_T}no" >&6
5834
STRIP="$ac_cv_prog_STRIP"
5839
old_CFLAGS="$CFLAGS"
5841
# Set sane defaults for various variables
5842
test -z "$AR" && AR=ar
5843
test -z "$AR_FLAGS" && AR_FLAGS=cru
5844
test -z "$AS" && AS=as
5845
test -z "$CC" && CC=cc
5846
test -z "$LTCC" && LTCC=$CC
5847
test -z "$DLLTOOL" && DLLTOOL=dlltool
5848
test -z "$LD" && LD=ld
5849
test -z "$LN_S" && LN_S="ln -s"
5850
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5851
test -z "$NM" && NM=nm
5852
test -z "$SED" && SED=sed
5853
test -z "$OBJDUMP" && OBJDUMP=objdump
5854
test -z "$RANLIB" && RANLIB=:
5855
test -z "$STRIP" && STRIP=:
5856
test -z "$ac_objext" && ac_objext=o
5858
# Determine commands to create old-style static archives.
5859
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5860
old_postinstall_cmds='chmod 644 $oldlib'
5861
old_postuninstall_cmds=
5863
if test -n "$RANLIB"; then
5866
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5869
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5872
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5875
# Only perform the check for file, if the check method requires it
5876
case $deplibs_check_method in
5878
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5879
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5880
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5881
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5882
echo $ECHO_N "(cached) $ECHO_C" >&6
5886
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5889
lt_save_MAGIC_CMD="$MAGIC_CMD"
5890
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5892
for ac_dir in $ac_dummy; do
5894
test -z "$ac_dir" && ac_dir=.
5895
if test -f $ac_dir/${ac_tool_prefix}file; then
5896
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5897
if test -n "$file_magic_test_file"; then
5898
case $deplibs_check_method in
5900
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5901
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5903
$EGREP "$file_magic_regex" > /dev/null; then
5908
*** Warning: the command libtool uses to detect shared libraries,
5909
*** $file_magic_cmd, produces output that libtool cannot recognize.
5910
*** The result is that libtool may fail to recognize shared libraries
5911
*** as such. This will affect the creation of libtool libraries that
5912
*** depend on shared libraries, but programs linked with such libtool
5913
*** libraries will work regardless of this problem. Nevertheless, you
5914
*** may want to report the problem to your system manager and/or to
5915
*** bug-libtool@gnu.org
5925
MAGIC_CMD="$lt_save_MAGIC_CMD"
5930
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931
if test -n "$MAGIC_CMD"; then
5932
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5933
echo "${ECHO_T}$MAGIC_CMD" >&6
5935
echo "$as_me:$LINENO: result: no" >&5
5936
echo "${ECHO_T}no" >&6
5939
if test -z "$lt_cv_path_MAGIC_CMD"; then
5940
if test -n "$ac_tool_prefix"; then
5941
echo "$as_me:$LINENO: checking for file" >&5
5942
echo $ECHO_N "checking for file... $ECHO_C" >&6
5943
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5944
echo $ECHO_N "(cached) $ECHO_C" >&6
5948
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5951
lt_save_MAGIC_CMD="$MAGIC_CMD"
5952
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5953
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5954
for ac_dir in $ac_dummy; do
5956
test -z "$ac_dir" && ac_dir=.
5957
if test -f $ac_dir/file; then
5958
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5959
if test -n "$file_magic_test_file"; then
5960
case $deplibs_check_method in
5962
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5963
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5965
$EGREP "$file_magic_regex" > /dev/null; then
5970
*** Warning: the command libtool uses to detect shared libraries,
5971
*** $file_magic_cmd, produces output that libtool cannot recognize.
5972
*** The result is that libtool may fail to recognize shared libraries
5973
*** as such. This will affect the creation of libtool libraries that
5974
*** depend on shared libraries, but programs linked with such libtool
5975
*** libraries will work regardless of this problem. Nevertheless, you
5976
*** may want to report the problem to your system manager and/or to
5977
*** bug-libtool@gnu.org
5987
MAGIC_CMD="$lt_save_MAGIC_CMD"
5992
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993
if test -n "$MAGIC_CMD"; then
5994
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5995
echo "${ECHO_T}$MAGIC_CMD" >&6
5997
echo "$as_me:$LINENO: result: no" >&5
5998
echo "${ECHO_T}no" >&6
6013
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6014
if test "${enable_libtool_lock+set}" = set; then
6015
enableval="$enable_libtool_lock"
6018
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6021
# Check whether --with-pic or --without-pic was given.
6022
if test "${with_pic+set}" = set; then
6028
test -z "$pic_mode" && pic_mode=default
6030
# Use C for the default configuration in the libtool script
6034
ac_cpp='$CPP $CPPFLAGS'
6035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
# Source file extension for C test sources.
6043
# Object file extension for compiled C test sources.
6047
# Code to be used in simple compile tests
6048
lt_simple_compile_test_code="int some_variable = 0;\n"
6050
# Code to be used in simple link tests
6051
lt_simple_link_test_code='int main(){return(0);}\n'
6054
# If no C compiler was specified, use CC.
6057
# Allow CC to be a program name with arguments.
6062
# Check for any special shared library compilation flags.
6065
if test "$GCC" = no; then
6068
lt_prog_cc_shlib='-belf'
6072
if test -n "$lt_prog_cc_shlib"; then
6073
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6074
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6075
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6077
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6078
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6079
lt_cv_prog_cc_can_build_shared=no
6085
# Check to make sure the static flag actually works.
6087
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6088
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6089
if test "${lt_prog_compiler_static_works+set}" = set; then
6090
echo $ECHO_N "(cached) $ECHO_C" >&6
6092
lt_prog_compiler_static_works=no
6093
save_LDFLAGS="$LDFLAGS"
6094
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6095
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6096
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6097
# The compiler can only warn and ignore the option if not recognized
6098
# So say no if there are warnings
6099
if test -s conftest.err; then
6100
# Append any errors to the config.log.
6101
cat conftest.err 1>&5
6103
lt_prog_compiler_static_works=yes
6107
LDFLAGS="$save_LDFLAGS"
6110
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6111
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6113
if test x"$lt_prog_compiler_static_works" = xyes; then
6116
lt_prog_compiler_static=
6122
lt_prog_compiler_no_builtin_flag=
6124
if test "$GCC" = yes; then
6125
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6128
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6129
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6130
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6131
echo $ECHO_N "(cached) $ECHO_C" >&6
6133
lt_cv_prog_compiler_rtti_exceptions=no
6134
ac_outfile=conftest.$ac_objext
6135
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6136
lt_compiler_flag="-fno-rtti -fno-exceptions"
6137
# Insert the option either (1) after the last *FLAGS variable, or
6138
# (2) before a word containing "conftest.", or (3) at the end.
6139
# Note that $ac_compile itself does not contain backslashes and begins
6140
# with a dollar sign (not a hyphen), so the echo should work correctly.
6141
# The option is referenced via a variable to avoid confusing sed.
6142
lt_compile=`echo "$ac_compile" | $SED \
6143
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6144
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6145
-e 's:$: $lt_compiler_flag:'`
6146
(eval echo "\"\$as_me:6146: $lt_compile\"" >&5)
6147
(eval "$lt_compile" 2>conftest.err)
6149
cat conftest.err >&5
6150
echo "$as_me:6150: \$? = $ac_status" >&5
6151
if (exit $ac_status) && test -s "$ac_outfile"; then
6152
# The compiler can only warn and ignore the option if not recognized
6153
# So say no if there are warnings
6154
if test ! -s conftest.err; then
6155
lt_cv_prog_compiler_rtti_exceptions=yes
6161
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6162
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6164
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6165
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6172
lt_prog_compiler_wl=
6173
lt_prog_compiler_pic=
6174
lt_prog_compiler_static=
6176
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6177
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6179
if test "$GCC" = yes; then
6180
lt_prog_compiler_wl='-Wl,'
6181
lt_prog_compiler_static='-static'
6185
# All AIX code is PIC.
6186
if test "$host_cpu" = ia64; then
6187
# AIX 5 now supports IA64 processor
6188
lt_prog_compiler_static='-Bstatic'
6193
# FIXME: we need at least 68020 code to build shared libraries, but
6194
# adding the `-m68020' flag to GCC prevents building anything better,
6196
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6199
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6200
# PIC is the default for these OSes.
6203
mingw* | pw32* | os2*)
6204
# This hack is so that the source file can tell whether it is being
6205
# built for inclusion in a dll (and should export symbols for example).
6206
lt_prog_compiler_pic='-DDLL_EXPORT'
6209
darwin* | rhapsody*)
6210
# PIC is the default on this platform
6211
# Common symbols not allowed in MH_DYLIB files
6212
lt_prog_compiler_pic='-fno-common'
6216
# Just because we use GCC doesn't mean we suddenly get shared libraries
6217
# on systems that don't support them.
6218
lt_prog_compiler_can_build_shared=no
6223
if test -d /usr/nec; then
6224
lt_prog_compiler_pic=-Kconform_pic
6229
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6236
lt_prog_compiler_pic='-fPIC'
6242
lt_prog_compiler_pic='-fPIC'
6246
# PORTME Check for flag to pass linker flags through the system compiler.
6249
lt_prog_compiler_wl='-Wl,'
6250
if test "$host_cpu" = ia64; then
6251
# AIX 5 now supports IA64 processor
6252
lt_prog_compiler_static='-Bstatic'
6254
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6258
mingw* | pw32* | os2*)
6259
# This hack is so that the source file can tell whether it is being
6260
# built for inclusion in a dll (and should export symbols for example).
6261
lt_prog_compiler_pic='-DDLL_EXPORT'
6264
hpux9* | hpux10* | hpux11*)
6265
lt_prog_compiler_wl='-Wl,'
6266
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6273
lt_prog_compiler_pic='+Z'
6276
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6277
lt_prog_compiler_static='${wl}-a ${wl}archive'
6280
irix5* | irix6* | nonstopux*)
6281
lt_prog_compiler_wl='-Wl,'
6282
# PIC (with -KPIC) is the default.
6283
lt_prog_compiler_static='-non_shared'
6287
lt_prog_compiler_pic='-KPIC'
6288
lt_prog_compiler_static='-Bstatic'
6294
lt_prog_compiler_wl='-Wl,'
6295
lt_prog_compiler_pic='-KPIC'
6296
lt_prog_compiler_static='-static'
6299
lt_prog_compiler_wl='-Wl,'
6300
# All Alpha code is PIC.
6301
lt_prog_compiler_static='-non_shared'
6306
osf3* | osf4* | osf5*)
6307
lt_prog_compiler_wl='-Wl,'
6308
# All OSF/1 code is PIC.
6309
lt_prog_compiler_static='-non_shared'
6313
lt_prog_compiler_pic='-Kpic'
6314
lt_prog_compiler_static='-dn'
6318
lt_prog_compiler_wl='-Wl,'
6319
lt_prog_compiler_pic='-KPIC'
6320
lt_prog_compiler_static='-Bstatic'
6324
lt_prog_compiler_wl='-Qoption ld '
6325
lt_prog_compiler_pic='-PIC'
6326
lt_prog_compiler_static='-Bstatic'
6329
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6330
lt_prog_compiler_wl='-Wl,'
6331
lt_prog_compiler_pic='-KPIC'
6332
lt_prog_compiler_static='-Bstatic'
6336
if test -d /usr/nec ;then
6337
lt_prog_compiler_pic='-Kconform_pic'
6338
lt_prog_compiler_static='-Bstatic'
6343
lt_prog_compiler_pic='-pic'
6344
lt_prog_compiler_static='-Bstatic'
6348
lt_prog_compiler_can_build_shared=no
6353
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6354
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6357
# Check to make sure the PIC flag actually works.
6359
if test -n "$lt_prog_compiler_pic"; then
6361
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6362
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6363
if test "${lt_prog_compiler_pic_works+set}" = set; then
6364
echo $ECHO_N "(cached) $ECHO_C" >&6
6366
lt_prog_compiler_pic_works=no
6367
ac_outfile=conftest.$ac_objext
6368
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6369
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6370
# Insert the option either (1) after the last *FLAGS variable, or
6371
# (2) before a word containing "conftest.", or (3) at the end.
6372
# Note that $ac_compile itself does not contain backslashes and begins
6373
# with a dollar sign (not a hyphen), so the echo should work correctly.
6374
# The option is referenced via a variable to avoid confusing sed.
6375
lt_compile=`echo "$ac_compile" | $SED \
6376
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6377
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6378
-e 's:$: $lt_compiler_flag:'`
6379
(eval echo "\"\$as_me:6379: $lt_compile\"" >&5)
6380
(eval "$lt_compile" 2>conftest.err)
6382
cat conftest.err >&5
6383
echo "$as_me:6383: \$? = $ac_status" >&5
6384
if (exit $ac_status) && test -s "$ac_outfile"; then
6385
# The compiler can only warn and ignore the option if not recognized
6386
# So say no if there are warnings
6387
if test ! -s conftest.err; then
6388
lt_prog_compiler_pic_works=yes
6394
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6395
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6397
if test x"$lt_prog_compiler_pic_works" = xyes; then
6398
case $lt_prog_compiler_pic in
6400
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6403
lt_prog_compiler_pic=
6404
lt_prog_compiler_can_build_shared=no
6409
# For platforms which do not support PIC, -DPIC is meaningless:
6411
lt_prog_compiler_pic=
6414
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6418
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6419
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6420
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6421
echo $ECHO_N "(cached) $ECHO_C" >&6
6423
lt_cv_prog_compiler_c_o=no
6424
$rm -r conftest 2>/dev/null
6428
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6430
lt_compiler_flag="-o out/conftest2.$ac_objext"
6431
# Insert the option either (1) after the last *FLAGS variable, or
6432
# (2) before a word containing "conftest.", or (3) at the end.
6433
# Note that $ac_compile itself does not contain backslashes and begins
6434
# with a dollar sign (not a hyphen), so the echo should work correctly.
6435
lt_compile=`echo "$ac_compile" | $SED \
6436
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6437
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6438
-e 's:$: $lt_compiler_flag:'`
6439
(eval echo "\"\$as_me:6439: $lt_compile\"" >&5)
6440
(eval "$lt_compile" 2>out/conftest.err)
6442
cat out/conftest.err >&5
6443
echo "$as_me:6443: \$? = $ac_status" >&5
6444
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6446
# The compiler can only warn and ignore the option if not recognized
6447
# So say no if there are warnings
6448
if test ! -s out/conftest.err; then
6449
lt_cv_prog_compiler_c_o=yes
6454
# SGI C++ compiler will create directory out/ii_files/ for
6455
# template instantiation
6456
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6457
$rm out/* && rmdir out
6463
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6464
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6467
hard_links="nottested"
6468
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6469
# do not overwrite the value of need_locks provided by the user
6470
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6471
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6474
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6476
ln conftest.a conftest.b 2>&5 || hard_links=no
6477
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6478
echo "$as_me:$LINENO: result: $hard_links" >&5
6479
echo "${ECHO_T}$hard_links" >&6
6480
if test "$hard_links" = no; then
6481
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6482
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6489
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6490
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6493
allow_undefined_flag=
6494
enable_shared_with_static_runtimes=no
6496
archive_expsym_cmds=
6497
old_archive_From_new_cmds=
6498
old_archive_from_expsyms_cmds=
6499
export_dynamic_flag_spec=
6500
whole_archive_flag_spec=
6501
thread_safe_flag_spec=
6502
hardcode_libdir_flag_spec=
6503
hardcode_libdir_flag_spec_ld=
6504
hardcode_libdir_separator=
6507
hardcode_shlibpath_var=unsupported
6508
link_all_deplibs=unknown
6509
hardcode_automatic=no
6512
always_export_symbols=no
6513
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6514
# include_expsyms should be a list of space-separated symbols to be *always*
6515
# included in the symbol list
6517
# exclude_expsyms can be an extended regexp of symbols to exclude
6518
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6519
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6520
# as well as any symbol that contains `d'.
6521
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6522
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6523
# platforms (ab)use it in PIC code, but their linkers get confused if
6524
# the symbol is explicitly referenced. Since portable code cannot
6525
# rely on this symbol name, it's probably fine to never include it in
6526
# preloaded symbol tables.
6527
extract_expsyms_cmds=
6530
cygwin* | mingw* | pw32*)
6531
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6532
# When not using gcc, we currently assume that we are using
6533
# Microsoft Visual C++.
6534
if test "$GCC" != yes; then
6544
if test "$with_gnu_ld" = yes; then
6545
# If archive_cmds runs LD, not CC, wlarc should be empty
6548
# See if GNU ld supports shared libraries.
6550
aix3* | aix4* | aix5*)
6551
# On AIX/PPC, the GNU linker is very broken
6552
if test "$host_cpu" != ia64; then
6556
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6557
*** to be unable to reliably create shared libraries on AIX.
6558
*** Therefore, libtool is disabling shared libraries support. If you
6559
*** really care for shared libraries, you may want to modify your PATH
6560
*** so that a non-GNU linker is found, and then restart.
6567
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)'
6568
hardcode_libdir_flag_spec='-L$libdir'
6569
hardcode_minus_L=yes
6571
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6572
# that the semantics of dynamic libraries on AmigaOS, at least up
6573
# to version 4, is to share data among multiple programs linked
6574
# with the same dynamic library. Since this doesn't match the
6575
# behavior of shared libraries on other platforms, we can't use
6581
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6582
allow_undefined_flag=unsupported
6583
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6584
# support --undefined. This deserves some investigation. FIXME
6585
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6591
cygwin* | mingw* | pw32*)
6592
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6593
# as there is no search path for DLLs.
6594
hardcode_libdir_flag_spec='-L$libdir'
6595
allow_undefined_flag=unsupported
6596
always_export_symbols=no
6597
enable_shared_with_static_runtimes=yes
6598
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6600
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6601
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6602
# If the export-symbols file already is a .def file (1st line
6603
# is EXPORTS), use it as is; otherwise, prepend...
6604
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6605
cp $export_symbols $output_objdir/$soname.def;
6607
echo EXPORTS > $output_objdir/$soname.def;
6608
cat $export_symbols >> $output_objdir/$soname.def;
6610
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6616
netbsd* | knetbsd*-gnu)
6617
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6618
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6621
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6627
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6631
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6632
*** create shared libraries on Solaris systems. Therefore, libtool
6633
*** is disabling shared libraries support. We urge you to upgrade GNU
6634
*** binutils to release 2.9.1 or newer. Another option is to modify
6635
*** your PATH or compiler configuration so that the native linker is
6636
*** used, and then restart.
6639
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6640
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6648
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6651
hardcode_shlibpath_var=no
6655
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6656
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6657
archive_cmds="$tmp_archive_cmds"
6658
supports_anon_versioning=no
6659
case `$LD -v 2>/dev/null` in
6660
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6661
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6662
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6663
*\ 2.11.*) ;; # other 2.11 versions
6664
*) supports_anon_versioning=yes ;;
6666
if test $supports_anon_versioning = yes; then
6667
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6668
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6669
$echo "local: *; };" >> $output_objdir/$libname.ver~
6670
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6672
archive_expsym_cmds="$tmp_archive_cmds"
6680
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6681
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6689
if test "$ld_shlibs" = yes; then
6690
runpath_var=LD_RUN_PATH
6691
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6692
export_dynamic_flag_spec='${wl}--export-dynamic'
6693
# ancient GNU ld didn't support --whole-archive et. al.
6694
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6695
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6697
whole_archive_flag_spec=
6701
# PORTME fill in a description of your system's linker (not GNU ld)
6704
allow_undefined_flag=unsupported
6705
always_export_symbols=yes
6706
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'
6707
# Note: this linker hardcodes the directories in LIBPATH if there
6708
# are no directories specified by -L.
6709
hardcode_minus_L=yes
6710
if test "$GCC" = yes && test -z "$link_static_flag"; then
6711
# Neither direct hardcoding nor static linking is supported with a
6713
hardcode_direct=unsupported
6718
if test "$host_cpu" = ia64; then
6719
# On IA64, the linker does run time linking by default, so we don't
6720
# have to do anything special.
6721
aix_use_runtimelinking=no
6722
exp_sym_flag='-Bexport'
6725
# If we're using GNU nm, then we don't want the "-C" option.
6726
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6727
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6728
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'
6730
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'
6732
aix_use_runtimelinking=no
6734
# Test if we are trying to use run time linking or normal
6735
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6736
# need to do runtime linking.
6737
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6738
for ld_flag in $LDFLAGS; do
6739
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6740
aix_use_runtimelinking=yes
6746
exp_sym_flag='-bexport'
6747
no_entry_flag='-bnoentry'
6750
# When large executables or shared objects are built, AIX ld can
6751
# have problems creating the table of contents. If linking a library
6752
# or program results in "error TOC overflow" add -mminimal-toc to
6753
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6754
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6758
hardcode_libdir_separator=':'
6759
link_all_deplibs=yes
6761
if test "$GCC" = yes; then
6762
case $host_os in aix4.012|aix4.012.*)
6763
# We only want to do this on AIX 4.2 and lower, the check
6764
# below for broken collect2 doesn't work under 4.3+
6765
collect2name=`${CC} -print-prog-name=collect2`
6766
if test -f "$collect2name" && \
6767
strings "$collect2name" | grep resolve_lib_name >/dev/null
6769
# We have reworked collect2
6772
# We have old collect2
6773
hardcode_direct=unsupported
6774
# It fails to find uninstalled libraries when the uninstalled
6775
# path is not listed in the libpath. Setting hardcode_minus_L
6776
# to unsupported forces relinking
6777
hardcode_minus_L=yes
6778
hardcode_libdir_flag_spec='-L$libdir'
6779
hardcode_libdir_separator=
6782
shared_flag='-shared'
6785
if test "$host_cpu" = ia64; then
6786
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6787
# chokes on -Wl,-G. The following line is correct:
6790
if test "$aix_use_runtimelinking" = yes; then
6791
shared_flag='${wl}-G'
6793
shared_flag='${wl}-bM:SRE'
6798
# It seems that -bexpall does not export symbols beginning with
6799
# underscore (_), so it is better to generate a list of symbols to export.
6800
always_export_symbols=yes
6801
if test "$aix_use_runtimelinking" = yes; then
6802
# Warning - without using the other runtime loading flags (-brtl),
6803
# -berok will link without error, but may produce a broken library.
6804
allow_undefined_flag='-berok'
6805
# Determine the default libpath from the value encoded in an empty executable.
6806
cat >conftest.$ac_ext <<_ACEOF
6809
cat confdefs.h >>conftest.$ac_ext
6810
cat >>conftest.$ac_ext <<_ACEOF
6811
/* end confdefs.h. */
6821
rm -f conftest.$ac_objext conftest$ac_exeext
6822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823
(eval $ac_link) 2>conftest.er1
6825
grep -v '^ *+' conftest.er1 >conftest.err
6827
cat conftest.err >&5
6828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829
(exit $ac_status); } &&
6830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
(exit $ac_status); }; } &&
6836
{ ac_try='test -s conftest$ac_exeext'
6837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841
(exit $ac_status); }; }; then
6843
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6845
# Check for a 64-bit object if we didn't find anything.
6846
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6849
echo "$as_me: failed program was:" >&5
6850
sed 's/^/| /' conftest.$ac_ext >&5
6853
rm -f conftest.err conftest.$ac_objext \
6854
conftest$ac_exeext conftest.$ac_ext
6855
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6857
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6858
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6860
if test "$host_cpu" = ia64; then
6861
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6862
allow_undefined_flag="-z nodefs"
6863
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6865
# Determine the default libpath from the value encoded in an empty executable.
6866
cat >conftest.$ac_ext <<_ACEOF
6869
cat confdefs.h >>conftest.$ac_ext
6870
cat >>conftest.$ac_ext <<_ACEOF
6871
/* end confdefs.h. */
6881
rm -f conftest.$ac_objext conftest$ac_exeext
6882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883
(eval $ac_link) 2>conftest.er1
6885
grep -v '^ *+' conftest.er1 >conftest.err
6887
cat conftest.err >&5
6888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
(exit $ac_status); } &&
6890
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
(exit $ac_status); }; } &&
6896
{ ac_try='test -s conftest$ac_exeext'
6897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901
(exit $ac_status); }; }; then
6903
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6905
# Check for a 64-bit object if we didn't find anything.
6906
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6909
echo "$as_me: failed program was:" >&5
6910
sed 's/^/| /' conftest.$ac_ext >&5
6913
rm -f conftest.err conftest.$ac_objext \
6914
conftest$ac_exeext conftest.$ac_ext
6915
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6917
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6918
# Warning - without using the other run time loading flags,
6919
# -berok will link without error, but may produce a broken library.
6920
no_undefined_flag=' ${wl}-bernotok'
6921
allow_undefined_flag=' ${wl}-berok'
6922
# -bexpall does not export symbols beginning with underscore (_)
6923
always_export_symbols=yes
6924
# Exported symbols can be pulled into shared objects from archives
6925
whole_archive_flag_spec=' '
6926
archive_cmds_need_lc=yes
6927
# This is similar to how AIX traditionally builds it's shared libraries.
6928
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6934
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)'
6935
hardcode_libdir_flag_spec='-L$libdir'
6936
hardcode_minus_L=yes
6937
# see comment about different semantics on the GNU ld section
6942
export_dynamic_flag_spec=-rdynamic
6945
cygwin* | mingw* | pw32*)
6946
# When not using gcc, we currently assume that we are using
6947
# Microsoft Visual C++.
6948
# hardcode_libdir_flag_spec is actually meaningless, as there is
6949
# no search path for DLLs.
6950
hardcode_libdir_flag_spec=' '
6951
allow_undefined_flag=unsupported
6952
# Tell ltmain to make .lib files, not .a files.
6954
# Tell ltmain to make .dll files, not .so files.
6956
# FIXME: Setting linknames here is a bad hack.
6957
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6958
# The linker will automatically build a .lib file if we build a DLL.
6959
old_archive_From_new_cmds='true'
6960
# FIXME: Should let the user specify the lib program.
6961
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6962
fix_srcfile_path='`cygpath -w "$srcfile"`'
6963
enable_shared_with_static_runtimes=yes
6966
darwin* | rhapsody*)
6967
if test "$GXX" = yes ; then
6968
archive_cmds_need_lc=no
6970
rhapsody* | darwin1.[012])
6971
allow_undefined_flag='-undefined suppress'
6974
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6975
allow_undefined_flag='-flat_namespace -undefined suppress'
6977
case ${MACOSX_DEPLOYMENT_TARGET} in
6979
allow_undefined_flag='-flat_namespace -undefined suppress'
6982
allow_undefined_flag='-undefined dynamic_lookup'
6988
lt_int_apple_cc_single_mod=no
6989
output_verbose_link_cmd='echo'
6990
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6991
lt_int_apple_cc_single_mod=yes
6993
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6994
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6996
archive_cmds='$CC -r ${wl}-bind_at_load -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'
6998
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6999
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7000
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7001
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7003
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7005
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7007
hardcode_automatic=yes
7008
hardcode_shlibpath_var=unsupported
7009
whole_archive_flag_spec='-all_load $convenience'
7010
link_all_deplibs=yes
7017
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018
hardcode_libdir_flag_spec='-L$libdir'
7019
hardcode_shlibpath_var=no
7026
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7027
# support. Future versions do this automatically, but an explicit c++rt0.o
7028
# does not break anything, and helps significantly (at the cost of a little
7031
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7032
hardcode_libdir_flag_spec='-R$libdir'
7034
hardcode_shlibpath_var=no
7037
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7039
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7041
hardcode_minus_L=yes
7042
hardcode_shlibpath_var=no
7045
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7046
freebsd* | kfreebsd*-gnu)
7047
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7048
hardcode_libdir_flag_spec='-R$libdir'
7050
hardcode_shlibpath_var=no
7054
if test "$GCC" = yes; then
7055
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'
7057
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'
7059
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7060
hardcode_libdir_separator=:
7063
# hardcode_minus_L: Not really in the search PATH,
7064
# but as the default location of the library.
7065
hardcode_minus_L=yes
7066
export_dynamic_flag_spec='${wl}-E'
7070
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7073
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7076
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7082
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7085
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7089
if test "$with_gnu_ld" = no; then
7092
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7093
hardcode_libdir_flag_spec_ld='+b $libdir'
7094
hardcode_libdir_separator=:
7096
hardcode_shlibpath_var=no
7099
hardcode_libdir_flag_spec='-L$libdir'
7101
hardcode_shlibpath_var=no
7103
# hardcode_minus_L: Not really in the search PATH,
7104
# but as the default location of the library.
7105
hardcode_minus_L=yes
7108
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109
hardcode_libdir_separator=:
7111
export_dynamic_flag_spec='${wl}-E'
7113
# hardcode_minus_L: Not really in the search PATH,
7114
# but as the default location of the library.
7115
hardcode_minus_L=yes
7121
irix5* | irix6* | nonstopux*)
7122
if test "$GCC" = yes; then
7123
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7125
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7126
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7128
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7129
hardcode_libdir_separator=:
7130
link_all_deplibs=yes
7133
netbsd* | knetbsd*-gnu)
7134
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7135
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7137
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7139
hardcode_libdir_flag_spec='-R$libdir'
7141
hardcode_shlibpath_var=no
7145
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7147
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7148
hardcode_libdir_separator=:
7149
hardcode_shlibpath_var=no
7154
hardcode_shlibpath_var=no
7155
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7157
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7158
export_dynamic_flag_spec='${wl}-E'
7161
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7162
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7163
hardcode_libdir_flag_spec='-R$libdir'
7166
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7167
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7174
hardcode_libdir_flag_spec='-L$libdir'
7175
hardcode_minus_L=yes
7176
allow_undefined_flag=unsupported
7177
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'
7178
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7182
if test "$GCC" = yes; then
7183
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7184
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7186
allow_undefined_flag=' -expect_unresolved \*'
7187
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7189
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7190
hardcode_libdir_separator=:
7193
osf4* | osf5*) # as osf3* with the addition of -msym flag
7194
if test "$GCC" = yes; then
7195
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7196
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7197
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199
allow_undefined_flag=' -expect_unresolved \*'
7200
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7201
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7202
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7204
# Both c and cxx compiler support -rpath directly
7205
hardcode_libdir_flag_spec='-rpath $libdir'
7207
hardcode_libdir_separator=:
7211
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212
hardcode_shlibpath_var=no
7213
export_dynamic_flag_spec='${wl}-Bexport'
7214
runpath_var=LD_RUN_PATH
7215
hardcode_runpath_var=yes
7219
no_undefined_flag=' -z text'
7220
if test "$GCC" = yes; then
7221
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7223
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7225
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7227
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7229
hardcode_libdir_flag_spec='-R$libdir'
7230
hardcode_shlibpath_var=no
7232
solaris2.[0-5] | solaris2.[0-5].*) ;;
7233
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7234
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7236
link_all_deplibs=yes
7240
if test "x$host_vendor" = xsequent; then
7241
# Use $CC to link under sequent, because it throws in some extra .o
7242
# files that make .init and .fini sections work.
7243
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7245
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7247
hardcode_libdir_flag_spec='-L$libdir'
7249
hardcode_minus_L=yes
7250
hardcode_shlibpath_var=no
7254
case $host_vendor in
7256
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257
hardcode_direct=yes # is this really true???
7260
## LD is ld it makes a PLAMLIB
7261
## CC just makes a GrossModule.
7262
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7263
reload_cmds='$CC -r -o $output$reload_objs'
7267
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7271
runpath_var='LD_RUN_PATH'
7272
hardcode_shlibpath_var=no
7276
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277
hardcode_shlibpath_var=no
7278
export_dynamic_flag_spec='-Bexport'
7282
if test -d /usr/nec; then
7283
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284
hardcode_shlibpath_var=no
7285
runpath_var=LD_RUN_PATH
7286
hardcode_runpath_var=yes
7292
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7295
hardcode_shlibpath_var=no
7296
hardcode_runpath_var=yes
7297
runpath_var=LD_RUN_PATH
7300
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7301
no_undefined_flag='${wl}-z ${wl}text'
7302
if test "$GCC" = yes; then
7303
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7305
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7307
runpath_var='LD_RUN_PATH'
7308
hardcode_shlibpath_var=no
7312
no_undefined_flag=' -z text'
7313
# $CC -shared without GNU ld will not create a library from C++
7314
# object files and a static libstdc++, better avoid it by now
7315
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7317
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7318
hardcode_libdir_flag_spec=
7319
hardcode_shlibpath_var=no
7320
runpath_var='LD_RUN_PATH'
7324
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325
hardcode_libdir_flag_spec='-L$libdir'
7326
hardcode_shlibpath_var=no
7335
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7336
echo "${ECHO_T}$ld_shlibs" >&6
7337
test "$ld_shlibs" = no && can_build_shared=no
7339
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7340
if test "$GCC" = yes; then
7341
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7345
# Do we need to explicitly link libc?
7347
case "x$archive_cmds_need_lc" in
7349
# Assume -lc should be added
7350
archive_cmds_need_lc=yes
7352
if test "$enable_shared" = yes && test "$GCC" = yes; then
7353
case $archive_cmds in
7355
# FIXME: we may have to deal with multi-command sequences.
7358
# Test whether the compiler implicitly links with -lc since on some
7359
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7360
# to ld, don't add -lc before -lgcc.
7361
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7362
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7364
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367
(eval $ac_compile) 2>&5
7369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370
(exit $ac_status); } 2>conftest.err; then
7373
libobjs=conftest.$ac_objext
7375
wl=$lt_prog_compiler_wl
7381
lt_save_allow_undefined_flag=$allow_undefined_flag
7382
allow_undefined_flag=
7383
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7384
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387
(exit $ac_status); }
7389
archive_cmds_need_lc=no
7391
archive_cmds_need_lc=yes
7393
allow_undefined_flag=$lt_save_allow_undefined_flag
7395
cat conftest.err 1>&5
7398
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7399
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7406
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7407
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7409
libname_spec='lib$name'
7417
shlibpath_overrides_runpath=unknown
7419
dynamic_linker="$host_os ld.so"
7420
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7421
if test "$GCC" = yes; then
7422
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7423
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7424
# if the path contains ";" then we assume it to be the separator
7425
# otherwise default to the standard path separator (i.e. ":") - it is
7426
# assumed that no part of a normal pathname contains ";" but that should
7427
# okay in the real world where ";" in dirpaths is itself problematic.
7428
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7430
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7433
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7435
need_lib_prefix=unknown
7436
hardcode_into_libs=no
7438
# when you set need_version to no, make sure it does not cause -set_version
7439
# flags to be left without arguments
7440
need_version=unknown
7445
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7446
shlibpath_var=LIBPATH
7448
# AIX 3 has no versioning support, so we append a major version to the name.
7449
soname_spec='${libname}${release}${shared_ext}$major'
7456
hardcode_into_libs=yes
7457
if test "$host_cpu" = ia64; then
7458
# AIX 5 supports IA64
7459
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7460
shlibpath_var=LD_LIBRARY_PATH
7462
# With GCC up to 2.95.x, collect2 would create an import file
7463
# for dependence libraries. The import file would start with
7464
# the line `#! .'. This would cause the generated library to
7465
# depend on `.', always an invalid library. This was fixed in
7466
# development snapshots of GCC prior to 3.0.
7468
aix4 | aix4.[01] | aix4.[01].*)
7469
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7471
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7478
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7479
# soname into executable. Probably we can add versioning support to
7480
# collect2, so additional links can be useful in future.
7481
if test "$aix_use_runtimelinking" = yes; then
7482
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7483
# instead of lib<name>.a to let people know that these are not
7484
# typical AIX shared libraries.
7485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7487
# We preserve .a as extension for shared libraries through AIX4.2
7488
# and later when we are not doing run time linking.
7489
library_names_spec='${libname}${release}.a $libname.a'
7490
soname_spec='${libname}${release}${shared_ext}$major'
7492
shlibpath_var=LIBPATH
7497
library_names_spec='$libname.ixlibrary $libname.a'
7498
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7499
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'
7503
library_names_spec='${libname}${shared_ext}'
7504
dynamic_linker="$host_os ld.so"
7505
shlibpath_var=LIBRARY_PATH
7511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7512
soname_spec='${libname}${release}${shared_ext}$major'
7513
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7514
shlibpath_var=LD_LIBRARY_PATH
7515
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7516
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7517
# the default ld.so.conf also contains /usr/contrib/lib and
7518
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7519
# libtool to hard-code these into programs
7522
cygwin* | mingw* | pw32*)
7523
version_type=windows
7528
case $GCC,$host_os in
7529
yes,cygwin* | yes,mingw* | yes,pw32*)
7530
library_names_spec='$libname.dll.a'
7531
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7532
postinstall_cmds='base_file=`basename \${file}`~
7533
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7534
dldir=$destdir/`dirname \$dlpath`~
7535
test -d \$dldir || mkdir -p \$dldir~
7536
$install_prog $dir/$dlname \$dldir/$dlname'
7537
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7538
dlpath=$dir/\$dldll~
7540
shlibpath_overrides_runpath=yes
7544
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7545
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7546
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7549
# MinGW DLLs use traditional 'lib' prefix
7550
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7551
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7552
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7553
# It is most probably a Windows format PATH printed by
7554
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7555
# path with ; separators, and with drive letters. We can handle the
7556
# drive letters (cygwin fileutils understands them), so leave them,
7557
# especially as we might pass files found there to a mingw objdump,
7558
# which wouldn't understand a cygwinified path. Ahh.
7559
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7561
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7565
# pw32 DLLs use 'pw' prefix rather than 'lib'
7566
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7572
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7575
dynamic_linker='Win32 ld.exe'
7576
# FIXME: first we should search . and the directory the executable is in
7580
darwin* | rhapsody*)
7581
dynamic_linker="$host_os dyld"
7585
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7586
soname_spec='${libname}${release}${major}$shared_ext'
7587
shlibpath_overrides_runpath=yes
7588
shlibpath_var=DYLD_LIBRARY_PATH
7589
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7590
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7591
if test "$GCC" = yes; then
7592
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7594
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7596
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7604
soname_spec='${libname}${release}${shared_ext}$major'
7605
shlibpath_var=LD_LIBRARY_PATH
7616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7617
soname_spec='${libname}${release}${shared_ext}$major'
7618
shlibpath_var=LD_LIBRARY_PATH
7619
shlibpath_overrides_runpath=no
7620
hardcode_into_libs=yes
7621
dynamic_linker='GNU ld.so'
7625
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7626
version_type=freebsd-$objformat
7627
case $version_type in
7629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7634
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7638
shlibpath_var=LD_LIBRARY_PATH
7641
shlibpath_overrides_runpath=yes
7643
freebsd3.01* | freebsdelf3.01*)
7644
shlibpath_overrides_runpath=yes
7645
hardcode_into_libs=yes
7648
shlibpath_overrides_runpath=no
7649
hardcode_into_libs=yes
7658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7659
soname_spec='${libname}${release}${shared_ext}$major'
7660
shlibpath_var=LD_LIBRARY_PATH
7661
hardcode_into_libs=yes
7664
hpux9* | hpux10* | hpux11*)
7665
# Give a soname corresponding to the major version so that dld.sl refuses to
7666
# link against other versions.
7673
hardcode_into_libs=yes
7674
dynamic_linker="$host_os dld.so"
7675
shlibpath_var=LD_LIBRARY_PATH
7676
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678
soname_spec='${libname}${release}${shared_ext}$major'
7679
if test "X$HPUX_IA64_MODE" = X32; then
7680
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7682
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7684
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7688
hardcode_into_libs=yes
7689
dynamic_linker="$host_os dld.sl"
7690
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7691
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7693
soname_spec='${libname}${release}${shared_ext}$major'
7694
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7695
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7699
dynamic_linker="$host_os dld.sl"
7700
shlibpath_var=SHLIB_PATH
7701
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703
soname_spec='${libname}${release}${shared_ext}$major'
7706
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7707
postinstall_cmds='chmod 555 $lib'
7710
irix5* | irix6* | nonstopux*)
7712
nonstopux*) version_type=nonstopux ;;
7714
if test "$lt_cv_prog_gnu_ld" = yes; then
7722
soname_spec='${libname}${release}${shared_ext}$major'
7723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7725
irix5* | nonstopux*)
7729
case $LD in # libtool.m4 will add one of these switches to LD
7730
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7731
libsuff= shlibsuff= libmagic=32-bit;;
7732
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7733
libsuff=32 shlibsuff=N32 libmagic=N32;;
7734
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7735
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7736
*) libsuff= shlibsuff= libmagic=never-match;;
7740
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7741
shlibpath_overrides_runpath=no
7742
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7743
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7744
hardcode_into_libs=yes
7747
# No shared lib support for Linux oldld, aout, or coff.
7748
linux*oldld* | linux*aout* | linux*coff*)
7752
# This must be Linux ELF.
7757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7758
soname_spec='${libname}${release}${shared_ext}$major'
7759
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7760
shlibpath_var=LD_LIBRARY_PATH
7761
shlibpath_overrides_runpath=no
7762
# This implies no fast_install, which is unacceptable.
7763
# Some rework will be needed to allow for fast_install
7764
# before this can be enabled.
7765
hardcode_into_libs=yes
7767
# Append ld.so.conf contents to the search path
7768
if test -f /etc/ld.so.conf; then
7769
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7770
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7773
# We used to test for /lib/ld.so.1 and disable shared libraries on
7774
# powerpc, because MkLinux only supported shared libraries with the
7775
# GNU dynamic linker. Since this was broken with cross compilers,
7776
# most powerpc-linux boxes support dynamic linking these days and
7777
# people can always --disable-shared, the test was removed, and we
7778
# assume the GNU/Linux dynamic linker is in use.
7779
dynamic_linker='GNU/Linux ld.so'
7786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7787
soname_spec='${libname}${release}${shared_ext}$major'
7788
shlibpath_var=LD_LIBRARY_PATH
7789
shlibpath_overrides_runpath=no
7790
hardcode_into_libs=yes
7791
dynamic_linker='GNU ld.so'
7798
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7800
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7801
dynamic_linker='NetBSD (a.out) ld.so'
7803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7804
soname_spec='${libname}${release}${shared_ext}$major'
7805
dynamic_linker='NetBSD ld.elf_so'
7807
shlibpath_var=LD_LIBRARY_PATH
7808
shlibpath_overrides_runpath=yes
7809
hardcode_into_libs=yes
7814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815
shlibpath_var=LD_LIBRARY_PATH
7816
shlibpath_overrides_runpath=yes
7823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824
soname_spec='${libname}${release}${shared_ext}$major'
7825
shlibpath_var=LD_LIBRARY_PATH
7826
shlibpath_overrides_runpath=yes
7833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7834
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7835
shlibpath_var=LD_LIBRARY_PATH
7836
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7838
openbsd2.[89] | openbsd2.[89].*)
7839
shlibpath_overrides_runpath=no
7842
shlibpath_overrides_runpath=yes
7846
shlibpath_overrides_runpath=yes
7851
libname_spec='$name'
7854
library_names_spec='$libname${shared_ext} $libname.a'
7855
dynamic_linker='OS/2 ld.exe'
7856
shlibpath_var=LIBPATH
7859
osf3* | osf4* | osf5*)
7863
soname_spec='${libname}${release}${shared_ext}$major'
7864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865
shlibpath_var=LD_LIBRARY_PATH
7866
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7867
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7872
soname_spec='${libname}${release}${shared_ext}$major'
7873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874
shlibpath_var=LD_LIBRARY_PATH
7881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882
soname_spec='${libname}${release}${shared_ext}$major'
7883
shlibpath_var=LD_LIBRARY_PATH
7884
shlibpath_overrides_runpath=yes
7885
hardcode_into_libs=yes
7886
# ldd complains unless libraries are executable
7887
postinstall_cmds='chmod +x $lib'
7892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7893
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7894
shlibpath_var=LD_LIBRARY_PATH
7895
shlibpath_overrides_runpath=yes
7896
if test "$with_gnu_ld" = yes; then
7902
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7905
soname_spec='${libname}${release}${shared_ext}$major'
7906
shlibpath_var=LD_LIBRARY_PATH
7907
case $host_vendor in
7909
shlibpath_overrides_runpath=no
7911
export_dynamic_flag_spec='${wl}-Blargedynsym'
7912
runpath_var=LD_RUN_PATH
7920
shlibpath_overrides_runpath=no
7921
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7927
if test -d /usr/nec ;then
7929
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7930
soname_spec='$libname${shared_ext}.$major'
7931
shlibpath_var=LD_LIBRARY_PATH
7937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7938
soname_spec='${libname}${release}${shared_ext}$major'
7939
shlibpath_var=LD_LIBRARY_PATH
7946
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7947
echo "${ECHO_T}$dynamic_linker" >&6
7948
test "$dynamic_linker" = no && can_build_shared=no
7950
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7951
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7953
if test -n "$hardcode_libdir_flag_spec" || \
7954
test -n "$runpath_var " || \
7955
test "X$hardcode_automatic"="Xyes" ; then
7957
# We can hardcode non-existant directories.
7958
if test "$hardcode_direct" != no &&
7959
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7960
# have to relink, otherwise we might link with an installed library
7961
# when we should be linking with a yet-to-be-installed one
7962
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7963
test "$hardcode_minus_L" != no; then
7964
# Linking always hardcodes the temporary library directory.
7965
hardcode_action=relink
7967
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7968
hardcode_action=immediate
7971
# We cannot hardcode anything, or else we can only hardcode existing
7973
hardcode_action=unsupported
7975
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7976
echo "${ECHO_T}$hardcode_action" >&6
7978
if test "$hardcode_action" = relink; then
7979
# Fast installation is not supported
7980
enable_fast_install=no
7981
elif test "$shlibpath_overrides_runpath" = yes ||
7982
test "$enable_shared" = no; then
7983
# Fast installation is not necessary
7984
enable_fast_install=needless
7989
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7990
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7991
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7992
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7993
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7994
echo "$as_me:$LINENO: result: yes" >&5
7995
echo "${ECHO_T}yes" >&6
7997
# FIXME - insert some real tests, host_os isn't really good enough
8000
if test -n "$STRIP" ; then
8001
striplib="$STRIP -x"
8002
echo "$as_me:$LINENO: result: yes" >&5
8003
echo "${ECHO_T}yes" >&6
8005
echo "$as_me:$LINENO: result: no" >&5
8006
echo "${ECHO_T}no" >&6
8010
echo "$as_me:$LINENO: result: no" >&5
8011
echo "${ECHO_T}no" >&6
8016
if test "x$enable_dlopen" != xyes; then
8017
enable_dlopen=unknown
8018
enable_dlopen_self=unknown
8019
enable_dlopen_self_static=unknown
8026
lt_cv_dlopen="load_add_on"
8028
lt_cv_dlopen_self=yes
8032
lt_cv_dlopen="LoadLibrary"
8037
lt_cv_dlopen="dlopen"
8042
# if libdl is installed we need to link against it
8043
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8044
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8045
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8046
echo $ECHO_N "(cached) $ECHO_C" >&6
8048
ac_check_lib_save_LIBS=$LIBS
8050
cat >conftest.$ac_ext <<_ACEOF
8053
cat confdefs.h >>conftest.$ac_ext
8054
cat >>conftest.$ac_ext <<_ACEOF
8055
/* end confdefs.h. */
8057
/* Override any gcc2 internal prototype to avoid an error. */
8061
/* We use char because int might match the return type of a gcc2
8062
builtin and then its argument prototype would still apply. */
8072
rm -f conftest.$ac_objext conftest$ac_exeext
8073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074
(eval $ac_link) 2>conftest.er1
8076
grep -v '^ *+' conftest.er1 >conftest.err
8078
cat conftest.err >&5
8079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080
(exit $ac_status); } &&
8081
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086
(exit $ac_status); }; } &&
8087
{ ac_try='test -s conftest$ac_exeext'
8088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092
(exit $ac_status); }; }; then
8093
ac_cv_lib_dl_dlopen=yes
8095
echo "$as_me: failed program was:" >&5
8096
sed 's/^/| /' conftest.$ac_ext >&5
8098
ac_cv_lib_dl_dlopen=no
8100
rm -f conftest.err conftest.$ac_objext \
8101
conftest$ac_exeext conftest.$ac_ext
8102
LIBS=$ac_check_lib_save_LIBS
8104
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8105
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8106
if test $ac_cv_lib_dl_dlopen = yes; then
8107
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8112
lt_cv_dlopen_self=yes
8119
echo "$as_me:$LINENO: checking for shl_load" >&5
8120
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8121
if test "${ac_cv_func_shl_load+set}" = set; then
8122
echo $ECHO_N "(cached) $ECHO_C" >&6
8124
cat >conftest.$ac_ext <<_ACEOF
8127
cat confdefs.h >>conftest.$ac_ext
8128
cat >>conftest.$ac_ext <<_ACEOF
8129
/* end confdefs.h. */
8130
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8131
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8132
#define shl_load innocuous_shl_load
8134
/* System header to define __stub macros and hopefully few prototypes,
8135
which can conflict with char shl_load (); below.
8136
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137
<limits.h> exists even on freestanding compilers. */
8140
# include <limits.h>
8142
# include <assert.h>
8147
/* Override any gcc2 internal prototype to avoid an error. */
8152
/* We use char because int might match the return type of a gcc2
8153
builtin and then its argument prototype would still apply. */
8155
/* The GNU C library defines this for functions which it implements
8156
to always fail with ENOSYS. Some functions are actually named
8157
something starting with __ and the normal name is an alias. */
8158
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8161
char (*f) () = shl_load;
8170
return f != shl_load;
8175
rm -f conftest.$ac_objext conftest$ac_exeext
8176
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177
(eval $ac_link) 2>conftest.er1
8179
grep -v '^ *+' conftest.er1 >conftest.err
8181
cat conftest.err >&5
8182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183
(exit $ac_status); } &&
8184
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
(exit $ac_status); }; } &&
8190
{ ac_try='test -s conftest$ac_exeext'
8191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195
(exit $ac_status); }; }; then
8196
ac_cv_func_shl_load=yes
8198
echo "$as_me: failed program was:" >&5
8199
sed 's/^/| /' conftest.$ac_ext >&5
8201
ac_cv_func_shl_load=no
8203
rm -f conftest.err conftest.$ac_objext \
8204
conftest$ac_exeext conftest.$ac_ext
8206
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8207
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8208
if test $ac_cv_func_shl_load = yes; then
8209
lt_cv_dlopen="shl_load"
8211
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8212
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8213
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8214
echo $ECHO_N "(cached) $ECHO_C" >&6
8216
ac_check_lib_save_LIBS=$LIBS
8218
cat >conftest.$ac_ext <<_ACEOF
8221
cat confdefs.h >>conftest.$ac_ext
8222
cat >>conftest.$ac_ext <<_ACEOF
8223
/* end confdefs.h. */
8225
/* Override any gcc2 internal prototype to avoid an error. */
8229
/* We use char because int might match the return type of a gcc2
8230
builtin and then its argument prototype would still apply. */
8240
rm -f conftest.$ac_objext conftest$ac_exeext
8241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242
(eval $ac_link) 2>conftest.er1
8244
grep -v '^ *+' conftest.er1 >conftest.err
8246
cat conftest.err >&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); } &&
8249
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; } &&
8255
{ ac_try='test -s conftest$ac_exeext'
8256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
(exit $ac_status); }; }; then
8261
ac_cv_lib_dld_shl_load=yes
8263
echo "$as_me: failed program was:" >&5
8264
sed 's/^/| /' conftest.$ac_ext >&5
8266
ac_cv_lib_dld_shl_load=no
8268
rm -f conftest.err conftest.$ac_objext \
8269
conftest$ac_exeext conftest.$ac_ext
8270
LIBS=$ac_check_lib_save_LIBS
8272
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8273
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8274
if test $ac_cv_lib_dld_shl_load = yes; then
8275
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8277
echo "$as_me:$LINENO: checking for dlopen" >&5
8278
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8279
if test "${ac_cv_func_dlopen+set}" = set; then
8280
echo $ECHO_N "(cached) $ECHO_C" >&6
8282
cat >conftest.$ac_ext <<_ACEOF
8285
cat confdefs.h >>conftest.$ac_ext
8286
cat >>conftest.$ac_ext <<_ACEOF
8287
/* end confdefs.h. */
8288
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8289
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8290
#define dlopen innocuous_dlopen
8292
/* System header to define __stub macros and hopefully few prototypes,
8293
which can conflict with char dlopen (); below.
8294
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295
<limits.h> exists even on freestanding compilers. */
8298
# include <limits.h>
8300
# include <assert.h>
8305
/* Override any gcc2 internal prototype to avoid an error. */
8310
/* We use char because int might match the return type of a gcc2
8311
builtin and then its argument prototype would still apply. */
8313
/* The GNU C library defines this for functions which it implements
8314
to always fail with ENOSYS. Some functions are actually named
8315
something starting with __ and the normal name is an alias. */
8316
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8319
char (*f) () = dlopen;
8333
rm -f conftest.$ac_objext conftest$ac_exeext
8334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335
(eval $ac_link) 2>conftest.er1
8337
grep -v '^ *+' conftest.er1 >conftest.err
8339
cat conftest.err >&5
8340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
(exit $ac_status); } &&
8342
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347
(exit $ac_status); }; } &&
8348
{ ac_try='test -s conftest$ac_exeext'
8349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
(exit $ac_status); }; }; then
8354
ac_cv_func_dlopen=yes
8356
echo "$as_me: failed program was:" >&5
8357
sed 's/^/| /' conftest.$ac_ext >&5
8359
ac_cv_func_dlopen=no
8361
rm -f conftest.err conftest.$ac_objext \
8362
conftest$ac_exeext conftest.$ac_ext
8364
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8365
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8366
if test $ac_cv_func_dlopen = yes; then
8367
lt_cv_dlopen="dlopen"
8369
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8370
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8371
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8372
echo $ECHO_N "(cached) $ECHO_C" >&6
8374
ac_check_lib_save_LIBS=$LIBS
8376
cat >conftest.$ac_ext <<_ACEOF
8379
cat confdefs.h >>conftest.$ac_ext
8380
cat >>conftest.$ac_ext <<_ACEOF
8381
/* end confdefs.h. */
8383
/* Override any gcc2 internal prototype to avoid an error. */
8387
/* We use char because int might match the return type of a gcc2
8388
builtin and then its argument prototype would still apply. */
8398
rm -f conftest.$ac_objext conftest$ac_exeext
8399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400
(eval $ac_link) 2>conftest.er1
8402
grep -v '^ *+' conftest.er1 >conftest.err
8404
cat conftest.err >&5
8405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406
(exit $ac_status); } &&
8407
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412
(exit $ac_status); }; } &&
8413
{ ac_try='test -s conftest$ac_exeext'
8414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418
(exit $ac_status); }; }; then
8419
ac_cv_lib_dl_dlopen=yes
8421
echo "$as_me: failed program was:" >&5
8422
sed 's/^/| /' conftest.$ac_ext >&5
8424
ac_cv_lib_dl_dlopen=no
8426
rm -f conftest.err conftest.$ac_objext \
8427
conftest$ac_exeext conftest.$ac_ext
8428
LIBS=$ac_check_lib_save_LIBS
8430
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8431
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8432
if test $ac_cv_lib_dl_dlopen = yes; then
8433
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8435
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8436
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8437
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8438
echo $ECHO_N "(cached) $ECHO_C" >&6
8440
ac_check_lib_save_LIBS=$LIBS
8442
cat >conftest.$ac_ext <<_ACEOF
8445
cat confdefs.h >>conftest.$ac_ext
8446
cat >>conftest.$ac_ext <<_ACEOF
8447
/* end confdefs.h. */
8449
/* Override any gcc2 internal prototype to avoid an error. */
8453
/* We use char because int might match the return type of a gcc2
8454
builtin and then its argument prototype would still apply. */
8464
rm -f conftest.$ac_objext conftest$ac_exeext
8465
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466
(eval $ac_link) 2>conftest.er1
8468
grep -v '^ *+' conftest.er1 >conftest.err
8470
cat conftest.err >&5
8471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472
(exit $ac_status); } &&
8473
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478
(exit $ac_status); }; } &&
8479
{ ac_try='test -s conftest$ac_exeext'
8480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
(exit $ac_status); }; }; then
8485
ac_cv_lib_svld_dlopen=yes
8487
echo "$as_me: failed program was:" >&5
8488
sed 's/^/| /' conftest.$ac_ext >&5
8490
ac_cv_lib_svld_dlopen=no
8492
rm -f conftest.err conftest.$ac_objext \
8493
conftest$ac_exeext conftest.$ac_ext
8494
LIBS=$ac_check_lib_save_LIBS
8496
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8497
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8498
if test $ac_cv_lib_svld_dlopen = yes; then
8499
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8501
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8502
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8503
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8504
echo $ECHO_N "(cached) $ECHO_C" >&6
8506
ac_check_lib_save_LIBS=$LIBS
8508
cat >conftest.$ac_ext <<_ACEOF
8511
cat confdefs.h >>conftest.$ac_ext
8512
cat >>conftest.$ac_ext <<_ACEOF
8513
/* end confdefs.h. */
8515
/* Override any gcc2 internal prototype to avoid an error. */
8519
/* We use char because int might match the return type of a gcc2
8520
builtin and then its argument prototype would still apply. */
8530
rm -f conftest.$ac_objext conftest$ac_exeext
8531
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532
(eval $ac_link) 2>conftest.er1
8534
grep -v '^ *+' conftest.er1 >conftest.err
8536
cat conftest.err >&5
8537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538
(exit $ac_status); } &&
8539
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544
(exit $ac_status); }; } &&
8545
{ ac_try='test -s conftest$ac_exeext'
8546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550
(exit $ac_status); }; }; then
8551
ac_cv_lib_dld_dld_link=yes
8553
echo "$as_me: failed program was:" >&5
8554
sed 's/^/| /' conftest.$ac_ext >&5
8556
ac_cv_lib_dld_dld_link=no
8558
rm -f conftest.err conftest.$ac_objext \
8559
conftest$ac_exeext conftest.$ac_ext
8560
LIBS=$ac_check_lib_save_LIBS
8562
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8563
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8564
if test $ac_cv_lib_dld_dld_link = yes; then
8565
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8586
if test "x$lt_cv_dlopen" != xno; then
8592
case $lt_cv_dlopen in
8594
save_CPPFLAGS="$CPPFLAGS"
8595
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8597
save_LDFLAGS="$LDFLAGS"
8598
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8601
LIBS="$lt_cv_dlopen_libs $LIBS"
8603
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8604
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8605
if test "${lt_cv_dlopen_self+set}" = set; then
8606
echo $ECHO_N "(cached) $ECHO_C" >&6
8608
if test "$cross_compiling" = yes; then :
8609
lt_cv_dlopen_self=cross
8611
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8612
lt_status=$lt_dlunknown
8613
cat > conftest.$ac_ext <<EOF
8614
#line 8614 "configure"
8615
#include "confdefs.h"
8624
# define LT_DLGLOBAL RTLD_GLOBAL
8627
# define LT_DLGLOBAL DL_GLOBAL
8629
# define LT_DLGLOBAL 0
8633
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8634
find out it does not work in some platform. */
8635
#ifndef LT_DLLAZY_OR_NOW
8637
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8640
# define LT_DLLAZY_OR_NOW DL_LAZY
8643
# define LT_DLLAZY_OR_NOW RTLD_NOW
8646
# define LT_DLLAZY_OR_NOW DL_NOW
8648
# define LT_DLLAZY_OR_NOW 0
8656
extern "C" void exit (int);
8659
void fnord() { int i=42;}
8662
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8663
int status = $lt_dlunknown;
8667
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8668
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8669
/* dlclose (self); */
8675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676
(eval $ac_link) 2>&5
8678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8680
(./conftest; exit; ) 2>/dev/null
8683
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8684
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8685
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8688
# compilation failed
8689
lt_cv_dlopen_self=no
8696
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8697
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8699
if test "x$lt_cv_dlopen_self" = xyes; then
8700
LDFLAGS="$LDFLAGS $link_static_flag"
8701
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8702
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8703
if test "${lt_cv_dlopen_self_static+set}" = set; then
8704
echo $ECHO_N "(cached) $ECHO_C" >&6
8706
if test "$cross_compiling" = yes; then :
8707
lt_cv_dlopen_self_static=cross
8709
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8710
lt_status=$lt_dlunknown
8711
cat > conftest.$ac_ext <<EOF
8712
#line 8712 "configure"
8713
#include "confdefs.h"
8722
# define LT_DLGLOBAL RTLD_GLOBAL
8725
# define LT_DLGLOBAL DL_GLOBAL
8727
# define LT_DLGLOBAL 0
8731
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8732
find out it does not work in some platform. */
8733
#ifndef LT_DLLAZY_OR_NOW
8735
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8738
# define LT_DLLAZY_OR_NOW DL_LAZY
8741
# define LT_DLLAZY_OR_NOW RTLD_NOW
8744
# define LT_DLLAZY_OR_NOW DL_NOW
8746
# define LT_DLLAZY_OR_NOW 0
8754
extern "C" void exit (int);
8757
void fnord() { int i=42;}
8760
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8761
int status = $lt_dlunknown;
8765
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8766
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8767
/* dlclose (self); */
8773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774
(eval $ac_link) 2>&5
8776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8778
(./conftest; exit; ) 2>/dev/null
8781
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8782
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8783
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8786
# compilation failed
8787
lt_cv_dlopen_self_static=no
8794
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8795
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8798
CPPFLAGS="$save_CPPFLAGS"
8799
LDFLAGS="$save_LDFLAGS"
8804
case $lt_cv_dlopen_self in
8805
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8806
*) enable_dlopen_self=unknown ;;
8809
case $lt_cv_dlopen_self_static in
8810
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8811
*) enable_dlopen_self_static=unknown ;;
8816
# Report which librarie types wil actually be built
8817
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8818
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8819
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8820
echo "${ECHO_T}$can_build_shared" >&6
8822
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8823
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8824
test "$can_build_shared" = "no" && enable_shared=no
8826
# On AIX, shared libraries and static libraries use the same namespace, and
8827
# are all built from PIC.
8830
test "$enable_shared" = yes && enable_static=no
8831
if test -n "$RANLIB"; then
8832
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8833
postinstall_cmds='$RANLIB $lib'
8838
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8839
test "$enable_shared" = yes && enable_static=no
8842
darwin* | rhapsody*)
8843
if test "$GCC" = yes; then
8844
archive_cmds_need_lc=no
8846
rhapsody* | darwin1.[012])
8847
allow_undefined_flag='-undefined suppress'
8850
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8851
allow_undefined_flag='-flat_namespace -undefined suppress'
8853
case ${MACOSX_DEPLOYMENT_TARGET} in
8855
allow_undefined_flag='-flat_namespace -undefined suppress'
8858
allow_undefined_flag='-undefined dynamic_lookup'
8864
output_verbose_link_cmd='echo'
8865
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8866
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8867
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8868
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8869
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8871
hardcode_automatic=yes
8872
hardcode_shlibpath_var=unsupported
8873
whole_archive_flag_spec='-all_load $convenience'
8874
link_all_deplibs=yes
8880
echo "$as_me:$LINENO: result: $enable_shared" >&5
8881
echo "${ECHO_T}$enable_shared" >&6
8883
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8884
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8885
# Make sure either enable_shared or enable_static is yes.
8886
test "$enable_shared" = yes || enable_static=yes
8887
echo "$as_me:$LINENO: result: $enable_static" >&5
8888
echo "${ECHO_T}$enable_static" >&6
8890
# The else clause should only fire when bootstrapping the
8891
# libtool distribution, otherwise you forgot to ship ltmain.sh
8892
# with your package, and you will get complaints that there are
8893
# no rules to generate ltmain.sh.
8894
if test -f "$ltmain"; then
8895
# See if we are running on zsh, and set the options which allow our commands through
8896
# without removal of \ escapes.
8897
if test -n "${ZSH_VERSION+set}" ; then
8898
setopt NO_GLOB_SUBST
8900
# Now quote all the things that may contain metacharacters while being
8901
# careful not to overquote the AC_SUBSTed values. We take copies of the
8902
# variables and quote the copies for generation of the libtool script.
8903
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8905
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8906
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8907
deplibs_check_method reload_flag reload_cmds need_locks \
8908
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8909
lt_cv_sys_global_symbol_to_c_name_address \
8910
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8911
old_postinstall_cmds old_postuninstall_cmds \
8915
lt_prog_compiler_wl \
8916
lt_prog_compiler_pic \
8917
lt_prog_compiler_static \
8918
lt_prog_compiler_no_builtin_flag \
8919
export_dynamic_flag_spec \
8920
thread_safe_flag_spec \
8921
whole_archive_flag_spec \
8922
enable_shared_with_static_runtimes \
8924
old_archive_from_new_cmds \
8929
compiler_lib_search_path \
8931
archive_expsym_cmds \
8933
postuninstall_cmds \
8934
old_archive_from_expsyms_cmds \
8935
allow_undefined_flag \
8937
export_symbols_cmds \
8938
hardcode_libdir_flag_spec \
8939
hardcode_libdir_flag_spec_ld \
8940
hardcode_libdir_separator \
8941
hardcode_automatic \
8943
module_expsym_cmds \
8944
lt_cv_prog_compiler_c_o \
8949
old_archive_cmds | \
8950
old_archive_from_new_cmds | \
8952
archive_expsym_cmds | \
8954
module_expsym_cmds | \
8955
old_archive_from_expsyms_cmds | \
8956
export_symbols_cmds | \
8957
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8958
postinstall_cmds | postuninstall_cmds | \
8959
old_postinstall_cmds | old_postuninstall_cmds | \
8960
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8961
# Double-quote double-evaled strings.
8962
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8965
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8971
*'\$0 --fallback-echo"')
8972
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8977
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8979
{ echo "$as_me:$LINENO: creating $ofile" >&5
8980
echo "$as_me: creating $ofile" >&6;}
8982
cat <<__EOF__ >> "$cfgfile"
8985
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8986
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8987
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8989
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8990
# Free Software Foundation, Inc.
8992
# This file is part of GNU Libtool:
8993
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8995
# This program is free software; you can redistribute it and/or modify
8996
# it under the terms of the GNU General Public License as published by
8997
# the Free Software Foundation; either version 2 of the License, or
8998
# (at your option) any later version.
9000
# This program is distributed in the hope that it will be useful, but
9001
# WITHOUT ANY WARRANTY; without even the implied warranty of
9002
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9003
# General Public License for more details.
9005
# You should have received a copy of the GNU General Public License
9006
# along with this program; if not, write to the Free Software
9007
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9009
# As a special exception to the GNU General Public License, if you
9010
# distribute this file as part of a program that contains a
9011
# configuration script generated by Autoconf, you may include it under
9012
# the same distribution terms that you use for the rest of that program.
9014
# A sed program that does not truncate output.
9017
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9018
Xsed="$SED -e s/^X//"
9020
# The HP-UX ksh and POSIX shell print the target directory to stdout
9022
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9024
# The names of the tagged configurations supported by this script.
9027
# ### BEGIN LIBTOOL CONFIG
9029
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9031
# Shell to use when invoking shell scripts.
9034
# Whether or not to build shared libraries.
9035
build_libtool_libs=$enable_shared
9037
# Whether or not to build static libraries.
9038
build_old_libs=$enable_static
9040
# Whether or not to add -lc for building shared libraries.
9041
build_libtool_need_lc=$archive_cmds_need_lc
9043
# Whether or not to disallow shared libs when runtime libs are static
9044
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9046
# Whether or not to optimize for fast installation.
9047
fast_install=$enable_fast_install
9050
host_alias=$host_alias
9053
# An echo program that does not interpret backslashes.
9058
AR_FLAGS=$lt_AR_FLAGS
9063
# A language-specific compiler.
9066
# Is the compiler the GNU C compiler?
9072
# The linker used to build libraries.
9075
# Whether we need hard or soft links.
9078
# A BSD-compatible nm program.
9081
# A symbol stripping program
9084
# Used to examine libraries when file_magic_cmd begins "file"
9085
MAGIC_CMD=$MAGIC_CMD
9087
# Used on cygwin: DLL creation program.
9090
# Used on cygwin: object dumper.
9093
# Used on cygwin: assembler.
9096
# The name of the directory that contains temporary libtool files.
9099
# How to create reloadable object files.
9100
reload_flag=$lt_reload_flag
9101
reload_cmds=$lt_reload_cmds
9103
# How to pass a linker flag through the compiler.
9104
wl=$lt_lt_prog_compiler_wl
9106
# Object file suffix (normally "o").
9109
# Old archive suffix (normally "a").
9112
# Shared library suffix (normally ".so").
9115
# Executable file suffix (normally "").
9118
# Additional compiler flags for building library objects.
9119
pic_flag=$lt_lt_prog_compiler_pic
9122
# What is the maximum length of a command?
9123
max_cmd_len=$lt_cv_sys_max_cmd_len
9125
# Does compiler simultaneously support -c and -o options?
9126
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9128
# Must we lock files when doing compilation ?
9129
need_locks=$lt_need_locks
9131
# Do we need the lib prefix for modules?
9132
need_lib_prefix=$need_lib_prefix
9134
# Do we need a version for libraries?
9135
need_version=$need_version
9137
# Whether dlopen is supported.
9138
dlopen_support=$enable_dlopen
9140
# Whether dlopen of programs is supported.
9141
dlopen_self=$enable_dlopen_self
9143
# Whether dlopen of statically linked programs is supported.
9144
dlopen_self_static=$enable_dlopen_self_static
9146
# Compiler flag to prevent dynamic linking.
9147
link_static_flag=$lt_lt_prog_compiler_static
9149
# Compiler flag to turn off builtin functions.
9150
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9152
# Compiler flag to allow reflexive dlopens.
9153
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9155
# Compiler flag to generate shared objects directly from archives.
9156
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9158
# Compiler flag to generate thread-safe objects.
9159
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9161
# Library versioning type.
9162
version_type=$version_type
9164
# Format of library name prefix.
9165
libname_spec=$lt_libname_spec
9167
# List of archive names. First name is the real one, the rest are links.
9168
# The last name is the one that the linker finds with -lNAME.
9169
library_names_spec=$lt_library_names_spec
9171
# The coded name of the library, if different from the real name.
9172
soname_spec=$lt_soname_spec
9174
# Commands used to build and install an old-style archive.
9176
old_archive_cmds=$lt_old_archive_cmds
9177
old_postinstall_cmds=$lt_old_postinstall_cmds
9178
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9180
# Create an old-style archive from a shared archive.
9181
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9183
# Create a temporary old-style archive to link instead of a shared archive.
9184
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9186
# Commands used to build and install a shared archive.
9187
archive_cmds=$lt_archive_cmds
9188
archive_expsym_cmds=$lt_archive_expsym_cmds
9189
postinstall_cmds=$lt_postinstall_cmds
9190
postuninstall_cmds=$lt_postuninstall_cmds
9192
# Commands used to build a loadable module (assumed same as above if empty)
9193
module_cmds=$lt_module_cmds
9194
module_expsym_cmds=$lt_module_expsym_cmds
9196
# Commands to strip libraries.
9197
old_striplib=$lt_old_striplib
9198
striplib=$lt_striplib
9200
# Dependencies to place before the objects being linked to create a
9202
predep_objects=$lt_predep_objects
9204
# Dependencies to place after the objects being linked to create a
9206
postdep_objects=$lt_postdep_objects
9208
# Dependencies to place before the objects being linked to create a
9212
# Dependencies to place after the objects being linked to create a
9214
postdeps=$lt_postdeps
9216
# The library search path used internally by the compiler when linking
9218
compiler_lib_search_path=$lt_compiler_lib_search_path
9220
# Method to check whether dependent libraries are shared objects.
9221
deplibs_check_method=$lt_deplibs_check_method
9223
# Command to use when deplibs_check_method == file_magic.
9224
file_magic_cmd=$lt_file_magic_cmd
9226
# Flag that allows shared libraries with undefined symbols to be built.
9227
allow_undefined_flag=$lt_allow_undefined_flag
9229
# Flag that forces no undefined symbols.
9230
no_undefined_flag=$lt_no_undefined_flag
9232
# Commands used to finish a libtool library installation in a directory.
9233
finish_cmds=$lt_finish_cmds
9235
# Same as above, but a single script fragment to be evaled but not shown.
9236
finish_eval=$lt_finish_eval
9238
# Take the output of nm and produce a listing of raw symbols and C names.
9239
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9241
# Transform the output of nm in a proper C declaration
9242
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9244
# Transform the output of nm in a C name address pair
9245
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9247
# This is the shared library runtime path variable.
9248
runpath_var=$runpath_var
9250
# This is the shared library path variable.
9251
shlibpath_var=$shlibpath_var
9253
# Is shlibpath searched before the hard-coded library search path?
9254
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9256
# How to hardcode a shared library path into an executable.
9257
hardcode_action=$hardcode_action
9259
# Whether we should hardcode library paths into libraries.
9260
hardcode_into_libs=$hardcode_into_libs
9262
# Flag to hardcode \$libdir into a binary during linking.
9263
# This must work even if \$libdir does not exist.
9264
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9266
# If ld is used when linking, flag to hardcode \$libdir into
9267
# a binary during linking. This must work even if \$libdir does
9269
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9271
# Whether we need a single -rpath flag with a separated argument.
9272
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9274
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9276
hardcode_direct=$hardcode_direct
9278
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9280
hardcode_minus_L=$hardcode_minus_L
9282
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9283
# the resulting binary.
9284
hardcode_shlibpath_var=$hardcode_shlibpath_var
9286
# Set to yes if building a shared library automatically hardcodes DIR into the library
9287
# and all subsequent libraries and executables linked against it.
9288
hardcode_automatic=$hardcode_automatic
9290
# Variables whose values should be saved in libtool wrapper scripts and
9291
# restored at relink time.
9292
variables_saved_for_relink="$variables_saved_for_relink"
9294
# Whether libtool must link a program against all its dependency libraries.
9295
link_all_deplibs=$link_all_deplibs
9297
# Compile-time system search path for libraries
9298
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9300
# Run-time system search path for libraries
9301
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9303
# Fix the shell variable \$srcfile for the compiler.
9304
fix_srcfile_path="$fix_srcfile_path"
9306
# Set to yes if exported symbols are required.
9307
always_export_symbols=$always_export_symbols
9309
# The commands to list exported symbols.
9310
export_symbols_cmds=$lt_export_symbols_cmds
9312
# The commands to extract the exported symbol list from a shared archive.
9313
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9315
# Symbols that should not be listed in the preloaded symbols.
9316
exclude_expsyms=$lt_exclude_expsyms
9318
# Symbols that must always be exported.
9319
include_expsyms=$lt_include_expsyms
9321
# ### END LIBTOOL CONFIG
9328
cat <<\EOF >> "$cfgfile"
9330
# AIX sometimes has problems with the GCC collect2 program. For some
9331
# reason, if we set the COLLECT_NAMES environment variable, the problems
9332
# vanish in a puff of smoke.
9333
if test "X${COLLECT_NAMES+set}" != Xset; then
9335
export COLLECT_NAMES
9341
# We use sed instead of cat because bash on DJGPP gets confused if
9342
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9343
# text mode, it properly converts lines to CR/LF. This bash problem
9344
# is reportedly fixed, but why not run on old versions too?
9345
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9347
mv -f "$cfgfile" "$ofile" || \
9348
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9352
# If there is no Makefile yet, we rely on a make rule to execute
9353
# `config.status --recheck' to rerun these tests and create the
9354
# libtool script then.
9355
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9356
if test -f "$ltmain_in"; then
9357
test -f Makefile && make "$ltmain"
9363
ac_cpp='$CPP $CPPFLAGS'
9364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9371
# Check whether --with-tags or --without-tags was given.
9372
if test "${with_tags+set}" = set; then
9373
withval="$with_tags"
9377
if test -f "$ltmain" && test -n "$tagnames"; then
9378
if test ! -f "${ofile}"; then
9379
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9380
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9383
if test -z "$LTCC"; then
9384
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9385
if test -z "$LTCC"; then
9386
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9387
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9389
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9390
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9394
# Extract list of available tagged configurations in $ofile.
9395
# Note that this assumes the entire list is on one line.
9396
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9398
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9399
for tagname in $tagnames; do
9401
# Check whether tagname contains only valid characters
9402
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9404
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9405
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9406
{ (exit 1); exit 1; }; }
9410
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9412
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9413
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9414
{ (exit 1); exit 1; }; }
9417
# Update the list of available tags.
9418
if test -n "$tagname"; then
9419
echo appending configuration tag \"$tagname\" to $ofile
9423
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9425
ac_cpp='$CXXCPP $CPPFLAGS'
9426
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9427
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9428
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9433
archive_cmds_need_lc_CXX=no
9434
allow_undefined_flag_CXX=
9435
always_export_symbols_CXX=no
9436
archive_expsym_cmds_CXX=
9437
export_dynamic_flag_spec_CXX=
9438
hardcode_direct_CXX=no
9439
hardcode_libdir_flag_spec_CXX=
9440
hardcode_libdir_flag_spec_ld_CXX=
9441
hardcode_libdir_separator_CXX=
9442
hardcode_minus_L_CXX=no
9443
hardcode_automatic_CXX=no
9445
module_expsym_cmds_CXX=
9446
link_all_deplibs_CXX=unknown
9447
old_archive_cmds_CXX=$old_archive_cmds
9448
no_undefined_flag_CXX=
9449
whole_archive_flag_spec_CXX=
9450
enable_shared_with_static_runtimes_CXX=no
9452
# Dependencies to place before and after the object being linked:
9454
postdep_objects_CXX=
9457
compiler_lib_search_path_CXX=
9459
# Source file extension for C++ test sources.
9462
# Object file extension for compiled C++ test sources.
9466
# Code to be used in simple compile tests
9467
lt_simple_compile_test_code="int some_variable = 0;\n"
9469
# Code to be used in simple link tests
9470
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9472
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9474
# If no C compiler was specified, use CC.
9477
# Allow CC to be a program name with arguments.
9481
# Allow CC to be a program name with arguments.
9486
lt_save_with_gnu_ld=$with_gnu_ld
9487
lt_save_path_LD=$lt_cv_path_LD
9488
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9489
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9491
unset lt_cv_prog_gnu_ld
9493
if test -n "${lt_cv_path_LDCXX+set}"; then
9494
lt_cv_path_LD=$lt_cv_path_LDCXX
9498
test -z "${LDCXX+set}" || LD=$LDCXX
9502
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9504
# We don't want -fno-exception wen compiling C++ code, so set the
9505
# no_builtin_flag separately
9506
if test "$GXX" = yes; then
9507
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9509
lt_prog_compiler_no_builtin_flag_CXX=
9512
if test "$GXX" = yes; then
9513
# Set up default GNU C++ configuration
9516
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9517
if test "${with_gnu_ld+set}" = set; then
9518
withval="$with_gnu_ld"
9519
test "$withval" = no || with_gnu_ld=yes
9524
if test "$GCC" = yes; then
9525
# Check if gcc -print-prog-name=ld gives a path.
9526
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9527
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9530
# gcc leaves a trailing carriage return which upsets mingw
9531
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9533
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9536
# Accept absolute paths.
9538
re_direlt='/[^/][^/]*/\.\./'
9539
# Canonicalize the pathname of ld
9540
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9541
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9542
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9544
test -z "$LD" && LD="$ac_prog"
9547
# If it fails, then pretend we aren't using GCC.
9551
# If it is relative, then search for the first ld in PATH.
9555
elif test "$with_gnu_ld" = yes; then
9556
echo "$as_me:$LINENO: checking for GNU ld" >&5
9557
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9559
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9560
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9562
if test "${lt_cv_path_LD+set}" = set; then
9563
echo $ECHO_N "(cached) $ECHO_C" >&6
9565
if test -z "$LD"; then
9566
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9567
for ac_dir in $PATH; do
9569
test -z "$ac_dir" && ac_dir=.
9570
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9571
lt_cv_path_LD="$ac_dir/$ac_prog"
9572
# Check to see if the program is GNU ld. I'd rather use --version,
9573
# but apparently some GNU ld's only accept -v.
9574
# Break only if it was the GNU/non-GNU ld that we prefer.
9575
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9576
*GNU* | *'with BFD'*)
9577
test "$with_gnu_ld" != no && break
9580
test "$with_gnu_ld" != yes && break
9587
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9592
if test -n "$LD"; then
9593
echo "$as_me:$LINENO: result: $LD" >&5
9594
echo "${ECHO_T}$LD" >&6
9596
echo "$as_me:$LINENO: result: no" >&5
9597
echo "${ECHO_T}no" >&6
9599
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9600
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9601
{ (exit 1); exit 1; }; }
9602
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9603
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9604
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9605
echo $ECHO_N "(cached) $ECHO_C" >&6
9607
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9608
case `$LD -v 2>&1 </dev/null` in
9609
*GNU* | *'with BFD'*)
9610
lt_cv_prog_gnu_ld=yes
9613
lt_cv_prog_gnu_ld=no
9617
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9618
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9619
with_gnu_ld=$lt_cv_prog_gnu_ld
9623
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9624
# archiving commands below assume that GNU ld is being used.
9625
if test "$with_gnu_ld" = yes; then
9626
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627
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'
9629
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9630
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9632
# If archive_cmds runs LD, not CC, wlarc should be empty
9633
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9634
# investigate it a little bit more. (MM)
9637
# ancient GNU ld didn't support --whole-archive et. al.
9638
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9639
grep 'no-whole-archive' > /dev/null; then
9640
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9642
whole_archive_flag_spec_CXX=
9648
# A generic and very simple default shared library creation
9649
# command for GNU C++ for the case where it uses the native
9650
# linker, instead of GNU ld. If possible, this setting should
9651
# overridden to take advantage of the native linker features on
9652
# the platform it is being used on.
9653
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9656
# Commands to make compiler produce verbose output that lists
9657
# what "hidden" libraries, object files and flags are used when
9658
# linking a shared library.
9659
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9667
# PORTME: fill in a description of your system's C++ link characteristics
9668
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9669
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9673
# FIXME: insert proper C++ library support
9677
if test "$host_cpu" = ia64; then
9678
# On IA64, the linker does run time linking by default, so we don't
9679
# have to do anything special.
9680
aix_use_runtimelinking=no
9681
exp_sym_flag='-Bexport'
9684
aix_use_runtimelinking=no
9686
# Test if we are trying to use run time linking or normal
9687
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9688
# need to do runtime linking.
9689
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9690
for ld_flag in $LDFLAGS; do
9693
aix_use_runtimelinking=yes
9700
exp_sym_flag='-bexport'
9701
no_entry_flag='-bnoentry'
9704
# When large executables or shared objects are built, AIX ld can
9705
# have problems creating the table of contents. If linking a library
9706
# or program results in "error TOC overflow" add -mminimal-toc to
9707
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9708
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9711
hardcode_direct_CXX=yes
9712
hardcode_libdir_separator_CXX=':'
9713
link_all_deplibs_CXX=yes
9715
if test "$GXX" = yes; then
9716
case $host_os in aix4.012|aix4.012.*)
9717
# We only want to do this on AIX 4.2 and lower, the check
9718
# below for broken collect2 doesn't work under 4.3+
9719
collect2name=`${CC} -print-prog-name=collect2`
9720
if test -f "$collect2name" && \
9721
strings "$collect2name" | grep resolve_lib_name >/dev/null
9723
# We have reworked collect2
9724
hardcode_direct_CXX=yes
9726
# We have old collect2
9727
hardcode_direct_CXX=unsupported
9728
# It fails to find uninstalled libraries when the uninstalled
9729
# path is not listed in the libpath. Setting hardcode_minus_L
9730
# to unsupported forces relinking
9731
hardcode_minus_L_CXX=yes
9732
hardcode_libdir_flag_spec_CXX='-L$libdir'
9733
hardcode_libdir_separator_CXX=
9736
shared_flag='-shared'
9739
if test "$host_cpu" = ia64; then
9740
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9741
# chokes on -Wl,-G. The following line is correct:
9744
if test "$aix_use_runtimelinking" = yes; then
9745
shared_flag='${wl}-G'
9747
shared_flag='${wl}-bM:SRE'
9752
# It seems that -bexpall does not export symbols beginning with
9753
# underscore (_), so it is better to generate a list of symbols to export.
9754
always_export_symbols_CXX=yes
9755
if test "$aix_use_runtimelinking" = yes; then
9756
# Warning - without using the other runtime loading flags (-brtl),
9757
# -berok will link without error, but may produce a broken library.
9758
allow_undefined_flag_CXX='-berok'
9759
# Determine the default libpath from the value encoded in an empty executable.
9760
cat >conftest.$ac_ext <<_ACEOF
9763
cat confdefs.h >>conftest.$ac_ext
9764
cat >>conftest.$ac_ext <<_ACEOF
9765
/* end confdefs.h. */
9775
rm -f conftest.$ac_objext conftest$ac_exeext
9776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777
(eval $ac_link) 2>conftest.er1
9779
grep -v '^ *+' conftest.er1 >conftest.err
9781
cat conftest.err >&5
9782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783
(exit $ac_status); } &&
9784
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789
(exit $ac_status); }; } &&
9790
{ ac_try='test -s conftest$ac_exeext'
9791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795
(exit $ac_status); }; }; then
9797
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9799
# Check for a 64-bit object if we didn't find anything.
9800
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9803
echo "$as_me: failed program was:" >&5
9804
sed 's/^/| /' conftest.$ac_ext >&5
9807
rm -f conftest.err conftest.$ac_objext \
9808
conftest$ac_exeext conftest.$ac_ext
9809
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9811
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9813
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9815
if test "$host_cpu" = ia64; then
9816
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9817
allow_undefined_flag_CXX="-z nodefs"
9818
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9820
# Determine the default libpath from the value encoded in an empty executable.
9821
cat >conftest.$ac_ext <<_ACEOF
9824
cat confdefs.h >>conftest.$ac_ext
9825
cat >>conftest.$ac_ext <<_ACEOF
9826
/* end confdefs.h. */
9836
rm -f conftest.$ac_objext conftest$ac_exeext
9837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838
(eval $ac_link) 2>conftest.er1
9840
grep -v '^ *+' conftest.er1 >conftest.err
9842
cat conftest.err >&5
9843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844
(exit $ac_status); } &&
9845
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850
(exit $ac_status); }; } &&
9851
{ ac_try='test -s conftest$ac_exeext'
9852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
(exit $ac_status); }; }; then
9858
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9860
# Check for a 64-bit object if we didn't find anything.
9861
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9864
echo "$as_me: failed program was:" >&5
9865
sed 's/^/| /' conftest.$ac_ext >&5
9868
rm -f conftest.err conftest.$ac_objext \
9869
conftest$ac_exeext conftest.$ac_ext
9870
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9872
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9873
# Warning - without using the other run time loading flags,
9874
# -berok will link without error, but may produce a broken library.
9875
no_undefined_flag_CXX=' ${wl}-bernotok'
9876
allow_undefined_flag_CXX=' ${wl}-berok'
9877
# -bexpall does not export symbols beginning with underscore (_)
9878
always_export_symbols_CXX=yes
9879
# Exported symbols can be pulled into shared objects from archives
9880
whole_archive_flag_spec_CXX=' '
9881
archive_cmds_need_lc_CXX=yes
9882
# This is similar to how AIX traditionally builds it's shared libraries.
9883
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9888
case $cc_basename in
9890
# FIXME: insert proper C++ library support
9896
cygwin* | mingw* | pw32*)
9897
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9898
# as there is no search path for DLLs.
9899
hardcode_libdir_flag_spec_CXX='-L$libdir'
9900
allow_undefined_flag_CXX=unsupported
9901
always_export_symbols_CXX=no
9902
enable_shared_with_static_runtimes_CXX=yes
9904
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9905
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9906
# If the export-symbols file already is a .def file (1st line
9907
# is EXPORTS), use it as is; otherwise, prepend...
9908
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9909
cp $export_symbols $output_objdir/$soname.def;
9911
echo EXPORTS > $output_objdir/$soname.def;
9912
cat $export_symbols >> $output_objdir/$soname.def;
9914
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9920
darwin* | rhapsody*)
9921
if test "$GXX" = yes; then
9922
archive_cmds_need_lc_CXX=no
9924
rhapsody* | darwin1.[012])
9925
allow_undefined_flag_CXX='-undefined suppress'
9928
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9929
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9931
case ${MACOSX_DEPLOYMENT_TARGET} in
9933
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9936
allow_undefined_flag_CXX='-undefined dynamic_lookup'
9942
lt_int_apple_cc_single_mod=no
9943
output_verbose_link_cmd='echo'
9944
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9945
lt_int_apple_cc_single_mod=yes
9947
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9948
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9950
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9952
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9954
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9955
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9956
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9958
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9960
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9961
hardcode_direct_CXX=no
9962
hardcode_automatic_CXX=yes
9963
hardcode_shlibpath_var_CXX=unsupported
9964
whole_archive_flag_spec_CXX='-all_load $convenience'
9965
link_all_deplibs_CXX=yes
9972
case $cc_basename in
9974
# FIXME: insert proper C++ library support
9978
# Green Hills C++ Compiler
9979
# FIXME: insert proper C++ library support
9983
# FIXME: insert proper C++ library support
9989
# C++ shared libraries reported to be fairly broken before switch to ELF
9993
archive_cmds_need_lc_CXX=no
9995
freebsd* | kfreebsd*-gnu)
9996
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10003
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10004
hardcode_libdir_separator_CXX=:
10005
export_dynamic_flag_spec_CXX='${wl}-E'
10006
hardcode_direct_CXX=yes
10007
hardcode_minus_L_CXX=yes # Not in the search PATH,
10008
# but as the default
10009
# location of the library.
10011
case $cc_basename in
10013
# FIXME: insert proper C++ library support
10017
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'
10018
# Commands to make compiler produce verbose output that lists
10019
# what "hidden" libraries, object files and flags are used when
10020
# linking a shared library.
10022
# There doesn't appear to be a way to prevent this compiler from
10023
# explicitly linking system object files so we need to strip them
10024
# from the output so that they don't get included in the library
10026
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 $list'
10029
if test "$GXX" = yes; then
10030
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'
10032
# FIXME: insert proper C++ library support
10039
if test $with_gnu_ld = no; then
10040
case "$host_cpu" in
10042
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10043
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10044
hardcode_libdir_separator_CXX=:
10047
hardcode_libdir_flag_spec_CXX='-L$libdir'
10050
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10051
hardcode_libdir_separator_CXX=:
10052
export_dynamic_flag_spec_CXX='${wl}-E'
10056
case "$host_cpu" in
10058
hardcode_direct_CXX=no
10059
hardcode_shlibpath_var_CXX=no
10062
hardcode_direct_CXX=no
10063
hardcode_shlibpath_var_CXX=no
10064
hardcode_minus_L_CXX=yes # Not in the search PATH,
10065
# but as the default
10066
# location of the library.
10069
hardcode_direct_CXX=yes
10070
hardcode_minus_L_CXX=yes # Not in the search PATH,
10071
# but as the default
10072
# location of the library.
10076
case $cc_basename in
10078
# FIXME: insert proper C++ library support
10082
case "$host_cpu" in
10084
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10087
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10090
# Commands to make compiler produce verbose output that lists
10091
# what "hidden" libraries, object files and flags are used when
10092
# linking a shared library.
10094
# There doesn't appear to be a way to prevent this compiler from
10095
# explicitly linking system object files so we need to strip them
10096
# from the output so that they don't get included in the library
10098
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 $list'
10101
if test "$GXX" = yes; then
10102
if test $with_gnu_ld = no; then
10103
case "$host_cpu" in
10105
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10108
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'
10113
# FIXME: insert proper C++ library support
10120
case $cc_basename in
10123
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10125
# Archives containing C++ object files must be created using
10126
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10127
# necessary to make sure instantiated templates are included
10129
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10132
if test "$GXX" = yes; then
10133
if test "$with_gnu_ld" = no; then
10134
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10136
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10139
link_all_deplibs_CXX=yes
10142
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10143
hardcode_libdir_separator_CXX=:
10146
case $cc_basename in
10148
# Kuck and Associates, Inc. (KAI) C++ Compiler
10150
# KCC will only create a shared library if the output file
10151
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10152
# to its proper name (with version) after linking.
10153
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'
10154
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'
10155
# Commands to make compiler produce verbose output that lists
10156
# what "hidden" libraries, object files and flags are used when
10157
# linking a shared library.
10159
# There doesn't appear to be a way to prevent this compiler from
10160
# explicitly linking system object files so we need to strip them
10161
# from the output so that they don't get included in the library
10163
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 $list'
10165
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10166
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168
# Archives containing C++ object files must be created using
10169
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10170
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10175
archive_cmds_need_lc_CXX=no
10176
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177
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'
10178
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10179
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10180
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10184
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185
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'
10187
runpath_var=LD_RUN_PATH
10188
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10189
hardcode_libdir_separator_CXX=:
10191
# Commands to make compiler produce verbose output that lists
10192
# what "hidden" libraries, object files and flags are used when
10193
# linking a shared library.
10195
# There doesn't appear to be a way to prevent this compiler from
10196
# explicitly linking system object files so we need to strip them
10197
# from the output so that they don't get included in the library
10199
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
10204
# FIXME: insert proper C++ library support
10208
# FIXME: insert proper C++ library support
10212
case $cc_basename in
10214
# FIXME: insert proper C++ library support
10218
# FIXME: insert proper C++ library support
10223
netbsd* | knetbsd*-gnu)
10224
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10225
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10227
hardcode_libdir_flag_spec_CXX='-R$libdir'
10228
hardcode_direct_CXX=yes
10229
hardcode_shlibpath_var_CXX=no
10231
# Workaround some broken pre-1.5 toolchains
10232
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10235
case $cc_basename in
10237
# Kuck and Associates, Inc. (KAI) C++ Compiler
10239
# KCC will only create a shared library if the output file
10240
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10241
# to its proper name (with version) after linking.
10242
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'
10244
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10245
hardcode_libdir_separator_CXX=:
10247
# Archives containing C++ object files must be created using
10248
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10249
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10253
# Rational C++ 2.4.1
10254
# FIXME: insert proper C++ library support
10258
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10259
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10261
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262
hardcode_libdir_separator_CXX=:
10264
# Commands to make compiler produce verbose output that lists
10265
# what "hidden" libraries, object files and flags are used when
10266
# linking a shared library.
10268
# There doesn't appear to be a way to prevent this compiler from
10269
# explicitly linking system object files so we need to strip them
10270
# from the output so that they don't get included in the library
10272
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10275
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10276
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10277
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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10279
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10280
hardcode_libdir_separator_CXX=:
10282
# Commands to make compiler produce verbose output that lists
10283
# what "hidden" libraries, object files and flags are used when
10284
# linking a shared library.
10285
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10288
# FIXME: insert proper C++ library support
10295
case $cc_basename in
10297
# Kuck and Associates, Inc. (KAI) C++ Compiler
10299
# KCC will only create a shared library if the output file
10300
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10301
# to its proper name (with version) after linking.
10302
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'
10304
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10305
hardcode_libdir_separator_CXX=:
10307
# Archives containing C++ object files must be created using
10308
# the KAI C++ compiler.
10309
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10312
# Rational C++ 2.4.1
10313
# FIXME: insert proper C++ library support
10317
allow_undefined_flag_CXX=' -expect_unresolved \*'
10318
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10319
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10320
echo "-hidden">> $lib.exp~
10321
$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 -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10324
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10325
hardcode_libdir_separator_CXX=:
10327
# Commands to make compiler produce verbose output that lists
10328
# what "hidden" libraries, object files and flags are used when
10329
# linking a shared library.
10331
# There doesn't appear to be a way to prevent this compiler from
10332
# explicitly linking system object files so we need to strip them
10333
# from the output so that they don't get included in the library
10335
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10338
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10339
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10340
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10342
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10343
hardcode_libdir_separator_CXX=:
10345
# Commands to make compiler produce verbose output that lists
10346
# what "hidden" libraries, object files and flags are used when
10347
# linking a shared library.
10348
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10351
# FIXME: insert proper C++ library support
10358
# FIXME: insert proper C++ library support
10362
archive_cmds_need_lc_CXX=no
10363
case $cc_basename in
10365
# FIXME: insert proper C++ library support
10369
# FIXME: insert proper C++ library support
10375
case $cc_basename in
10378
# FIXME: insert proper C++ library support
10383
# FIXME: insert proper C++ library support
10387
# FIXME: insert proper C++ library support
10393
case $cc_basename in
10395
# Sun C++ 4.2, 5.x and Centerline C++
10396
no_undefined_flag_CXX=' -zdefs'
10397
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10398
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10399
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10401
hardcode_libdir_flag_spec_CXX='-R$libdir'
10402
hardcode_shlibpath_var_CXX=no
10404
solaris2.0-5 | solaris2.0-5.*) ;;
10406
# The C++ compiler is used as linker so we must use $wl
10407
# flag to pass the commands to the underlying system
10409
# Supported since Solaris 2.6 (maybe 2.5.1?)
10410
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10413
link_all_deplibs_CXX=yes
10415
# Commands to make compiler produce verbose output that lists
10416
# what "hidden" libraries, object files and flags are used when
10417
# linking a shared library.
10419
# There doesn't appear to be a way to prevent this compiler from
10420
# explicitly linking system object files so we need to strip them
10421
# from the output so that they don't get included in the library
10423
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10425
# Archives containing C++ object files must be created using
10426
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10427
# necessary to make sure instantiated templates are included
10429
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10432
# Green Hills C++ Compiler
10433
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10435
# The C++ compiler must be used to create the archive.
10436
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10439
# GNU C++ compiler with Solaris linker
10440
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10441
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10442
if $CC --version | grep -v '^2\.7' > /dev/null; then
10443
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10444
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10445
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10447
# Commands to make compiler produce verbose output that lists
10448
# what "hidden" libraries, object files and flags are used when
10449
# linking a shared library.
10450
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10452
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10454
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10455
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10456
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10458
# Commands to make compiler produce verbose output that lists
10459
# what "hidden" libraries, object files and flags are used when
10460
# linking a shared library.
10461
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10464
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10469
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10470
archive_cmds_need_lc_CXX=no
10473
case $cc_basename in
10475
# NonStop-UX NCC 3.20
10476
# FIXME: insert proper C++ library support
10480
# FIXME: insert proper C++ library support
10486
# FIXME: insert proper C++ library support
10490
# FIXME: insert proper C++ library support
10494
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10495
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10496
test "$ld_shlibs_CXX" = no && can_build_shared=no
10502
cat > conftest.$ac_ext <<EOF
10506
Foo (void) { a = 0; }
10512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513
(eval $ac_compile) 2>&5
10515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516
(exit $ac_status); }; then
10517
# Parse the compiler output and extract the necessary
10518
# objects, libraries and library flags.
10520
# Sentinel used to keep track of whether or not we are before
10521
# the conftest object file.
10522
pre_test_object_deps_done=no
10524
# The `*' in the case matches for architectures that use `case' in
10525
# $output_verbose_cmd can trigger glob expansion during the loop
10526
# eval without this substitution.
10527
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10529
for p in `eval $output_verbose_link_cmd`; do
10533
# Some compilers place space between "-{L,R}" and the path.
10534
# Remove the space.
10535
if test $p = "-L" \
10536
|| test $p = "-R"; then
10543
if test "$pre_test_object_deps_done" = no; then
10546
# Internal compiler library paths should come after those
10547
# provided the user. The postdeps already come after the
10548
# user supplied libs so there is no need to process them.
10549
if test -z "$compiler_lib_search_path_CXX"; then
10550
compiler_lib_search_path_CXX="${prev}${p}"
10552
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10555
# The "-l" case would never come before the object being
10556
# linked, so don't bother handling this case.
10559
if test -z "$postdeps_CXX"; then
10560
postdeps_CXX="${prev}${p}"
10562
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10568
# This assumes that the test object file only shows up
10569
# once in the compiler output.
10570
if test "$p" = "conftest.$objext"; then
10571
pre_test_object_deps_done=yes
10575
if test "$pre_test_object_deps_done" = no; then
10576
if test -z "$predep_objects_CXX"; then
10577
predep_objects_CXX="$p"
10579
predep_objects_CXX="$predep_objects_CXX $p"
10582
if test -z "$postdep_objects_CXX"; then
10583
postdep_objects_CXX="$p"
10585
postdep_objects_CXX="$postdep_objects_CXX $p"
10590
*) ;; # Ignore the rest.
10598
echo "libtool.m4: error: problem compiling CXX test program"
10601
$rm -f confest.$objext
10603
case " $postdeps_CXX " in
10604
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10607
lt_prog_compiler_wl_CXX=
10608
lt_prog_compiler_pic_CXX=
10609
lt_prog_compiler_static_CXX=
10611
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10612
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10614
# C++ specific cases for pic, static, wl, etc.
10615
if test "$GXX" = yes; then
10616
lt_prog_compiler_wl_CXX='-Wl,'
10617
lt_prog_compiler_static_CXX='-static'
10621
# All AIX code is PIC.
10622
if test "$host_cpu" = ia64; then
10623
# AIX 5 now supports IA64 processor
10624
lt_prog_compiler_static_CXX='-Bstatic'
10628
# FIXME: we need at least 68020 code to build shared libraries, but
10629
# adding the `-m68020' flag to GCC prevents building anything better,
10631
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10633
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10634
# PIC is the default for these OSes.
10636
mingw* | os2* | pw32*)
10637
# This hack is so that the source file can tell whether it is being
10638
# built for inclusion in a dll (and should export symbols for example).
10639
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10641
darwin* | rhapsody*)
10642
# PIC is the default on this platform
10643
# Common symbols not allowed in MH_DYLIB files
10644
lt_prog_compiler_pic_CXX='-fno-common'
10647
# DJGPP does not support shared libraries at all
10648
lt_prog_compiler_pic_CXX=
10651
if test -d /usr/nec; then
10652
lt_prog_compiler_pic_CXX=-Kconform_pic
10656
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10657
# not for PA HP-UX.
10658
case "$host_cpu" in
10662
lt_prog_compiler_pic_CXX='-fPIC'
10667
lt_prog_compiler_pic_CXX='-fPIC'
10673
# All AIX code is PIC.
10674
if test "$host_cpu" = ia64; then
10675
# AIX 5 now supports IA64 processor
10676
lt_prog_compiler_static_CXX='-Bstatic'
10678
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10682
case $cc_basename in
10684
# Green Hills C++ Compiler
10685
# _LT_AC_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"
10690
case $cc_basename in
10692
lt_prog_compiler_pic_CXX='-KPIC'
10695
# Green Hills C++ Compiler
10696
lt_prog_compiler_pic_CXX='-pic'
10702
freebsd* | kfreebsd*-gnu)
10703
# FreeBSD uses GNU C++
10705
hpux9* | hpux10* | hpux11*)
10706
case $cc_basename in
10708
lt_prog_compiler_wl_CXX='-Wl,'
10709
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10710
if test "$host_cpu" != ia64; then
10711
lt_prog_compiler_pic_CXX='+Z'
10715
lt_prog_compiler_wl_CXX='-Wl,'
10716
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717
case "$host_cpu" in
10722
lt_prog_compiler_pic_CXX='+Z'
10730
irix5* | irix6* | nonstopux*)
10731
case $cc_basename in
10733
lt_prog_compiler_wl_CXX='-Wl,'
10734
lt_prog_compiler_static_CXX='-non_shared'
10735
# CC pic flag -KPIC is the default.
10742
case $cc_basename in
10745
lt_prog_compiler_wl_CXX='--backend -Wl,'
10746
lt_prog_compiler_pic_CXX='-fPIC'
10750
lt_prog_compiler_wl_CXX='-Wl,'
10751
lt_prog_compiler_pic_CXX='-KPIC'
10752
lt_prog_compiler_static_CXX='-static'
10756
# Make sure the PIC flag is empty. It appears that all Alpha
10757
# Linux and Compaq Tru64 Unix objects are PIC.
10758
lt_prog_compiler_pic_CXX=
10759
lt_prog_compiler_static_CXX='-non_shared'
10770
case $cc_basename in
10772
lt_prog_compiler_pic_CXX='-W c,exportall'
10778
netbsd* | knetbsd*-gnu)
10780
osf3* | osf4* | osf5*)
10781
case $cc_basename in
10783
lt_prog_compiler_wl_CXX='--backend -Wl,'
10786
# Rational C++ 2.4.1
10787
lt_prog_compiler_pic_CXX='-pic'
10790
# Digital/Compaq C++
10791
lt_prog_compiler_wl_CXX='-Wl,'
10792
# Make sure the PIC flag is empty. It appears that all Alpha
10793
# Linux and Compaq Tru64 Unix objects are PIC.
10794
lt_prog_compiler_pic_CXX=
10795
lt_prog_compiler_static_CXX='-non_shared'
10804
case $cc_basename in
10806
lt_prog_compiler_pic_CXX='-fPIC'
10813
case $cc_basename in
10815
# Sun C++ 4.2, 5.x and Centerline C++
10816
lt_prog_compiler_pic_CXX='-KPIC'
10817
lt_prog_compiler_static_CXX='-Bstatic'
10818
lt_prog_compiler_wl_CXX='-Qoption ld '
10821
# Green Hills C++ Compiler
10822
lt_prog_compiler_pic_CXX='-PIC'
10829
case $cc_basename in
10832
lt_prog_compiler_pic_CXX='-pic'
10833
lt_prog_compiler_static_CXX='-Bstatic'
10837
lt_prog_compiler_pic_CXX='-pic'
10844
case $cc_basename in
10846
# NonStop-UX NCC 3.20
10847
lt_prog_compiler_pic_CXX='-KPIC'
10858
lt_prog_compiler_can_build_shared_CXX=no
10863
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10864
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10867
# Check to make sure the PIC flag actually works.
10869
if test -n "$lt_prog_compiler_pic_CXX"; then
10871
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10872
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10873
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10874
echo $ECHO_N "(cached) $ECHO_C" >&6
10876
lt_prog_compiler_pic_works_CXX=no
10877
ac_outfile=conftest.$ac_objext
10878
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10879
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10880
# Insert the option either (1) after the last *FLAGS variable, or
10881
# (2) before a word containing "conftest.", or (3) at the end.
10882
# Note that $ac_compile itself does not contain backslashes and begins
10883
# with a dollar sign (not a hyphen), so the echo should work correctly.
10884
# The option is referenced via a variable to avoid confusing sed.
10885
lt_compile=`echo "$ac_compile" | $SED \
10886
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10887
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10888
-e 's:$: $lt_compiler_flag:'`
10889
(eval echo "\"\$as_me:10889: $lt_compile\"" >&5)
10890
(eval "$lt_compile" 2>conftest.err)
10892
cat conftest.err >&5
10893
echo "$as_me:10893: \$? = $ac_status" >&5
10894
if (exit $ac_status) && test -s "$ac_outfile"; then
10895
# The compiler can only warn and ignore the option if not recognized
10896
# So say no if there are warnings
10897
if test ! -s conftest.err; then
10898
lt_prog_compiler_pic_works_CXX=yes
10904
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10905
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10907
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10908
case $lt_prog_compiler_pic_CXX in
10910
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10913
lt_prog_compiler_pic_CXX=
10914
lt_prog_compiler_can_build_shared_CXX=no
10919
# For platforms which do not support PIC, -DPIC is meaningless:
10921
lt_prog_compiler_pic_CXX=
10924
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10928
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10929
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10930
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10931
echo $ECHO_N "(cached) $ECHO_C" >&6
10933
lt_cv_prog_compiler_c_o_CXX=no
10934
$rm -r conftest 2>/dev/null
10938
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10940
lt_compiler_flag="-o out/conftest2.$ac_objext"
10941
# Insert the option either (1) after the last *FLAGS variable, or
10942
# (2) before a word containing "conftest.", or (3) at the end.
10943
# Note that $ac_compile itself does not contain backslashes and begins
10944
# with a dollar sign (not a hyphen), so the echo should work correctly.
10945
lt_compile=`echo "$ac_compile" | $SED \
10946
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10947
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10948
-e 's:$: $lt_compiler_flag:'`
10949
(eval echo "\"\$as_me:10949: $lt_compile\"" >&5)
10950
(eval "$lt_compile" 2>out/conftest.err)
10952
cat out/conftest.err >&5
10953
echo "$as_me:10953: \$? = $ac_status" >&5
10954
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10956
# The compiler can only warn and ignore the option if not recognized
10957
# So say no if there are warnings
10958
if test ! -s out/conftest.err; then
10959
lt_cv_prog_compiler_c_o_CXX=yes
10964
# SGI C++ compiler will create directory out/ii_files/ for
10965
# template instantiation
10966
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10967
$rm out/* && rmdir out
10973
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10974
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10977
hard_links="nottested"
10978
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10979
# do not overwrite the value of need_locks provided by the user
10980
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10981
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10984
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10986
ln conftest.a conftest.b 2>&5 || hard_links=no
10987
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10988
echo "$as_me:$LINENO: result: $hard_links" >&5
10989
echo "${ECHO_T}$hard_links" >&6
10990
if test "$hard_links" = no; then
10991
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10992
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10999
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11000
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11002
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11005
# If we're using GNU nm, then we don't want the "-C" option.
11006
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11007
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11008
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'
11010
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'
11014
export_symbols_cmds_CXX="$ltdll_cmds"
11017
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11020
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11024
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11025
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11026
test "$ld_shlibs_CXX" = no && can_build_shared=no
11028
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11029
if test "$GCC" = yes; then
11030
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11034
# Do we need to explicitly link libc?
11036
case "x$archive_cmds_need_lc_CXX" in
11038
# Assume -lc should be added
11039
archive_cmds_need_lc_CXX=yes
11041
if test "$enable_shared" = yes && test "$GCC" = yes; then
11042
case $archive_cmds_CXX in
11044
# FIXME: we may have to deal with multi-command sequences.
11047
# Test whether the compiler implicitly links with -lc since on some
11048
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11049
# to ld, don't add -lc before -lgcc.
11050
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11051
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11053
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11056
(eval $ac_compile) 2>&5
11058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059
(exit $ac_status); } 2>conftest.err; then
11062
libobjs=conftest.$ac_objext
11064
wl=$lt_prog_compiler_wl_CXX
11070
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11071
allow_undefined_flag_CXX=
11072
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11073
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076
(exit $ac_status); }
11078
archive_cmds_need_lc_CXX=no
11080
archive_cmds_need_lc_CXX=yes
11082
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11084
cat conftest.err 1>&5
11087
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11088
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11095
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11096
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11097
library_names_spec=
11098
libname_spec='lib$name'
11102
postuninstall_cmds=
11106
shlibpath_overrides_runpath=unknown
11108
dynamic_linker="$host_os ld.so"
11109
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11110
if test "$GCC" = yes; then
11111
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11112
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11113
# if the path contains ";" then we assume it to be the separator
11114
# otherwise default to the standard path separator (i.e. ":") - it is
11115
# assumed that no part of a normal pathname contains ";" but that should
11116
# okay in the real world where ";" in dirpaths is itself problematic.
11117
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11119
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11122
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124
need_lib_prefix=unknown
11125
hardcode_into_libs=no
11127
# when you set need_version to no, make sure it does not cause -set_version
11128
# flags to be left without arguments
11129
need_version=unknown
11134
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11135
shlibpath_var=LIBPATH
11137
# AIX 3 has no versioning support, so we append a major version to the name.
11138
soname_spec='${libname}${release}${shared_ext}$major'
11145
hardcode_into_libs=yes
11146
if test "$host_cpu" = ia64; then
11147
# AIX 5 supports IA64
11148
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11149
shlibpath_var=LD_LIBRARY_PATH
11151
# With GCC up to 2.95.x, collect2 would create an import file
11152
# for dependence libraries. The import file would start with
11153
# the line `#! .'. This would cause the generated library to
11154
# depend on `.', always an invalid library. This was fixed in
11155
# development snapshots of GCC prior to 3.0.
11157
aix4 | aix4.[01] | aix4.[01].*)
11158
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11160
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11163
can_build_shared=no
11167
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11168
# soname into executable. Probably we can add versioning support to
11169
# collect2, so additional links can be useful in future.
11170
if test "$aix_use_runtimelinking" = yes; then
11171
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11172
# instead of lib<name>.a to let people know that these are not
11173
# typical AIX shared libraries.
11174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176
# We preserve .a as extension for shared libraries through AIX4.2
11177
# and later when we are not doing run time linking.
11178
library_names_spec='${libname}${release}.a $libname.a'
11179
soname_spec='${libname}${release}${shared_ext}$major'
11181
shlibpath_var=LIBPATH
11186
library_names_spec='$libname.ixlibrary $libname.a'
11187
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11188
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'
11192
library_names_spec='${libname}${shared_ext}'
11193
dynamic_linker="$host_os ld.so"
11194
shlibpath_var=LIBRARY_PATH
11200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201
soname_spec='${libname}${release}${shared_ext}$major'
11202
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11203
shlibpath_var=LD_LIBRARY_PATH
11204
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11205
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11206
# the default ld.so.conf also contains /usr/contrib/lib and
11207
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11208
# libtool to hard-code these into programs
11211
cygwin* | mingw* | pw32*)
11212
version_type=windows
11217
case $GCC,$host_os in
11218
yes,cygwin* | yes,mingw* | yes,pw32*)
11219
library_names_spec='$libname.dll.a'
11220
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11221
postinstall_cmds='base_file=`basename \${file}`~
11222
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11223
dldir=$destdir/`dirname \$dlpath`~
11224
test -d \$dldir || mkdir -p \$dldir~
11225
$install_prog $dir/$dlname \$dldir/$dlname'
11226
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227
dlpath=$dir/\$dldll~
11229
shlibpath_overrides_runpath=yes
11233
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11234
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11238
# MinGW DLLs use traditional 'lib' prefix
11239
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11241
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11242
# It is most probably a Windows format PATH printed by
11243
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11244
# path with ; separators, and with drive letters. We can handle the
11245
# drive letters (cygwin fileutils understands them), so leave them,
11246
# especially as we might pass files found there to a mingw objdump,
11247
# which wouldn't understand a cygwinified path. Ahh.
11248
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11250
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11254
# pw32 DLLs use 'pw' prefix rather than 'lib'
11255
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11261
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11264
dynamic_linker='Win32 ld.exe'
11265
# FIXME: first we should search . and the directory the executable is in
11269
darwin* | rhapsody*)
11270
dynamic_linker="$host_os dyld"
11271
version_type=darwin
11274
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275
soname_spec='${libname}${release}${major}$shared_ext'
11276
shlibpath_overrides_runpath=yes
11277
shlibpath_var=DYLD_LIBRARY_PATH
11278
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11279
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11280
if test "$GCC" = yes; then
11281
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11283
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11285
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11293
soname_spec='${libname}${release}${shared_ext}$major'
11294
shlibpath_var=LD_LIBRARY_PATH
11305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306
soname_spec='${libname}${release}${shared_ext}$major'
11307
shlibpath_var=LD_LIBRARY_PATH
11308
shlibpath_overrides_runpath=no
11309
hardcode_into_libs=yes
11310
dynamic_linker='GNU ld.so'
11314
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11315
version_type=freebsd-$objformat
11316
case $version_type in
11318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11327
shlibpath_var=LD_LIBRARY_PATH
11330
shlibpath_overrides_runpath=yes
11332
freebsd3.01* | freebsdelf3.01*)
11333
shlibpath_overrides_runpath=yes
11334
hardcode_into_libs=yes
11337
shlibpath_overrides_runpath=no
11338
hardcode_into_libs=yes
11347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11348
soname_spec='${libname}${release}${shared_ext}$major'
11349
shlibpath_var=LD_LIBRARY_PATH
11350
hardcode_into_libs=yes
11353
hpux9* | hpux10* | hpux11*)
11354
# Give a soname corresponding to the major version so that dld.sl refuses to
11355
# link against other versions.
11359
case "$host_cpu" in
11362
hardcode_into_libs=yes
11363
dynamic_linker="$host_os dld.so"
11364
shlibpath_var=LD_LIBRARY_PATH
11365
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367
soname_spec='${libname}${release}${shared_ext}$major'
11368
if test "X$HPUX_IA64_MODE" = X32; then
11369
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11371
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11373
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377
hardcode_into_libs=yes
11378
dynamic_linker="$host_os dld.sl"
11379
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11380
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382
soname_spec='${libname}${release}${shared_ext}$major'
11383
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11384
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11388
dynamic_linker="$host_os dld.sl"
11389
shlibpath_var=SHLIB_PATH
11390
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392
soname_spec='${libname}${release}${shared_ext}$major'
11395
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11396
postinstall_cmds='chmod 555 $lib'
11399
irix5* | irix6* | nonstopux*)
11401
nonstopux*) version_type=nonstopux ;;
11403
if test "$lt_cv_prog_gnu_ld" = yes; then
11411
soname_spec='${libname}${release}${shared_ext}$major'
11412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11414
irix5* | nonstopux*)
11415
libsuff= shlibsuff=
11418
case $LD in # libtool.m4 will add one of these switches to LD
11419
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11420
libsuff= shlibsuff= libmagic=32-bit;;
11421
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11422
libsuff=32 shlibsuff=N32 libmagic=N32;;
11423
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11424
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11425
*) libsuff= shlibsuff= libmagic=never-match;;
11429
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11430
shlibpath_overrides_runpath=no
11431
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11432
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11433
hardcode_into_libs=yes
11436
# No shared lib support for Linux oldld, aout, or coff.
11437
linux*oldld* | linux*aout* | linux*coff*)
11441
# This must be Linux ELF.
11446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447
soname_spec='${libname}${release}${shared_ext}$major'
11448
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11449
shlibpath_var=LD_LIBRARY_PATH
11450
shlibpath_overrides_runpath=no
11451
# This implies no fast_install, which is unacceptable.
11452
# Some rework will be needed to allow for fast_install
11453
# before this can be enabled.
11454
hardcode_into_libs=yes
11456
# Append ld.so.conf contents to the search path
11457
if test -f /etc/ld.so.conf; then
11458
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11459
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11462
# We used to test for /lib/ld.so.1 and disable shared libraries on
11463
# powerpc, because MkLinux only supported shared libraries with the
11464
# GNU dynamic linker. Since this was broken with cross compilers,
11465
# most powerpc-linux boxes support dynamic linking these days and
11466
# people can always --disable-shared, the test was removed, and we
11467
# assume the GNU/Linux dynamic linker is in use.
11468
dynamic_linker='GNU/Linux ld.so'
11475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476
soname_spec='${libname}${release}${shared_ext}$major'
11477
shlibpath_var=LD_LIBRARY_PATH
11478
shlibpath_overrides_runpath=no
11479
hardcode_into_libs=yes
11480
dynamic_linker='GNU ld.so'
11487
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11489
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490
dynamic_linker='NetBSD (a.out) ld.so'
11492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493
soname_spec='${libname}${release}${shared_ext}$major'
11494
dynamic_linker='NetBSD ld.elf_so'
11496
shlibpath_var=LD_LIBRARY_PATH
11497
shlibpath_overrides_runpath=yes
11498
hardcode_into_libs=yes
11503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504
shlibpath_var=LD_LIBRARY_PATH
11505
shlibpath_overrides_runpath=yes
11512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513
soname_spec='${libname}${release}${shared_ext}$major'
11514
shlibpath_var=LD_LIBRARY_PATH
11515
shlibpath_overrides_runpath=yes
11522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11523
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11524
shlibpath_var=LD_LIBRARY_PATH
11525
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11527
openbsd2.[89] | openbsd2.[89].*)
11528
shlibpath_overrides_runpath=no
11531
shlibpath_overrides_runpath=yes
11535
shlibpath_overrides_runpath=yes
11540
libname_spec='$name'
11543
library_names_spec='$libname${shared_ext} $libname.a'
11544
dynamic_linker='OS/2 ld.exe'
11545
shlibpath_var=LIBPATH
11548
osf3* | osf4* | osf5*)
11552
soname_spec='${libname}${release}${shared_ext}$major'
11553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554
shlibpath_var=LD_LIBRARY_PATH
11555
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11556
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11561
soname_spec='${libname}${release}${shared_ext}$major'
11562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563
shlibpath_var=LD_LIBRARY_PATH
11570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571
soname_spec='${libname}${release}${shared_ext}$major'
11572
shlibpath_var=LD_LIBRARY_PATH
11573
shlibpath_overrides_runpath=yes
11574
hardcode_into_libs=yes
11575
# ldd complains unless libraries are executable
11576
postinstall_cmds='chmod +x $lib'
11581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11582
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11583
shlibpath_var=LD_LIBRARY_PATH
11584
shlibpath_overrides_runpath=yes
11585
if test "$with_gnu_ld" = yes; then
11591
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594
soname_spec='${libname}${release}${shared_ext}$major'
11595
shlibpath_var=LD_LIBRARY_PATH
11596
case $host_vendor in
11598
shlibpath_overrides_runpath=no
11600
export_dynamic_flag_spec='${wl}-Blargedynsym'
11601
runpath_var=LD_RUN_PATH
11609
shlibpath_overrides_runpath=no
11610
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11616
if test -d /usr/nec ;then
11618
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11619
soname_spec='$libname${shared_ext}.$major'
11620
shlibpath_var=LD_LIBRARY_PATH
11626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627
soname_spec='${libname}${release}${shared_ext}$major'
11628
shlibpath_var=LD_LIBRARY_PATH
11635
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11636
echo "${ECHO_T}$dynamic_linker" >&6
11637
test "$dynamic_linker" = no && can_build_shared=no
11639
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11640
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11641
hardcode_action_CXX=
11642
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11643
test -n "$runpath_var CXX" || \
11644
test "X$hardcode_automatic_CXX"="Xyes" ; then
11646
# We can hardcode non-existant directories.
11647
if test "$hardcode_direct_CXX" != no &&
11648
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11649
# have to relink, otherwise we might link with an installed library
11650
# when we should be linking with a yet-to-be-installed one
11651
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11652
test "$hardcode_minus_L_CXX" != no; then
11653
# Linking always hardcodes the temporary library directory.
11654
hardcode_action_CXX=relink
11656
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11657
hardcode_action_CXX=immediate
11660
# We cannot hardcode anything, or else we can only hardcode existing
11662
hardcode_action_CXX=unsupported
11664
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11665
echo "${ECHO_T}$hardcode_action_CXX" >&6
11667
if test "$hardcode_action_CXX" = relink; then
11668
# Fast installation is not supported
11669
enable_fast_install=no
11670
elif test "$shlibpath_overrides_runpath" = yes ||
11671
test "$enable_shared" = no; then
11672
# Fast installation is not necessary
11673
enable_fast_install=needless
11678
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11679
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11680
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11681
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11682
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11683
echo "$as_me:$LINENO: result: yes" >&5
11684
echo "${ECHO_T}yes" >&6
11686
# FIXME - insert some real tests, host_os isn't really good enough
11689
if test -n "$STRIP" ; then
11690
striplib="$STRIP -x"
11691
echo "$as_me:$LINENO: result: yes" >&5
11692
echo "${ECHO_T}yes" >&6
11694
echo "$as_me:$LINENO: result: no" >&5
11695
echo "${ECHO_T}no" >&6
11699
echo "$as_me:$LINENO: result: no" >&5
11700
echo "${ECHO_T}no" >&6
11705
if test "x$enable_dlopen" != xyes; then
11706
enable_dlopen=unknown
11707
enable_dlopen_self=unknown
11708
enable_dlopen_self_static=unknown
11715
lt_cv_dlopen="load_add_on"
11717
lt_cv_dlopen_self=yes
11721
lt_cv_dlopen="LoadLibrary"
11726
lt_cv_dlopen="dlopen"
11731
# if libdl is installed we need to link against it
11732
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11733
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11734
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11735
echo $ECHO_N "(cached) $ECHO_C" >&6
11737
ac_check_lib_save_LIBS=$LIBS
11739
cat >conftest.$ac_ext <<_ACEOF
11742
cat confdefs.h >>conftest.$ac_ext
11743
cat >>conftest.$ac_ext <<_ACEOF
11744
/* end confdefs.h. */
11746
/* Override any gcc2 internal prototype to avoid an error. */
11750
/* We use char because int might match the return type of a gcc2
11751
builtin and then its argument prototype would still apply. */
11761
rm -f conftest.$ac_objext conftest$ac_exeext
11762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763
(eval $ac_link) 2>conftest.er1
11765
grep -v '^ *+' conftest.er1 >conftest.err
11767
cat conftest.err >&5
11768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769
(exit $ac_status); } &&
11770
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772
(eval $ac_try) 2>&5
11774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775
(exit $ac_status); }; } &&
11776
{ ac_try='test -s conftest$ac_exeext'
11777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778
(eval $ac_try) 2>&5
11780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
(exit $ac_status); }; }; then
11782
ac_cv_lib_dl_dlopen=yes
11784
echo "$as_me: failed program was:" >&5
11785
sed 's/^/| /' conftest.$ac_ext >&5
11787
ac_cv_lib_dl_dlopen=no
11789
rm -f conftest.err conftest.$ac_objext \
11790
conftest$ac_exeext conftest.$ac_ext
11791
LIBS=$ac_check_lib_save_LIBS
11793
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11794
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11795
if test $ac_cv_lib_dl_dlopen = yes; then
11796
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11799
lt_cv_dlopen="dyld"
11801
lt_cv_dlopen_self=yes
11808
echo "$as_me:$LINENO: checking for shl_load" >&5
11809
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11810
if test "${ac_cv_func_shl_load+set}" = set; then
11811
echo $ECHO_N "(cached) $ECHO_C" >&6
11813
cat >conftest.$ac_ext <<_ACEOF
11816
cat confdefs.h >>conftest.$ac_ext
11817
cat >>conftest.$ac_ext <<_ACEOF
11818
/* end confdefs.h. */
11819
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11820
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821
#define shl_load innocuous_shl_load
11823
/* System header to define __stub macros and hopefully few prototypes,
11824
which can conflict with char shl_load (); below.
11825
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826
<limits.h> exists even on freestanding compilers. */
11829
# include <limits.h>
11831
# include <assert.h>
11836
/* Override any gcc2 internal prototype to avoid an error. */
11841
/* We use char because int might match the return type of a gcc2
11842
builtin and then its argument prototype would still apply. */
11844
/* The GNU C library defines this for functions which it implements
11845
to always fail with ENOSYS. Some functions are actually named
11846
something starting with __ and the normal name is an alias. */
11847
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11850
char (*f) () = shl_load;
11859
return f != shl_load;
11864
rm -f conftest.$ac_objext conftest$ac_exeext
11865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866
(eval $ac_link) 2>conftest.er1
11868
grep -v '^ *+' conftest.er1 >conftest.err
11870
cat conftest.err >&5
11871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872
(exit $ac_status); } &&
11873
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875
(eval $ac_try) 2>&5
11877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
(exit $ac_status); }; } &&
11879
{ ac_try='test -s conftest$ac_exeext'
11880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881
(eval $ac_try) 2>&5
11883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884
(exit $ac_status); }; }; then
11885
ac_cv_func_shl_load=yes
11887
echo "$as_me: failed program was:" >&5
11888
sed 's/^/| /' conftest.$ac_ext >&5
11890
ac_cv_func_shl_load=no
11892
rm -f conftest.err conftest.$ac_objext \
11893
conftest$ac_exeext conftest.$ac_ext
11895
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11896
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11897
if test $ac_cv_func_shl_load = yes; then
11898
lt_cv_dlopen="shl_load"
11900
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11901
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11902
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11903
echo $ECHO_N "(cached) $ECHO_C" >&6
11905
ac_check_lib_save_LIBS=$LIBS
11907
cat >conftest.$ac_ext <<_ACEOF
11910
cat confdefs.h >>conftest.$ac_ext
11911
cat >>conftest.$ac_ext <<_ACEOF
11912
/* end confdefs.h. */
11914
/* Override any gcc2 internal prototype to avoid an error. */
11918
/* We use char because int might match the return type of a gcc2
11919
builtin and then its argument prototype would still apply. */
11929
rm -f conftest.$ac_objext conftest$ac_exeext
11930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931
(eval $ac_link) 2>conftest.er1
11933
grep -v '^ *+' conftest.er1 >conftest.err
11935
cat conftest.err >&5
11936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937
(exit $ac_status); } &&
11938
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940
(eval $ac_try) 2>&5
11942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943
(exit $ac_status); }; } &&
11944
{ ac_try='test -s conftest$ac_exeext'
11945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946
(eval $ac_try) 2>&5
11948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949
(exit $ac_status); }; }; then
11950
ac_cv_lib_dld_shl_load=yes
11952
echo "$as_me: failed program was:" >&5
11953
sed 's/^/| /' conftest.$ac_ext >&5
11955
ac_cv_lib_dld_shl_load=no
11957
rm -f conftest.err conftest.$ac_objext \
11958
conftest$ac_exeext conftest.$ac_ext
11959
LIBS=$ac_check_lib_save_LIBS
11961
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11962
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11963
if test $ac_cv_lib_dld_shl_load = yes; then
11964
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11966
echo "$as_me:$LINENO: checking for dlopen" >&5
11967
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11968
if test "${ac_cv_func_dlopen+set}" = set; then
11969
echo $ECHO_N "(cached) $ECHO_C" >&6
11971
cat >conftest.$ac_ext <<_ACEOF
11974
cat confdefs.h >>conftest.$ac_ext
11975
cat >>conftest.$ac_ext <<_ACEOF
11976
/* end confdefs.h. */
11977
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11978
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11979
#define dlopen innocuous_dlopen
11981
/* System header to define __stub macros and hopefully few prototypes,
11982
which can conflict with char dlopen (); below.
11983
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11984
<limits.h> exists even on freestanding compilers. */
11987
# include <limits.h>
11989
# include <assert.h>
11994
/* Override any gcc2 internal prototype to avoid an error. */
11999
/* We use char because int might match the return type of a gcc2
12000
builtin and then its argument prototype would still apply. */
12002
/* The GNU C library defines this for functions which it implements
12003
to always fail with ENOSYS. Some functions are actually named
12004
something starting with __ and the normal name is an alias. */
12005
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12008
char (*f) () = dlopen;
12017
return f != dlopen;
12022
rm -f conftest.$ac_objext conftest$ac_exeext
12023
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024
(eval $ac_link) 2>conftest.er1
12026
grep -v '^ *+' conftest.er1 >conftest.err
12028
cat conftest.err >&5
12029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030
(exit $ac_status); } &&
12031
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033
(eval $ac_try) 2>&5
12035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036
(exit $ac_status); }; } &&
12037
{ ac_try='test -s conftest$ac_exeext'
12038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039
(eval $ac_try) 2>&5
12041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
(exit $ac_status); }; }; then
12043
ac_cv_func_dlopen=yes
12045
echo "$as_me: failed program was:" >&5
12046
sed 's/^/| /' conftest.$ac_ext >&5
12048
ac_cv_func_dlopen=no
12050
rm -f conftest.err conftest.$ac_objext \
12051
conftest$ac_exeext conftest.$ac_ext
12053
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12054
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12055
if test $ac_cv_func_dlopen = yes; then
12056
lt_cv_dlopen="dlopen"
12058
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12059
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12060
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12061
echo $ECHO_N "(cached) $ECHO_C" >&6
12063
ac_check_lib_save_LIBS=$LIBS
12065
cat >conftest.$ac_ext <<_ACEOF
12068
cat confdefs.h >>conftest.$ac_ext
12069
cat >>conftest.$ac_ext <<_ACEOF
12070
/* end confdefs.h. */
12072
/* Override any gcc2 internal prototype to avoid an error. */
12076
/* We use char because int might match the return type of a gcc2
12077
builtin and then its argument prototype would still apply. */
12087
rm -f conftest.$ac_objext conftest$ac_exeext
12088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089
(eval $ac_link) 2>conftest.er1
12091
grep -v '^ *+' conftest.er1 >conftest.err
12093
cat conftest.err >&5
12094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095
(exit $ac_status); } &&
12096
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098
(eval $ac_try) 2>&5
12100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101
(exit $ac_status); }; } &&
12102
{ ac_try='test -s conftest$ac_exeext'
12103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104
(eval $ac_try) 2>&5
12106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107
(exit $ac_status); }; }; then
12108
ac_cv_lib_dl_dlopen=yes
12110
echo "$as_me: failed program was:" >&5
12111
sed 's/^/| /' conftest.$ac_ext >&5
12113
ac_cv_lib_dl_dlopen=no
12115
rm -f conftest.err conftest.$ac_objext \
12116
conftest$ac_exeext conftest.$ac_ext
12117
LIBS=$ac_check_lib_save_LIBS
12119
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12120
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12121
if test $ac_cv_lib_dl_dlopen = yes; then
12122
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12124
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12125
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12126
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12127
echo $ECHO_N "(cached) $ECHO_C" >&6
12129
ac_check_lib_save_LIBS=$LIBS
12130
LIBS="-lsvld $LIBS"
12131
cat >conftest.$ac_ext <<_ACEOF
12134
cat confdefs.h >>conftest.$ac_ext
12135
cat >>conftest.$ac_ext <<_ACEOF
12136
/* end confdefs.h. */
12138
/* Override any gcc2 internal prototype to avoid an error. */
12142
/* We use char because int might match the return type of a gcc2
12143
builtin and then its argument prototype would still apply. */
12153
rm -f conftest.$ac_objext conftest$ac_exeext
12154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155
(eval $ac_link) 2>conftest.er1
12157
grep -v '^ *+' conftest.er1 >conftest.err
12159
cat conftest.err >&5
12160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
(exit $ac_status); } &&
12162
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164
(eval $ac_try) 2>&5
12166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
(exit $ac_status); }; } &&
12168
{ ac_try='test -s conftest$ac_exeext'
12169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170
(eval $ac_try) 2>&5
12172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173
(exit $ac_status); }; }; then
12174
ac_cv_lib_svld_dlopen=yes
12176
echo "$as_me: failed program was:" >&5
12177
sed 's/^/| /' conftest.$ac_ext >&5
12179
ac_cv_lib_svld_dlopen=no
12181
rm -f conftest.err conftest.$ac_objext \
12182
conftest$ac_exeext conftest.$ac_ext
12183
LIBS=$ac_check_lib_save_LIBS
12185
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12186
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12187
if test $ac_cv_lib_svld_dlopen = yes; then
12188
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12190
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12191
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12192
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12193
echo $ECHO_N "(cached) $ECHO_C" >&6
12195
ac_check_lib_save_LIBS=$LIBS
12197
cat >conftest.$ac_ext <<_ACEOF
12200
cat confdefs.h >>conftest.$ac_ext
12201
cat >>conftest.$ac_ext <<_ACEOF
12202
/* end confdefs.h. */
12204
/* Override any gcc2 internal prototype to avoid an error. */
12208
/* We use char because int might match the return type of a gcc2
12209
builtin and then its argument prototype would still apply. */
12219
rm -f conftest.$ac_objext conftest$ac_exeext
12220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221
(eval $ac_link) 2>conftest.er1
12223
grep -v '^ *+' conftest.er1 >conftest.err
12225
cat conftest.err >&5
12226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227
(exit $ac_status); } &&
12228
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230
(eval $ac_try) 2>&5
12232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
(exit $ac_status); }; } &&
12234
{ ac_try='test -s conftest$ac_exeext'
12235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236
(eval $ac_try) 2>&5
12238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239
(exit $ac_status); }; }; then
12240
ac_cv_lib_dld_dld_link=yes
12242
echo "$as_me: failed program was:" >&5
12243
sed 's/^/| /' conftest.$ac_ext >&5
12245
ac_cv_lib_dld_dld_link=no
12247
rm -f conftest.err conftest.$ac_objext \
12248
conftest$ac_exeext conftest.$ac_ext
12249
LIBS=$ac_check_lib_save_LIBS
12251
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12252
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12253
if test $ac_cv_lib_dld_dld_link = yes; then
12254
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12275
if test "x$lt_cv_dlopen" != xno; then
12281
case $lt_cv_dlopen in
12283
save_CPPFLAGS="$CPPFLAGS"
12284
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12286
save_LDFLAGS="$LDFLAGS"
12287
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12290
LIBS="$lt_cv_dlopen_libs $LIBS"
12292
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12293
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12294
if test "${lt_cv_dlopen_self+set}" = set; then
12295
echo $ECHO_N "(cached) $ECHO_C" >&6
12297
if test "$cross_compiling" = yes; then :
12298
lt_cv_dlopen_self=cross
12300
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12301
lt_status=$lt_dlunknown
12302
cat > conftest.$ac_ext <<EOF
12303
#line 12303 "configure"
12304
#include "confdefs.h"
12313
# define LT_DLGLOBAL RTLD_GLOBAL
12316
# define LT_DLGLOBAL DL_GLOBAL
12318
# define LT_DLGLOBAL 0
12322
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12323
find out it does not work in some platform. */
12324
#ifndef LT_DLLAZY_OR_NOW
12326
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12329
# define LT_DLLAZY_OR_NOW DL_LAZY
12332
# define LT_DLLAZY_OR_NOW RTLD_NOW
12335
# define LT_DLLAZY_OR_NOW DL_NOW
12337
# define LT_DLLAZY_OR_NOW 0
12345
extern "C" void exit (int);
12348
void fnord() { int i=42;}
12351
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12352
int status = $lt_dlunknown;
12356
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12357
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12358
/* dlclose (self); */
12364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365
(eval $ac_link) 2>&5
12367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12369
(./conftest; exit; ) 2>/dev/null
12371
case x$lt_status in
12372
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12373
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12374
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12377
# compilation failed
12378
lt_cv_dlopen_self=no
12385
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12386
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12388
if test "x$lt_cv_dlopen_self" = xyes; then
12389
LDFLAGS="$LDFLAGS $link_static_flag"
12390
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12391
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12392
if test "${lt_cv_dlopen_self_static+set}" = set; then
12393
echo $ECHO_N "(cached) $ECHO_C" >&6
12395
if test "$cross_compiling" = yes; then :
12396
lt_cv_dlopen_self_static=cross
12398
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12399
lt_status=$lt_dlunknown
12400
cat > conftest.$ac_ext <<EOF
12401
#line 12401 "configure"
12402
#include "confdefs.h"
12411
# define LT_DLGLOBAL RTLD_GLOBAL
12414
# define LT_DLGLOBAL DL_GLOBAL
12416
# define LT_DLGLOBAL 0
12420
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12421
find out it does not work in some platform. */
12422
#ifndef LT_DLLAZY_OR_NOW
12424
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12427
# define LT_DLLAZY_OR_NOW DL_LAZY
12430
# define LT_DLLAZY_OR_NOW RTLD_NOW
12433
# define LT_DLLAZY_OR_NOW DL_NOW
12435
# define LT_DLLAZY_OR_NOW 0
12443
extern "C" void exit (int);
12446
void fnord() { int i=42;}
12449
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12450
int status = $lt_dlunknown;
12454
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12455
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12456
/* dlclose (self); */
12462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12463
(eval $ac_link) 2>&5
12465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12467
(./conftest; exit; ) 2>/dev/null
12469
case x$lt_status in
12470
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12471
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12472
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12475
# compilation failed
12476
lt_cv_dlopen_self_static=no
12483
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12484
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12487
CPPFLAGS="$save_CPPFLAGS"
12488
LDFLAGS="$save_LDFLAGS"
12493
case $lt_cv_dlopen_self in
12494
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12495
*) enable_dlopen_self=unknown ;;
12498
case $lt_cv_dlopen_self_static in
12499
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12500
*) enable_dlopen_self_static=unknown ;;
12505
# The else clause should only fire when bootstrapping the
12506
# libtool distribution, otherwise you forgot to ship ltmain.sh
12507
# with your package, and you will get complaints that there are
12508
# no rules to generate ltmain.sh.
12509
if test -f "$ltmain"; then
12510
# See if we are running on zsh, and set the options which allow our commands through
12511
# without removal of \ escapes.
12512
if test -n "${ZSH_VERSION+set}" ; then
12513
setopt NO_GLOB_SUBST
12515
# Now quote all the things that may contain metacharacters while being
12516
# careful not to overquote the AC_SUBSTed values. We take copies of the
12517
# variables and quote the copies for generation of the libtool script.
12518
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12520
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12521
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12522
deplibs_check_method reload_flag reload_cmds need_locks \
12523
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12524
lt_cv_sys_global_symbol_to_c_name_address \
12525
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12526
old_postinstall_cmds old_postuninstall_cmds \
12530
lt_prog_compiler_wl_CXX \
12531
lt_prog_compiler_pic_CXX \
12532
lt_prog_compiler_static_CXX \
12533
lt_prog_compiler_no_builtin_flag_CXX \
12534
export_dynamic_flag_spec_CXX \
12535
thread_safe_flag_spec_CXX \
12536
whole_archive_flag_spec_CXX \
12537
enable_shared_with_static_runtimes_CXX \
12538
old_archive_cmds_CXX \
12539
old_archive_from_new_cmds_CXX \
12540
predep_objects_CXX \
12541
postdep_objects_CXX \
12544
compiler_lib_search_path_CXX \
12546
archive_expsym_cmds_CXX \
12547
postinstall_cmds_CXX \
12548
postuninstall_cmds_CXX \
12549
old_archive_from_expsyms_cmds_CXX \
12550
allow_undefined_flag_CXX \
12551
no_undefined_flag_CXX \
12552
export_symbols_cmds_CXX \
12553
hardcode_libdir_flag_spec_CXX \
12554
hardcode_libdir_flag_spec_ld_CXX \
12555
hardcode_libdir_separator_CXX \
12556
hardcode_automatic_CXX \
12558
module_expsym_cmds_CXX \
12559
lt_cv_prog_compiler_c_o_CXX \
12560
exclude_expsyms_CXX \
12561
include_expsyms_CXX; do
12564
old_archive_cmds_CXX | \
12565
old_archive_from_new_cmds_CXX | \
12566
archive_cmds_CXX | \
12567
archive_expsym_cmds_CXX | \
12568
module_cmds_CXX | \
12569
module_expsym_cmds_CXX | \
12570
old_archive_from_expsyms_cmds_CXX | \
12571
export_symbols_cmds_CXX | \
12572
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12573
postinstall_cmds | postuninstall_cmds | \
12574
old_postinstall_cmds | old_postuninstall_cmds | \
12575
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12576
# Double-quote double-evaled strings.
12577
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12580
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12586
*'\$0 --fallback-echo"')
12587
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12593
cat <<__EOF__ >> "$cfgfile"
12594
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12596
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12598
# Shell to use when invoking shell scripts.
12601
# Whether or not to build shared libraries.
12602
build_libtool_libs=$enable_shared
12604
# Whether or not to build static libraries.
12605
build_old_libs=$enable_static
12607
# Whether or not to add -lc for building shared libraries.
12608
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12610
# Whether or not to disallow shared libs when runtime libs are static
12611
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12613
# Whether or not to optimize for fast installation.
12614
fast_install=$enable_fast_install
12617
host_alias=$host_alias
12620
# An echo program that does not interpret backslashes.
12625
AR_FLAGS=$lt_AR_FLAGS
12630
# A language-specific compiler.
12631
CC=$lt_compiler_CXX
12633
# Is the compiler the GNU C compiler?
12639
# The linker used to build libraries.
12642
# Whether we need hard or soft links.
12645
# A BSD-compatible nm program.
12648
# A symbol stripping program
12651
# Used to examine libraries when file_magic_cmd begins "file"
12652
MAGIC_CMD=$MAGIC_CMD
12654
# Used on cygwin: DLL creation program.
12657
# Used on cygwin: object dumper.
12660
# Used on cygwin: assembler.
12663
# The name of the directory that contains temporary libtool files.
12666
# How to create reloadable object files.
12667
reload_flag=$lt_reload_flag
12668
reload_cmds=$lt_reload_cmds
12670
# How to pass a linker flag through the compiler.
12671
wl=$lt_lt_prog_compiler_wl_CXX
12673
# Object file suffix (normally "o").
12674
objext="$ac_objext"
12676
# Old archive suffix (normally "a").
12679
# Shared library suffix (normally ".so").
12682
# Executable file suffix (normally "").
12685
# Additional compiler flags for building library objects.
12686
pic_flag=$lt_lt_prog_compiler_pic_CXX
12689
# What is the maximum length of a command?
12690
max_cmd_len=$lt_cv_sys_max_cmd_len
12692
# Does compiler simultaneously support -c and -o options?
12693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12695
# Must we lock files when doing compilation ?
12696
need_locks=$lt_need_locks
12698
# Do we need the lib prefix for modules?
12699
need_lib_prefix=$need_lib_prefix
12701
# Do we need a version for libraries?
12702
need_version=$need_version
12704
# Whether dlopen is supported.
12705
dlopen_support=$enable_dlopen
12707
# Whether dlopen of programs is supported.
12708
dlopen_self=$enable_dlopen_self
12710
# Whether dlopen of statically linked programs is supported.
12711
dlopen_self_static=$enable_dlopen_self_static
12713
# Compiler flag to prevent dynamic linking.
12714
link_static_flag=$lt_lt_prog_compiler_static_CXX
12716
# Compiler flag to turn off builtin functions.
12717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12719
# Compiler flag to allow reflexive dlopens.
12720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12722
# Compiler flag to generate shared objects directly from archives.
12723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12725
# Compiler flag to generate thread-safe objects.
12726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12728
# Library versioning type.
12729
version_type=$version_type
12731
# Format of library name prefix.
12732
libname_spec=$lt_libname_spec
12734
# List of archive names. First name is the real one, the rest are links.
12735
# The last name is the one that the linker finds with -lNAME.
12736
library_names_spec=$lt_library_names_spec
12738
# The coded name of the library, if different from the real name.
12739
soname_spec=$lt_soname_spec
12741
# Commands used to build and install an old-style archive.
12743
old_archive_cmds=$lt_old_archive_cmds_CXX
12744
old_postinstall_cmds=$lt_old_postinstall_cmds
12745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12747
# Create an old-style archive from a shared archive.
12748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12750
# Create a temporary old-style archive to link instead of a shared archive.
12751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12753
# Commands used to build and install a shared archive.
12754
archive_cmds=$lt_archive_cmds_CXX
12755
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12756
postinstall_cmds=$lt_postinstall_cmds
12757
postuninstall_cmds=$lt_postuninstall_cmds
12759
# Commands used to build a loadable module (assumed same as above if empty)
12760
module_cmds=$lt_module_cmds_CXX
12761
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12763
# Commands to strip libraries.
12764
old_striplib=$lt_old_striplib
12765
striplib=$lt_striplib
12767
# Dependencies to place before the objects being linked to create a
12769
predep_objects=$lt_predep_objects_CXX
12771
# Dependencies to place after the objects being linked to create a
12773
postdep_objects=$lt_postdep_objects_CXX
12775
# Dependencies to place before the objects being linked to create a
12777
predeps=$lt_predeps_CXX
12779
# Dependencies to place after the objects being linked to create a
12781
postdeps=$lt_postdeps_CXX
12783
# The library search path used internally by the compiler when linking
12784
# a shared library.
12785
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12787
# Method to check whether dependent libraries are shared objects.
12788
deplibs_check_method=$lt_deplibs_check_method
12790
# Command to use when deplibs_check_method == file_magic.
12791
file_magic_cmd=$lt_file_magic_cmd
12793
# Flag that allows shared libraries with undefined symbols to be built.
12794
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12796
# Flag that forces no undefined symbols.
12797
no_undefined_flag=$lt_no_undefined_flag_CXX
12799
# Commands used to finish a libtool library installation in a directory.
12800
finish_cmds=$lt_finish_cmds
12802
# Same as above, but a single script fragment to be evaled but not shown.
12803
finish_eval=$lt_finish_eval
12805
# Take the output of nm and produce a listing of raw symbols and C names.
12806
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12808
# Transform the output of nm in a proper C declaration
12809
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12811
# Transform the output of nm in a C name address pair
12812
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12814
# This is the shared library runtime path variable.
12815
runpath_var=$runpath_var
12817
# This is the shared library path variable.
12818
shlibpath_var=$shlibpath_var
12820
# Is shlibpath searched before the hard-coded library search path?
12821
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12823
# How to hardcode a shared library path into an executable.
12824
hardcode_action=$hardcode_action_CXX
12826
# Whether we should hardcode library paths into libraries.
12827
hardcode_into_libs=$hardcode_into_libs
12829
# Flag to hardcode \$libdir into a binary during linking.
12830
# This must work even if \$libdir does not exist.
12831
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12833
# If ld is used when linking, flag to hardcode \$libdir into
12834
# a binary during linking. This must work even if \$libdir does
12836
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12838
# Whether we need a single -rpath flag with a separated argument.
12839
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12841
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12842
# resulting binary.
12843
hardcode_direct=$hardcode_direct_CXX
12845
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12846
# resulting binary.
12847
hardcode_minus_L=$hardcode_minus_L_CXX
12849
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12850
# the resulting binary.
12851
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12853
# Set to yes if building a shared library automatically hardcodes DIR into the library
12854
# and all subsequent libraries and executables linked against it.
12855
hardcode_automatic=$hardcode_automatic_CXX
12857
# Variables whose values should be saved in libtool wrapper scripts and
12858
# restored at relink time.
12859
variables_saved_for_relink="$variables_saved_for_relink"
12861
# Whether libtool must link a program against all its dependency libraries.
12862
link_all_deplibs=$link_all_deplibs_CXX
12864
# Compile-time system search path for libraries
12865
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12867
# Run-time system search path for libraries
12868
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12870
# Fix the shell variable \$srcfile for the compiler.
12871
fix_srcfile_path="$fix_srcfile_path_CXX"
12873
# Set to yes if exported symbols are required.
12874
always_export_symbols=$always_export_symbols_CXX
12876
# The commands to list exported symbols.
12877
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12879
# The commands to extract the exported symbol list from a shared archive.
12880
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12882
# Symbols that should not be listed in the preloaded symbols.
12883
exclude_expsyms=$lt_exclude_expsyms_CXX
12885
# Symbols that must always be exported.
12886
include_expsyms=$lt_include_expsyms_CXX
12888
# ### END LIBTOOL TAG CONFIG: $tagname
12894
# If there is no Makefile yet, we rely on a make rule to execute
12895
# `config.status --recheck' to rerun these tests and create the
12896
# libtool script then.
12897
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12898
if test -f "$ltmain_in"; then
12899
test -f Makefile && make "$ltmain"
12905
ac_cpp='$CPP $CPPFLAGS'
12906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
with_gnu_ldcxx=$with_gnu_ld
12915
with_gnu_ld=$lt_save_with_gnu_ld
12916
lt_cv_path_LDCXX=$lt_cv_path_LD
12917
lt_cv_path_LD=$lt_save_path_LD
12918
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12919
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12927
if test -n "$F77" && test "X$F77" != "Xno"; then
12930
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12931
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12935
archive_cmds_need_lc_F77=no
12936
allow_undefined_flag_F77=
12937
always_export_symbols_F77=no
12938
archive_expsym_cmds_F77=
12939
export_dynamic_flag_spec_F77=
12940
hardcode_direct_F77=no
12941
hardcode_libdir_flag_spec_F77=
12942
hardcode_libdir_flag_spec_ld_F77=
12943
hardcode_libdir_separator_F77=
12944
hardcode_minus_L_F77=no
12945
hardcode_automatic_F77=no
12947
module_expsym_cmds_F77=
12948
link_all_deplibs_F77=unknown
12949
old_archive_cmds_F77=$old_archive_cmds
12950
no_undefined_flag_F77=
12951
whole_archive_flag_spec_F77=
12952
enable_shared_with_static_runtimes_F77=no
12954
# Source file extension for f77 test sources.
12957
# Object file extension for compiled f77 test sources.
12961
# Code to be used in simple compile tests
12962
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12964
# Code to be used in simple link tests
12965
lt_simple_link_test_code=" program t\n end\n"
12967
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12969
# If no C compiler was specified, use CC.
12972
# Allow CC to be a program name with arguments.
12976
# Allow CC to be a program name with arguments.
12981
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12983
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12984
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12985
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12986
echo "${ECHO_T}$can_build_shared" >&6
12988
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12989
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12990
test "$can_build_shared" = "no" && enable_shared=no
12992
# On AIX, shared libraries and static libraries use the same namespace, and
12993
# are all built from PIC.
12996
test "$enable_shared" = yes && enable_static=no
12997
if test -n "$RANLIB"; then
12998
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12999
postinstall_cmds='$RANLIB $lib'
13003
test "$enable_shared" = yes && enable_static=no
13006
echo "$as_me:$LINENO: result: $enable_shared" >&5
13007
echo "${ECHO_T}$enable_shared" >&6
13009
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13010
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13011
# Make sure either enable_shared or enable_static is yes.
13012
test "$enable_shared" = yes || enable_static=yes
13013
echo "$as_me:$LINENO: result: $enable_static" >&5
13014
echo "${ECHO_T}$enable_static" >&6
13016
test "$ld_shlibs_F77" = no && can_build_shared=no
13021
lt_prog_compiler_wl_F77=
13022
lt_prog_compiler_pic_F77=
13023
lt_prog_compiler_static_F77=
13025
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13026
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13028
if test "$GCC" = yes; then
13029
lt_prog_compiler_wl_F77='-Wl,'
13030
lt_prog_compiler_static_F77='-static'
13034
# All AIX code is PIC.
13035
if test "$host_cpu" = ia64; then
13036
# AIX 5 now supports IA64 processor
13037
lt_prog_compiler_static_F77='-Bstatic'
13042
# FIXME: we need at least 68020 code to build shared libraries, but
13043
# adding the `-m68020' flag to GCC prevents building anything better,
13045
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13048
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13049
# PIC is the default for these OSes.
13052
mingw* | pw32* | os2*)
13053
# This hack is so that the source file can tell whether it is being
13054
# built for inclusion in a dll (and should export symbols for example).
13055
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13058
darwin* | rhapsody*)
13059
# PIC is the default on this platform
13060
# Common symbols not allowed in MH_DYLIB files
13061
lt_prog_compiler_pic_F77='-fno-common'
13065
# Just because we use GCC doesn't mean we suddenly get shared libraries
13066
# on systems that don't support them.
13067
lt_prog_compiler_can_build_shared_F77=no
13072
if test -d /usr/nec; then
13073
lt_prog_compiler_pic_F77=-Kconform_pic
13078
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13079
# not for PA HP-UX.
13080
case "$host_cpu" in
13085
lt_prog_compiler_pic_F77='-fPIC'
13091
lt_prog_compiler_pic_F77='-fPIC'
13095
# PORTME Check for flag to pass linker flags through the system compiler.
13098
lt_prog_compiler_wl_F77='-Wl,'
13099
if test "$host_cpu" = ia64; then
13100
# AIX 5 now supports IA64 processor
13101
lt_prog_compiler_static_F77='-Bstatic'
13103
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13107
mingw* | pw32* | os2*)
13108
# This hack is so that the source file can tell whether it is being
13109
# built for inclusion in a dll (and should export symbols for example).
13110
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13113
hpux9* | hpux10* | hpux11*)
13114
lt_prog_compiler_wl_F77='-Wl,'
13115
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13116
# not for PA HP-UX.
13117
case "$host_cpu" in
13122
lt_prog_compiler_pic_F77='+Z'
13125
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13126
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13129
irix5* | irix6* | nonstopux*)
13130
lt_prog_compiler_wl_F77='-Wl,'
13131
# PIC (with -KPIC) is the default.
13132
lt_prog_compiler_static_F77='-non_shared'
13136
lt_prog_compiler_pic_F77='-KPIC'
13137
lt_prog_compiler_static_F77='-Bstatic'
13143
lt_prog_compiler_wl_F77='-Wl,'
13144
lt_prog_compiler_pic_F77='-KPIC'
13145
lt_prog_compiler_static_F77='-static'
13148
lt_prog_compiler_wl_F77='-Wl,'
13149
# All Alpha code is PIC.
13150
lt_prog_compiler_static_F77='-non_shared'
13155
osf3* | osf4* | osf5*)
13156
lt_prog_compiler_wl_F77='-Wl,'
13157
# All OSF/1 code is PIC.
13158
lt_prog_compiler_static_F77='-non_shared'
13162
lt_prog_compiler_pic_F77='-Kpic'
13163
lt_prog_compiler_static_F77='-dn'
13167
lt_prog_compiler_wl_F77='-Wl,'
13168
lt_prog_compiler_pic_F77='-KPIC'
13169
lt_prog_compiler_static_F77='-Bstatic'
13173
lt_prog_compiler_wl_F77='-Qoption ld '
13174
lt_prog_compiler_pic_F77='-PIC'
13175
lt_prog_compiler_static_F77='-Bstatic'
13178
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13179
lt_prog_compiler_wl_F77='-Wl,'
13180
lt_prog_compiler_pic_F77='-KPIC'
13181
lt_prog_compiler_static_F77='-Bstatic'
13185
if test -d /usr/nec ;then
13186
lt_prog_compiler_pic_F77='-Kconform_pic'
13187
lt_prog_compiler_static_F77='-Bstatic'
13192
lt_prog_compiler_pic_F77='-pic'
13193
lt_prog_compiler_static_F77='-Bstatic'
13197
lt_prog_compiler_can_build_shared_F77=no
13202
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13203
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13206
# Check to make sure the PIC flag actually works.
13208
if test -n "$lt_prog_compiler_pic_F77"; then
13210
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13211
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13212
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13213
echo $ECHO_N "(cached) $ECHO_C" >&6
13215
lt_prog_compiler_pic_works_F77=no
13216
ac_outfile=conftest.$ac_objext
13217
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13218
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13219
# Insert the option either (1) after the last *FLAGS variable, or
13220
# (2) before a word containing "conftest.", or (3) at the end.
13221
# Note that $ac_compile itself does not contain backslashes and begins
13222
# with a dollar sign (not a hyphen), so the echo should work correctly.
13223
# The option is referenced via a variable to avoid confusing sed.
13224
lt_compile=`echo "$ac_compile" | $SED \
13225
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13226
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13227
-e 's:$: $lt_compiler_flag:'`
13228
(eval echo "\"\$as_me:13228: $lt_compile\"" >&5)
13229
(eval "$lt_compile" 2>conftest.err)
13231
cat conftest.err >&5
13232
echo "$as_me:13232: \$? = $ac_status" >&5
13233
if (exit $ac_status) && test -s "$ac_outfile"; then
13234
# The compiler can only warn and ignore the option if not recognized
13235
# So say no if there are warnings
13236
if test ! -s conftest.err; then
13237
lt_prog_compiler_pic_works_F77=yes
13243
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13244
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13246
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13247
case $lt_prog_compiler_pic_F77 in
13249
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13252
lt_prog_compiler_pic_F77=
13253
lt_prog_compiler_can_build_shared_F77=no
13258
# For platforms which do not support PIC, -DPIC is meaningless:
13260
lt_prog_compiler_pic_F77=
13263
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13267
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13268
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13269
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13270
echo $ECHO_N "(cached) $ECHO_C" >&6
13272
lt_cv_prog_compiler_c_o_F77=no
13273
$rm -r conftest 2>/dev/null
13277
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13279
lt_compiler_flag="-o out/conftest2.$ac_objext"
13280
# Insert the option either (1) after the last *FLAGS variable, or
13281
# (2) before a word containing "conftest.", or (3) at the end.
13282
# Note that $ac_compile itself does not contain backslashes and begins
13283
# with a dollar sign (not a hyphen), so the echo should work correctly.
13284
lt_compile=`echo "$ac_compile" | $SED \
13285
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13286
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13287
-e 's:$: $lt_compiler_flag:'`
13288
(eval echo "\"\$as_me:13288: $lt_compile\"" >&5)
13289
(eval "$lt_compile" 2>out/conftest.err)
13291
cat out/conftest.err >&5
13292
echo "$as_me:13292: \$? = $ac_status" >&5
13293
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13295
# The compiler can only warn and ignore the option if not recognized
13296
# So say no if there are warnings
13297
if test ! -s out/conftest.err; then
13298
lt_cv_prog_compiler_c_o_F77=yes
13303
# SGI C++ compiler will create directory out/ii_files/ for
13304
# template instantiation
13305
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13306
$rm out/* && rmdir out
13312
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13313
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13316
hard_links="nottested"
13317
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13318
# do not overwrite the value of need_locks provided by the user
13319
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13320
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13323
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13325
ln conftest.a conftest.b 2>&5 || hard_links=no
13326
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327
echo "$as_me:$LINENO: result: $hard_links" >&5
13328
echo "${ECHO_T}$hard_links" >&6
13329
if test "$hard_links" = no; then
13330
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13331
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13338
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13339
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13342
allow_undefined_flag_F77=
13343
enable_shared_with_static_runtimes_F77=no
13345
archive_expsym_cmds_F77=
13346
old_archive_From_new_cmds_F77=
13347
old_archive_from_expsyms_cmds_F77=
13348
export_dynamic_flag_spec_F77=
13349
whole_archive_flag_spec_F77=
13350
thread_safe_flag_spec_F77=
13351
hardcode_libdir_flag_spec_F77=
13352
hardcode_libdir_flag_spec_ld_F77=
13353
hardcode_libdir_separator_F77=
13354
hardcode_direct_F77=no
13355
hardcode_minus_L_F77=no
13356
hardcode_shlibpath_var_F77=unsupported
13357
link_all_deplibs_F77=unknown
13358
hardcode_automatic_F77=no
13360
module_expsym_cmds_F77=
13361
always_export_symbols_F77=no
13362
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13363
# include_expsyms should be a list of space-separated symbols to be *always*
13364
# included in the symbol list
13365
include_expsyms_F77=
13366
# exclude_expsyms can be an extended regexp of symbols to exclude
13367
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13368
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13369
# as well as any symbol that contains `d'.
13370
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13371
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13372
# platforms (ab)use it in PIC code, but their linkers get confused if
13373
# the symbol is explicitly referenced. Since portable code cannot
13374
# rely on this symbol name, it's probably fine to never include it in
13375
# preloaded symbol tables.
13376
extract_expsyms_cmds=
13379
cygwin* | mingw* | pw32*)
13380
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13381
# When not using gcc, we currently assume that we are using
13382
# Microsoft Visual C++.
13383
if test "$GCC" != yes; then
13393
if test "$with_gnu_ld" = yes; then
13394
# If archive_cmds runs LD, not CC, wlarc should be empty
13397
# See if GNU ld supports shared libraries.
13399
aix3* | aix4* | aix5*)
13400
# On AIX/PPC, the GNU linker is very broken
13401
if test "$host_cpu" != ia64; then
13405
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13406
*** to be unable to reliably create shared libraries on AIX.
13407
*** Therefore, libtool is disabling shared libraries support. If you
13408
*** really care for shared libraries, you may want to modify your PATH
13409
*** so that a non-GNU linker is found, and then restart.
13416
archive_cmds_F77='$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)'
13417
hardcode_libdir_flag_spec_F77='-L$libdir'
13418
hardcode_minus_L_F77=yes
13420
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13421
# that the semantics of dynamic libraries on AmigaOS, at least up
13422
# to version 4, is to share data among multiple programs linked
13423
# with the same dynamic library. Since this doesn't match the
13424
# behavior of shared libraries on other platforms, we can't use
13430
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13431
allow_undefined_flag_F77=unsupported
13432
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13433
# support --undefined. This deserves some investigation. FIXME
13434
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440
cygwin* | mingw* | pw32*)
13441
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13442
# as there is no search path for DLLs.
13443
hardcode_libdir_flag_spec_F77='-L$libdir'
13444
allow_undefined_flag_F77=unsupported
13445
always_export_symbols_F77=no
13446
enable_shared_with_static_runtimes_F77=yes
13447
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13449
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13450
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13451
# If the export-symbols file already is a .def file (1st line
13452
# is EXPORTS), use it as is; otherwise, prepend...
13453
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13454
cp $export_symbols $output_objdir/$soname.def;
13456
echo EXPORTS > $output_objdir/$soname.def;
13457
cat $export_symbols >> $output_objdir/$soname.def;
13459
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13465
netbsd* | knetbsd*-gnu)
13466
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13467
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13470
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13476
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13480
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13481
*** create shared libraries on Solaris systems. Therefore, libtool
13482
*** is disabling shared libraries support. We urge you to upgrade GNU
13483
*** binutils to release 2.9.1 or newer. Another option is to modify
13484
*** your PATH or compiler configuration so that the native linker is
13485
*** used, and then restart.
13488
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13489
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13497
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13499
hardcode_direct_F77=yes
13500
hardcode_shlibpath_var_F77=no
13504
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13505
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13506
archive_cmds_F77="$tmp_archive_cmds"
13507
supports_anon_versioning=no
13508
case `$LD -v 2>/dev/null` in
13509
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13510
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13511
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13512
*\ 2.11.*) ;; # other 2.11 versions
13513
*) supports_anon_versioning=yes ;;
13515
if test $supports_anon_versioning = yes; then
13516
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13517
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13518
$echo "local: *; };" >> $output_objdir/$libname.ver~
13519
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13521
archive_expsym_cmds_F77="$tmp_archive_cmds"
13529
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538
if test "$ld_shlibs_F77" = yes; then
13539
runpath_var=LD_RUN_PATH
13540
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542
# ancient GNU ld didn't support --whole-archive et. al.
13543
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13546
whole_archive_flag_spec_F77=
13550
# PORTME fill in a description of your system's linker (not GNU ld)
13553
allow_undefined_flag_F77=unsupported
13554
always_export_symbols_F77=yes
13555
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13556
# Note: this linker hardcodes the directories in LIBPATH if there
13557
# are no directories specified by -L.
13558
hardcode_minus_L_F77=yes
13559
if test "$GCC" = yes && test -z "$link_static_flag"; then
13560
# Neither direct hardcoding nor static linking is supported with a
13562
hardcode_direct_F77=unsupported
13567
if test "$host_cpu" = ia64; then
13568
# On IA64, the linker does run time linking by default, so we don't
13569
# have to do anything special.
13570
aix_use_runtimelinking=no
13571
exp_sym_flag='-Bexport'
13574
# If we're using GNU nm, then we don't want the "-C" option.
13575
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13576
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13579
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13581
aix_use_runtimelinking=no
13583
# Test if we are trying to use run time linking or normal
13584
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585
# need to do runtime linking.
13586
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587
for ld_flag in $LDFLAGS; do
13588
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589
aix_use_runtimelinking=yes
13595
exp_sym_flag='-bexport'
13596
no_entry_flag='-bnoentry'
13599
# When large executables or shared objects are built, AIX ld can
13600
# have problems creating the table of contents. If linking a library
13601
# or program results in "error TOC overflow" add -mminimal-toc to
13602
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13603
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13605
archive_cmds_F77=''
13606
hardcode_direct_F77=yes
13607
hardcode_libdir_separator_F77=':'
13608
link_all_deplibs_F77=yes
13610
if test "$GCC" = yes; then
13611
case $host_os in aix4.012|aix4.012.*)
13612
# We only want to do this on AIX 4.2 and lower, the check
13613
# below for broken collect2 doesn't work under 4.3+
13614
collect2name=`${CC} -print-prog-name=collect2`
13615
if test -f "$collect2name" && \
13616
strings "$collect2name" | grep resolve_lib_name >/dev/null
13618
# We have reworked collect2
13619
hardcode_direct_F77=yes
13621
# We have old collect2
13622
hardcode_direct_F77=unsupported
13623
# It fails to find uninstalled libraries when the uninstalled
13624
# path is not listed in the libpath. Setting hardcode_minus_L
13625
# to unsupported forces relinking
13626
hardcode_minus_L_F77=yes
13627
hardcode_libdir_flag_spec_F77='-L$libdir'
13628
hardcode_libdir_separator_F77=
13631
shared_flag='-shared'
13634
if test "$host_cpu" = ia64; then
13635
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636
# chokes on -Wl,-G. The following line is correct:
13639
if test "$aix_use_runtimelinking" = yes; then
13640
shared_flag='${wl}-G'
13642
shared_flag='${wl}-bM:SRE'
13647
# It seems that -bexpall does not export symbols beginning with
13648
# underscore (_), so it is better to generate a list of symbols to export.
13649
always_export_symbols_F77=yes
13650
if test "$aix_use_runtimelinking" = yes; then
13651
# Warning - without using the other runtime loading flags (-brtl),
13652
# -berok will link without error, but may produce a broken library.
13653
allow_undefined_flag_F77='-berok'
13654
# Determine the default libpath from the value encoded in an empty executable.
13655
cat >conftest.$ac_ext <<_ACEOF
13660
rm -f conftest.$ac_objext conftest$ac_exeext
13661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662
(eval $ac_link) 2>conftest.er1
13664
grep -v '^ *+' conftest.er1 >conftest.err
13666
cat conftest.err >&5
13667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668
(exit $ac_status); } &&
13669
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671
(eval $ac_try) 2>&5
13673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674
(exit $ac_status); }; } &&
13675
{ ac_try='test -s conftest$ac_exeext'
13676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677
(eval $ac_try) 2>&5
13679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680
(exit $ac_status); }; }; then
13682
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13684
# Check for a 64-bit object if we didn't find anything.
13685
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13688
echo "$as_me: failed program was:" >&5
13689
sed 's/^/| /' conftest.$ac_ext >&5
13692
rm -f conftest.err conftest.$ac_objext \
13693
conftest$ac_exeext conftest.$ac_ext
13694
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13696
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13697
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13699
if test "$host_cpu" = ia64; then
13700
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13701
allow_undefined_flag_F77="-z nodefs"
13702
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13704
# Determine the default libpath from the value encoded in an empty executable.
13705
cat >conftest.$ac_ext <<_ACEOF
13710
rm -f conftest.$ac_objext conftest$ac_exeext
13711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712
(eval $ac_link) 2>conftest.er1
13714
grep -v '^ *+' conftest.er1 >conftest.err
13716
cat conftest.err >&5
13717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
(exit $ac_status); } &&
13719
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721
(eval $ac_try) 2>&5
13723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724
(exit $ac_status); }; } &&
13725
{ ac_try='test -s conftest$ac_exeext'
13726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727
(eval $ac_try) 2>&5
13729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730
(exit $ac_status); }; }; then
13732
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13734
# Check for a 64-bit object if we didn't find anything.
13735
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13738
echo "$as_me: failed program was:" >&5
13739
sed 's/^/| /' conftest.$ac_ext >&5
13742
rm -f conftest.err conftest.$ac_objext \
13743
conftest$ac_exeext conftest.$ac_ext
13744
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13746
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13747
# Warning - without using the other run time loading flags,
13748
# -berok will link without error, but may produce a broken library.
13749
no_undefined_flag_F77=' ${wl}-bernotok'
13750
allow_undefined_flag_F77=' ${wl}-berok'
13751
# -bexpall does not export symbols beginning with underscore (_)
13752
always_export_symbols_F77=yes
13753
# Exported symbols can be pulled into shared objects from archives
13754
whole_archive_flag_spec_F77=' '
13755
archive_cmds_need_lc_F77=yes
13756
# This is similar to how AIX traditionally builds it's shared libraries.
13757
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13763
archive_cmds_F77='$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)'
13764
hardcode_libdir_flag_spec_F77='-L$libdir'
13765
hardcode_minus_L_F77=yes
13766
# see comment about different semantics on the GNU ld section
13771
export_dynamic_flag_spec_F77=-rdynamic
13774
cygwin* | mingw* | pw32*)
13775
# When not using gcc, we currently assume that we are using
13776
# Microsoft Visual C++.
13777
# hardcode_libdir_flag_spec is actually meaningless, as there is
13778
# no search path for DLLs.
13779
hardcode_libdir_flag_spec_F77=' '
13780
allow_undefined_flag_F77=unsupported
13781
# Tell ltmain to make .lib files, not .a files.
13783
# Tell ltmain to make .dll files, not .so files.
13785
# FIXME: Setting linknames here is a bad hack.
13786
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13787
# The linker will automatically build a .lib file if we build a DLL.
13788
old_archive_From_new_cmds_F77='true'
13789
# FIXME: Should let the user specify the lib program.
13790
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13791
fix_srcfile_path='`cygpath -w "$srcfile"`'
13792
enable_shared_with_static_runtimes_F77=yes
13795
darwin* | rhapsody*)
13796
if test "$GXX" = yes ; then
13797
archive_cmds_need_lc_F77=no
13799
rhapsody* | darwin1.[012])
13800
allow_undefined_flag_F77='-undefined suppress'
13803
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13804
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13806
case ${MACOSX_DEPLOYMENT_TARGET} in
13808
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13811
allow_undefined_flag_F77='-undefined dynamic_lookup'
13817
lt_int_apple_cc_single_mod=no
13818
output_verbose_link_cmd='echo'
13819
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13820
lt_int_apple_cc_single_mod=yes
13822
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13823
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13825
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13827
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13828
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13829
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13830
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13832
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13834
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13835
hardcode_direct_F77=no
13836
hardcode_automatic_F77=yes
13837
hardcode_shlibpath_var_F77=unsupported
13838
whole_archive_flag_spec_F77='-all_load $convenience'
13839
link_all_deplibs_F77=yes
13846
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847
hardcode_libdir_flag_spec_F77='-L$libdir'
13848
hardcode_shlibpath_var_F77=no
13855
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13856
# support. Future versions do this automatically, but an explicit c++rt0.o
13857
# does not break anything, and helps significantly (at the cost of a little
13860
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13861
hardcode_libdir_flag_spec_F77='-R$libdir'
13862
hardcode_direct_F77=yes
13863
hardcode_shlibpath_var_F77=no
13866
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13868
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13869
hardcode_direct_F77=yes
13870
hardcode_minus_L_F77=yes
13871
hardcode_shlibpath_var_F77=no
13874
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13875
freebsd* | kfreebsd*-gnu)
13876
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13877
hardcode_libdir_flag_spec_F77='-R$libdir'
13878
hardcode_direct_F77=yes
13879
hardcode_shlibpath_var_F77=no
13883
if test "$GCC" = yes; then
13884
archive_cmds_F77='$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'
13886
archive_cmds_F77='$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'
13888
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13889
hardcode_libdir_separator_F77=:
13890
hardcode_direct_F77=yes
13892
# hardcode_minus_L: Not really in the search PATH,
13893
# but as the default location of the library.
13894
hardcode_minus_L_F77=yes
13895
export_dynamic_flag_spec_F77='${wl}-E'
13899
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13900
case "$host_cpu" in
13902
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13909
case "$host_cpu" in
13911
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13914
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13918
if test "$with_gnu_ld" = no; then
13919
case "$host_cpu" in
13921
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13922
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13923
hardcode_libdir_separator_F77=:
13924
hardcode_direct_F77=no
13925
hardcode_shlibpath_var_F77=no
13928
hardcode_libdir_flag_spec_F77='-L$libdir'
13929
hardcode_direct_F77=no
13930
hardcode_shlibpath_var_F77=no
13932
# hardcode_minus_L: Not really in the search PATH,
13933
# but as the default location of the library.
13934
hardcode_minus_L_F77=yes
13937
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13938
hardcode_libdir_separator_F77=:
13939
hardcode_direct_F77=yes
13940
export_dynamic_flag_spec_F77='${wl}-E'
13942
# hardcode_minus_L: Not really in the search PATH,
13943
# but as the default location of the library.
13944
hardcode_minus_L_F77=yes
13950
irix5* | irix6* | nonstopux*)
13951
if test "$GCC" = yes; then
13952
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13954
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13955
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13957
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13958
hardcode_libdir_separator_F77=:
13959
link_all_deplibs_F77=yes
13962
netbsd* | knetbsd*-gnu)
13963
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13964
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13966
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13968
hardcode_libdir_flag_spec_F77='-R$libdir'
13969
hardcode_direct_F77=yes
13970
hardcode_shlibpath_var_F77=no
13974
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13975
hardcode_direct_F77=yes
13976
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13977
hardcode_libdir_separator_F77=:
13978
hardcode_shlibpath_var_F77=no
13982
hardcode_direct_F77=yes
13983
hardcode_shlibpath_var_F77=no
13984
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13985
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13986
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13987
export_dynamic_flag_spec_F77='${wl}-E'
13990
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13991
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13992
hardcode_libdir_flag_spec_F77='-R$libdir'
13995
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13996
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14003
hardcode_libdir_flag_spec_F77='-L$libdir'
14004
hardcode_minus_L_F77=yes
14005
allow_undefined_flag_F77=unsupported
14006
archive_cmds_F77='$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'
14007
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14011
if test "$GCC" = yes; then
14012
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14013
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14015
allow_undefined_flag_F77=' -expect_unresolved \*'
14016
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14018
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14019
hardcode_libdir_separator_F77=:
14022
osf4* | osf5*) # as osf3* with the addition of -msym flag
14023
if test "$GCC" = yes; then
14024
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14025
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14026
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028
allow_undefined_flag_F77=' -expect_unresolved \*'
14029
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14030
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14031
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14033
# Both c and cxx compiler support -rpath directly
14034
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14036
hardcode_libdir_separator_F77=:
14040
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041
hardcode_shlibpath_var_F77=no
14042
export_dynamic_flag_spec_F77='${wl}-Bexport'
14043
runpath_var=LD_RUN_PATH
14044
hardcode_runpath_var=yes
14048
no_undefined_flag_F77=' -z text'
14049
if test "$GCC" = yes; then
14050
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14051
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14052
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14054
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14055
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14056
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14058
hardcode_libdir_flag_spec_F77='-R$libdir'
14059
hardcode_shlibpath_var_F77=no
14061
solaris2.[0-5] | solaris2.[0-5].*) ;;
14062
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14063
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14065
link_all_deplibs_F77=yes
14069
if test "x$host_vendor" = xsequent; then
14070
# Use $CC to link under sequent, because it throws in some extra .o
14071
# files that make .init and .fini sections work.
14072
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14074
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14076
hardcode_libdir_flag_spec_F77='-L$libdir'
14077
hardcode_direct_F77=yes
14078
hardcode_minus_L_F77=yes
14079
hardcode_shlibpath_var_F77=no
14083
case $host_vendor in
14085
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14086
hardcode_direct_F77=yes # is this really true???
14089
## LD is ld it makes a PLAMLIB
14090
## CC just makes a GrossModule.
14091
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14092
reload_cmds_F77='$CC -r -o $output$reload_objs'
14093
hardcode_direct_F77=no
14096
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14097
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14100
runpath_var='LD_RUN_PATH'
14101
hardcode_shlibpath_var_F77=no
14105
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106
hardcode_shlibpath_var_F77=no
14107
export_dynamic_flag_spec_F77='-Bexport'
14111
if test -d /usr/nec; then
14112
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113
hardcode_shlibpath_var_F77=no
14114
runpath_var=LD_RUN_PATH
14115
hardcode_runpath_var=yes
14121
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14122
hardcode_direct_F77=yes
14123
hardcode_minus_L_F77=no
14124
hardcode_shlibpath_var_F77=no
14125
hardcode_runpath_var=yes
14126
runpath_var=LD_RUN_PATH
14129
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14130
no_undefined_flag_F77='${wl}-z ${wl}text'
14131
if test "$GCC" = yes; then
14132
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14136
runpath_var='LD_RUN_PATH'
14137
hardcode_shlibpath_var_F77=no
14141
no_undefined_flag_F77=' -z text'
14142
# $CC -shared without GNU ld will not create a library from C++
14143
# object files and a static libstdc++, better avoid it by now
14144
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14146
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14147
hardcode_libdir_flag_spec_F77=
14148
hardcode_shlibpath_var_F77=no
14149
runpath_var='LD_RUN_PATH'
14153
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154
hardcode_libdir_flag_spec_F77='-L$libdir'
14155
hardcode_shlibpath_var_F77=no
14164
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14165
echo "${ECHO_T}$ld_shlibs_F77" >&6
14166
test "$ld_shlibs_F77" = no && can_build_shared=no
14168
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14169
if test "$GCC" = yes; then
14170
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14174
# Do we need to explicitly link libc?
14176
case "x$archive_cmds_need_lc_F77" in
14178
# Assume -lc should be added
14179
archive_cmds_need_lc_F77=yes
14181
if test "$enable_shared" = yes && test "$GCC" = yes; then
14182
case $archive_cmds_F77 in
14184
# FIXME: we may have to deal with multi-command sequences.
14187
# Test whether the compiler implicitly links with -lc since on some
14188
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14189
# to ld, don't add -lc before -lgcc.
14190
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14191
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14193
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196
(eval $ac_compile) 2>&5
14198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199
(exit $ac_status); } 2>conftest.err; then
14202
libobjs=conftest.$ac_objext
14204
wl=$lt_prog_compiler_wl_F77
14210
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14211
allow_undefined_flag_F77=
14212
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14213
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216
(exit $ac_status); }
14218
archive_cmds_need_lc_F77=no
14220
archive_cmds_need_lc_F77=yes
14222
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14224
cat conftest.err 1>&5
14227
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14228
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14235
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14236
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14237
library_names_spec=
14238
libname_spec='lib$name'
14242
postuninstall_cmds=
14246
shlibpath_overrides_runpath=unknown
14248
dynamic_linker="$host_os ld.so"
14249
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14250
if test "$GCC" = yes; then
14251
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14252
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14253
# if the path contains ";" then we assume it to be the separator
14254
# otherwise default to the standard path separator (i.e. ":") - it is
14255
# assumed that no part of a normal pathname contains ";" but that should
14256
# okay in the real world where ";" in dirpaths is itself problematic.
14257
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14259
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14262
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14264
need_lib_prefix=unknown
14265
hardcode_into_libs=no
14267
# when you set need_version to no, make sure it does not cause -set_version
14268
# flags to be left without arguments
14269
need_version=unknown
14274
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14275
shlibpath_var=LIBPATH
14277
# AIX 3 has no versioning support, so we append a major version to the name.
14278
soname_spec='${libname}${release}${shared_ext}$major'
14285
hardcode_into_libs=yes
14286
if test "$host_cpu" = ia64; then
14287
# AIX 5 supports IA64
14288
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14289
shlibpath_var=LD_LIBRARY_PATH
14291
# With GCC up to 2.95.x, collect2 would create an import file
14292
# for dependence libraries. The import file would start with
14293
# the line `#! .'. This would cause the generated library to
14294
# depend on `.', always an invalid library. This was fixed in
14295
# development snapshots of GCC prior to 3.0.
14297
aix4 | aix4.[01] | aix4.[01].*)
14298
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14300
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14303
can_build_shared=no
14307
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14308
# soname into executable. Probably we can add versioning support to
14309
# collect2, so additional links can be useful in future.
14310
if test "$aix_use_runtimelinking" = yes; then
14311
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14312
# instead of lib<name>.a to let people know that these are not
14313
# typical AIX shared libraries.
14314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316
# We preserve .a as extension for shared libraries through AIX4.2
14317
# and later when we are not doing run time linking.
14318
library_names_spec='${libname}${release}.a $libname.a'
14319
soname_spec='${libname}${release}${shared_ext}$major'
14321
shlibpath_var=LIBPATH
14326
library_names_spec='$libname.ixlibrary $libname.a'
14327
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14328
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'
14332
library_names_spec='${libname}${shared_ext}'
14333
dynamic_linker="$host_os ld.so"
14334
shlibpath_var=LIBRARY_PATH
14340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341
soname_spec='${libname}${release}${shared_ext}$major'
14342
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343
shlibpath_var=LD_LIBRARY_PATH
14344
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346
# the default ld.so.conf also contains /usr/contrib/lib and
14347
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348
# libtool to hard-code these into programs
14351
cygwin* | mingw* | pw32*)
14352
version_type=windows
14357
case $GCC,$host_os in
14358
yes,cygwin* | yes,mingw* | yes,pw32*)
14359
library_names_spec='$libname.dll.a'
14360
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14361
postinstall_cmds='base_file=`basename \${file}`~
14362
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14363
dldir=$destdir/`dirname \$dlpath`~
14364
test -d \$dldir || mkdir -p \$dldir~
14365
$install_prog $dir/$dlname \$dldir/$dlname'
14366
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14367
dlpath=$dir/\$dldll~
14369
shlibpath_overrides_runpath=yes
14373
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14374
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14378
# MinGW DLLs use traditional 'lib' prefix
14379
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14382
# It is most probably a Windows format PATH printed by
14383
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14384
# path with ; separators, and with drive letters. We can handle the
14385
# drive letters (cygwin fileutils understands them), so leave them,
14386
# especially as we might pass files found there to a mingw objdump,
14387
# which wouldn't understand a cygwinified path. Ahh.
14388
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14390
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14394
# pw32 DLLs use 'pw' prefix rather than 'lib'
14395
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14401
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14404
dynamic_linker='Win32 ld.exe'
14405
# FIXME: first we should search . and the directory the executable is in
14409
darwin* | rhapsody*)
14410
dynamic_linker="$host_os dyld"
14411
version_type=darwin
14414
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14415
soname_spec='${libname}${release}${major}$shared_ext'
14416
shlibpath_overrides_runpath=yes
14417
shlibpath_var=DYLD_LIBRARY_PATH
14418
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14419
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14420
if test "$GCC" = yes; then
14421
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14423
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14425
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14433
soname_spec='${libname}${release}${shared_ext}$major'
14434
shlibpath_var=LD_LIBRARY_PATH
14445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446
soname_spec='${libname}${release}${shared_ext}$major'
14447
shlibpath_var=LD_LIBRARY_PATH
14448
shlibpath_overrides_runpath=no
14449
hardcode_into_libs=yes
14450
dynamic_linker='GNU ld.so'
14454
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14455
version_type=freebsd-$objformat
14456
case $version_type in
14458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14463
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14467
shlibpath_var=LD_LIBRARY_PATH
14470
shlibpath_overrides_runpath=yes
14472
freebsd3.01* | freebsdelf3.01*)
14473
shlibpath_overrides_runpath=yes
14474
hardcode_into_libs=yes
14477
shlibpath_overrides_runpath=no
14478
hardcode_into_libs=yes
14487
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488
soname_spec='${libname}${release}${shared_ext}$major'
14489
shlibpath_var=LD_LIBRARY_PATH
14490
hardcode_into_libs=yes
14493
hpux9* | hpux10* | hpux11*)
14494
# Give a soname corresponding to the major version so that dld.sl refuses to
14495
# link against other versions.
14499
case "$host_cpu" in
14502
hardcode_into_libs=yes
14503
dynamic_linker="$host_os dld.so"
14504
shlibpath_var=LD_LIBRARY_PATH
14505
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507
soname_spec='${libname}${release}${shared_ext}$major'
14508
if test "X$HPUX_IA64_MODE" = X32; then
14509
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14511
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14513
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14517
hardcode_into_libs=yes
14518
dynamic_linker="$host_os dld.sl"
14519
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522
soname_spec='${libname}${release}${shared_ext}$major'
14523
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14528
dynamic_linker="$host_os dld.sl"
14529
shlibpath_var=SHLIB_PATH
14530
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532
soname_spec='${libname}${release}${shared_ext}$major'
14535
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14536
postinstall_cmds='chmod 555 $lib'
14539
irix5* | irix6* | nonstopux*)
14541
nonstopux*) version_type=nonstopux ;;
14543
if test "$lt_cv_prog_gnu_ld" = yes; then
14551
soname_spec='${libname}${release}${shared_ext}$major'
14552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14554
irix5* | nonstopux*)
14555
libsuff= shlibsuff=
14558
case $LD in # libtool.m4 will add one of these switches to LD
14559
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560
libsuff= shlibsuff= libmagic=32-bit;;
14561
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562
libsuff=32 shlibsuff=N32 libmagic=N32;;
14563
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565
*) libsuff= shlibsuff= libmagic=never-match;;
14569
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570
shlibpath_overrides_runpath=no
14571
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14572
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14573
hardcode_into_libs=yes
14576
# No shared lib support for Linux oldld, aout, or coff.
14577
linux*oldld* | linux*aout* | linux*coff*)
14581
# This must be Linux ELF.
14586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587
soname_spec='${libname}${release}${shared_ext}$major'
14588
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14589
shlibpath_var=LD_LIBRARY_PATH
14590
shlibpath_overrides_runpath=no
14591
# This implies no fast_install, which is unacceptable.
14592
# Some rework will be needed to allow for fast_install
14593
# before this can be enabled.
14594
hardcode_into_libs=yes
14596
# Append ld.so.conf contents to the search path
14597
if test -f /etc/ld.so.conf; then
14598
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14599
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14602
# We used to test for /lib/ld.so.1 and disable shared libraries on
14603
# powerpc, because MkLinux only supported shared libraries with the
14604
# GNU dynamic linker. Since this was broken with cross compilers,
14605
# most powerpc-linux boxes support dynamic linking these days and
14606
# people can always --disable-shared, the test was removed, and we
14607
# assume the GNU/Linux dynamic linker is in use.
14608
dynamic_linker='GNU/Linux ld.so'
14615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616
soname_spec='${libname}${release}${shared_ext}$major'
14617
shlibpath_var=LD_LIBRARY_PATH
14618
shlibpath_overrides_runpath=no
14619
hardcode_into_libs=yes
14620
dynamic_linker='GNU ld.so'
14627
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630
dynamic_linker='NetBSD (a.out) ld.so'
14632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14633
soname_spec='${libname}${release}${shared_ext}$major'
14634
dynamic_linker='NetBSD ld.elf_so'
14636
shlibpath_var=LD_LIBRARY_PATH
14637
shlibpath_overrides_runpath=yes
14638
hardcode_into_libs=yes
14643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644
shlibpath_var=LD_LIBRARY_PATH
14645
shlibpath_overrides_runpath=yes
14652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653
soname_spec='${libname}${release}${shared_ext}$major'
14654
shlibpath_var=LD_LIBRARY_PATH
14655
shlibpath_overrides_runpath=yes
14662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664
shlibpath_var=LD_LIBRARY_PATH
14665
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14667
openbsd2.[89] | openbsd2.[89].*)
14668
shlibpath_overrides_runpath=no
14671
shlibpath_overrides_runpath=yes
14675
shlibpath_overrides_runpath=yes
14680
libname_spec='$name'
14683
library_names_spec='$libname${shared_ext} $libname.a'
14684
dynamic_linker='OS/2 ld.exe'
14685
shlibpath_var=LIBPATH
14688
osf3* | osf4* | osf5*)
14692
soname_spec='${libname}${release}${shared_ext}$major'
14693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694
shlibpath_var=LD_LIBRARY_PATH
14695
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14696
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14701
soname_spec='${libname}${release}${shared_ext}$major'
14702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703
shlibpath_var=LD_LIBRARY_PATH
14710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711
soname_spec='${libname}${release}${shared_ext}$major'
14712
shlibpath_var=LD_LIBRARY_PATH
14713
shlibpath_overrides_runpath=yes
14714
hardcode_into_libs=yes
14715
# ldd complains unless libraries are executable
14716
postinstall_cmds='chmod +x $lib'
14721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14723
shlibpath_var=LD_LIBRARY_PATH
14724
shlibpath_overrides_runpath=yes
14725
if test "$with_gnu_ld" = yes; then
14731
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734
soname_spec='${libname}${release}${shared_ext}$major'
14735
shlibpath_var=LD_LIBRARY_PATH
14736
case $host_vendor in
14738
shlibpath_overrides_runpath=no
14740
export_dynamic_flag_spec='${wl}-Blargedynsym'
14741
runpath_var=LD_RUN_PATH
14749
shlibpath_overrides_runpath=no
14750
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14756
if test -d /usr/nec ;then
14758
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14759
soname_spec='$libname${shared_ext}.$major'
14760
shlibpath_var=LD_LIBRARY_PATH
14766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767
soname_spec='${libname}${release}${shared_ext}$major'
14768
shlibpath_var=LD_LIBRARY_PATH
14775
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14776
echo "${ECHO_T}$dynamic_linker" >&6
14777
test "$dynamic_linker" = no && can_build_shared=no
14779
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14780
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14781
hardcode_action_F77=
14782
if test -n "$hardcode_libdir_flag_spec_F77" || \
14783
test -n "$runpath_var F77" || \
14784
test "X$hardcode_automatic_F77"="Xyes" ; then
14786
# We can hardcode non-existant directories.
14787
if test "$hardcode_direct_F77" != no &&
14788
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14789
# have to relink, otherwise we might link with an installed library
14790
# when we should be linking with a yet-to-be-installed one
14791
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14792
test "$hardcode_minus_L_F77" != no; then
14793
# Linking always hardcodes the temporary library directory.
14794
hardcode_action_F77=relink
14796
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14797
hardcode_action_F77=immediate
14800
# We cannot hardcode anything, or else we can only hardcode existing
14802
hardcode_action_F77=unsupported
14804
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14805
echo "${ECHO_T}$hardcode_action_F77" >&6
14807
if test "$hardcode_action_F77" = relink; then
14808
# Fast installation is not supported
14809
enable_fast_install=no
14810
elif test "$shlibpath_overrides_runpath" = yes ||
14811
test "$enable_shared" = no; then
14812
# Fast installation is not necessary
14813
enable_fast_install=needless
14818
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14819
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14820
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14821
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14822
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14823
echo "$as_me:$LINENO: result: yes" >&5
14824
echo "${ECHO_T}yes" >&6
14826
# FIXME - insert some real tests, host_os isn't really good enough
14829
if test -n "$STRIP" ; then
14830
striplib="$STRIP -x"
14831
echo "$as_me:$LINENO: result: yes" >&5
14832
echo "${ECHO_T}yes" >&6
14834
echo "$as_me:$LINENO: result: no" >&5
14835
echo "${ECHO_T}no" >&6
14839
echo "$as_me:$LINENO: result: no" >&5
14840
echo "${ECHO_T}no" >&6
14847
# The else clause should only fire when bootstrapping the
14848
# libtool distribution, otherwise you forgot to ship ltmain.sh
14849
# with your package, and you will get complaints that there are
14850
# no rules to generate ltmain.sh.
14851
if test -f "$ltmain"; then
14852
# See if we are running on zsh, and set the options which allow our commands through
14853
# without removal of \ escapes.
14854
if test -n "${ZSH_VERSION+set}" ; then
14855
setopt NO_GLOB_SUBST
14857
# Now quote all the things that may contain metacharacters while being
14858
# careful not to overquote the AC_SUBSTed values. We take copies of the
14859
# variables and quote the copies for generation of the libtool script.
14860
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14862
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14863
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14864
deplibs_check_method reload_flag reload_cmds need_locks \
14865
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14866
lt_cv_sys_global_symbol_to_c_name_address \
14867
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14868
old_postinstall_cmds old_postuninstall_cmds \
14872
lt_prog_compiler_wl_F77 \
14873
lt_prog_compiler_pic_F77 \
14874
lt_prog_compiler_static_F77 \
14875
lt_prog_compiler_no_builtin_flag_F77 \
14876
export_dynamic_flag_spec_F77 \
14877
thread_safe_flag_spec_F77 \
14878
whole_archive_flag_spec_F77 \
14879
enable_shared_with_static_runtimes_F77 \
14880
old_archive_cmds_F77 \
14881
old_archive_from_new_cmds_F77 \
14882
predep_objects_F77 \
14883
postdep_objects_F77 \
14886
compiler_lib_search_path_F77 \
14888
archive_expsym_cmds_F77 \
14889
postinstall_cmds_F77 \
14890
postuninstall_cmds_F77 \
14891
old_archive_from_expsyms_cmds_F77 \
14892
allow_undefined_flag_F77 \
14893
no_undefined_flag_F77 \
14894
export_symbols_cmds_F77 \
14895
hardcode_libdir_flag_spec_F77 \
14896
hardcode_libdir_flag_spec_ld_F77 \
14897
hardcode_libdir_separator_F77 \
14898
hardcode_automatic_F77 \
14900
module_expsym_cmds_F77 \
14901
lt_cv_prog_compiler_c_o_F77 \
14902
exclude_expsyms_F77 \
14903
include_expsyms_F77; do
14906
old_archive_cmds_F77 | \
14907
old_archive_from_new_cmds_F77 | \
14908
archive_cmds_F77 | \
14909
archive_expsym_cmds_F77 | \
14910
module_cmds_F77 | \
14911
module_expsym_cmds_F77 | \
14912
old_archive_from_expsyms_cmds_F77 | \
14913
export_symbols_cmds_F77 | \
14914
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14915
postinstall_cmds | postuninstall_cmds | \
14916
old_postinstall_cmds | old_postuninstall_cmds | \
14917
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14918
# Double-quote double-evaled strings.
14919
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14922
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14928
*'\$0 --fallback-echo"')
14929
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14935
cat <<__EOF__ >> "$cfgfile"
14936
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14938
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14940
# Shell to use when invoking shell scripts.
14943
# Whether or not to build shared libraries.
14944
build_libtool_libs=$enable_shared
14946
# Whether or not to build static libraries.
14947
build_old_libs=$enable_static
14949
# Whether or not to add -lc for building shared libraries.
14950
build_libtool_need_lc=$archive_cmds_need_lc_F77
14952
# Whether or not to disallow shared libs when runtime libs are static
14953
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14955
# Whether or not to optimize for fast installation.
14956
fast_install=$enable_fast_install
14959
host_alias=$host_alias
14962
# An echo program that does not interpret backslashes.
14967
AR_FLAGS=$lt_AR_FLAGS
14972
# A language-specific compiler.
14973
CC=$lt_compiler_F77
14975
# Is the compiler the GNU C compiler?
14981
# The linker used to build libraries.
14984
# Whether we need hard or soft links.
14987
# A BSD-compatible nm program.
14990
# A symbol stripping program
14993
# Used to examine libraries when file_magic_cmd begins "file"
14994
MAGIC_CMD=$MAGIC_CMD
14996
# Used on cygwin: DLL creation program.
14999
# Used on cygwin: object dumper.
15002
# Used on cygwin: assembler.
15005
# The name of the directory that contains temporary libtool files.
15008
# How to create reloadable object files.
15009
reload_flag=$lt_reload_flag
15010
reload_cmds=$lt_reload_cmds
15012
# How to pass a linker flag through the compiler.
15013
wl=$lt_lt_prog_compiler_wl_F77
15015
# Object file suffix (normally "o").
15016
objext="$ac_objext"
15018
# Old archive suffix (normally "a").
15021
# Shared library suffix (normally ".so").
15024
# Executable file suffix (normally "").
15027
# Additional compiler flags for building library objects.
15028
pic_flag=$lt_lt_prog_compiler_pic_F77
15031
# What is the maximum length of a command?
15032
max_cmd_len=$lt_cv_sys_max_cmd_len
15034
# Does compiler simultaneously support -c and -o options?
15035
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15037
# Must we lock files when doing compilation ?
15038
need_locks=$lt_need_locks
15040
# Do we need the lib prefix for modules?
15041
need_lib_prefix=$need_lib_prefix
15043
# Do we need a version for libraries?
15044
need_version=$need_version
15046
# Whether dlopen is supported.
15047
dlopen_support=$enable_dlopen
15049
# Whether dlopen of programs is supported.
15050
dlopen_self=$enable_dlopen_self
15052
# Whether dlopen of statically linked programs is supported.
15053
dlopen_self_static=$enable_dlopen_self_static
15055
# Compiler flag to prevent dynamic linking.
15056
link_static_flag=$lt_lt_prog_compiler_static_F77
15058
# Compiler flag to turn off builtin functions.
15059
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15061
# Compiler flag to allow reflexive dlopens.
15062
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15064
# Compiler flag to generate shared objects directly from archives.
15065
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15067
# Compiler flag to generate thread-safe objects.
15068
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15070
# Library versioning type.
15071
version_type=$version_type
15073
# Format of library name prefix.
15074
libname_spec=$lt_libname_spec
15076
# List of archive names. First name is the real one, the rest are links.
15077
# The last name is the one that the linker finds with -lNAME.
15078
library_names_spec=$lt_library_names_spec
15080
# The coded name of the library, if different from the real name.
15081
soname_spec=$lt_soname_spec
15083
# Commands used to build and install an old-style archive.
15085
old_archive_cmds=$lt_old_archive_cmds_F77
15086
old_postinstall_cmds=$lt_old_postinstall_cmds
15087
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15089
# Create an old-style archive from a shared archive.
15090
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15092
# Create a temporary old-style archive to link instead of a shared archive.
15093
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15095
# Commands used to build and install a shared archive.
15096
archive_cmds=$lt_archive_cmds_F77
15097
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15098
postinstall_cmds=$lt_postinstall_cmds
15099
postuninstall_cmds=$lt_postuninstall_cmds
15101
# Commands used to build a loadable module (assumed same as above if empty)
15102
module_cmds=$lt_module_cmds_F77
15103
module_expsym_cmds=$lt_module_expsym_cmds_F77
15105
# Commands to strip libraries.
15106
old_striplib=$lt_old_striplib
15107
striplib=$lt_striplib
15109
# Dependencies to place before the objects being linked to create a
15111
predep_objects=$lt_predep_objects_F77
15113
# Dependencies to place after the objects being linked to create a
15115
postdep_objects=$lt_postdep_objects_F77
15117
# Dependencies to place before the objects being linked to create a
15119
predeps=$lt_predeps_F77
15121
# Dependencies to place after the objects being linked to create a
15123
postdeps=$lt_postdeps_F77
15125
# The library search path used internally by the compiler when linking
15126
# a shared library.
15127
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15129
# Method to check whether dependent libraries are shared objects.
15130
deplibs_check_method=$lt_deplibs_check_method
15132
# Command to use when deplibs_check_method == file_magic.
15133
file_magic_cmd=$lt_file_magic_cmd
15135
# Flag that allows shared libraries with undefined symbols to be built.
15136
allow_undefined_flag=$lt_allow_undefined_flag_F77
15138
# Flag that forces no undefined symbols.
15139
no_undefined_flag=$lt_no_undefined_flag_F77
15141
# Commands used to finish a libtool library installation in a directory.
15142
finish_cmds=$lt_finish_cmds
15144
# Same as above, but a single script fragment to be evaled but not shown.
15145
finish_eval=$lt_finish_eval
15147
# Take the output of nm and produce a listing of raw symbols and C names.
15148
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15150
# Transform the output of nm in a proper C declaration
15151
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15153
# Transform the output of nm in a C name address pair
15154
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15156
# This is the shared library runtime path variable.
15157
runpath_var=$runpath_var
15159
# This is the shared library path variable.
15160
shlibpath_var=$shlibpath_var
15162
# Is shlibpath searched before the hard-coded library search path?
15163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15165
# How to hardcode a shared library path into an executable.
15166
hardcode_action=$hardcode_action_F77
15168
# Whether we should hardcode library paths into libraries.
15169
hardcode_into_libs=$hardcode_into_libs
15171
# Flag to hardcode \$libdir into a binary during linking.
15172
# This must work even if \$libdir does not exist.
15173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15175
# If ld is used when linking, flag to hardcode \$libdir into
15176
# a binary during linking. This must work even if \$libdir does
15178
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15180
# Whether we need a single -rpath flag with a separated argument.
15181
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15183
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15184
# resulting binary.
15185
hardcode_direct=$hardcode_direct_F77
15187
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15188
# resulting binary.
15189
hardcode_minus_L=$hardcode_minus_L_F77
15191
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15192
# the resulting binary.
15193
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15195
# Set to yes if building a shared library automatically hardcodes DIR into the library
15196
# and all subsequent libraries and executables linked against it.
15197
hardcode_automatic=$hardcode_automatic_F77
15199
# Variables whose values should be saved in libtool wrapper scripts and
15200
# restored at relink time.
15201
variables_saved_for_relink="$variables_saved_for_relink"
15203
# Whether libtool must link a program against all its dependency libraries.
15204
link_all_deplibs=$link_all_deplibs_F77
15206
# Compile-time system search path for libraries
15207
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15209
# Run-time system search path for libraries
15210
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15212
# Fix the shell variable \$srcfile for the compiler.
15213
fix_srcfile_path="$fix_srcfile_path_F77"
15215
# Set to yes if exported symbols are required.
15216
always_export_symbols=$always_export_symbols_F77
15218
# The commands to list exported symbols.
15219
export_symbols_cmds=$lt_export_symbols_cmds_F77
15221
# The commands to extract the exported symbol list from a shared archive.
15222
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15224
# Symbols that should not be listed in the preloaded symbols.
15225
exclude_expsyms=$lt_exclude_expsyms_F77
15227
# Symbols that must always be exported.
15228
include_expsyms=$lt_include_expsyms_F77
15230
# ### END LIBTOOL TAG CONFIG: $tagname
15236
# If there is no Makefile yet, we rely on a make rule to execute
15237
# `config.status --recheck' to rerun these tests and create the
15238
# libtool script then.
15239
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15240
if test -f "$ltmain_in"; then
15241
test -f Makefile && make "$ltmain"
15247
ac_cpp='$CPP $CPPFLAGS'
15248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15260
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15264
# Source file extension for Java test sources.
15267
# Object file extension for compiled Java test sources.
15271
# Code to be used in simple compile tests
15272
lt_simple_compile_test_code="class foo {}\n"
15274
# Code to be used in simple link tests
15275
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15277
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15279
# If no C compiler was specified, use CC.
15282
# Allow CC to be a program name with arguments.
15286
# Allow CC to be a program name with arguments.
15292
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15293
archive_cmds_need_lc_GCJ=no
15296
lt_prog_compiler_no_builtin_flag_GCJ=
15298
if test "$GCC" = yes; then
15299
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15302
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15303
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15304
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15305
echo $ECHO_N "(cached) $ECHO_C" >&6
15307
lt_cv_prog_compiler_rtti_exceptions=no
15308
ac_outfile=conftest.$ac_objext
15309
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
lt_compiler_flag="-fno-rtti -fno-exceptions"
15311
# Insert the option either (1) after the last *FLAGS variable, or
15312
# (2) before a word containing "conftest.", or (3) at the end.
15313
# Note that $ac_compile itself does not contain backslashes and begins
15314
# with a dollar sign (not a hyphen), so the echo should work correctly.
15315
# The option is referenced via a variable to avoid confusing sed.
15316
lt_compile=`echo "$ac_compile" | $SED \
15317
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15318
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15319
-e 's:$: $lt_compiler_flag:'`
15320
(eval echo "\"\$as_me:15320: $lt_compile\"" >&5)
15321
(eval "$lt_compile" 2>conftest.err)
15323
cat conftest.err >&5
15324
echo "$as_me:15324: \$? = $ac_status" >&5
15325
if (exit $ac_status) && test -s "$ac_outfile"; then
15326
# The compiler can only warn and ignore the option if not recognized
15327
# So say no if there are warnings
15328
if test ! -s conftest.err; then
15329
lt_cv_prog_compiler_rtti_exceptions=yes
15335
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15336
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15338
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15339
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15346
lt_prog_compiler_wl_GCJ=
15347
lt_prog_compiler_pic_GCJ=
15348
lt_prog_compiler_static_GCJ=
15350
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15351
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15353
if test "$GCC" = yes; then
15354
lt_prog_compiler_wl_GCJ='-Wl,'
15355
lt_prog_compiler_static_GCJ='-static'
15359
# All AIX code is PIC.
15360
if test "$host_cpu" = ia64; then
15361
# AIX 5 now supports IA64 processor
15362
lt_prog_compiler_static_GCJ='-Bstatic'
15367
# FIXME: we need at least 68020 code to build shared libraries, but
15368
# adding the `-m68020' flag to GCC prevents building anything better,
15370
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15373
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15374
# PIC is the default for these OSes.
15377
mingw* | pw32* | os2*)
15378
# This hack is so that the source file can tell whether it is being
15379
# built for inclusion in a dll (and should export symbols for example).
15380
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15383
darwin* | rhapsody*)
15384
# PIC is the default on this platform
15385
# Common symbols not allowed in MH_DYLIB files
15386
lt_prog_compiler_pic_GCJ='-fno-common'
15390
# Just because we use GCC doesn't mean we suddenly get shared libraries
15391
# on systems that don't support them.
15392
lt_prog_compiler_can_build_shared_GCJ=no
15397
if test -d /usr/nec; then
15398
lt_prog_compiler_pic_GCJ=-Kconform_pic
15403
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15404
# not for PA HP-UX.
15405
case "$host_cpu" in
15410
lt_prog_compiler_pic_GCJ='-fPIC'
15416
lt_prog_compiler_pic_GCJ='-fPIC'
15420
# PORTME Check for flag to pass linker flags through the system compiler.
15423
lt_prog_compiler_wl_GCJ='-Wl,'
15424
if test "$host_cpu" = ia64; then
15425
# AIX 5 now supports IA64 processor
15426
lt_prog_compiler_static_GCJ='-Bstatic'
15428
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15432
mingw* | pw32* | os2*)
15433
# This hack is so that the source file can tell whether it is being
15434
# built for inclusion in a dll (and should export symbols for example).
15435
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15438
hpux9* | hpux10* | hpux11*)
15439
lt_prog_compiler_wl_GCJ='-Wl,'
15440
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15441
# not for PA HP-UX.
15442
case "$host_cpu" in
15447
lt_prog_compiler_pic_GCJ='+Z'
15450
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15451
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15454
irix5* | irix6* | nonstopux*)
15455
lt_prog_compiler_wl_GCJ='-Wl,'
15456
# PIC (with -KPIC) is the default.
15457
lt_prog_compiler_static_GCJ='-non_shared'
15461
lt_prog_compiler_pic_GCJ='-KPIC'
15462
lt_prog_compiler_static_GCJ='-Bstatic'
15468
lt_prog_compiler_wl_GCJ='-Wl,'
15469
lt_prog_compiler_pic_GCJ='-KPIC'
15470
lt_prog_compiler_static_GCJ='-static'
15473
lt_prog_compiler_wl_GCJ='-Wl,'
15474
# All Alpha code is PIC.
15475
lt_prog_compiler_static_GCJ='-non_shared'
15480
osf3* | osf4* | osf5*)
15481
lt_prog_compiler_wl_GCJ='-Wl,'
15482
# All OSF/1 code is PIC.
15483
lt_prog_compiler_static_GCJ='-non_shared'
15487
lt_prog_compiler_pic_GCJ='-Kpic'
15488
lt_prog_compiler_static_GCJ='-dn'
15492
lt_prog_compiler_wl_GCJ='-Wl,'
15493
lt_prog_compiler_pic_GCJ='-KPIC'
15494
lt_prog_compiler_static_GCJ='-Bstatic'
15498
lt_prog_compiler_wl_GCJ='-Qoption ld '
15499
lt_prog_compiler_pic_GCJ='-PIC'
15500
lt_prog_compiler_static_GCJ='-Bstatic'
15503
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15504
lt_prog_compiler_wl_GCJ='-Wl,'
15505
lt_prog_compiler_pic_GCJ='-KPIC'
15506
lt_prog_compiler_static_GCJ='-Bstatic'
15510
if test -d /usr/nec ;then
15511
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15512
lt_prog_compiler_static_GCJ='-Bstatic'
15517
lt_prog_compiler_pic_GCJ='-pic'
15518
lt_prog_compiler_static_GCJ='-Bstatic'
15522
lt_prog_compiler_can_build_shared_GCJ=no
15527
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15528
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15531
# Check to make sure the PIC flag actually works.
15533
if test -n "$lt_prog_compiler_pic_GCJ"; then
15535
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15536
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15537
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15538
echo $ECHO_N "(cached) $ECHO_C" >&6
15540
lt_prog_compiler_pic_works_GCJ=no
15541
ac_outfile=conftest.$ac_objext
15542
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15543
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15544
# Insert the option either (1) after the last *FLAGS variable, or
15545
# (2) before a word containing "conftest.", or (3) at the end.
15546
# Note that $ac_compile itself does not contain backslashes and begins
15547
# with a dollar sign (not a hyphen), so the echo should work correctly.
15548
# The option is referenced via a variable to avoid confusing sed.
15549
lt_compile=`echo "$ac_compile" | $SED \
15550
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15551
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552
-e 's:$: $lt_compiler_flag:'`
15553
(eval echo "\"\$as_me:15553: $lt_compile\"" >&5)
15554
(eval "$lt_compile" 2>conftest.err)
15556
cat conftest.err >&5
15557
echo "$as_me:15557: \$? = $ac_status" >&5
15558
if (exit $ac_status) && test -s "$ac_outfile"; then
15559
# The compiler can only warn and ignore the option if not recognized
15560
# So say no if there are warnings
15561
if test ! -s conftest.err; then
15562
lt_prog_compiler_pic_works_GCJ=yes
15568
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15569
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15571
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15572
case $lt_prog_compiler_pic_GCJ in
15574
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15577
lt_prog_compiler_pic_GCJ=
15578
lt_prog_compiler_can_build_shared_GCJ=no
15583
# For platforms which do not support PIC, -DPIC is meaningless:
15585
lt_prog_compiler_pic_GCJ=
15588
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15592
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15593
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15594
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15595
echo $ECHO_N "(cached) $ECHO_C" >&6
15597
lt_cv_prog_compiler_c_o_GCJ=no
15598
$rm -r conftest 2>/dev/null
15602
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15604
lt_compiler_flag="-o out/conftest2.$ac_objext"
15605
# Insert the option either (1) after the last *FLAGS variable, or
15606
# (2) before a word containing "conftest.", or (3) at the end.
15607
# Note that $ac_compile itself does not contain backslashes and begins
15608
# with a dollar sign (not a hyphen), so the echo should work correctly.
15609
lt_compile=`echo "$ac_compile" | $SED \
15610
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15611
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15612
-e 's:$: $lt_compiler_flag:'`
15613
(eval echo "\"\$as_me:15613: $lt_compile\"" >&5)
15614
(eval "$lt_compile" 2>out/conftest.err)
15616
cat out/conftest.err >&5
15617
echo "$as_me:15617: \$? = $ac_status" >&5
15618
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15620
# The compiler can only warn and ignore the option if not recognized
15621
# So say no if there are warnings
15622
if test ! -s out/conftest.err; then
15623
lt_cv_prog_compiler_c_o_GCJ=yes
15628
# SGI C++ compiler will create directory out/ii_files/ for
15629
# template instantiation
15630
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15631
$rm out/* && rmdir out
15637
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15638
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15641
hard_links="nottested"
15642
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15643
# do not overwrite the value of need_locks provided by the user
15644
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15645
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15648
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15650
ln conftest.a conftest.b 2>&5 || hard_links=no
15651
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652
echo "$as_me:$LINENO: result: $hard_links" >&5
15653
echo "${ECHO_T}$hard_links" >&6
15654
if test "$hard_links" = no; then
15655
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15656
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15663
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15664
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15667
allow_undefined_flag_GCJ=
15668
enable_shared_with_static_runtimes_GCJ=no
15670
archive_expsym_cmds_GCJ=
15671
old_archive_From_new_cmds_GCJ=
15672
old_archive_from_expsyms_cmds_GCJ=
15673
export_dynamic_flag_spec_GCJ=
15674
whole_archive_flag_spec_GCJ=
15675
thread_safe_flag_spec_GCJ=
15676
hardcode_libdir_flag_spec_GCJ=
15677
hardcode_libdir_flag_spec_ld_GCJ=
15678
hardcode_libdir_separator_GCJ=
15679
hardcode_direct_GCJ=no
15680
hardcode_minus_L_GCJ=no
15681
hardcode_shlibpath_var_GCJ=unsupported
15682
link_all_deplibs_GCJ=unknown
15683
hardcode_automatic_GCJ=no
15685
module_expsym_cmds_GCJ=
15686
always_export_symbols_GCJ=no
15687
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15688
# include_expsyms should be a list of space-separated symbols to be *always*
15689
# included in the symbol list
15690
include_expsyms_GCJ=
15691
# exclude_expsyms can be an extended regexp of symbols to exclude
15692
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15693
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15694
# as well as any symbol that contains `d'.
15695
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15696
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15697
# platforms (ab)use it in PIC code, but their linkers get confused if
15698
# the symbol is explicitly referenced. Since portable code cannot
15699
# rely on this symbol name, it's probably fine to never include it in
15700
# preloaded symbol tables.
15701
extract_expsyms_cmds=
15704
cygwin* | mingw* | pw32*)
15705
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15706
# When not using gcc, we currently assume that we are using
15707
# Microsoft Visual C++.
15708
if test "$GCC" != yes; then
15718
if test "$with_gnu_ld" = yes; then
15719
# If archive_cmds runs LD, not CC, wlarc should be empty
15722
# See if GNU ld supports shared libraries.
15724
aix3* | aix4* | aix5*)
15725
# On AIX/PPC, the GNU linker is very broken
15726
if test "$host_cpu" != ia64; then
15730
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15731
*** to be unable to reliably create shared libraries on AIX.
15732
*** Therefore, libtool is disabling shared libraries support. If you
15733
*** really care for shared libraries, you may want to modify your PATH
15734
*** so that a non-GNU linker is found, and then restart.
15741
archive_cmds_GCJ='$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)'
15742
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15743
hardcode_minus_L_GCJ=yes
15745
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15746
# that the semantics of dynamic libraries on AmigaOS, at least up
15747
# to version 4, is to share data among multiple programs linked
15748
# with the same dynamic library. Since this doesn't match the
15749
# behavior of shared libraries on other platforms, we can't use
15755
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15756
allow_undefined_flag_GCJ=unsupported
15757
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15758
# support --undefined. This deserves some investigation. FIXME
15759
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15765
cygwin* | mingw* | pw32*)
15766
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15767
# as there is no search path for DLLs.
15768
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15769
allow_undefined_flag_GCJ=unsupported
15770
always_export_symbols_GCJ=no
15771
enable_shared_with_static_runtimes_GCJ=yes
15772
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15774
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15775
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15776
# If the export-symbols file already is a .def file (1st line
15777
# is EXPORTS), use it as is; otherwise, prepend...
15778
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15779
cp $export_symbols $output_objdir/$soname.def;
15781
echo EXPORTS > $output_objdir/$soname.def;
15782
cat $export_symbols >> $output_objdir/$soname.def;
15784
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15790
netbsd* | knetbsd*-gnu)
15791
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15792
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15795
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15801
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15805
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15806
*** create shared libraries on Solaris systems. Therefore, libtool
15807
*** is disabling shared libraries support. We urge you to upgrade GNU
15808
*** binutils to release 2.9.1 or newer. Another option is to modify
15809
*** your PATH or compiler configuration so that the native linker is
15810
*** used, and then restart.
15813
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15814
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15815
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15822
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15824
hardcode_direct_GCJ=yes
15825
hardcode_shlibpath_var_GCJ=no
15829
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15830
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831
archive_cmds_GCJ="$tmp_archive_cmds"
15832
supports_anon_versioning=no
15833
case `$LD -v 2>/dev/null` in
15834
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15835
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15836
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15837
*\ 2.11.*) ;; # other 2.11 versions
15838
*) supports_anon_versioning=yes ;;
15840
if test $supports_anon_versioning = yes; then
15841
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15842
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15843
$echo "local: *; };" >> $output_objdir/$libname.ver~
15844
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15846
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15854
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15863
if test "$ld_shlibs_GCJ" = yes; then
15864
runpath_var=LD_RUN_PATH
15865
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15866
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15867
# ancient GNU ld didn't support --whole-archive et. al.
15868
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15869
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15871
whole_archive_flag_spec_GCJ=
15875
# PORTME fill in a description of your system's linker (not GNU ld)
15878
allow_undefined_flag_GCJ=unsupported
15879
always_export_symbols_GCJ=yes
15880
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15881
# Note: this linker hardcodes the directories in LIBPATH if there
15882
# are no directories specified by -L.
15883
hardcode_minus_L_GCJ=yes
15884
if test "$GCC" = yes && test -z "$link_static_flag"; then
15885
# Neither direct hardcoding nor static linking is supported with a
15887
hardcode_direct_GCJ=unsupported
15892
if test "$host_cpu" = ia64; then
15893
# On IA64, the linker does run time linking by default, so we don't
15894
# have to do anything special.
15895
aix_use_runtimelinking=no
15896
exp_sym_flag='-Bexport'
15899
# If we're using GNU nm, then we don't want the "-C" option.
15900
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15901
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15902
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15904
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15906
aix_use_runtimelinking=no
15908
# Test if we are trying to use run time linking or normal
15909
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15910
# need to do runtime linking.
15911
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15912
for ld_flag in $LDFLAGS; do
15913
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15914
aix_use_runtimelinking=yes
15920
exp_sym_flag='-bexport'
15921
no_entry_flag='-bnoentry'
15924
# When large executables or shared objects are built, AIX ld can
15925
# have problems creating the table of contents. If linking a library
15926
# or program results in "error TOC overflow" add -mminimal-toc to
15927
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15928
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15930
archive_cmds_GCJ=''
15931
hardcode_direct_GCJ=yes
15932
hardcode_libdir_separator_GCJ=':'
15933
link_all_deplibs_GCJ=yes
15935
if test "$GCC" = yes; then
15936
case $host_os in aix4.012|aix4.012.*)
15937
# We only want to do this on AIX 4.2 and lower, the check
15938
# below for broken collect2 doesn't work under 4.3+
15939
collect2name=`${CC} -print-prog-name=collect2`
15940
if test -f "$collect2name" && \
15941
strings "$collect2name" | grep resolve_lib_name >/dev/null
15943
# We have reworked collect2
15944
hardcode_direct_GCJ=yes
15946
# We have old collect2
15947
hardcode_direct_GCJ=unsupported
15948
# It fails to find uninstalled libraries when the uninstalled
15949
# path is not listed in the libpath. Setting hardcode_minus_L
15950
# to unsupported forces relinking
15951
hardcode_minus_L_GCJ=yes
15952
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15953
hardcode_libdir_separator_GCJ=
15956
shared_flag='-shared'
15959
if test "$host_cpu" = ia64; then
15960
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15961
# chokes on -Wl,-G. The following line is correct:
15964
if test "$aix_use_runtimelinking" = yes; then
15965
shared_flag='${wl}-G'
15967
shared_flag='${wl}-bM:SRE'
15972
# It seems that -bexpall does not export symbols beginning with
15973
# underscore (_), so it is better to generate a list of symbols to export.
15974
always_export_symbols_GCJ=yes
15975
if test "$aix_use_runtimelinking" = yes; then
15976
# Warning - without using the other runtime loading flags (-brtl),
15977
# -berok will link without error, but may produce a broken library.
15978
allow_undefined_flag_GCJ='-berok'
15979
# Determine the default libpath from the value encoded in an empty executable.
15980
cat >conftest.$ac_ext <<_ACEOF
15983
cat confdefs.h >>conftest.$ac_ext
15984
cat >>conftest.$ac_ext <<_ACEOF
15985
/* end confdefs.h. */
15995
rm -f conftest.$ac_objext conftest$ac_exeext
15996
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997
(eval $ac_link) 2>conftest.er1
15999
grep -v '^ *+' conftest.er1 >conftest.err
16001
cat conftest.err >&5
16002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003
(exit $ac_status); } &&
16004
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006
(eval $ac_try) 2>&5
16008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009
(exit $ac_status); }; } &&
16010
{ ac_try='test -s conftest$ac_exeext'
16011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012
(eval $ac_try) 2>&5
16014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015
(exit $ac_status); }; }; then
16017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16019
# Check for a 64-bit object if we didn't find anything.
16020
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16023
echo "$as_me: failed program was:" >&5
16024
sed 's/^/| /' conftest.$ac_ext >&5
16027
rm -f conftest.err conftest.$ac_objext \
16028
conftest$ac_exeext conftest.$ac_ext
16029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16031
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16032
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16034
if test "$host_cpu" = ia64; then
16035
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16036
allow_undefined_flag_GCJ="-z nodefs"
16037
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16039
# Determine the default libpath from the value encoded in an empty executable.
16040
cat >conftest.$ac_ext <<_ACEOF
16043
cat confdefs.h >>conftest.$ac_ext
16044
cat >>conftest.$ac_ext <<_ACEOF
16045
/* end confdefs.h. */
16055
rm -f conftest.$ac_objext conftest$ac_exeext
16056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057
(eval $ac_link) 2>conftest.er1
16059
grep -v '^ *+' conftest.er1 >conftest.err
16061
cat conftest.err >&5
16062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063
(exit $ac_status); } &&
16064
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066
(eval $ac_try) 2>&5
16068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069
(exit $ac_status); }; } &&
16070
{ ac_try='test -s conftest$ac_exeext'
16071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072
(eval $ac_try) 2>&5
16074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075
(exit $ac_status); }; }; then
16077
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16079
# Check for a 64-bit object if we didn't find anything.
16080
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16083
echo "$as_me: failed program was:" >&5
16084
sed 's/^/| /' conftest.$ac_ext >&5
16087
rm -f conftest.err conftest.$ac_objext \
16088
conftest$ac_exeext conftest.$ac_ext
16089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16091
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16092
# Warning - without using the other run time loading flags,
16093
# -berok will link without error, but may produce a broken library.
16094
no_undefined_flag_GCJ=' ${wl}-bernotok'
16095
allow_undefined_flag_GCJ=' ${wl}-berok'
16096
# -bexpall does not export symbols beginning with underscore (_)
16097
always_export_symbols_GCJ=yes
16098
# Exported symbols can be pulled into shared objects from archives
16099
whole_archive_flag_spec_GCJ=' '
16100
archive_cmds_need_lc_GCJ=yes
16101
# This is similar to how AIX traditionally builds it's shared libraries.
16102
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16108
archive_cmds_GCJ='$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)'
16109
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110
hardcode_minus_L_GCJ=yes
16111
# see comment about different semantics on the GNU ld section
16116
export_dynamic_flag_spec_GCJ=-rdynamic
16119
cygwin* | mingw* | pw32*)
16120
# When not using gcc, we currently assume that we are using
16121
# Microsoft Visual C++.
16122
# hardcode_libdir_flag_spec is actually meaningless, as there is
16123
# no search path for DLLs.
16124
hardcode_libdir_flag_spec_GCJ=' '
16125
allow_undefined_flag_GCJ=unsupported
16126
# Tell ltmain to make .lib files, not .a files.
16128
# Tell ltmain to make .dll files, not .so files.
16130
# FIXME: Setting linknames here is a bad hack.
16131
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16132
# The linker will automatically build a .lib file if we build a DLL.
16133
old_archive_From_new_cmds_GCJ='true'
16134
# FIXME: Should let the user specify the lib program.
16135
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16136
fix_srcfile_path='`cygpath -w "$srcfile"`'
16137
enable_shared_with_static_runtimes_GCJ=yes
16140
darwin* | rhapsody*)
16141
if test "$GXX" = yes ; then
16142
archive_cmds_need_lc_GCJ=no
16144
rhapsody* | darwin1.[012])
16145
allow_undefined_flag_GCJ='-undefined suppress'
16148
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16149
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16151
case ${MACOSX_DEPLOYMENT_TARGET} in
16153
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16156
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16162
lt_int_apple_cc_single_mod=no
16163
output_verbose_link_cmd='echo'
16164
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16165
lt_int_apple_cc_single_mod=yes
16167
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16168
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16170
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16172
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16173
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16174
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16175
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16177
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16179
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16180
hardcode_direct_GCJ=no
16181
hardcode_automatic_GCJ=yes
16182
hardcode_shlibpath_var_GCJ=unsupported
16183
whole_archive_flag_spec_GCJ='-all_load $convenience'
16184
link_all_deplibs_GCJ=yes
16191
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16193
hardcode_shlibpath_var_GCJ=no
16200
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16201
# support. Future versions do this automatically, but an explicit c++rt0.o
16202
# does not break anything, and helps significantly (at the cost of a little
16205
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16206
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16207
hardcode_direct_GCJ=yes
16208
hardcode_shlibpath_var_GCJ=no
16211
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16213
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16214
hardcode_direct_GCJ=yes
16215
hardcode_minus_L_GCJ=yes
16216
hardcode_shlibpath_var_GCJ=no
16219
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16220
freebsd* | kfreebsd*-gnu)
16221
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16222
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16223
hardcode_direct_GCJ=yes
16224
hardcode_shlibpath_var_GCJ=no
16228
if test "$GCC" = yes; then
16229
archive_cmds_GCJ='$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'
16231
archive_cmds_GCJ='$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'
16233
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16234
hardcode_libdir_separator_GCJ=:
16235
hardcode_direct_GCJ=yes
16237
# hardcode_minus_L: Not really in the search PATH,
16238
# but as the default location of the library.
16239
hardcode_minus_L_GCJ=yes
16240
export_dynamic_flag_spec_GCJ='${wl}-E'
16244
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16245
case "$host_cpu" in
16247
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16254
case "$host_cpu" in
16256
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16259
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16263
if test "$with_gnu_ld" = no; then
16264
case "$host_cpu" in
16266
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16267
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16268
hardcode_libdir_separator_GCJ=:
16269
hardcode_direct_GCJ=no
16270
hardcode_shlibpath_var_GCJ=no
16273
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16274
hardcode_direct_GCJ=no
16275
hardcode_shlibpath_var_GCJ=no
16277
# hardcode_minus_L: Not really in the search PATH,
16278
# but as the default location of the library.
16279
hardcode_minus_L_GCJ=yes
16282
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16283
hardcode_libdir_separator_GCJ=:
16284
hardcode_direct_GCJ=yes
16285
export_dynamic_flag_spec_GCJ='${wl}-E'
16287
# hardcode_minus_L: Not really in the search PATH,
16288
# but as the default location of the library.
16289
hardcode_minus_L_GCJ=yes
16295
irix5* | irix6* | nonstopux*)
16296
if test "$GCC" = yes; then
16297
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16299
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16300
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16302
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16303
hardcode_libdir_separator_GCJ=:
16304
link_all_deplibs_GCJ=yes
16307
netbsd* | knetbsd*-gnu)
16308
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16311
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16313
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16314
hardcode_direct_GCJ=yes
16315
hardcode_shlibpath_var_GCJ=no
16319
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16320
hardcode_direct_GCJ=yes
16321
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16322
hardcode_libdir_separator_GCJ=:
16323
hardcode_shlibpath_var_GCJ=no
16327
hardcode_direct_GCJ=yes
16328
hardcode_shlibpath_var_GCJ=no
16329
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16330
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16331
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16332
export_dynamic_flag_spec_GCJ='${wl}-E'
16335
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16336
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16337
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16340
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16341
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16348
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16349
hardcode_minus_L_GCJ=yes
16350
allow_undefined_flag_GCJ=unsupported
16351
archive_cmds_GCJ='$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'
16352
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16356
if test "$GCC" = yes; then
16357
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16358
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16360
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16361
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16363
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364
hardcode_libdir_separator_GCJ=:
16367
osf4* | osf5*) # as osf3* with the addition of -msym flag
16368
if test "$GCC" = yes; then
16369
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16370
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16371
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16373
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16374
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16375
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16376
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16378
# Both c and cxx compiler support -rpath directly
16379
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16381
hardcode_libdir_separator_GCJ=:
16385
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16386
hardcode_shlibpath_var_GCJ=no
16387
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16388
runpath_var=LD_RUN_PATH
16389
hardcode_runpath_var=yes
16393
no_undefined_flag_GCJ=' -z text'
16394
if test "$GCC" = yes; then
16395
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16397
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16399
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16401
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16403
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404
hardcode_shlibpath_var_GCJ=no
16406
solaris2.[0-5] | solaris2.[0-5].*) ;;
16407
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16408
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16410
link_all_deplibs_GCJ=yes
16414
if test "x$host_vendor" = xsequent; then
16415
# Use $CC to link under sequent, because it throws in some extra .o
16416
# files that make .init and .fini sections work.
16417
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16419
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16421
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16422
hardcode_direct_GCJ=yes
16423
hardcode_minus_L_GCJ=yes
16424
hardcode_shlibpath_var_GCJ=no
16428
case $host_vendor in
16430
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431
hardcode_direct_GCJ=yes # is this really true???
16434
## LD is ld it makes a PLAMLIB
16435
## CC just makes a GrossModule.
16436
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16437
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16438
hardcode_direct_GCJ=no
16441
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16442
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16445
runpath_var='LD_RUN_PATH'
16446
hardcode_shlibpath_var_GCJ=no
16450
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451
hardcode_shlibpath_var_GCJ=no
16452
export_dynamic_flag_spec_GCJ='-Bexport'
16456
if test -d /usr/nec; then
16457
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458
hardcode_shlibpath_var_GCJ=no
16459
runpath_var=LD_RUN_PATH
16460
hardcode_runpath_var=yes
16466
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16467
hardcode_direct_GCJ=yes
16468
hardcode_minus_L_GCJ=no
16469
hardcode_shlibpath_var_GCJ=no
16470
hardcode_runpath_var=yes
16471
runpath_var=LD_RUN_PATH
16474
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16475
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16476
if test "$GCC" = yes; then
16477
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16479
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16481
runpath_var='LD_RUN_PATH'
16482
hardcode_shlibpath_var_GCJ=no
16486
no_undefined_flag_GCJ=' -z text'
16487
# $CC -shared without GNU ld will not create a library from C++
16488
# object files and a static libstdc++, better avoid it by now
16489
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16491
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16492
hardcode_libdir_flag_spec_GCJ=
16493
hardcode_shlibpath_var_GCJ=no
16494
runpath_var='LD_RUN_PATH'
16498
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16500
hardcode_shlibpath_var_GCJ=no
16509
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16510
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16511
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16513
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16514
if test "$GCC" = yes; then
16515
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16519
# Do we need to explicitly link libc?
16521
case "x$archive_cmds_need_lc_GCJ" in
16523
# Assume -lc should be added
16524
archive_cmds_need_lc_GCJ=yes
16526
if test "$enable_shared" = yes && test "$GCC" = yes; then
16527
case $archive_cmds_GCJ in
16529
# FIXME: we may have to deal with multi-command sequences.
16532
# Test whether the compiler implicitly links with -lc since on some
16533
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16534
# to ld, don't add -lc before -lgcc.
16535
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16536
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16538
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16541
(eval $ac_compile) 2>&5
16543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544
(exit $ac_status); } 2>conftest.err; then
16547
libobjs=conftest.$ac_objext
16549
wl=$lt_prog_compiler_wl_GCJ
16555
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16556
allow_undefined_flag_GCJ=
16557
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16558
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561
(exit $ac_status); }
16563
archive_cmds_need_lc_GCJ=no
16565
archive_cmds_need_lc_GCJ=yes
16567
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16569
cat conftest.err 1>&5
16572
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16573
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16580
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16581
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16582
library_names_spec=
16583
libname_spec='lib$name'
16587
postuninstall_cmds=
16591
shlibpath_overrides_runpath=unknown
16593
dynamic_linker="$host_os ld.so"
16594
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16595
if test "$GCC" = yes; then
16596
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16597
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16598
# if the path contains ";" then we assume it to be the separator
16599
# otherwise default to the standard path separator (i.e. ":") - it is
16600
# assumed that no part of a normal pathname contains ";" but that should
16601
# okay in the real world where ";" in dirpaths is itself problematic.
16602
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16604
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16607
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16609
need_lib_prefix=unknown
16610
hardcode_into_libs=no
16612
# when you set need_version to no, make sure it does not cause -set_version
16613
# flags to be left without arguments
16614
need_version=unknown
16619
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16620
shlibpath_var=LIBPATH
16622
# AIX 3 has no versioning support, so we append a major version to the name.
16623
soname_spec='${libname}${release}${shared_ext}$major'
16630
hardcode_into_libs=yes
16631
if test "$host_cpu" = ia64; then
16632
# AIX 5 supports IA64
16633
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16634
shlibpath_var=LD_LIBRARY_PATH
16636
# With GCC up to 2.95.x, collect2 would create an import file
16637
# for dependence libraries. The import file would start with
16638
# the line `#! .'. This would cause the generated library to
16639
# depend on `.', always an invalid library. This was fixed in
16640
# development snapshots of GCC prior to 3.0.
16642
aix4 | aix4.[01] | aix4.[01].*)
16643
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16645
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16648
can_build_shared=no
16652
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16653
# soname into executable. Probably we can add versioning support to
16654
# collect2, so additional links can be useful in future.
16655
if test "$aix_use_runtimelinking" = yes; then
16656
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16657
# instead of lib<name>.a to let people know that these are not
16658
# typical AIX shared libraries.
16659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661
# We preserve .a as extension for shared libraries through AIX4.2
16662
# and later when we are not doing run time linking.
16663
library_names_spec='${libname}${release}.a $libname.a'
16664
soname_spec='${libname}${release}${shared_ext}$major'
16666
shlibpath_var=LIBPATH
16671
library_names_spec='$libname.ixlibrary $libname.a'
16672
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16673
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'
16677
library_names_spec='${libname}${shared_ext}'
16678
dynamic_linker="$host_os ld.so"
16679
shlibpath_var=LIBRARY_PATH
16685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686
soname_spec='${libname}${release}${shared_ext}$major'
16687
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16688
shlibpath_var=LD_LIBRARY_PATH
16689
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16690
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16691
# the default ld.so.conf also contains /usr/contrib/lib and
16692
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16693
# libtool to hard-code these into programs
16696
cygwin* | mingw* | pw32*)
16697
version_type=windows
16702
case $GCC,$host_os in
16703
yes,cygwin* | yes,mingw* | yes,pw32*)
16704
library_names_spec='$libname.dll.a'
16705
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16706
postinstall_cmds='base_file=`basename \${file}`~
16707
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16708
dldir=$destdir/`dirname \$dlpath`~
16709
test -d \$dldir || mkdir -p \$dldir~
16710
$install_prog $dir/$dlname \$dldir/$dlname'
16711
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712
dlpath=$dir/\$dldll~
16714
shlibpath_overrides_runpath=yes
16718
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16723
# MinGW DLLs use traditional 'lib' prefix
16724
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16725
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16726
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16727
# It is most probably a Windows format PATH printed by
16728
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16729
# path with ; separators, and with drive letters. We can handle the
16730
# drive letters (cygwin fileutils understands them), so leave them,
16731
# especially as we might pass files found there to a mingw objdump,
16732
# which wouldn't understand a cygwinified path. Ahh.
16733
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16735
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16739
# pw32 DLLs use 'pw' prefix rather than 'lib'
16740
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16746
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16749
dynamic_linker='Win32 ld.exe'
16750
# FIXME: first we should search . and the directory the executable is in
16754
darwin* | rhapsody*)
16755
dynamic_linker="$host_os dyld"
16756
version_type=darwin
16759
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16760
soname_spec='${libname}${release}${major}$shared_ext'
16761
shlibpath_overrides_runpath=yes
16762
shlibpath_var=DYLD_LIBRARY_PATH
16763
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16764
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16765
if test "$GCC" = yes; then
16766
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16768
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16770
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16778
soname_spec='${libname}${release}${shared_ext}$major'
16779
shlibpath_var=LD_LIBRARY_PATH
16790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791
soname_spec='${libname}${release}${shared_ext}$major'
16792
shlibpath_var=LD_LIBRARY_PATH
16793
shlibpath_overrides_runpath=no
16794
hardcode_into_libs=yes
16795
dynamic_linker='GNU ld.so'
16799
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16800
version_type=freebsd-$objformat
16801
case $version_type in
16803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16808
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16812
shlibpath_var=LD_LIBRARY_PATH
16815
shlibpath_overrides_runpath=yes
16817
freebsd3.01* | freebsdelf3.01*)
16818
shlibpath_overrides_runpath=yes
16819
hardcode_into_libs=yes
16822
shlibpath_overrides_runpath=no
16823
hardcode_into_libs=yes
16832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16833
soname_spec='${libname}${release}${shared_ext}$major'
16834
shlibpath_var=LD_LIBRARY_PATH
16835
hardcode_into_libs=yes
16838
hpux9* | hpux10* | hpux11*)
16839
# Give a soname corresponding to the major version so that dld.sl refuses to
16840
# link against other versions.
16844
case "$host_cpu" in
16847
hardcode_into_libs=yes
16848
dynamic_linker="$host_os dld.so"
16849
shlibpath_var=LD_LIBRARY_PATH
16850
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852
soname_spec='${libname}${release}${shared_ext}$major'
16853
if test "X$HPUX_IA64_MODE" = X32; then
16854
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16856
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16858
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16862
hardcode_into_libs=yes
16863
dynamic_linker="$host_os dld.sl"
16864
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16865
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16867
soname_spec='${libname}${release}${shared_ext}$major'
16868
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16869
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16873
dynamic_linker="$host_os dld.sl"
16874
shlibpath_var=SHLIB_PATH
16875
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877
soname_spec='${libname}${release}${shared_ext}$major'
16880
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16881
postinstall_cmds='chmod 555 $lib'
16884
irix5* | irix6* | nonstopux*)
16886
nonstopux*) version_type=nonstopux ;;
16888
if test "$lt_cv_prog_gnu_ld" = yes; then
16896
soname_spec='${libname}${release}${shared_ext}$major'
16897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16899
irix5* | nonstopux*)
16900
libsuff= shlibsuff=
16903
case $LD in # libtool.m4 will add one of these switches to LD
16904
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16905
libsuff= shlibsuff= libmagic=32-bit;;
16906
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16907
libsuff=32 shlibsuff=N32 libmagic=N32;;
16908
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16909
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16910
*) libsuff= shlibsuff= libmagic=never-match;;
16914
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16915
shlibpath_overrides_runpath=no
16916
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16917
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16918
hardcode_into_libs=yes
16921
# No shared lib support for Linux oldld, aout, or coff.
16922
linux*oldld* | linux*aout* | linux*coff*)
16926
# This must be Linux ELF.
16931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932
soname_spec='${libname}${release}${shared_ext}$major'
16933
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16934
shlibpath_var=LD_LIBRARY_PATH
16935
shlibpath_overrides_runpath=no
16936
# This implies no fast_install, which is unacceptable.
16937
# Some rework will be needed to allow for fast_install
16938
# before this can be enabled.
16939
hardcode_into_libs=yes
16941
# Append ld.so.conf contents to the search path
16942
if test -f /etc/ld.so.conf; then
16943
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16944
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16947
# We used to test for /lib/ld.so.1 and disable shared libraries on
16948
# powerpc, because MkLinux only supported shared libraries with the
16949
# GNU dynamic linker. Since this was broken with cross compilers,
16950
# most powerpc-linux boxes support dynamic linking these days and
16951
# people can always --disable-shared, the test was removed, and we
16952
# assume the GNU/Linux dynamic linker is in use.
16953
dynamic_linker='GNU/Linux ld.so'
16960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16961
soname_spec='${libname}${release}${shared_ext}$major'
16962
shlibpath_var=LD_LIBRARY_PATH
16963
shlibpath_overrides_runpath=no
16964
hardcode_into_libs=yes
16965
dynamic_linker='GNU ld.so'
16972
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16974
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16975
dynamic_linker='NetBSD (a.out) ld.so'
16977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978
soname_spec='${libname}${release}${shared_ext}$major'
16979
dynamic_linker='NetBSD ld.elf_so'
16981
shlibpath_var=LD_LIBRARY_PATH
16982
shlibpath_overrides_runpath=yes
16983
hardcode_into_libs=yes
16988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989
shlibpath_var=LD_LIBRARY_PATH
16990
shlibpath_overrides_runpath=yes
16997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998
soname_spec='${libname}${release}${shared_ext}$major'
16999
shlibpath_var=LD_LIBRARY_PATH
17000
shlibpath_overrides_runpath=yes
17007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17008
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17009
shlibpath_var=LD_LIBRARY_PATH
17010
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17012
openbsd2.[89] | openbsd2.[89].*)
17013
shlibpath_overrides_runpath=no
17016
shlibpath_overrides_runpath=yes
17020
shlibpath_overrides_runpath=yes
17025
libname_spec='$name'
17028
library_names_spec='$libname${shared_ext} $libname.a'
17029
dynamic_linker='OS/2 ld.exe'
17030
shlibpath_var=LIBPATH
17033
osf3* | osf4* | osf5*)
17037
soname_spec='${libname}${release}${shared_ext}$major'
17038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039
shlibpath_var=LD_LIBRARY_PATH
17040
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17041
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17046
soname_spec='${libname}${release}${shared_ext}$major'
17047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048
shlibpath_var=LD_LIBRARY_PATH
17055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056
soname_spec='${libname}${release}${shared_ext}$major'
17057
shlibpath_var=LD_LIBRARY_PATH
17058
shlibpath_overrides_runpath=yes
17059
hardcode_into_libs=yes
17060
# ldd complains unless libraries are executable
17061
postinstall_cmds='chmod +x $lib'
17066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17067
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17068
shlibpath_var=LD_LIBRARY_PATH
17069
shlibpath_overrides_runpath=yes
17070
if test "$with_gnu_ld" = yes; then
17076
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079
soname_spec='${libname}${release}${shared_ext}$major'
17080
shlibpath_var=LD_LIBRARY_PATH
17081
case $host_vendor in
17083
shlibpath_overrides_runpath=no
17085
export_dynamic_flag_spec='${wl}-Blargedynsym'
17086
runpath_var=LD_RUN_PATH
17094
shlibpath_overrides_runpath=no
17095
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17101
if test -d /usr/nec ;then
17103
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17104
soname_spec='$libname${shared_ext}.$major'
17105
shlibpath_var=LD_LIBRARY_PATH
17111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112
soname_spec='${libname}${release}${shared_ext}$major'
17113
shlibpath_var=LD_LIBRARY_PATH
17120
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17121
echo "${ECHO_T}$dynamic_linker" >&6
17122
test "$dynamic_linker" = no && can_build_shared=no
17124
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17125
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17126
hardcode_action_GCJ=
17127
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17128
test -n "$runpath_var GCJ" || \
17129
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17131
# We can hardcode non-existant directories.
17132
if test "$hardcode_direct_GCJ" != no &&
17133
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17134
# have to relink, otherwise we might link with an installed library
17135
# when we should be linking with a yet-to-be-installed one
17136
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17137
test "$hardcode_minus_L_GCJ" != no; then
17138
# Linking always hardcodes the temporary library directory.
17139
hardcode_action_GCJ=relink
17141
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17142
hardcode_action_GCJ=immediate
17145
# We cannot hardcode anything, or else we can only hardcode existing
17147
hardcode_action_GCJ=unsupported
17149
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17150
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17152
if test "$hardcode_action_GCJ" = relink; then
17153
# Fast installation is not supported
17154
enable_fast_install=no
17155
elif test "$shlibpath_overrides_runpath" = yes ||
17156
test "$enable_shared" = no; then
17157
# Fast installation is not necessary
17158
enable_fast_install=needless
17163
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17164
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17165
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17166
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17167
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17168
echo "$as_me:$LINENO: result: yes" >&5
17169
echo "${ECHO_T}yes" >&6
17171
# FIXME - insert some real tests, host_os isn't really good enough
17174
if test -n "$STRIP" ; then
17175
striplib="$STRIP -x"
17176
echo "$as_me:$LINENO: result: yes" >&5
17177
echo "${ECHO_T}yes" >&6
17179
echo "$as_me:$LINENO: result: no" >&5
17180
echo "${ECHO_T}no" >&6
17184
echo "$as_me:$LINENO: result: no" >&5
17185
echo "${ECHO_T}no" >&6
17190
if test "x$enable_dlopen" != xyes; then
17191
enable_dlopen=unknown
17192
enable_dlopen_self=unknown
17193
enable_dlopen_self_static=unknown
17200
lt_cv_dlopen="load_add_on"
17202
lt_cv_dlopen_self=yes
17206
lt_cv_dlopen="LoadLibrary"
17211
lt_cv_dlopen="dlopen"
17216
# if libdl is installed we need to link against it
17217
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17218
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17219
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17220
echo $ECHO_N "(cached) $ECHO_C" >&6
17222
ac_check_lib_save_LIBS=$LIBS
17224
cat >conftest.$ac_ext <<_ACEOF
17227
cat confdefs.h >>conftest.$ac_ext
17228
cat >>conftest.$ac_ext <<_ACEOF
17229
/* end confdefs.h. */
17231
/* Override any gcc2 internal prototype to avoid an error. */
17235
/* We use char because int might match the return type of a gcc2
17236
builtin and then its argument prototype would still apply. */
17246
rm -f conftest.$ac_objext conftest$ac_exeext
17247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248
(eval $ac_link) 2>conftest.er1
17250
grep -v '^ *+' conftest.er1 >conftest.err
17252
cat conftest.err >&5
17253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254
(exit $ac_status); } &&
17255
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257
(eval $ac_try) 2>&5
17259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260
(exit $ac_status); }; } &&
17261
{ ac_try='test -s conftest$ac_exeext'
17262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263
(eval $ac_try) 2>&5
17265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266
(exit $ac_status); }; }; then
17267
ac_cv_lib_dl_dlopen=yes
17269
echo "$as_me: failed program was:" >&5
17270
sed 's/^/| /' conftest.$ac_ext >&5
17272
ac_cv_lib_dl_dlopen=no
17274
rm -f conftest.err conftest.$ac_objext \
17275
conftest$ac_exeext conftest.$ac_ext
17276
LIBS=$ac_check_lib_save_LIBS
17278
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17279
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17280
if test $ac_cv_lib_dl_dlopen = yes; then
17281
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17284
lt_cv_dlopen="dyld"
17286
lt_cv_dlopen_self=yes
17293
echo "$as_me:$LINENO: checking for shl_load" >&5
17294
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17295
if test "${ac_cv_func_shl_load+set}" = set; then
17296
echo $ECHO_N "(cached) $ECHO_C" >&6
17298
cat >conftest.$ac_ext <<_ACEOF
17301
cat confdefs.h >>conftest.$ac_ext
17302
cat >>conftest.$ac_ext <<_ACEOF
17303
/* end confdefs.h. */
17304
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17305
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306
#define shl_load innocuous_shl_load
17308
/* System header to define __stub macros and hopefully few prototypes,
17309
which can conflict with char shl_load (); below.
17310
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311
<limits.h> exists even on freestanding compilers. */
17314
# include <limits.h>
17316
# include <assert.h>
17321
/* Override any gcc2 internal prototype to avoid an error. */
17326
/* We use char because int might match the return type of a gcc2
17327
builtin and then its argument prototype would still apply. */
17329
/* The GNU C library defines this for functions which it implements
17330
to always fail with ENOSYS. Some functions are actually named
17331
something starting with __ and the normal name is an alias. */
17332
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17335
char (*f) () = shl_load;
17344
return f != shl_load;
17349
rm -f conftest.$ac_objext conftest$ac_exeext
17350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351
(eval $ac_link) 2>conftest.er1
17353
grep -v '^ *+' conftest.er1 >conftest.err
17355
cat conftest.err >&5
17356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357
(exit $ac_status); } &&
17358
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360
(eval $ac_try) 2>&5
17362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363
(exit $ac_status); }; } &&
17364
{ ac_try='test -s conftest$ac_exeext'
17365
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366
(eval $ac_try) 2>&5
17368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369
(exit $ac_status); }; }; then
17370
ac_cv_func_shl_load=yes
17372
echo "$as_me: failed program was:" >&5
17373
sed 's/^/| /' conftest.$ac_ext >&5
17375
ac_cv_func_shl_load=no
17377
rm -f conftest.err conftest.$ac_objext \
17378
conftest$ac_exeext conftest.$ac_ext
17380
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17381
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17382
if test $ac_cv_func_shl_load = yes; then
17383
lt_cv_dlopen="shl_load"
17385
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17386
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17387
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17388
echo $ECHO_N "(cached) $ECHO_C" >&6
17390
ac_check_lib_save_LIBS=$LIBS
17392
cat >conftest.$ac_ext <<_ACEOF
17395
cat confdefs.h >>conftest.$ac_ext
17396
cat >>conftest.$ac_ext <<_ACEOF
17397
/* end confdefs.h. */
17399
/* Override any gcc2 internal prototype to avoid an error. */
17403
/* We use char because int might match the return type of a gcc2
17404
builtin and then its argument prototype would still apply. */
17414
rm -f conftest.$ac_objext conftest$ac_exeext
17415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416
(eval $ac_link) 2>conftest.er1
17418
grep -v '^ *+' conftest.er1 >conftest.err
17420
cat conftest.err >&5
17421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422
(exit $ac_status); } &&
17423
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17424
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425
(eval $ac_try) 2>&5
17427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428
(exit $ac_status); }; } &&
17429
{ ac_try='test -s conftest$ac_exeext'
17430
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431
(eval $ac_try) 2>&5
17433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434
(exit $ac_status); }; }; then
17435
ac_cv_lib_dld_shl_load=yes
17437
echo "$as_me: failed program was:" >&5
17438
sed 's/^/| /' conftest.$ac_ext >&5
17440
ac_cv_lib_dld_shl_load=no
17442
rm -f conftest.err conftest.$ac_objext \
17443
conftest$ac_exeext conftest.$ac_ext
17444
LIBS=$ac_check_lib_save_LIBS
17446
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17447
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17448
if test $ac_cv_lib_dld_shl_load = yes; then
17449
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17451
echo "$as_me:$LINENO: checking for dlopen" >&5
17452
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17453
if test "${ac_cv_func_dlopen+set}" = set; then
17454
echo $ECHO_N "(cached) $ECHO_C" >&6
17456
cat >conftest.$ac_ext <<_ACEOF
17459
cat confdefs.h >>conftest.$ac_ext
17460
cat >>conftest.$ac_ext <<_ACEOF
17461
/* end confdefs.h. */
17462
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17463
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17464
#define dlopen innocuous_dlopen
17466
/* System header to define __stub macros and hopefully few prototypes,
17467
which can conflict with char dlopen (); below.
17468
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17469
<limits.h> exists even on freestanding compilers. */
17472
# include <limits.h>
17474
# include <assert.h>
17479
/* Override any gcc2 internal prototype to avoid an error. */
17484
/* We use char because int might match the return type of a gcc2
17485
builtin and then its argument prototype would still apply. */
17487
/* The GNU C library defines this for functions which it implements
17488
to always fail with ENOSYS. Some functions are actually named
17489
something starting with __ and the normal name is an alias. */
17490
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17493
char (*f) () = dlopen;
17502
return f != dlopen;
17507
rm -f conftest.$ac_objext conftest$ac_exeext
17508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509
(eval $ac_link) 2>conftest.er1
17511
grep -v '^ *+' conftest.er1 >conftest.err
17513
cat conftest.err >&5
17514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515
(exit $ac_status); } &&
17516
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518
(eval $ac_try) 2>&5
17520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521
(exit $ac_status); }; } &&
17522
{ ac_try='test -s conftest$ac_exeext'
17523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524
(eval $ac_try) 2>&5
17526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527
(exit $ac_status); }; }; then
17528
ac_cv_func_dlopen=yes
17530
echo "$as_me: failed program was:" >&5
17531
sed 's/^/| /' conftest.$ac_ext >&5
17533
ac_cv_func_dlopen=no
17535
rm -f conftest.err conftest.$ac_objext \
17536
conftest$ac_exeext conftest.$ac_ext
17538
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17539
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17540
if test $ac_cv_func_dlopen = yes; then
17541
lt_cv_dlopen="dlopen"
17543
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17544
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17545
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17546
echo $ECHO_N "(cached) $ECHO_C" >&6
17548
ac_check_lib_save_LIBS=$LIBS
17550
cat >conftest.$ac_ext <<_ACEOF
17553
cat confdefs.h >>conftest.$ac_ext
17554
cat >>conftest.$ac_ext <<_ACEOF
17555
/* end confdefs.h. */
17557
/* Override any gcc2 internal prototype to avoid an error. */
17561
/* We use char because int might match the return type of a gcc2
17562
builtin and then its argument prototype would still apply. */
17572
rm -f conftest.$ac_objext conftest$ac_exeext
17573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574
(eval $ac_link) 2>conftest.er1
17576
grep -v '^ *+' conftest.er1 >conftest.err
17578
cat conftest.err >&5
17579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580
(exit $ac_status); } &&
17581
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583
(eval $ac_try) 2>&5
17585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
(exit $ac_status); }; } &&
17587
{ ac_try='test -s conftest$ac_exeext'
17588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589
(eval $ac_try) 2>&5
17591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592
(exit $ac_status); }; }; then
17593
ac_cv_lib_dl_dlopen=yes
17595
echo "$as_me: failed program was:" >&5
17596
sed 's/^/| /' conftest.$ac_ext >&5
17598
ac_cv_lib_dl_dlopen=no
17600
rm -f conftest.err conftest.$ac_objext \
17601
conftest$ac_exeext conftest.$ac_ext
17602
LIBS=$ac_check_lib_save_LIBS
17604
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17605
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17606
if test $ac_cv_lib_dl_dlopen = yes; then
17607
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17609
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17610
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17611
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17612
echo $ECHO_N "(cached) $ECHO_C" >&6
17614
ac_check_lib_save_LIBS=$LIBS
17615
LIBS="-lsvld $LIBS"
17616
cat >conftest.$ac_ext <<_ACEOF
17619
cat confdefs.h >>conftest.$ac_ext
17620
cat >>conftest.$ac_ext <<_ACEOF
17621
/* end confdefs.h. */
17623
/* Override any gcc2 internal prototype to avoid an error. */
17627
/* We use char because int might match the return type of a gcc2
17628
builtin and then its argument prototype would still apply. */
17638
rm -f conftest.$ac_objext conftest$ac_exeext
17639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640
(eval $ac_link) 2>conftest.er1
17642
grep -v '^ *+' conftest.er1 >conftest.err
17644
cat conftest.err >&5
17645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646
(exit $ac_status); } &&
17647
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649
(eval $ac_try) 2>&5
17651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652
(exit $ac_status); }; } &&
17653
{ ac_try='test -s conftest$ac_exeext'
17654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655
(eval $ac_try) 2>&5
17657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658
(exit $ac_status); }; }; then
17659
ac_cv_lib_svld_dlopen=yes
17661
echo "$as_me: failed program was:" >&5
17662
sed 's/^/| /' conftest.$ac_ext >&5
17664
ac_cv_lib_svld_dlopen=no
17666
rm -f conftest.err conftest.$ac_objext \
17667
conftest$ac_exeext conftest.$ac_ext
17668
LIBS=$ac_check_lib_save_LIBS
17670
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17671
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17672
if test $ac_cv_lib_svld_dlopen = yes; then
17673
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17675
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17676
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17677
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17678
echo $ECHO_N "(cached) $ECHO_C" >&6
17680
ac_check_lib_save_LIBS=$LIBS
17682
cat >conftest.$ac_ext <<_ACEOF
17685
cat confdefs.h >>conftest.$ac_ext
17686
cat >>conftest.$ac_ext <<_ACEOF
17687
/* end confdefs.h. */
17689
/* Override any gcc2 internal prototype to avoid an error. */
17693
/* We use char because int might match the return type of a gcc2
17694
builtin and then its argument prototype would still apply. */
17704
rm -f conftest.$ac_objext conftest$ac_exeext
17705
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706
(eval $ac_link) 2>conftest.er1
17708
grep -v '^ *+' conftest.er1 >conftest.err
17710
cat conftest.err >&5
17711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712
(exit $ac_status); } &&
17713
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715
(eval $ac_try) 2>&5
17717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718
(exit $ac_status); }; } &&
17719
{ ac_try='test -s conftest$ac_exeext'
17720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721
(eval $ac_try) 2>&5
17723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724
(exit $ac_status); }; }; then
17725
ac_cv_lib_dld_dld_link=yes
17727
echo "$as_me: failed program was:" >&5
17728
sed 's/^/| /' conftest.$ac_ext >&5
17730
ac_cv_lib_dld_dld_link=no
17732
rm -f conftest.err conftest.$ac_objext \
17733
conftest$ac_exeext conftest.$ac_ext
17734
LIBS=$ac_check_lib_save_LIBS
17736
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17737
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17738
if test $ac_cv_lib_dld_dld_link = yes; then
17739
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17760
if test "x$lt_cv_dlopen" != xno; then
17766
case $lt_cv_dlopen in
17768
save_CPPFLAGS="$CPPFLAGS"
17769
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17771
save_LDFLAGS="$LDFLAGS"
17772
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17775
LIBS="$lt_cv_dlopen_libs $LIBS"
17777
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17778
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17779
if test "${lt_cv_dlopen_self+set}" = set; then
17780
echo $ECHO_N "(cached) $ECHO_C" >&6
17782
if test "$cross_compiling" = yes; then :
17783
lt_cv_dlopen_self=cross
17785
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17786
lt_status=$lt_dlunknown
17787
cat > conftest.$ac_ext <<EOF
17788
#line 17788 "configure"
17789
#include "confdefs.h"
17798
# define LT_DLGLOBAL RTLD_GLOBAL
17801
# define LT_DLGLOBAL DL_GLOBAL
17803
# define LT_DLGLOBAL 0
17807
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17808
find out it does not work in some platform. */
17809
#ifndef LT_DLLAZY_OR_NOW
17811
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17814
# define LT_DLLAZY_OR_NOW DL_LAZY
17817
# define LT_DLLAZY_OR_NOW RTLD_NOW
17820
# define LT_DLLAZY_OR_NOW DL_NOW
17822
# define LT_DLLAZY_OR_NOW 0
17830
extern "C" void exit (int);
17833
void fnord() { int i=42;}
17836
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17837
int status = $lt_dlunknown;
17841
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17842
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17843
/* dlclose (self); */
17849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17850
(eval $ac_link) 2>&5
17852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17854
(./conftest; exit; ) 2>/dev/null
17856
case x$lt_status in
17857
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17858
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17859
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17862
# compilation failed
17863
lt_cv_dlopen_self=no
17870
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17871
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17873
if test "x$lt_cv_dlopen_self" = xyes; then
17874
LDFLAGS="$LDFLAGS $link_static_flag"
17875
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17876
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17877
if test "${lt_cv_dlopen_self_static+set}" = set; then
17878
echo $ECHO_N "(cached) $ECHO_C" >&6
17880
if test "$cross_compiling" = yes; then :
17881
lt_cv_dlopen_self_static=cross
17883
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17884
lt_status=$lt_dlunknown
17885
cat > conftest.$ac_ext <<EOF
17886
#line 17886 "configure"
17887
#include "confdefs.h"
17896
# define LT_DLGLOBAL RTLD_GLOBAL
17899
# define LT_DLGLOBAL DL_GLOBAL
17901
# define LT_DLGLOBAL 0
17905
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17906
find out it does not work in some platform. */
17907
#ifndef LT_DLLAZY_OR_NOW
17909
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17912
# define LT_DLLAZY_OR_NOW DL_LAZY
17915
# define LT_DLLAZY_OR_NOW RTLD_NOW
17918
# define LT_DLLAZY_OR_NOW DL_NOW
17920
# define LT_DLLAZY_OR_NOW 0
17928
extern "C" void exit (int);
17931
void fnord() { int i=42;}
17934
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17935
int status = $lt_dlunknown;
17939
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17940
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17941
/* dlclose (self); */
17947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17948
(eval $ac_link) 2>&5
17950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17952
(./conftest; exit; ) 2>/dev/null
17954
case x$lt_status in
17955
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17956
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17957
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17960
# compilation failed
17961
lt_cv_dlopen_self_static=no
17968
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17969
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17972
CPPFLAGS="$save_CPPFLAGS"
17973
LDFLAGS="$save_LDFLAGS"
17978
case $lt_cv_dlopen_self in
17979
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17980
*) enable_dlopen_self=unknown ;;
17983
case $lt_cv_dlopen_self_static in
17984
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17985
*) enable_dlopen_self_static=unknown ;;
17990
# The else clause should only fire when bootstrapping the
17991
# libtool distribution, otherwise you forgot to ship ltmain.sh
17992
# with your package, and you will get complaints that there are
17993
# no rules to generate ltmain.sh.
17994
if test -f "$ltmain"; then
17995
# See if we are running on zsh, and set the options which allow our commands through
17996
# without removal of \ escapes.
17997
if test -n "${ZSH_VERSION+set}" ; then
17998
setopt NO_GLOB_SUBST
18000
# Now quote all the things that may contain metacharacters while being
18001
# careful not to overquote the AC_SUBSTed values. We take copies of the
18002
# variables and quote the copies for generation of the libtool script.
18003
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18005
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18006
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18007
deplibs_check_method reload_flag reload_cmds need_locks \
18008
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18009
lt_cv_sys_global_symbol_to_c_name_address \
18010
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18011
old_postinstall_cmds old_postuninstall_cmds \
18015
lt_prog_compiler_wl_GCJ \
18016
lt_prog_compiler_pic_GCJ \
18017
lt_prog_compiler_static_GCJ \
18018
lt_prog_compiler_no_builtin_flag_GCJ \
18019
export_dynamic_flag_spec_GCJ \
18020
thread_safe_flag_spec_GCJ \
18021
whole_archive_flag_spec_GCJ \
18022
enable_shared_with_static_runtimes_GCJ \
18023
old_archive_cmds_GCJ \
18024
old_archive_from_new_cmds_GCJ \
18025
predep_objects_GCJ \
18026
postdep_objects_GCJ \
18029
compiler_lib_search_path_GCJ \
18031
archive_expsym_cmds_GCJ \
18032
postinstall_cmds_GCJ \
18033
postuninstall_cmds_GCJ \
18034
old_archive_from_expsyms_cmds_GCJ \
18035
allow_undefined_flag_GCJ \
18036
no_undefined_flag_GCJ \
18037
export_symbols_cmds_GCJ \
18038
hardcode_libdir_flag_spec_GCJ \
18039
hardcode_libdir_flag_spec_ld_GCJ \
18040
hardcode_libdir_separator_GCJ \
18041
hardcode_automatic_GCJ \
18043
module_expsym_cmds_GCJ \
18044
lt_cv_prog_compiler_c_o_GCJ \
18045
exclude_expsyms_GCJ \
18046
include_expsyms_GCJ; do
18049
old_archive_cmds_GCJ | \
18050
old_archive_from_new_cmds_GCJ | \
18051
archive_cmds_GCJ | \
18052
archive_expsym_cmds_GCJ | \
18053
module_cmds_GCJ | \
18054
module_expsym_cmds_GCJ | \
18055
old_archive_from_expsyms_cmds_GCJ | \
18056
export_symbols_cmds_GCJ | \
18057
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18058
postinstall_cmds | postuninstall_cmds | \
18059
old_postinstall_cmds | old_postuninstall_cmds | \
18060
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18061
# Double-quote double-evaled strings.
18062
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18065
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18071
*'\$0 --fallback-echo"')
18072
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18078
cat <<__EOF__ >> "$cfgfile"
18079
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18081
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083
# Shell to use when invoking shell scripts.
18086
# Whether or not to build shared libraries.
18087
build_libtool_libs=$enable_shared
18089
# Whether or not to build static libraries.
18090
build_old_libs=$enable_static
18092
# Whether or not to add -lc for building shared libraries.
18093
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18095
# Whether or not to disallow shared libs when runtime libs are static
18096
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18098
# Whether or not to optimize for fast installation.
18099
fast_install=$enable_fast_install
18102
host_alias=$host_alias
18105
# An echo program that does not interpret backslashes.
18110
AR_FLAGS=$lt_AR_FLAGS
18115
# A language-specific compiler.
18116
CC=$lt_compiler_GCJ
18118
# Is the compiler the GNU C compiler?
18124
# The linker used to build libraries.
18127
# Whether we need hard or soft links.
18130
# A BSD-compatible nm program.
18133
# A symbol stripping program
18136
# Used to examine libraries when file_magic_cmd begins "file"
18137
MAGIC_CMD=$MAGIC_CMD
18139
# Used on cygwin: DLL creation program.
18142
# Used on cygwin: object dumper.
18145
# Used on cygwin: assembler.
18148
# The name of the directory that contains temporary libtool files.
18151
# How to create reloadable object files.
18152
reload_flag=$lt_reload_flag
18153
reload_cmds=$lt_reload_cmds
18155
# How to pass a linker flag through the compiler.
18156
wl=$lt_lt_prog_compiler_wl_GCJ
18158
# Object file suffix (normally "o").
18159
objext="$ac_objext"
18161
# Old archive suffix (normally "a").
18164
# Shared library suffix (normally ".so").
18167
# Executable file suffix (normally "").
18170
# Additional compiler flags for building library objects.
18171
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18174
# What is the maximum length of a command?
18175
max_cmd_len=$lt_cv_sys_max_cmd_len
18177
# Does compiler simultaneously support -c and -o options?
18178
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18180
# Must we lock files when doing compilation ?
18181
need_locks=$lt_need_locks
18183
# Do we need the lib prefix for modules?
18184
need_lib_prefix=$need_lib_prefix
18186
# Do we need a version for libraries?
18187
need_version=$need_version
18189
# Whether dlopen is supported.
18190
dlopen_support=$enable_dlopen
18192
# Whether dlopen of programs is supported.
18193
dlopen_self=$enable_dlopen_self
18195
# Whether dlopen of statically linked programs is supported.
18196
dlopen_self_static=$enable_dlopen_self_static
18198
# Compiler flag to prevent dynamic linking.
18199
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18201
# Compiler flag to turn off builtin functions.
18202
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18204
# Compiler flag to allow reflexive dlopens.
18205
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18207
# Compiler flag to generate shared objects directly from archives.
18208
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18210
# Compiler flag to generate thread-safe objects.
18211
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18213
# Library versioning type.
18214
version_type=$version_type
18216
# Format of library name prefix.
18217
libname_spec=$lt_libname_spec
18219
# List of archive names. First name is the real one, the rest are links.
18220
# The last name is the one that the linker finds with -lNAME.
18221
library_names_spec=$lt_library_names_spec
18223
# The coded name of the library, if different from the real name.
18224
soname_spec=$lt_soname_spec
18226
# Commands used to build and install an old-style archive.
18228
old_archive_cmds=$lt_old_archive_cmds_GCJ
18229
old_postinstall_cmds=$lt_old_postinstall_cmds
18230
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18232
# Create an old-style archive from a shared archive.
18233
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18235
# Create a temporary old-style archive to link instead of a shared archive.
18236
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18238
# Commands used to build and install a shared archive.
18239
archive_cmds=$lt_archive_cmds_GCJ
18240
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18241
postinstall_cmds=$lt_postinstall_cmds
18242
postuninstall_cmds=$lt_postuninstall_cmds
18244
# Commands used to build a loadable module (assumed same as above if empty)
18245
module_cmds=$lt_module_cmds_GCJ
18246
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18248
# Commands to strip libraries.
18249
old_striplib=$lt_old_striplib
18250
striplib=$lt_striplib
18252
# Dependencies to place before the objects being linked to create a
18254
predep_objects=$lt_predep_objects_GCJ
18256
# Dependencies to place after the objects being linked to create a
18258
postdep_objects=$lt_postdep_objects_GCJ
18260
# Dependencies to place before the objects being linked to create a
18262
predeps=$lt_predeps_GCJ
18264
# Dependencies to place after the objects being linked to create a
18266
postdeps=$lt_postdeps_GCJ
18268
# The library search path used internally by the compiler when linking
18269
# a shared library.
18270
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18272
# Method to check whether dependent libraries are shared objects.
18273
deplibs_check_method=$lt_deplibs_check_method
18275
# Command to use when deplibs_check_method == file_magic.
18276
file_magic_cmd=$lt_file_magic_cmd
18278
# Flag that allows shared libraries with undefined symbols to be built.
18279
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18281
# Flag that forces no undefined symbols.
18282
no_undefined_flag=$lt_no_undefined_flag_GCJ
18284
# Commands used to finish a libtool library installation in a directory.
18285
finish_cmds=$lt_finish_cmds
18287
# Same as above, but a single script fragment to be evaled but not shown.
18288
finish_eval=$lt_finish_eval
18290
# Take the output of nm and produce a listing of raw symbols and C names.
18291
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18293
# Transform the output of nm in a proper C declaration
18294
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18296
# Transform the output of nm in a C name address pair
18297
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18299
# This is the shared library runtime path variable.
18300
runpath_var=$runpath_var
18302
# This is the shared library path variable.
18303
shlibpath_var=$shlibpath_var
18305
# Is shlibpath searched before the hard-coded library search path?
18306
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18308
# How to hardcode a shared library path into an executable.
18309
hardcode_action=$hardcode_action_GCJ
18311
# Whether we should hardcode library paths into libraries.
18312
hardcode_into_libs=$hardcode_into_libs
18314
# Flag to hardcode \$libdir into a binary during linking.
18315
# This must work even if \$libdir does not exist.
18316
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18318
# If ld is used when linking, flag to hardcode \$libdir into
18319
# a binary during linking. This must work even if \$libdir does
18321
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18323
# Whether we need a single -rpath flag with a separated argument.
18324
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18326
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18327
# resulting binary.
18328
hardcode_direct=$hardcode_direct_GCJ
18330
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18331
# resulting binary.
18332
hardcode_minus_L=$hardcode_minus_L_GCJ
18334
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18335
# the resulting binary.
18336
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18338
# Set to yes if building a shared library automatically hardcodes DIR into the library
18339
# and all subsequent libraries and executables linked against it.
18340
hardcode_automatic=$hardcode_automatic_GCJ
18342
# Variables whose values should be saved in libtool wrapper scripts and
18343
# restored at relink time.
18344
variables_saved_for_relink="$variables_saved_for_relink"
18346
# Whether libtool must link a program against all its dependency libraries.
18347
link_all_deplibs=$link_all_deplibs_GCJ
18349
# Compile-time system search path for libraries
18350
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18352
# Run-time system search path for libraries
18353
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18355
# Fix the shell variable \$srcfile for the compiler.
18356
fix_srcfile_path="$fix_srcfile_path_GCJ"
18358
# Set to yes if exported symbols are required.
18359
always_export_symbols=$always_export_symbols_GCJ
18361
# The commands to list exported symbols.
18362
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18364
# The commands to extract the exported symbol list from a shared archive.
18365
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18367
# Symbols that should not be listed in the preloaded symbols.
18368
exclude_expsyms=$lt_exclude_expsyms_GCJ
18370
# Symbols that must always be exported.
18371
include_expsyms=$lt_include_expsyms_GCJ
18373
# ### END LIBTOOL TAG CONFIG: $tagname
18379
# If there is no Makefile yet, we rely on a make rule to execute
18380
# `config.status --recheck' to rerun these tests and create the
18381
# libtool script then.
18382
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18383
if test -f "$ltmain_in"; then
18384
test -f Makefile && make "$ltmain"
18390
ac_cpp='$CPP $CPPFLAGS'
18391
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406
# Source file extension for RC test sources.
18409
# Object file extension for compiled RC test sources.
18413
# Code to be used in simple compile tests
18414
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18416
# Code to be used in simple link tests
18417
lt_simple_link_test_code="$lt_simple_compile_test_code"
18419
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18421
# If no C compiler was specified, use CC.
18424
# Allow CC to be a program name with arguments.
18428
# Allow CC to be a program name with arguments.
18433
lt_cv_prog_compiler_c_o_RC=yes
18435
# The else clause should only fire when bootstrapping the
18436
# libtool distribution, otherwise you forgot to ship ltmain.sh
18437
# with your package, and you will get complaints that there are
18438
# no rules to generate ltmain.sh.
18439
if test -f "$ltmain"; then
18440
# See if we are running on zsh, and set the options which allow our commands through
18441
# without removal of \ escapes.
18442
if test -n "${ZSH_VERSION+set}" ; then
18443
setopt NO_GLOB_SUBST
18445
# Now quote all the things that may contain metacharacters while being
18446
# careful not to overquote the AC_SUBSTed values. We take copies of the
18447
# variables and quote the copies for generation of the libtool script.
18448
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18450
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18451
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18452
deplibs_check_method reload_flag reload_cmds need_locks \
18453
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18454
lt_cv_sys_global_symbol_to_c_name_address \
18455
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18456
old_postinstall_cmds old_postuninstall_cmds \
18460
lt_prog_compiler_wl_RC \
18461
lt_prog_compiler_pic_RC \
18462
lt_prog_compiler_static_RC \
18463
lt_prog_compiler_no_builtin_flag_RC \
18464
export_dynamic_flag_spec_RC \
18465
thread_safe_flag_spec_RC \
18466
whole_archive_flag_spec_RC \
18467
enable_shared_with_static_runtimes_RC \
18468
old_archive_cmds_RC \
18469
old_archive_from_new_cmds_RC \
18470
predep_objects_RC \
18471
postdep_objects_RC \
18474
compiler_lib_search_path_RC \
18476
archive_expsym_cmds_RC \
18477
postinstall_cmds_RC \
18478
postuninstall_cmds_RC \
18479
old_archive_from_expsyms_cmds_RC \
18480
allow_undefined_flag_RC \
18481
no_undefined_flag_RC \
18482
export_symbols_cmds_RC \
18483
hardcode_libdir_flag_spec_RC \
18484
hardcode_libdir_flag_spec_ld_RC \
18485
hardcode_libdir_separator_RC \
18486
hardcode_automatic_RC \
18488
module_expsym_cmds_RC \
18489
lt_cv_prog_compiler_c_o_RC \
18490
exclude_expsyms_RC \
18491
include_expsyms_RC; do
18494
old_archive_cmds_RC | \
18495
old_archive_from_new_cmds_RC | \
18496
archive_cmds_RC | \
18497
archive_expsym_cmds_RC | \
18499
module_expsym_cmds_RC | \
18500
old_archive_from_expsyms_cmds_RC | \
18501
export_symbols_cmds_RC | \
18502
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18503
postinstall_cmds | postuninstall_cmds | \
18504
old_postinstall_cmds | old_postuninstall_cmds | \
18505
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18506
# Double-quote double-evaled strings.
18507
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18510
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18516
*'\$0 --fallback-echo"')
18517
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18523
cat <<__EOF__ >> "$cfgfile"
18524
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18526
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18528
# Shell to use when invoking shell scripts.
18531
# Whether or not to build shared libraries.
18532
build_libtool_libs=$enable_shared
18534
# Whether or not to build static libraries.
18535
build_old_libs=$enable_static
18537
# Whether or not to add -lc for building shared libraries.
18538
build_libtool_need_lc=$archive_cmds_need_lc_RC
18540
# Whether or not to disallow shared libs when runtime libs are static
18541
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18543
# Whether or not to optimize for fast installation.
18544
fast_install=$enable_fast_install
18547
host_alias=$host_alias
18550
# An echo program that does not interpret backslashes.
18555
AR_FLAGS=$lt_AR_FLAGS
18560
# A language-specific compiler.
18563
# Is the compiler the GNU C compiler?
18569
# The linker used to build libraries.
18572
# Whether we need hard or soft links.
18575
# A BSD-compatible nm program.
18578
# A symbol stripping program
18581
# Used to examine libraries when file_magic_cmd begins "file"
18582
MAGIC_CMD=$MAGIC_CMD
18584
# Used on cygwin: DLL creation program.
18587
# Used on cygwin: object dumper.
18590
# Used on cygwin: assembler.
18593
# The name of the directory that contains temporary libtool files.
18596
# How to create reloadable object files.
18597
reload_flag=$lt_reload_flag
18598
reload_cmds=$lt_reload_cmds
18600
# How to pass a linker flag through the compiler.
18601
wl=$lt_lt_prog_compiler_wl_RC
18603
# Object file suffix (normally "o").
18604
objext="$ac_objext"
18606
# Old archive suffix (normally "a").
18609
# Shared library suffix (normally ".so").
18612
# Executable file suffix (normally "").
18615
# Additional compiler flags for building library objects.
18616
pic_flag=$lt_lt_prog_compiler_pic_RC
18619
# What is the maximum length of a command?
18620
max_cmd_len=$lt_cv_sys_max_cmd_len
18622
# Does compiler simultaneously support -c and -o options?
18623
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18625
# Must we lock files when doing compilation ?
18626
need_locks=$lt_need_locks
18628
# Do we need the lib prefix for modules?
18629
need_lib_prefix=$need_lib_prefix
18631
# Do we need a version for libraries?
18632
need_version=$need_version
18634
# Whether dlopen is supported.
18635
dlopen_support=$enable_dlopen
18637
# Whether dlopen of programs is supported.
18638
dlopen_self=$enable_dlopen_self
18640
# Whether dlopen of statically linked programs is supported.
18641
dlopen_self_static=$enable_dlopen_self_static
18643
# Compiler flag to prevent dynamic linking.
18644
link_static_flag=$lt_lt_prog_compiler_static_RC
18646
# Compiler flag to turn off builtin functions.
18647
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18649
# Compiler flag to allow reflexive dlopens.
18650
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18652
# Compiler flag to generate shared objects directly from archives.
18653
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18655
# Compiler flag to generate thread-safe objects.
18656
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18658
# Library versioning type.
18659
version_type=$version_type
18661
# Format of library name prefix.
18662
libname_spec=$lt_libname_spec
18664
# List of archive names. First name is the real one, the rest are links.
18665
# The last name is the one that the linker finds with -lNAME.
18666
library_names_spec=$lt_library_names_spec
18668
# The coded name of the library, if different from the real name.
18669
soname_spec=$lt_soname_spec
18671
# Commands used to build and install an old-style archive.
18673
old_archive_cmds=$lt_old_archive_cmds_RC
18674
old_postinstall_cmds=$lt_old_postinstall_cmds
18675
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18677
# Create an old-style archive from a shared archive.
18678
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18680
# Create a temporary old-style archive to link instead of a shared archive.
18681
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18683
# Commands used to build and install a shared archive.
18684
archive_cmds=$lt_archive_cmds_RC
18685
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18686
postinstall_cmds=$lt_postinstall_cmds
18687
postuninstall_cmds=$lt_postuninstall_cmds
18689
# Commands used to build a loadable module (assumed same as above if empty)
18690
module_cmds=$lt_module_cmds_RC
18691
module_expsym_cmds=$lt_module_expsym_cmds_RC
18693
# Commands to strip libraries.
18694
old_striplib=$lt_old_striplib
18695
striplib=$lt_striplib
18697
# Dependencies to place before the objects being linked to create a
18699
predep_objects=$lt_predep_objects_RC
18701
# Dependencies to place after the objects being linked to create a
18703
postdep_objects=$lt_postdep_objects_RC
18705
# Dependencies to place before the objects being linked to create a
18707
predeps=$lt_predeps_RC
18709
# Dependencies to place after the objects being linked to create a
18711
postdeps=$lt_postdeps_RC
18713
# The library search path used internally by the compiler when linking
18714
# a shared library.
18715
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18717
# Method to check whether dependent libraries are shared objects.
18718
deplibs_check_method=$lt_deplibs_check_method
18720
# Command to use when deplibs_check_method == file_magic.
18721
file_magic_cmd=$lt_file_magic_cmd
18723
# Flag that allows shared libraries with undefined symbols to be built.
18724
allow_undefined_flag=$lt_allow_undefined_flag_RC
18726
# Flag that forces no undefined symbols.
18727
no_undefined_flag=$lt_no_undefined_flag_RC
18729
# Commands used to finish a libtool library installation in a directory.
18730
finish_cmds=$lt_finish_cmds
18732
# Same as above, but a single script fragment to be evaled but not shown.
18733
finish_eval=$lt_finish_eval
18735
# Take the output of nm and produce a listing of raw symbols and C names.
18736
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18738
# Transform the output of nm in a proper C declaration
18739
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18741
# Transform the output of nm in a C name address pair
18742
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18744
# This is the shared library runtime path variable.
18745
runpath_var=$runpath_var
18747
# This is the shared library path variable.
18748
shlibpath_var=$shlibpath_var
18750
# Is shlibpath searched before the hard-coded library search path?
18751
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18753
# How to hardcode a shared library path into an executable.
18754
hardcode_action=$hardcode_action_RC
18756
# Whether we should hardcode library paths into libraries.
18757
hardcode_into_libs=$hardcode_into_libs
18759
# Flag to hardcode \$libdir into a binary during linking.
18760
# This must work even if \$libdir does not exist.
18761
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18763
# If ld is used when linking, flag to hardcode \$libdir into
18764
# a binary during linking. This must work even if \$libdir does
18766
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18768
# Whether we need a single -rpath flag with a separated argument.
18769
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18771
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18772
# resulting binary.
18773
hardcode_direct=$hardcode_direct_RC
18775
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18776
# resulting binary.
18777
hardcode_minus_L=$hardcode_minus_L_RC
18779
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18780
# the resulting binary.
18781
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18783
# Set to yes if building a shared library automatically hardcodes DIR into the library
18784
# and all subsequent libraries and executables linked against it.
18785
hardcode_automatic=$hardcode_automatic_RC
18787
# Variables whose values should be saved in libtool wrapper scripts and
18788
# restored at relink time.
18789
variables_saved_for_relink="$variables_saved_for_relink"
18791
# Whether libtool must link a program against all its dependency libraries.
18792
link_all_deplibs=$link_all_deplibs_RC
18794
# Compile-time system search path for libraries
18795
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18797
# Run-time system search path for libraries
18798
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18800
# Fix the shell variable \$srcfile for the compiler.
18801
fix_srcfile_path="$fix_srcfile_path_RC"
18803
# Set to yes if exported symbols are required.
18804
always_export_symbols=$always_export_symbols_RC
18806
# The commands to list exported symbols.
18807
export_symbols_cmds=$lt_export_symbols_cmds_RC
18809
# The commands to extract the exported symbol list from a shared archive.
18810
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18812
# Symbols that should not be listed in the preloaded symbols.
18813
exclude_expsyms=$lt_exclude_expsyms_RC
18815
# Symbols that must always be exported.
18816
include_expsyms=$lt_include_expsyms_RC
18818
# ### END LIBTOOL TAG CONFIG: $tagname
18824
# If there is no Makefile yet, we rely on a make rule to execute
18825
# `config.status --recheck' to rerun these tests and create the
18826
# libtool script then.
18827
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18828
if test -f "$ltmain_in"; then
18829
test -f Makefile && make "$ltmain"
18835
ac_cpp='$CPP $CPPFLAGS'
18836
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18846
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18847
{ (exit 1); exit 1; }; }
18851
# Append the new tag name to the list of available tags.
18852
if test -n "$tagname" ; then
18853
available_tags="$available_tags $tagname"
18859
# Now substitute the updated list of available tags.
18860
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18861
mv "${ofile}T" "$ofile"
18865
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18866
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18867
{ (exit 1); exit 1; }; }
18873
# This can be used to rebuild libtool when needed
18874
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18876
# Always use our own libtool.
18877
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18879
# Prevent multiple expansion
18901
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18902
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18903
if test "${ac_cv_c_bigendian+set}" = set; then
18904
echo $ECHO_N "(cached) $ECHO_C" >&6
18906
# See if sys/param.h defines the BYTE_ORDER macro.
18907
cat >conftest.$ac_ext <<_ACEOF
18910
cat confdefs.h >>conftest.$ac_ext
18911
cat >>conftest.$ac_ext <<_ACEOF
18912
/* end confdefs.h. */
18913
#include <sys/types.h>
18914
#include <sys/param.h>
18919
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18920
bogus endian macros
18927
rm -f conftest.$ac_objext
18928
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929
(eval $ac_compile) 2>conftest.er1
18931
grep -v '^ *+' conftest.er1 >conftest.err
18933
cat conftest.err >&5
18934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935
(exit $ac_status); } &&
18936
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938
(eval $ac_try) 2>&5
18940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941
(exit $ac_status); }; } &&
18942
{ ac_try='test -s conftest.$ac_objext'
18943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944
(eval $ac_try) 2>&5
18946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947
(exit $ac_status); }; }; then
18948
# It does; now see whether it defined to BIG_ENDIAN or not.
18949
cat >conftest.$ac_ext <<_ACEOF
18952
cat confdefs.h >>conftest.$ac_ext
18953
cat >>conftest.$ac_ext <<_ACEOF
18954
/* end confdefs.h. */
18955
#include <sys/types.h>
18956
#include <sys/param.h>
18961
#if BYTE_ORDER != BIG_ENDIAN
18969
rm -f conftest.$ac_objext
18970
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18971
(eval $ac_compile) 2>conftest.er1
18973
grep -v '^ *+' conftest.er1 >conftest.err
18975
cat conftest.err >&5
18976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977
(exit $ac_status); } &&
18978
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980
(eval $ac_try) 2>&5
18982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983
(exit $ac_status); }; } &&
18984
{ ac_try='test -s conftest.$ac_objext'
18985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986
(eval $ac_try) 2>&5
18988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989
(exit $ac_status); }; }; then
18990
ac_cv_c_bigendian=yes
18992
echo "$as_me: failed program was:" >&5
18993
sed 's/^/| /' conftest.$ac_ext >&5
18995
ac_cv_c_bigendian=no
18997
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18999
echo "$as_me: failed program was:" >&5
19000
sed 's/^/| /' conftest.$ac_ext >&5
19002
# It does not; compile a test program.
19003
if test "$cross_compiling" = yes; then
19004
# try to guess the endianness by grepping values into an object file
19005
ac_cv_c_bigendian=unknown
19006
cat >conftest.$ac_ext <<_ACEOF
19009
cat confdefs.h >>conftest.$ac_ext
19010
cat >>conftest.$ac_ext <<_ACEOF
19011
/* end confdefs.h. */
19012
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19013
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19014
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19015
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19016
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19017
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19021
_ascii (); _ebcdic ();
19026
rm -f conftest.$ac_objext
19027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028
(eval $ac_compile) 2>conftest.er1
19030
grep -v '^ *+' conftest.er1 >conftest.err
19032
cat conftest.err >&5
19033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034
(exit $ac_status); } &&
19035
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037
(eval $ac_try) 2>&5
19039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040
(exit $ac_status); }; } &&
19041
{ ac_try='test -s conftest.$ac_objext'
19042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043
(eval $ac_try) 2>&5
19045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046
(exit $ac_status); }; }; then
19047
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19048
ac_cv_c_bigendian=yes
19050
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19051
if test "$ac_cv_c_bigendian" = unknown; then
19052
ac_cv_c_bigendian=no
19054
# finding both strings is unlikely to happen, but who knows?
19055
ac_cv_c_bigendian=unknown
19059
echo "$as_me: failed program was:" >&5
19060
sed 's/^/| /' conftest.$ac_ext >&5
19063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19065
cat >conftest.$ac_ext <<_ACEOF
19068
cat confdefs.h >>conftest.$ac_ext
19069
cat >>conftest.$ac_ext <<_ACEOF
19070
/* end confdefs.h. */
19074
/* Are we little or big endian? From Harbison&Steele. */
19078
char c[sizeof (long)];
19081
exit (u.c[sizeof (long) - 1] == 1);
19084
rm -f conftest$ac_exeext
19085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086
(eval $ac_link) 2>&5
19088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091
(eval $ac_try) 2>&5
19093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
(exit $ac_status); }; }; then
19095
ac_cv_c_bigendian=no
19097
echo "$as_me: program exited with status $ac_status" >&5
19098
echo "$as_me: failed program was:" >&5
19099
sed 's/^/| /' conftest.$ac_ext >&5
19101
( exit $ac_status )
19102
ac_cv_c_bigendian=yes
19104
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19109
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19110
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19111
case $ac_cv_c_bigendian in
19114
cat >>confdefs.h <<\_ACEOF
19115
#define WORDS_BIGENDIAN 1
19121
{ { echo "$as_me:$LINENO: error: unknown endianness
19122
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19123
echo "$as_me: error: unknown endianness
19124
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19125
{ (exit 1); exit 1; }; } ;;
19128
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19129
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19130
if test "${ac_cv_c_const+set}" = set; then
19131
echo $ECHO_N "(cached) $ECHO_C" >&6
19133
cat >conftest.$ac_ext <<_ACEOF
19136
cat confdefs.h >>conftest.$ac_ext
19137
cat >>conftest.$ac_ext <<_ACEOF
19138
/* end confdefs.h. */
19143
/* FIXME: Include the comments suggested by Paul. */
19144
#ifndef __cplusplus
19145
/* Ultrix mips cc rejects this. */
19146
typedef int charset[2];
19148
/* SunOS 4.1.1 cc rejects this. */
19149
char const *const *ccp;
19151
/* NEC SVR4.0.2 mips cc rejects this. */
19152
struct point {int x, y;};
19153
static struct point const zero = {0,0};
19154
/* AIX XL C 1.02.0.0 rejects this.
19155
It does not let you subtract one const X* pointer from another in
19156
an arm of an if-expression whose if-part is not a constant
19158
const char *g = "string";
19159
ccp = &g + (g ? g-g : 0);
19160
/* HPUX 7.0 cc rejects these. */
19163
ccp = (char const *const *) p;
19164
{ /* SCO 3.2v4 cc rejects this. */
19166
char const *s = 0 ? (char *) 0 : (char const *) 0;
19170
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19171
int x[] = {25, 17};
19172
const int *foo = &x[0];
19175
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19176
typedef const int *iptr;
19180
{ /* AIX XL C 1.02.0.0 rejects this saying
19181
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19182
struct s { int j; const int *ap[3]; };
19183
struct s *b; b->j = 5;
19185
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19186
const int foo = 10;
19194
rm -f conftest.$ac_objext
19195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196
(eval $ac_compile) 2>conftest.er1
19198
grep -v '^ *+' conftest.er1 >conftest.err
19200
cat conftest.err >&5
19201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202
(exit $ac_status); } &&
19203
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205
(eval $ac_try) 2>&5
19207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208
(exit $ac_status); }; } &&
19209
{ ac_try='test -s conftest.$ac_objext'
19210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211
(eval $ac_try) 2>&5
19213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214
(exit $ac_status); }; }; then
19217
echo "$as_me: failed program was:" >&5
19218
sed 's/^/| /' conftest.$ac_ext >&5
19222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19224
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19225
echo "${ECHO_T}$ac_cv_c_const" >&6
19226
if test $ac_cv_c_const = no; then
19228
cat >>confdefs.h <<\_ACEOF
19234
echo "$as_me:$LINENO: checking for inline" >&5
19235
echo $ECHO_N "checking for inline... $ECHO_C" >&6
19236
if test "${ac_cv_c_inline+set}" = set; then
19237
echo $ECHO_N "(cached) $ECHO_C" >&6
19240
for ac_kw in inline __inline__ __inline; do
19241
cat >conftest.$ac_ext <<_ACEOF
19244
cat confdefs.h >>conftest.$ac_ext
19245
cat >>conftest.$ac_ext <<_ACEOF
19246
/* end confdefs.h. */
19247
#ifndef __cplusplus
19249
static $ac_kw foo_t static_foo () {return 0; }
19250
$ac_kw foo_t foo () {return 0; }
19254
rm -f conftest.$ac_objext
19255
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256
(eval $ac_compile) 2>conftest.er1
19258
grep -v '^ *+' conftest.er1 >conftest.err
19260
cat conftest.err >&5
19261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262
(exit $ac_status); } &&
19263
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265
(eval $ac_try) 2>&5
19267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268
(exit $ac_status); }; } &&
19269
{ ac_try='test -s conftest.$ac_objext'
19270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271
(eval $ac_try) 2>&5
19273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274
(exit $ac_status); }; }; then
19275
ac_cv_c_inline=$ac_kw; break
19277
echo "$as_me: failed program was:" >&5
19278
sed 's/^/| /' conftest.$ac_ext >&5
19281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19285
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19286
echo "${ECHO_T}$ac_cv_c_inline" >&6
19289
case $ac_cv_c_inline in
19292
case $ac_cv_c_inline in
19294
*) ac_val=$ac_cv_c_inline;;
19296
cat >>confdefs.h <<_ACEOF
19297
#ifndef __cplusplus
19298
#define inline $ac_val
19307
for ac_header in sys/soundcard.h sys/audioio.h
19309
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19310
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311
echo "$as_me:$LINENO: checking for $ac_header" >&5
19312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314
echo $ECHO_N "(cached) $ECHO_C" >&6
19316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19317
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19319
# Is the header compilable?
19320
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19321
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19322
cat >conftest.$ac_ext <<_ACEOF
19325
cat confdefs.h >>conftest.$ac_ext
19326
cat >>conftest.$ac_ext <<_ACEOF
19327
/* end confdefs.h. */
19328
$ac_includes_default
19329
#include <$ac_header>
19331
rm -f conftest.$ac_objext
19332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333
(eval $ac_compile) 2>conftest.er1
19335
grep -v '^ *+' conftest.er1 >conftest.err
19337
cat conftest.err >&5
19338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339
(exit $ac_status); } &&
19340
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342
(eval $ac_try) 2>&5
19344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345
(exit $ac_status); }; } &&
19346
{ ac_try='test -s conftest.$ac_objext'
19347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348
(eval $ac_try) 2>&5
19350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351
(exit $ac_status); }; }; then
19352
ac_header_compiler=yes
19354
echo "$as_me: failed program was:" >&5
19355
sed 's/^/| /' conftest.$ac_ext >&5
19357
ac_header_compiler=no
19359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19361
echo "${ECHO_T}$ac_header_compiler" >&6
19363
# Is the header present?
19364
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19365
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19366
cat >conftest.$ac_ext <<_ACEOF
19369
cat confdefs.h >>conftest.$ac_ext
19370
cat >>conftest.$ac_ext <<_ACEOF
19371
/* end confdefs.h. */
19372
#include <$ac_header>
19374
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19375
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19377
grep -v '^ *+' conftest.er1 >conftest.err
19379
cat conftest.err >&5
19380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381
(exit $ac_status); } >/dev/null; then
19382
if test -s conftest.err; then
19383
ac_cpp_err=$ac_c_preproc_warn_flag
19384
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19391
if test -z "$ac_cpp_err"; then
19392
ac_header_preproc=yes
19394
echo "$as_me: failed program was:" >&5
19395
sed 's/^/| /' conftest.$ac_ext >&5
19397
ac_header_preproc=no
19399
rm -f conftest.err conftest.$ac_ext
19400
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19401
echo "${ECHO_T}$ac_header_preproc" >&6
19403
# So? What about this header?
19404
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19406
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19408
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19409
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19410
ac_header_preproc=yes
19413
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19414
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19415
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19416
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19417
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19418
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19419
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19420
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19421
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19422
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19423
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19424
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19427
## ------------------------------------------ ##
19428
## Report this to the AC_PACKAGE_NAME lists. ##
19429
## ------------------------------------------ ##
19432
sed "s/^/$as_me: WARNING: /" >&2
19435
echo "$as_me:$LINENO: checking for $ac_header" >&5
19436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19437
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19438
echo $ECHO_N "(cached) $ECHO_C" >&6
19440
eval "$as_ac_Header=\$ac_header_preproc"
19442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19446
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19447
cat >>confdefs.h <<_ACEOF
19448
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19456
# Check whether --enable-ogg or --disable-ogg was given.
19457
if test "${enable_ogg+set}" = set; then
19458
enableval="$enable_ogg"
19459
case "${enableval}" in
19460
yes) useogg=true ;;
19461
no) useogg=false ;;
19462
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ogg" >&5
19463
echo "$as_me: error: bad value ${enableval} for --enable-ogg" >&2;}
19464
{ (exit 1); exit 1; }; } ;;
19470
if test x$useogg = xtrue; then
19474
echo "$as_me:$LINENO: checking for libogg" >&5
19475
echo $ECHO_N "checking for libogg... $ECHO_C" >&6
19477
ac_ogg_includes=NONE ac_ogg_libraries=NONE ac_ogg_bindir=NONE
19481
# Check whether --with-ogg-dir or --without-ogg-dir was given.
19482
if test "${with_ogg_dir+set}" = set; then
19483
withval="$with_ogg_dir"
19484
ac_ogg_includes="$withval"/include
19485
ac_ogg_libraries="$withval"/lib
19490
# Check whether --with-ogg-includes or --without-ogg-includes was given.
19491
if test "${with_ogg_includes+set}" = set; then
19492
withval="$with_ogg_includes"
19494
ac_ogg_includes="$withval"
19501
# Check whether --with-ogg-libraries or --without-ogg-libraries was given.
19502
if test "${with_ogg_libraries+set}" = set; then
19503
withval="$with_ogg_libraries"
19504
ac_ogg_libraries="$withval"
19509
ogg_incdirs="/usr/include /usr/lib/ogg/include /opt/include /usr/local/ogg/include /usr/include/ogg /usr/include /usr/local/include"
19510
if test ! "$ac_ogg_includes" = "NONE"; then
19511
ogg_incdirs="$ac_ogg_includes $ac_ogg_includes/.. $ogg_incdirs"
19515
for i in $ogg_incdirs;
19517
for j in ogg/ogg.h;
19519
if test -r "$i/$j"; then
19526
echo "Ogg includes in $ogg_incdir"
19529
ogg_libdirs="$ac_ogg_libraries /usr/lib/ogg/lib /usr/lib /opt/lib /usr/local/ogg/lib /usr/local/lib /usr/lib/ogg /usr/local/lib"
19530
test -n "$OGGDIR" && ogg_libdirs="$OGGDIR/lib $OGGDIR $ogg_libdirs"
19531
if test ! "$ac_ogg_libraries" = "NONE"; then
19532
ogg_libdirs="$ac_ogg_libraries $ogg_libdirs"
19537
for dir in $ogg_libdirs; do
19538
try="ls -1 $dir/libogg*"
19539
if test=`eval $try 2> /dev/null`; then ogg_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
19542
echo "Ogg libraries in $ogg_libdir"
19544
if test "$ogg_libdir" = "NONE" || test "$ogg_incdir" = "NONE"; then
19548
cat >>confdefs.h <<\_ACEOF
19549
#define HAVE_LIBOGG 1
19554
OGG_INCLUDES="-I$ogg_incdir"
19555
OGG_LDFLAGS="-L$ogg_libdir"
19565
if test "$have_libogg" = yes; then
19573
echo "$as_me:$LINENO: checking for sin in -lm" >&5
19574
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19575
if test "${ac_cv_lib_m_sin+set}" = set; then
19576
echo $ECHO_N "(cached) $ECHO_C" >&6
19578
ac_check_lib_save_LIBS=$LIBS
19580
cat >conftest.$ac_ext <<_ACEOF
19583
cat confdefs.h >>conftest.$ac_ext
19584
cat >>conftest.$ac_ext <<_ACEOF
19585
/* end confdefs.h. */
19587
/* Override any gcc2 internal prototype to avoid an error. */
19591
/* We use char because int might match the return type of a gcc2
19592
builtin and then its argument prototype would still apply. */
19602
rm -f conftest.$ac_objext conftest$ac_exeext
19603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19604
(eval $ac_link) 2>conftest.er1
19606
grep -v '^ *+' conftest.er1 >conftest.err
19608
cat conftest.err >&5
19609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610
(exit $ac_status); } &&
19611
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613
(eval $ac_try) 2>&5
19615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616
(exit $ac_status); }; } &&
19617
{ ac_try='test -s conftest$ac_exeext'
19618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619
(eval $ac_try) 2>&5
19621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622
(exit $ac_status); }; }; then
19623
ac_cv_lib_m_sin=yes
19625
echo "$as_me: failed program was:" >&5
19626
sed 's/^/| /' conftest.$ac_ext >&5
19630
rm -f conftest.err conftest.$ac_objext \
19631
conftest$ac_exeext conftest.$ac_ext
19632
LIBS=$ac_check_lib_save_LIBS
19634
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19635
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19636
if test $ac_cv_lib_m_sin = yes; then
19637
cat >>confdefs.h <<_ACEOF
19638
#define HAVE_LIBM 1
19646
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
19647
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
19648
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
19649
echo $ECHO_N "(cached) $ECHO_C" >&6
19651
ac_check_lib_save_LIBS=$LIBS
19652
LIBS="-lgnugetopt $LIBS"
19653
cat >conftest.$ac_ext <<_ACEOF
19656
cat confdefs.h >>conftest.$ac_ext
19657
cat >>conftest.$ac_ext <<_ACEOF
19658
/* end confdefs.h. */
19660
/* Override any gcc2 internal prototype to avoid an error. */
19664
/* We use char because int might match the return type of a gcc2
19665
builtin and then its argument prototype would still apply. */
19666
char getopt_long ();
19675
rm -f conftest.$ac_objext conftest$ac_exeext
19676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677
(eval $ac_link) 2>conftest.er1
19679
grep -v '^ *+' conftest.er1 >conftest.err
19681
cat conftest.err >&5
19682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
(exit $ac_status); } &&
19684
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
(eval $ac_try) 2>&5
19688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
(exit $ac_status); }; } &&
19690
{ ac_try='test -s conftest$ac_exeext'
19691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692
(eval $ac_try) 2>&5
19694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
(exit $ac_status); }; }; then
19696
ac_cv_lib_gnugetopt_getopt_long=yes
19698
echo "$as_me: failed program was:" >&5
19699
sed 's/^/| /' conftest.$ac_ext >&5
19701
ac_cv_lib_gnugetopt_getopt_long=no
19703
rm -f conftest.err conftest.$ac_objext \
19704
conftest$ac_exeext conftest.$ac_ext
19705
LIBS=$ac_check_lib_save_LIBS
19707
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
19708
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
19709
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
19710
cat >>confdefs.h <<_ACEOF
19711
#define HAVE_LIBGNUGETOPT 1
19714
LIBS="-lgnugetopt $LIBS"
19719
cat >>confdefs.h <<_ACEOF
19720
#define VERSION "${VERSION}"
19724
# Check whether --enable-sse or --disable-sse was given.
19725
if test "${enable_sse+set}" = set; then
19726
enableval="$enable_sse"
19727
if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19732
# Check whether --enable-fixed-point or --disable-fixed-point was given.
19733
if test "${enable_fixed_point+set}" = set; then
19734
enableval="$enable_fixed_point"
19735
if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19736
#define FIXED_POINT 1
19740
# Check whether --enable-arm-asm or --disable-arm-asm was given.
19741
if test "${enable_arm_asm+set}" = set; then
19742
enableval="$enable_arm_asm"
19743
if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19748
# Check whether --enable-fixed-point-debug or --disable-fixed-point-debug was given.
19749
if test "${enable_fixed_point_debug+set}" = set; then
19750
enableval="$enable_fixed_point_debug"
19751
if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19752
#define FIXED_DEBUG 1
19757
# Check whether --enable-epic-48k or --disable-epic-48k was given.
19758
if test "${enable_epic_48k+set}" = set; then
19759
enableval="$enable_epic_48k"
19760
if test "$enableval" = yes; then cat >>confdefs.h <<\_ACEOF
19767
ac_config_files="$ac_config_files Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile win32/speexdec/Makefile"
19768
cat >confcache <<\_ACEOF
19769
# This file is a shell script that caches the results of configure
19770
# tests run on this system so they can be shared between configure
19771
# scripts and configure runs, see configure's option --config-cache.
19772
# It is not useful on other systems. If it contains results you don't
19773
# want to keep, you may remove or edit it.
19775
# config.status only pays attention to the cache file if you give it
19776
# the --recheck option to rerun configure.
19778
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19779
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19780
# following values.
19784
# The following way of writing the cache mishandles newlines in values,
19785
# but we know of no workaround that is simple, portable, and efficient.
19786
# So, don't put newlines in cache variables' values.
19787
# Ultrix sh set writes to stderr and can't be redirected directly,
19788
# and sets the high bit in the cache file unless we assign to the vars.
19791
case `(ac_space=' '; set | grep ac_space) 2>&1` in
19793
# `set' does not quote correctly, so add quotes (double-quote
19794
# substitution turns \\\\ into \\, and sed turns \\ into \).
19797
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19800
# `set' quotes correctly as required by POSIX, so do not add quotes.
19802
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19809
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19811
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19813
if diff $cache_file confcache >/dev/null 2>&1; then :; else
19814
if test -w $cache_file; then
19815
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19816
cat confcache >$cache_file
19818
echo "not updating unwritable cache $cache_file"
19823
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19824
# Let make expand exec_prefix.
19825
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19827
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19828
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19829
# trailing colons and then remove the whole line if VPATH becomes empty
19830
# (actually we leave an empty line to preserve line numbers).
19831
if test "x$srcdir" = x.; then
19832
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19833
s/:*\$(srcdir):*/:/;
19834
s/:*\${srcdir}:*/:/;
19836
s/^\([^=]*=[ ]*\):*/\1/;
19842
# Transform confdefs.h into DEFS.
19843
# Protect against shell expansion while executing Makefile rules.
19844
# Protect against Makefile macro expansion.
19846
# If the first sed substitution is executed (which looks for macros that
19847
# take arguments), then we branch to the quote section. Otherwise,
19848
# look for a macro that doesn't take arguments.
19849
cat >confdef2opt.sed <<\_ACEOF
19852
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19854
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19858
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19864
# We use echo to avoid assuming a particular line-breaking character.
19865
# The extra dot is to prevent the shell from consuming trailing
19866
# line-breaks from the sub-command output. A line-break within
19867
# single-quotes doesn't work because, if this script is created in a
19868
# platform that uses two characters for line-breaks (e.g., DOS), tr
19870
ac_LF_and_DOT=`echo; echo .`
19871
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19872
rm -f confdef2opt.sed
19877
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19878
# 1. Remove the extension, and $U if already installed.
19879
ac_i=`echo "$ac_i" |
19880
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19882
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19883
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19885
LIBOBJS=$ac_libobjs
19887
LTLIBOBJS=$ac_ltlibobjs
19890
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19891
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19892
Usually this means the macro was only invoked conditionally." >&5
19893
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19894
Usually this means the macro was only invoked conditionally." >&2;}
19895
{ (exit 1); exit 1; }; }
19897
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19898
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19899
Usually this means the macro was only invoked conditionally." >&5
19900
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19901
Usually this means the macro was only invoked conditionally." >&2;}
19902
{ (exit 1); exit 1; }; }
19905
: ${CONFIG_STATUS=./config.status}
19906
ac_clean_files_save=$ac_clean_files
19907
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19908
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19909
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19910
cat >$CONFIG_STATUS <<_ACEOF
19912
# Generated by $as_me.
19913
# Run this file to recreate the current configuration.
19914
# Compiler output produced by configure, useful for debugging
19915
# configure, is in config.log if it exists.
19918
ac_cs_recheck=false
19920
SHELL=\${CONFIG_SHELL-$SHELL}
19923
cat >>$CONFIG_STATUS <<\_ACEOF
19924
## --------------------- ##
19925
## M4sh Initialization. ##
19926
## --------------------- ##
19928
# Be Bourne compatible
19929
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19932
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19933
# is contrary to our usage. Disable this feature.
19934
alias -g '${1+"$@"}'='"$@"'
19935
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19938
DUALCASE=1; export DUALCASE # for MKS sh
19940
# Support unset when possible.
19941
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19948
# Work around bugs in pre-3.0 UWIN ksh.
19949
$as_unset ENV MAIL MAILPATH
19956
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19957
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19958
LC_TELEPHONE LC_TIME
19960
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19961
eval $as_var=C; export $as_var
19967
# Required to use basename.
19968
if expr a : '\(a\)' >/dev/null 2>&1; then
19974
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19975
as_basename=basename
19981
# Name of the executable.
19982
as_me=`$as_basename "$0" ||
19983
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19984
X"$0" : 'X\(//\)$' \| \
19985
X"$0" : 'X\(/\)$' \| \
19986
. : '\(.\)' 2>/dev/null ||
19988
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19989
/^X\/\(\/\/\)$/{ s//\1/; q; }
19990
/^X\/\(\/\).*/{ s//\1/; q; }
19994
# PATH needs CR, and LINENO needs CR and PATH.
19995
# Avoid depending upon Character Ranges.
19996
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19997
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19998
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19999
as_cr_digits='0123456789'
20000
as_cr_alnum=$as_cr_Letters$as_cr_digits
20002
# The user is always right.
20003
if test "${PATH_SEPARATOR+set}" != set; then
20004
echo "#! /bin/sh" >conf$$.sh
20005
echo "exit 0" >>conf$$.sh
20007
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20016
as_lineno_1=$LINENO
20017
as_lineno_2=$LINENO
20018
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20019
test "x$as_lineno_1" != "x$as_lineno_2" &&
20020
test "x$as_lineno_3" = "x$as_lineno_2" || {
20021
# Find who we are. Look in the path if we contain no path at all
20024
*[\\/]* ) as_myself=$0 ;;
20025
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20026
for as_dir in $PATH
20029
test -z "$as_dir" && as_dir=.
20030
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20035
# We did not find ourselves, most probably we were run as `sh COMMAND'
20036
# in which case we are not to be found in the path.
20037
if test "x$as_myself" = x; then
20040
if test ! -f "$as_myself"; then
20041
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20042
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20043
{ (exit 1); exit 1; }; }
20045
case $CONFIG_SHELL in
20047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20048
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20051
test -z "$as_dir" && as_dir=.
20052
for as_base in sh bash ksh sh5; do
20055
if ("$as_dir/$as_base" -c '
20056
as_lineno_1=$LINENO
20057
as_lineno_2=$LINENO
20058
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20059
test "x$as_lineno_1" != "x$as_lineno_2" &&
20060
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20061
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20062
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20063
CONFIG_SHELL=$as_dir/$as_base
20064
export CONFIG_SHELL
20065
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20073
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20074
# uniformly replaced by the line number. The first 'sed' inserts a
20075
# line-number line before each line; the second 'sed' does the real
20076
# work. The second script uses 'N' to pair each line-number line
20077
# with the numbered line, and appends trailing '-' during
20078
# substitution so that $LINENO is not a special case at line end.
20079
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20080
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20081
sed '=' <$as_myself |
20086
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20089
s,^['$as_cr_digits']*\n,,
20090
' >$as_me.lineno &&
20091
chmod +x $as_me.lineno ||
20092
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20093
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20094
{ (exit 1); exit 1; }; }
20096
# Don't try to exec as it changes $[0], causing all sort of problems
20097
# (the dirname of $[0] is not the place where we might find the
20098
# original and so on. Autoconf is especially sensible to this).
20100
# Exit status is that of the last command.
20105
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20106
*c*,-n*) ECHO_N= ECHO_C='
20108
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20109
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20112
if expr a : '\(a\)' >/dev/null 2>&1; then
20118
rm -f conf$$ conf$$.exe conf$$.file
20120
if ln -s conf$$.file conf$$ 2>/dev/null; then
20121
# We could just check for DJGPP; but this test a) works b) is more generic
20122
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20123
if test -f conf$$.exe; then
20124
# Don't use ln at all; we don't have any links
20129
elif ln conf$$.file conf$$ 2>/dev/null; then
20134
rm -f conf$$ conf$$.exe conf$$.file
20136
if mkdir -p . 2>/dev/null; then
20139
test -d ./-p && rmdir ./-p
20143
as_executable_p="test -f"
20145
# Sed expression to map a string onto a valid CPP name.
20146
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20148
# Sed expression to map a string onto a valid variable name.
20149
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20153
# We need space, tab and new line, in precisely that order.
20163
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20164
# report actual input values of CONFIG_FILES etc. instead of their
20165
# values after options handling. Logging --version etc. is OK.
20169
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20170
## Running $as_me. ##
20175
This file was extended by $as_me, which was
20176
generated by GNU Autoconf 2.59. Invocation command line was
20178
CONFIG_FILES = $CONFIG_FILES
20179
CONFIG_HEADERS = $CONFIG_HEADERS
20180
CONFIG_LINKS = $CONFIG_LINKS
20181
CONFIG_COMMANDS = $CONFIG_COMMANDS
20185
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20189
# Files that config.status was made for.
20190
if test -n "$ac_config_files"; then
20191
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20194
if test -n "$ac_config_headers"; then
20195
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20198
if test -n "$ac_config_links"; then
20199
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20202
if test -n "$ac_config_commands"; then
20203
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20206
cat >>$CONFIG_STATUS <<\_ACEOF
20209
\`$as_me' instantiates files from templates according to the
20210
current configuration.
20212
Usage: $0 [OPTIONS] [FILE]...
20214
-h, --help print this help, then exit
20215
-V, --version print version number, then exit
20216
-q, --quiet do not print progress messages
20217
-d, --debug don't remove temporary files
20218
--recheck update $as_me by reconfiguring in the same conditions
20219
--file=FILE[:TEMPLATE]
20220
instantiate the configuration file FILE
20222
Configuration files:
20225
Configuration commands:
20228
Report bugs to <bug-autoconf@gnu.org>."
20231
cat >>$CONFIG_STATUS <<_ACEOF
20234
configured by $0, generated by GNU Autoconf 2.59,
20235
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20237
Copyright (C) 2003 Free Software Foundation, Inc.
20238
This config.status script is free software; the Free Software Foundation
20239
gives unlimited permission to copy, distribute and modify it."
20244
cat >>$CONFIG_STATUS <<\_ACEOF
20245
# If no file are specified by the user, then we need to provide default
20246
# value. By we need to know if files were specified by the user.
20252
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20253
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20261
*) # This is not an option, so the user has probably given explicit
20264
ac_need_defaults=false;;
20268
# Handling of the options.
20270
cat >>$CONFIG_STATUS <<\_ACEOF
20271
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20273
--version | --vers* | -V )
20274
echo "$ac_cs_version"; exit 0 ;;
20276
# Conflict between --help and --header
20277
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20278
Try \`$0 --help' for more information." >&5
20279
echo "$as_me: error: ambiguous option: $1
20280
Try \`$0 --help' for more information." >&2;}
20281
{ (exit 1); exit 1; }; };;
20282
--help | --hel | -h )
20283
echo "$ac_cs_usage"; exit 0 ;;
20284
--debug | --d* | -d )
20286
--file | --fil | --fi | --f )
20288
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20289
ac_need_defaults=false;;
20290
--header | --heade | --head | --hea )
20292
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20293
ac_need_defaults=false;;
20294
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20295
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20298
# This is an error.
20299
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20300
Try \`$0 --help' for more information." >&5
20301
echo "$as_me: error: unrecognized option: $1
20302
Try \`$0 --help' for more information." >&2;}
20303
{ (exit 1); exit 1; }; } ;;
20305
*) ac_config_targets="$ac_config_targets $1" ;;
20311
ac_configure_extra_args=
20313
if $ac_cs_silent; then
20315
ac_configure_extra_args="$ac_configure_extra_args --silent"
20319
cat >>$CONFIG_STATUS <<_ACEOF
20320
if \$ac_cs_recheck; then
20321
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20322
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20327
cat >>$CONFIG_STATUS <<_ACEOF
20329
# INIT-COMMANDS section.
20332
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20338
cat >>$CONFIG_STATUS <<\_ACEOF
20339
for ac_config_target in $ac_config_targets
20341
case "$ac_config_target" in
20342
# Handling of arguments.
20343
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20344
"libspeex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libspeex/Makefile" ;;
20345
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20346
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20347
"Speex.spec" ) CONFIG_FILES="$CONFIG_FILES Speex.spec" ;;
20348
"win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20349
"win32/libspeex/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/libspeex/Makefile" ;;
20350
"win32/speexenc/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/speexenc/Makefile" ;;
20351
"win32/speexdec/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/speexdec/Makefile" ;;
20352
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20353
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20354
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20355
{ (exit 1); exit 1; }; };;
20359
# If the user did not use the arguments to specify the items to instantiate,
20360
# then the envvar interface is used. Set only those that are not.
20361
# We use the long form for the default assignment because of an extremely
20362
# bizarre bug on SunOS 4.1.3.
20363
if $ac_need_defaults; then
20364
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20365
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20368
# Have a temporary directory for convenience. Make it in the build tree
20369
# simply because there is no reason to put it here, and in addition,
20370
# creating and moving files from /tmp can sometimes cause problems.
20371
# Create a temporary directory, and hook for its removal unless debugging.
20374
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20375
trap '{ (exit 1); exit 1; }' 1 2 13 15
20378
# Create a (secure) tmp directory for tmp files.
20381
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20382
test -n "$tmp" && test -d "$tmp"
20385
tmp=./confstat$$-$RANDOM
20386
(umask 077 && mkdir $tmp)
20389
echo "$me: cannot create a temporary directory in ." >&2
20390
{ (exit 1); exit 1; }
20395
cat >>$CONFIG_STATUS <<_ACEOF
20398
# CONFIG_FILES section.
20401
# No need to generate the scripts if there are no CONFIG_FILES.
20402
# This happens for instance when ./config.status config.h
20403
if test -n "\$CONFIG_FILES"; then
20404
# Protect against being on the right side of a sed subst in config.status.
20405
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20406
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20407
s,@SHELL@,$SHELL,;t t
20408
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20409
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20410
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20411
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20412
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20413
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20414
s,@exec_prefix@,$exec_prefix,;t t
20415
s,@prefix@,$prefix,;t t
20416
s,@program_transform_name@,$program_transform_name,;t t
20417
s,@bindir@,$bindir,;t t
20418
s,@sbindir@,$sbindir,;t t
20419
s,@libexecdir@,$libexecdir,;t t
20420
s,@datadir@,$datadir,;t t
20421
s,@sysconfdir@,$sysconfdir,;t t
20422
s,@sharedstatedir@,$sharedstatedir,;t t
20423
s,@localstatedir@,$localstatedir,;t t
20424
s,@libdir@,$libdir,;t t
20425
s,@includedir@,$includedir,;t t
20426
s,@oldincludedir@,$oldincludedir,;t t
20427
s,@infodir@,$infodir,;t t
20428
s,@mandir@,$mandir,;t t
20429
s,@build_alias@,$build_alias,;t t
20430
s,@host_alias@,$host_alias,;t t
20431
s,@target_alias@,$target_alias,;t t
20432
s,@DEFS@,$DEFS,;t t
20433
s,@ECHO_C@,$ECHO_C,;t t
20434
s,@ECHO_N@,$ECHO_N,;t t
20435
s,@ECHO_T@,$ECHO_T,;t t
20436
s,@LIBS@,$LIBS,;t t
20437
s,@SPEEX_LT_CURRENT@,$SPEEX_LT_CURRENT,;t t
20438
s,@SPEEX_LT_REVISION@,$SPEEX_LT_REVISION,;t t
20439
s,@SPEEX_LT_AGE@,$SPEEX_LT_AGE,;t t
20440
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20441
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20442
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20443
s,@PACKAGE@,$PACKAGE,;t t
20444
s,@VERSION@,$VERSION,;t t
20445
s,@ACLOCAL@,$ACLOCAL,;t t
20446
s,@AUTOCONF@,$AUTOCONF,;t t
20447
s,@AUTOMAKE@,$AUTOMAKE,;t t
20448
s,@AUTOHEADER@,$AUTOHEADER,;t t
20449
s,@MAKEINFO@,$MAKEINFO,;t t
20450
s,@AMTAR@,$AMTAR,;t t
20451
s,@install_sh@,$install_sh,;t t
20452
s,@STRIP@,$STRIP,;t t
20453
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20454
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20456
s,@SET_MAKE@,$SET_MAKE,;t t
20457
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20458
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20459
s,@MAINT@,$MAINT,;t t
20460
s,@build@,$build,;t t
20461
s,@build_cpu@,$build_cpu,;t t
20462
s,@build_vendor@,$build_vendor,;t t
20463
s,@build_os@,$build_os,;t t
20464
s,@host@,$host,;t t
20465
s,@host_cpu@,$host_cpu,;t t
20466
s,@host_vendor@,$host_vendor,;t t
20467
s,@host_os@,$host_os,;t t
20469
s,@CFLAGS@,$CFLAGS,;t t
20470
s,@LDFLAGS@,$LDFLAGS,;t t
20471
s,@CPPFLAGS@,$CPPFLAGS,;t t
20472
s,@ac_ct_CC@,$ac_ct_CC,;t t
20473
s,@EXEEXT@,$EXEEXT,;t t
20474
s,@OBJEXT@,$OBJEXT,;t t
20475
s,@DEPDIR@,$DEPDIR,;t t
20476
s,@am__include@,$am__include,;t t
20477
s,@am__quote@,$am__quote,;t t
20478
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20479
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20480
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20481
s,@CCDEPMODE@,$CCDEPMODE,;t t
20482
s,@EGREP@,$EGREP,;t t
20483
s,@LN_S@,$LN_S,;t t
20484
s,@ECHO@,$ECHO,;t t
20486
s,@ac_ct_AR@,$ac_ct_AR,;t t
20487
s,@RANLIB@,$RANLIB,;t t
20488
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20491
s,@CXXFLAGS@,$CXXFLAGS,;t t
20492
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20493
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20494
s,@CXXCPP@,$CXXCPP,;t t
20496
s,@FFLAGS@,$FFLAGS,;t t
20497
s,@ac_ct_F77@,$ac_ct_F77,;t t
20498
s,@LIBTOOL@,$LIBTOOL,;t t
20499
s,@OGG_LIBS@,$OGG_LIBS,;t t
20500
s,@OGG_INCLUDES@,$OGG_INCLUDES,;t t
20501
s,@OGG_LDFLAGS@,$OGG_LDFLAGS,;t t
20503
s,@LIBOBJS@,$LIBOBJS,;t t
20504
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20509
cat >>$CONFIG_STATUS <<\_ACEOF
20510
# Split the substitutions into bite-sized pieces for seds with
20511
# small command number limits, like on Digital OSF/1 and HP-UX.
20512
ac_max_sed_lines=48
20513
ac_sed_frag=1 # Number of current file.
20514
ac_beg=1 # First line for current file.
20515
ac_end=$ac_max_sed_lines # Line after last line for current file.
20518
while $ac_more_lines; do
20519
if test $ac_beg -gt 1; then
20520
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20522
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20524
if test ! -s $tmp/subs.frag; then
20525
ac_more_lines=false
20527
# The purpose of the label and of the branching condition is to
20528
# speed up the sed processing (if there are no `@' at all, there
20529
# is no need to browse any of the substitutions).
20530
# These are the two extra sed commands mentioned above.
20532
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20533
if test -z "$ac_sed_cmds"; then
20534
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20536
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20538
ac_sed_frag=`expr $ac_sed_frag + 1`
20540
ac_end=`expr $ac_end + $ac_max_sed_lines`
20543
if test -z "$ac_sed_cmds"; then
20546
fi # test -n "$CONFIG_FILES"
20549
cat >>$CONFIG_STATUS <<\_ACEOF
20550
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20551
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20553
- | *:- | *:-:* ) # input from stdin
20555
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20556
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20557
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20558
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20559
* ) ac_file_in=$ac_file.in ;;
20562
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20563
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20564
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20565
X"$ac_file" : 'X\(//\)[^/]' \| \
20566
X"$ac_file" : 'X\(//\)$' \| \
20567
X"$ac_file" : 'X\(/\)' \| \
20568
. : '\(.\)' 2>/dev/null ||
20570
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20571
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20572
/^X\(\/\/\)$/{ s//\1/; q; }
20573
/^X\(\/\).*/{ s//\1/; q; }
20575
{ if $as_mkdir_p; then
20580
while test ! -d "$as_dir"; do
20581
as_dirs="$as_dir $as_dirs"
20582
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20583
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20584
X"$as_dir" : 'X\(//\)[^/]' \| \
20585
X"$as_dir" : 'X\(//\)$' \| \
20586
X"$as_dir" : 'X\(/\)' \| \
20587
. : '\(.\)' 2>/dev/null ||
20589
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20590
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20591
/^X\(\/\/\)$/{ s//\1/; q; }
20592
/^X\(\/\).*/{ s//\1/; q; }
20595
test ! -n "$as_dirs" || mkdir $as_dirs
20596
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20597
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20598
{ (exit 1); exit 1; }; }; }
20602
if test "$ac_dir" != .; then
20603
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20604
# A "../" for each directory in $ac_dir_suffix.
20605
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20607
ac_dir_suffix= ac_top_builddir=
20611
.) # No --srcdir option. We are building in place.
20613
if test -z "$ac_top_builddir"; then
20616
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20618
[\\/]* | ?:[\\/]* ) # Absolute path.
20619
ac_srcdir=$srcdir$ac_dir_suffix;
20620
ac_top_srcdir=$srcdir ;;
20621
*) # Relative path.
20622
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20623
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20626
# Do not use `cd foo && pwd` to compute absolute paths, because
20627
# the directories may not exist.
20629
.) ac_abs_builddir="$ac_dir";;
20632
.) ac_abs_builddir=`pwd`;;
20633
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20634
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20637
case $ac_abs_builddir in
20638
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20640
case ${ac_top_builddir}. in
20641
.) ac_abs_top_builddir=$ac_abs_builddir;;
20642
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20643
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20646
case $ac_abs_builddir in
20647
.) ac_abs_srcdir=$ac_srcdir;;
20650
.) ac_abs_srcdir=$ac_abs_builddir;;
20651
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20652
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20655
case $ac_abs_builddir in
20656
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20658
case $ac_top_srcdir in
20659
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20660
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20661
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20667
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20668
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20671
# Let's still pretend it is `configure' which instantiates (i.e., don't
20672
# use $as_me), people would be surprised to read:
20673
# /* config.h. Generated by config.status. */
20674
if test x"$ac_file" = x-; then
20677
configure_input="$ac_file. "
20679
configure_input=$configure_input"Generated from `echo $ac_file_in |
20680
sed 's,.*/,,'` by configure."
20682
# First look for the input files in the build tree, otherwise in the
20684
ac_file_inputs=`IFS=:
20685
for f in $ac_file_in; do
20687
-) echo $tmp/stdin ;;
20689
# Absolute (can't be DOS-style, as IFS=:)
20690
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20691
echo "$as_me: error: cannot find input file: $f" >&2;}
20692
{ (exit 1); exit 1; }; }
20695
if test -f "$f"; then
20698
elif test -f "$srcdir/$f"; then
20703
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20704
echo "$as_me: error: cannot find input file: $f" >&2;}
20705
{ (exit 1); exit 1; }; }
20708
done` || { (exit 1); exit 1; }
20710
if test x"$ac_file" != x-; then
20711
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20712
echo "$as_me: creating $ac_file" >&6;}
20716
cat >>$CONFIG_STATUS <<_ACEOF
20720
cat >>$CONFIG_STATUS <<\_ACEOF
20722
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20723
s,@configure_input@,$configure_input,;t t
20724
s,@srcdir@,$ac_srcdir,;t t
20725
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20726
s,@top_srcdir@,$ac_top_srcdir,;t t
20727
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20728
s,@builddir@,$ac_builddir,;t t
20729
s,@abs_builddir@,$ac_abs_builddir,;t t
20730
s,@top_builddir@,$ac_top_builddir,;t t
20731
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20732
s,@INSTALL@,$ac_INSTALL,;t t
20733
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20735
if test x"$ac_file" != x-; then
20736
mv $tmp/out $ac_file
20744
cat >>$CONFIG_STATUS <<\_ACEOF
20747
# CONFIG_COMMANDS section.
20749
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20750
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20751
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20752
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20753
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754
X"$ac_dest" : 'X\(//\)[^/]' \| \
20755
X"$ac_dest" : 'X\(//\)$' \| \
20756
X"$ac_dest" : 'X\(/\)' \| \
20757
. : '\(.\)' 2>/dev/null ||
20759
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761
/^X\(\/\/\)$/{ s//\1/; q; }
20762
/^X\(\/\).*/{ s//\1/; q; }
20764
{ if $as_mkdir_p; then
20769
while test ! -d "$as_dir"; do
20770
as_dirs="$as_dir $as_dirs"
20771
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20772
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20773
X"$as_dir" : 'X\(//\)[^/]' \| \
20774
X"$as_dir" : 'X\(//\)$' \| \
20775
X"$as_dir" : 'X\(/\)' \| \
20776
. : '\(.\)' 2>/dev/null ||
20778
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20779
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20780
/^X\(\/\/\)$/{ s//\1/; q; }
20781
/^X\(\/\).*/{ s//\1/; q; }
20784
test ! -n "$as_dirs" || mkdir $as_dirs
20785
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20786
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20787
{ (exit 1); exit 1; }; }; }
20791
if test "$ac_dir" != .; then
20792
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20793
# A "../" for each directory in $ac_dir_suffix.
20794
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20796
ac_dir_suffix= ac_top_builddir=
20800
.) # No --srcdir option. We are building in place.
20802
if test -z "$ac_top_builddir"; then
20805
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20807
[\\/]* | ?:[\\/]* ) # Absolute path.
20808
ac_srcdir=$srcdir$ac_dir_suffix;
20809
ac_top_srcdir=$srcdir ;;
20810
*) # Relative path.
20811
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20812
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20815
# Do not use `cd foo && pwd` to compute absolute paths, because
20816
# the directories may not exist.
20818
.) ac_abs_builddir="$ac_dir";;
20821
.) ac_abs_builddir=`pwd`;;
20822
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20823
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20826
case $ac_abs_builddir in
20827
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20829
case ${ac_top_builddir}. in
20830
.) ac_abs_top_builddir=$ac_abs_builddir;;
20831
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20832
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20835
case $ac_abs_builddir in
20836
.) ac_abs_srcdir=$ac_srcdir;;
20839
.) ac_abs_srcdir=$ac_abs_builddir;;
20840
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20841
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20844
case $ac_abs_builddir in
20845
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20847
case $ac_top_srcdir in
20848
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20849
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20850
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20855
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20856
echo "$as_me: executing $ac_dest commands" >&6;}
20858
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20859
# Strip MF so we end up with the name of the file.
20860
mf=`echo "$mf" | sed -e 's/:.*$//'`
20861
# Check whether this is an Automake generated Makefile or not.
20862
# We used to match only the files named `Makefile.in', but
20863
# some people rename them; so instead we look at the file content.
20864
# Grep'ing the first line is not enough: some people post-process
20865
# each Makefile.in and add a new line on top of each file to say so.
20866
# So let's grep whole file.
20867
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20868
dirpart=`(dirname "$mf") 2>/dev/null ||
20869
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20870
X"$mf" : 'X\(//\)[^/]' \| \
20871
X"$mf" : 'X\(//\)$' \| \
20872
X"$mf" : 'X\(/\)' \| \
20873
. : '\(.\)' 2>/dev/null ||
20875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20876
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20877
/^X\(\/\/\)$/{ s//\1/; q; }
20878
/^X\(\/\).*/{ s//\1/; q; }
20883
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20884
# Extract the definition of DEP_FILES from the Makefile without
20886
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20887
test -z "$DEPDIR" && continue
20888
# When using ansi2knr, U may be empty or an underscore; expand it
20889
U=`sed -n -e '/^U = / s///p' < "$mf"`
20890
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20891
# We invoke sed twice because it is the simplest approach to
20892
# changing $(DEPDIR) to its actual value in the expansion.
20893
for file in `sed -n -e '
20894
/^DEP_FILES = .*\\\\$/ {
20903
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20904
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20905
# Make sure the directory exists.
20906
test -f "$dirpart/$file" && continue
20907
fdir=`(dirname "$file") 2>/dev/null ||
20908
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20909
X"$file" : 'X\(//\)[^/]' \| \
20910
X"$file" : 'X\(//\)$' \| \
20911
X"$file" : 'X\(/\)' \| \
20912
. : '\(.\)' 2>/dev/null ||
20914
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20915
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20916
/^X\(\/\/\)$/{ s//\1/; q; }
20917
/^X\(\/\).*/{ s//\1/; q; }
20919
{ if $as_mkdir_p; then
20920
mkdir -p $dirpart/$fdir
20922
as_dir=$dirpart/$fdir
20924
while test ! -d "$as_dir"; do
20925
as_dirs="$as_dir $as_dirs"
20926
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20927
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20928
X"$as_dir" : 'X\(//\)[^/]' \| \
20929
X"$as_dir" : 'X\(//\)$' \| \
20930
X"$as_dir" : 'X\(/\)' \| \
20931
. : '\(.\)' 2>/dev/null ||
20933
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20934
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20935
/^X\(\/\/\)$/{ s//\1/; q; }
20936
/^X\(\/\).*/{ s//\1/; q; }
20939
test ! -n "$as_dirs" || mkdir $as_dirs
20940
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20941
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20942
{ (exit 1); exit 1; }; }; }
20944
# echo "creating $dirpart/$file"
20945
echo '# dummy' > "$dirpart/$file"
20953
cat >>$CONFIG_STATUS <<\_ACEOF
20955
{ (exit 0); exit 0; }
20957
chmod +x $CONFIG_STATUS
20958
ac_clean_files=$ac_clean_files_save
20961
# configure is writing to config.log, and then calls config.status.
20962
# config.status does its own redirection, appending to config.log.
20963
# Unfortunately, on DOS this fails, as config.log is still kept open
20964
# by configure, so config.status won't be able to write to it; its
20965
# output is simply discarded. So we exec the FD to /dev/null,
20966
# effectively closing config.log, so it can be properly (re)opened and
20967
# appended to by config.status. When coming back to configure, we
20968
# need to make the FD available again.
20969
if test "$no_create" != yes; then
20971
ac_config_status_args=
20972
test "$silent" = yes &&
20973
ac_config_status_args="$ac_config_status_args --quiet"
20975
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20977
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20978
# would make configure fail if this is the last instruction.
20979
$ac_cs_success || { (exit 1); exit 1; }
20983
if test "x$src" = "x"; then
20984
echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
20985
echo "You can download libogg from http://www.ogg.org/ogg/index.html"
20988
echo "Type \"make; make install\" to compile and install Speex";