2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/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 -n "`(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
224
as_executable_p="test -f"
226
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
# We need space, tab and new line, in precisely that order.
244
# Check that we are running under the correct shell.
245
SHELL=${CONFIG_SHELL-/bin/sh}
249
# Remove one level of quotation (which was required for Make).
250
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255
if test "X$1" = X--no-reexec; then
256
# Discard the --no-reexec flag, and continue.
258
elif test "X$1" = X--fallback-echo; then
259
# Avoid inline document here, it may be left over
261
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262
# Yippee, $echo works!
265
# Restart under the correct shell.
266
exec $SHELL "$0" --no-reexec ${1+"$@"}
269
if test "X$1" = X--fallback-echo; then
270
# used as fallback echo
278
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
if test -z "$ECHO"; then
283
if test "X${echo_test_string+set}" != Xset; then
284
# find a string as large as possible, as long as the shell can cope with it
285
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288
echo_test_string="`eval $cmd`" &&
289
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
296
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298
test "X$echo_testing_string" = "X$echo_test_string"; then
301
# The Solaris, AIX, and Digital Unix default echo programs unquote
302
# backslashes. This makes it impossible to quote backslashes using
303
# echo "$something" | sed 's/\\/\\\\/g'
305
# So, first we look for a working echo in the user's PATH.
307
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
for dir in $PATH /usr/ucb; do
310
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
test "X$echo_testing_string" = "X$echo_test_string"; then
320
if test "X$echo" = Xecho; then
321
# We didn't find a better echo, so look for alternatives.
322
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324
test "X$echo_testing_string" = "X$echo_test_string"; then
325
# This shell has a builtin print -r that does the trick.
327
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328
test "X$CONFIG_SHELL" != X/bin/ksh; then
329
# If we have ksh, try running configure again with it.
330
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
export ORIGINAL_CONFIG_SHELL
332
CONFIG_SHELL=/bin/ksh
334
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340
test "X$echo_testing_string" = "X$echo_test_string"; then
343
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
test "X$echo_testing_string" = 'X\t' &&
345
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
test "X$echo_testing_string" = "X$echo_test_string"; then
347
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349
SHELL="$CONFIG_SHELL"
351
echo="$CONFIG_SHELL $0 --fallback-echo"
352
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
test "X$echo_testing_string" = 'X\t' &&
354
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
test "X$echo_testing_string" = "X$echo_test_string"; then
356
echo="$CONFIG_SHELL $0 --fallback-echo"
358
# maybe with a smaller string...
361
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
369
if test "$prev" != 'sed 50q "$0"'; then
370
echo_test_string=`eval $prev`
371
export echo_test_string
372
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374
# Oops. We lost completely, so just stick with echo.
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
386
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
395
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399
# so uname gets run too.
400
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
ac_default_prefix=/usr/local
408
ac_config_libobj_dir=.
413
SHELL=${CONFIG_SHELL-/bin/sh}
415
# Maximum number of lines to put in a shell here document.
416
# This variable seems obsolete. It should probably be removed, and
417
# only ac_max_sed_lines should be used.
418
: ${ac_max_here_lines=38}
420
# Identity of this package.
427
ac_unique_file="configure.ac"
428
# Factoring default headers for most tests.
429
ac_includes_default="\
432
# include <sys/types.h>
435
# include <sys/stat.h>
446
# if !STDC_HEADERS && HAVE_MEMORY_H
452
# include <strings.h>
455
# include <inttypes.h>
465
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL global_top_auxdir LIBOBJS LTLIBOBJS'
468
# Initialize some variables set by options.
470
ac_init_version=false
471
# The variables have the same names as the options, with
472
# dashes changed to underlines.
480
program_transform_name=s,x,x,
488
# Installation directory options.
489
# These are left unexpanded so users can "make install exec_prefix=/foo"
490
# and all the variables that are supposed to be based on exec_prefix
491
# by default will actually change.
492
# Use braces instead of parens because sh, perl, etc. also accept them.
493
bindir='${exec_prefix}/bin'
494
sbindir='${exec_prefix}/sbin'
495
libexecdir='${exec_prefix}/libexec'
496
datadir='${prefix}/share'
497
sysconfdir='${prefix}/etc'
498
sharedstatedir='${prefix}/com'
499
localstatedir='${prefix}/var'
500
libdir='${exec_prefix}/lib'
501
includedir='${prefix}/include'
502
oldincludedir='/usr/include'
503
infodir='${prefix}/info'
504
mandir='${prefix}/man'
509
# If the previous option needs an argument, assign it.
510
if test -n "$ac_prev"; then
511
eval "$ac_prev=\$ac_option"
516
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
# Accept the important Cygnus configure options, so we can diagnose typos.
522
-bindir | --bindir | --bindi | --bind | --bin | --bi)
524
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527
-build | --build | --buil | --bui | --bu)
528
ac_prev=build_alias ;;
529
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
530
build_alias=$ac_optarg ;;
532
-cache-file | --cache-file | --cache-fil | --cache-fi \
533
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534
ac_prev=cache_file ;;
535
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537
cache_file=$ac_optarg ;;
540
cache_file=config.cache ;;
542
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
datadir=$ac_optarg ;;
548
-disable-* | --disable-*)
549
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550
# Reject names that are not valid shell variable names.
551
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
553
{ (exit 1); exit 1; }; }
554
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555
eval "enable_$ac_feature=no" ;;
557
-enable-* | --enable-*)
558
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559
# Reject names that are not valid shell variable names.
560
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
562
{ (exit 1); exit 1; }; }
563
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
eval "enable_$ac_feature='$ac_optarg'" ;;
570
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572
| --exec | --exe | --ex)
573
ac_prev=exec_prefix ;;
574
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576
| --exec=* | --exe=* | --ex=*)
577
exec_prefix=$ac_optarg ;;
579
-gas | --gas | --ga | --g)
580
# Obsolete; use --with-gas.
583
-help | --help | --hel | --he | -h)
585
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586
ac_init_help=recursive ;;
587
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588
ac_init_help=short ;;
590
-host | --host | --hos | --ho)
591
ac_prev=host_alias ;;
592
-host=* | --host=* | --hos=* | --ho=*)
593
host_alias=$ac_optarg ;;
595
-includedir | --includedir | --includedi | --included | --include \
596
| --includ | --inclu | --incl | --inc)
597
ac_prev=includedir ;;
598
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599
| --includ=* | --inclu=* | --incl=* | --inc=*)
600
includedir=$ac_optarg ;;
602
-infodir | --infodir | --infodi | --infod | --info | --inf)
604
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605
infodir=$ac_optarg ;;
607
-libdir | --libdir | --libdi | --libd)
609
-libdir=* | --libdir=* | --libdi=* | --libd=*)
612
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613
| --libexe | --libex | --libe)
614
ac_prev=libexecdir ;;
615
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616
| --libexe=* | --libex=* | --libe=*)
617
libexecdir=$ac_optarg ;;
619
-localstatedir | --localstatedir | --localstatedi | --localstated \
620
| --localstate | --localstat | --localsta | --localst \
621
| --locals | --local | --loca | --loc | --lo)
622
ac_prev=localstatedir ;;
623
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
625
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626
localstatedir=$ac_optarg ;;
628
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634
# Obsolete; use --without-fp.
637
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
638
| --no-cr | --no-c | -n)
641
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
642
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647
| --oldin | --oldi | --old | --ol | --o)
648
ac_prev=oldincludedir ;;
649
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652
oldincludedir=$ac_optarg ;;
654
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659
-program-prefix | --program-prefix | --program-prefi | --program-pref \
660
| --program-pre | --program-pr | --program-p)
661
ac_prev=program_prefix ;;
662
-program-prefix=* | --program-prefix=* | --program-prefi=* \
663
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664
program_prefix=$ac_optarg ;;
666
-program-suffix | --program-suffix | --program-suffi | --program-suff \
667
| --program-suf | --program-su | --program-s)
668
ac_prev=program_suffix ;;
669
-program-suffix=* | --program-suffix=* | --program-suffi=* \
670
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671
program_suffix=$ac_optarg ;;
673
-program-transform-name | --program-transform-name \
674
| --program-transform-nam | --program-transform-na \
675
| --program-transform-n | --program-transform- \
676
| --program-transform | --program-transfor \
677
| --program-transfo | --program-transf \
678
| --program-trans | --program-tran \
679
| --progr-tra | --program-tr | --program-t)
680
ac_prev=program_transform_name ;;
681
-program-transform-name=* | --program-transform-name=* \
682
| --program-transform-nam=* | --program-transform-na=* \
683
| --program-transform-n=* | --program-transform-=* \
684
| --program-transform=* | --program-transfor=* \
685
| --program-transfo=* | --program-transf=* \
686
| --program-trans=* | --program-tran=* \
687
| --progr-tra=* | --program-tr=* | --program-t=*)
688
program_transform_name=$ac_optarg ;;
690
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
691
| -silent | --silent | --silen | --sile | --sil)
694
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698
sbindir=$ac_optarg ;;
700
-sharedstatedir | --sharedstatedir | --sharedstatedi \
701
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702
| --sharedst | --shareds | --shared | --share | --shar \
704
ac_prev=sharedstatedir ;;
705
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709
sharedstatedir=$ac_optarg ;;
711
-site | --site | --sit)
713
-site=* | --site=* | --sit=*)
716
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722
| --syscon | --sysco | --sysc | --sys | --sy)
723
ac_prev=sysconfdir ;;
724
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726
sysconfdir=$ac_optarg ;;
728
-target | --target | --targe | --targ | --tar | --ta | --t)
729
ac_prev=target_alias ;;
730
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731
target_alias=$ac_optarg ;;
733
-v | -verbose | --verbose | --verbos | --verbo | --verb)
736
-version | --version | --versio | --versi | --vers | -V)
740
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741
# Reject names that are not valid shell variable names.
742
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743
{ echo "$as_me: error: invalid package name: $ac_package" >&2
744
{ (exit 1); exit 1; }; }
745
ac_package=`echo $ac_package| sed 's/-/_/g'`
747
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
eval "with_$ac_package='$ac_optarg'" ;;
752
-without-* | --without-*)
753
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754
# Reject names that are not valid shell variable names.
755
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756
{ echo "$as_me: error: invalid package name: $ac_package" >&2
757
{ (exit 1); exit 1; }; }
758
ac_package=`echo $ac_package | sed 's/-/_/g'`
759
eval "with_$ac_package=no" ;;
762
# Obsolete; use --with-x.
765
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766
| --x-incl | --x-inc | --x-in | --x-i)
767
ac_prev=x_includes ;;
768
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770
x_includes=$ac_optarg ;;
772
-x-libraries | --x-libraries | --x-librarie | --x-librari \
773
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774
ac_prev=x_libraries ;;
775
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777
x_libraries=$ac_optarg ;;
779
-*) { echo "$as_me: error: unrecognized option: $ac_option
780
Try \`$0 --help' for more information." >&2
781
{ (exit 1); exit 1; }; }
785
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786
# Reject names that are not valid shell variable names.
787
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789
{ (exit 1); exit 1; }; }
790
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791
eval "$ac_envvar='$ac_optarg'"
795
# FIXME: should be removed in autoconf 3.0.
796
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805
if test -n "$ac_prev"; then
806
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807
{ echo "$as_me: error: missing argument to $ac_option" >&2
808
{ (exit 1); exit 1; }; }
811
# Be sure to have absolute paths.
812
for ac_var in exec_prefix prefix
814
eval ac_val=$`echo $ac_var`
816
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818
{ (exit 1); exit 1; }; };;
822
# Be sure to have absolute paths.
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824
localstatedir libdir includedir oldincludedir infodir mandir
826
eval ac_val=$`echo $ac_var`
828
[\\/$]* | ?:[\\/]* ) ;;
829
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830
{ (exit 1); exit 1; }; };;
834
# There might be people who depend on the old broken behavior: `$host'
835
# used to hold the argument of --host etc.
836
# FIXME: To remove some day.
841
# FIXME: To remove some day.
842
if test "x$host_alias" != x; then
843
if test "x$build_alias" = x; then
844
cross_compiling=maybe
845
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846
If a cross compiler is detected then cross compile mode will be used." >&2
847
elif test "x$build_alias" != "x$host_alias"; then
853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
test "$silent" = yes && exec 6>/dev/null
858
# Find the source files, if location was not specified.
859
if test -z "$srcdir"; then
860
ac_srcdir_defaulted=yes
861
# Try the directory containing this script, then its parent.
862
ac_confdir=`(dirname "$0") 2>/dev/null ||
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864
X"$0" : 'X\(//\)[^/]' \| \
865
X"$0" : 'X\(//\)$' \| \
866
X"$0" : 'X\(/\)' \| \
867
. : '\(.\)' 2>/dev/null ||
869
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
871
/^X\(\/\/\)$/{ s//\1/; q; }
872
/^X\(\/\).*/{ s//\1/; q; }
875
if test ! -r $srcdir/$ac_unique_file; then
879
ac_srcdir_defaulted=no
881
if test ! -r $srcdir/$ac_unique_file; then
882
if test "$ac_srcdir_defaulted" = yes; then
883
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884
{ (exit 1); exit 1; }; }
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887
{ (exit 1); exit 1; }; }
890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892
{ (exit 1); exit 1; }; }
893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894
ac_env_build_alias_set=${build_alias+set}
895
ac_env_build_alias_value=$build_alias
896
ac_cv_env_build_alias_set=${build_alias+set}
897
ac_cv_env_build_alias_value=$build_alias
898
ac_env_host_alias_set=${host_alias+set}
899
ac_env_host_alias_value=$host_alias
900
ac_cv_env_host_alias_set=${host_alias+set}
901
ac_cv_env_host_alias_value=$host_alias
902
ac_env_target_alias_set=${target_alias+set}
903
ac_env_target_alias_value=$target_alias
904
ac_cv_env_target_alias_set=${target_alias+set}
905
ac_cv_env_target_alias_value=$target_alias
906
ac_env_CC_set=${CC+set}
908
ac_cv_env_CC_set=${CC+set}
909
ac_cv_env_CC_value=$CC
910
ac_env_CFLAGS_set=${CFLAGS+set}
911
ac_env_CFLAGS_value=$CFLAGS
912
ac_cv_env_CFLAGS_set=${CFLAGS+set}
913
ac_cv_env_CFLAGS_value=$CFLAGS
914
ac_env_LDFLAGS_set=${LDFLAGS+set}
915
ac_env_LDFLAGS_value=$LDFLAGS
916
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_cv_env_LDFLAGS_value=$LDFLAGS
918
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919
ac_env_CPPFLAGS_value=$CPPFLAGS
920
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922
ac_env_CPP_set=${CPP+set}
923
ac_env_CPP_value=$CPP
924
ac_cv_env_CPP_set=${CPP+set}
925
ac_cv_env_CPP_value=$CPP
926
ac_env_CXX_set=${CXX+set}
927
ac_env_CXX_value=$CXX
928
ac_cv_env_CXX_set=${CXX+set}
929
ac_cv_env_CXX_value=$CXX
930
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931
ac_env_CXXFLAGS_value=$CXXFLAGS
932
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934
ac_env_CXXCPP_set=${CXXCPP+set}
935
ac_env_CXXCPP_value=$CXXCPP
936
ac_cv_env_CXXCPP_set=${CXXCPP+set}
937
ac_cv_env_CXXCPP_value=$CXXCPP
938
ac_env_F77_set=${F77+set}
939
ac_env_F77_value=$F77
940
ac_cv_env_F77_set=${F77+set}
941
ac_cv_env_F77_value=$F77
942
ac_env_FFLAGS_set=${FFLAGS+set}
943
ac_env_FFLAGS_value=$FFLAGS
944
ac_cv_env_FFLAGS_set=${FFLAGS+set}
945
ac_cv_env_FFLAGS_value=$FFLAGS
948
# Report the --help message.
950
if test "$ac_init_help" = "long"; then
951
# Omit some internal or obsolete options to make the list less imposing.
952
# This message is too long to be a string in the A/UX 3.1 sh.
954
\`configure' configures this package to adapt to many kinds of systems.
956
Usage: $0 [OPTION]... [VAR=VALUE]...
958
To assign environment variables (e.g., CC, CFLAGS...), specify them as
959
VAR=VALUE. See below for descriptions of some of the useful variables.
961
Defaults for the options are specified in brackets.
964
-h, --help display this help and exit
965
--help=short display options specific to this package
966
--help=recursive display the short help of all the included packages
967
-V, --version display version information and exit
968
-q, --quiet, --silent do not print \`checking...' messages
969
--cache-file=FILE cache test results in FILE [disabled]
970
-C, --config-cache alias for \`--cache-file=config.cache'
971
-n, --no-create do not create output files
972
--srcdir=DIR find the sources in DIR [configure dir or \`..']
977
Installation directories:
978
--prefix=PREFIX install architecture-independent files in PREFIX
980
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983
By default, \`make install' will install all the files in
984
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986
for instance \`--prefix=\$HOME'.
988
For better control, use the options below.
990
Fine tuning of the installation directories:
991
--bindir=DIR user executables [EPREFIX/bin]
992
--sbindir=DIR system admin executables [EPREFIX/sbin]
993
--libexecdir=DIR program executables [EPREFIX/libexec]
994
--datadir=DIR read-only architecture-independent data [PREFIX/share]
995
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
998
--libdir=DIR object code libraries [EPREFIX/lib]
999
--includedir=DIR C header files [PREFIX/include]
1000
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1001
--infodir=DIR info documentation [PREFIX/info]
1002
--mandir=DIR man documentation [PREFIX/man]
1008
--program-prefix=PREFIX prepend PREFIX to installed program names
1009
--program-suffix=SUFFIX append SUFFIX to installed program names
1010
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013
--build=BUILD configure for building on BUILD [guessed]
1014
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1018
if test -n "$ac_init_help"; then
1023
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025
--disable-dependency-tracking Speeds up one-time builds
1026
--enable-dependency-tracking Do not reject slow dependency extractors
1027
--enable-shared[=PKGS]
1028
build shared libraries [default=yes]
1029
--enable-static[=PKGS]
1030
build static libraries [default=yes]
1031
--enable-fast-install[=PKGS]
1032
optimize for fast installation [default=yes]
1033
--disable-libtool-lock avoid locking (might break parallel builds)
1036
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039
--with-pic try to use only PIC/non-PIC objects [default=use
1042
include additional configurations [automatic]
1044
Some influential environment variables:
1045
CC C compiler command
1046
CFLAGS C compiler flags
1047
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1048
nonstandard directory <lib dir>
1049
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050
headers in a nonstandard directory <include dir>
1052
CXX C++ compiler command
1053
CXXFLAGS C++ compiler flags
1054
CXXCPP C++ preprocessor
1055
F77 Fortran 77 compiler command
1056
FFLAGS Fortran 77 compiler flags
1058
Use these variables to override the choices made by `configure' or to help
1059
it to find libraries and programs with nonstandard names/locations.
1064
if test "$ac_init_help" = "recursive"; then
1065
# If there are subdirs, report their specific --help.
1067
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068
test -d $ac_dir || continue
1071
if test "$ac_dir" != .; then
1072
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073
# A "../" for each directory in $ac_dir_suffix.
1074
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076
ac_dir_suffix= ac_top_builddir=
1080
.) # No --srcdir option. We are building in place.
1082
if test -z "$ac_top_builddir"; then
1085
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087
[\\/]* | ?:[\\/]* ) # Absolute path.
1088
ac_srcdir=$srcdir$ac_dir_suffix;
1089
ac_top_srcdir=$srcdir ;;
1091
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1096
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1097
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1098
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1099
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1102
# Check for guested configure; otherwise get Cygnus style configure.
1103
if test -f $ac_srcdir/configure.gnu; then
1105
$SHELL $ac_srcdir/configure.gnu --help=recursive
1106
elif test -f $ac_srcdir/configure; then
1108
$SHELL $ac_srcdir/configure --help=recursive
1109
elif test -f $ac_srcdir/configure.ac ||
1110
test -f $ac_srcdir/configure.in; then
1112
$ac_configure --help
1114
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1120
test -n "$ac_init_help" && exit 0
1121
if $ac_init_version; then
1124
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1125
Free Software Foundation, Inc.
1126
This configure script is free software; the Free Software Foundation
1127
gives unlimited permission to copy, distribute and modify it.
1133
This file contains any messages produced by compilers while
1134
running configure, to aid debugging if configure makes a mistake.
1136
It was created by $as_me, which was
1137
generated by GNU Autoconf 2.57. Invocation command line was
1148
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1157
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171
test -z "$as_dir" && as_dir=.
1172
echo "PATH: $as_dir"
1187
# Keep a trace of the command line.
1188
# Strip out --no-create and --no-recursion so they do not pile up.
1189
# Strip out --silent because we don't want to record it for future runs.
1190
# Also quote any args containing shell meta-characters.
1191
# Make two passes to allow for proper duplicate-argument suppression.
1196
ac_must_keep_next=false
1202
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204
| -silent | --silent | --silen | --sile | --sil)
1206
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1210
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213
if test $ac_must_keep_next = true; then
1214
ac_must_keep_next=false # Got value, back to normal.
1217
*=* | --config-cache | -C | -disable-* | --disable-* \
1218
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220
| -with-* | --with-* | -without-* | --without-* | --x)
1221
case "$ac_configure_args0 " in
1222
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1225
-* ) ac_must_keep_next=true ;;
1228
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229
# Get rid of the leading space.
1235
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238
# When interrupted or exit'd, cleanup temporary files, and complete
1239
# config.log. We remove comments because anyway the quotes in there
1240
# would cause problems or look ugly.
1241
# WARNING: Be sure not to use single quotes in there, as some shells,
1242
# such as our DU 5.0 friend, will then `close' the trap.
1243
trap 'exit_status=$?
1244
# Save into config.log some information that might help in debugging.
1249
## ---------------- ##
1250
## Cache variables. ##
1251
## ---------------- ##
1254
# The following way of writing the cache mishandles newlines in values,
1257
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1260
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1272
## ----------------- ##
1273
## Output variables. ##
1274
## ----------------- ##
1277
for ac_var in $ac_subst_vars
1279
eval ac_val=$`echo $ac_var`
1280
echo "$ac_var='"'"'$ac_val'"'"'"
1284
if test -n "$ac_subst_files"; then
1291
for ac_var in $ac_subst_files
1293
eval ac_val=$`echo $ac_var`
1294
echo "$ac_var='"'"'$ac_val'"'"'"
1299
if test -s confdefs.h; then
1306
sed "/^$/d" confdefs.h | sort
1309
test "$ac_signal" != 0 &&
1310
echo "$as_me: caught signal $ac_signal"
1311
echo "$as_me: exit $exit_status"
1313
rm -f core core.* *.core &&
1314
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1317
for ac_signal in 1 2 13 15; do
1318
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1323
rm -rf conftest* confdefs.h
1324
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1327
# Predefined preprocessor variables.
1329
cat >>confdefs.h <<_ACEOF
1330
#define PACKAGE_NAME "$PACKAGE_NAME"
1334
cat >>confdefs.h <<_ACEOF
1335
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339
cat >>confdefs.h <<_ACEOF
1340
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344
cat >>confdefs.h <<_ACEOF
1345
#define PACKAGE_STRING "$PACKAGE_STRING"
1349
cat >>confdefs.h <<_ACEOF
1350
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354
# Let the site file select an alternate cache file if it wants to.
1355
# Prefer explicitly selected file to automatically selected ones.
1356
if test -z "$CONFIG_SITE"; then
1357
if test "x$prefix" != xNONE; then
1358
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1360
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363
for ac_site_file in $CONFIG_SITE; do
1364
if test -r "$ac_site_file"; then
1365
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366
echo "$as_me: loading site script $ac_site_file" >&6;}
1367
sed 's/^/| /' "$ac_site_file" >&5
1372
if test -r "$cache_file"; then
1373
# Some versions of bash will fail to source /dev/null (special
1374
# files actually), so we avoid doing that.
1375
if test -f "$cache_file"; then
1376
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377
echo "$as_me: loading cache $cache_file" >&6;}
1379
[\\/]* | ?:[\\/]* ) . $cache_file;;
1380
*) . ./$cache_file;;
1384
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385
echo "$as_me: creating cache $cache_file" >&6;}
1389
# Check that the precious variables saved in the cache have kept the same
1391
ac_cache_corrupted=false
1392
for ac_var in `(set) 2>&1 |
1393
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395
eval ac_new_set=\$ac_env_${ac_var}_set
1396
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397
eval ac_new_val="\$ac_env_${ac_var}_value"
1398
case $ac_old_set,$ac_new_set in
1400
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402
ac_cache_corrupted=: ;;
1404
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406
ac_cache_corrupted=: ;;
1409
if test "x$ac_old_val" != "x$ac_new_val"; then
1410
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1411
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1412
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1413
echo "$as_me: former value: $ac_old_val" >&2;}
1414
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1415
echo "$as_me: current value: $ac_new_val" >&2;}
1416
ac_cache_corrupted=:
1419
# Pass precious variables to config.status.
1420
if test "$ac_new_set" = set; then
1422
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1423
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1424
*) ac_arg=$ac_var=$ac_new_val ;;
1426
case " $ac_configure_args " in
1427
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1428
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432
if $ac_cache_corrupted; then
1433
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1434
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1435
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1436
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1437
{ (exit 1); exit 1; }; }
1441
ac_cpp='$CPP $CPPFLAGS'
1442
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
for ac_dir in ../../../config $srcdir/../../../config; do
1466
if test -f $ac_dir/install-sh; then
1468
ac_install_sh="$ac_aux_dir/install-sh -c"
1470
elif test -f $ac_dir/install.sh; then
1472
ac_install_sh="$ac_aux_dir/install.sh -c"
1474
elif test -f $ac_dir/shtool; then
1476
ac_install_sh="$ac_aux_dir/shtool install -c"
1480
if test -z "$ac_aux_dir"; then
1481
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5
1482
echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;}
1483
{ (exit 1); exit 1; }; }
1485
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1486
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1487
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1489
am__api_version="1.7"
1490
# Find a good install program. We prefer a C program (faster),
1491
# so one script is as good as another. But avoid the broken or
1492
# incompatible versions:
1493
# SysV /etc/install, /usr/sbin/install
1494
# SunOS /usr/etc/install
1495
# IRIX /sbin/install
1497
# AmigaOS /C/install, which installs bootblocks on floppy discs
1498
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1499
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1500
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1501
# ./install, which can be erroneously created by make from ./install.sh.
1502
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1503
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1504
if test -z "$INSTALL"; then
1505
if test "${ac_cv_path_install+set}" = set; then
1506
echo $ECHO_N "(cached) $ECHO_C" >&6
1508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512
test -z "$as_dir" && as_dir=.
1513
# Account for people who put trailing slashes in PATH elements.
1515
./ | .// | /cC/* | \
1516
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1519
# OSF1 and SCO ODT 3.0 have their own names for install.
1520
# Don't use installbsd from OSF since it installs stuff as root
1522
for ac_prog in ginstall scoinst install; do
1523
for ac_exec_ext in '' $ac_executable_extensions; do
1524
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1525
if test $ac_prog = install &&
1526
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527
# AIX install. It has an incompatible calling convention.
1529
elif test $ac_prog = install &&
1530
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531
# program-specific install script used by HP pwplus--don't use.
1534
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1546
if test "${ac_cv_path_install+set}" = set; then
1547
INSTALL=$ac_cv_path_install
1549
# As a last resort, use the slow shell script. We don't cache a
1550
# path for INSTALL within a source directory, because that will
1551
# break other packages using the cache if that directory is
1552
# removed, or if the path is relative.
1553
INSTALL=$ac_install_sh
1556
echo "$as_me:$LINENO: result: $INSTALL" >&5
1557
echo "${ECHO_T}$INSTALL" >&6
1559
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1560
# It thinks the first close brace ends the variable substitution.
1561
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1563
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1565
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1567
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1568
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1571
echo timestamp > conftest.file
1572
# Do `set' in a subshell so we don't clobber the current shell's
1573
# arguments. Must try -L first in case configure is actually a
1574
# symlink; some systems play weird games with the mod time of symlinks
1575
# (eg FreeBSD returns the mod time of the symlink's containing
1578
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1579
if test "$*" = "X"; then
1581
set X `ls -t $srcdir/configure conftest.file`
1584
if test "$*" != "X $srcdir/configure conftest.file" \
1585
&& test "$*" != "X conftest.file $srcdir/configure"; then
1587
# If neither matched, then we have a broken ls. This can happen
1588
# if, for instance, CONFIG_SHELL is bash and it inherits a
1589
# broken ls alias from the environment. This has actually
1590
# happened. Such a system could not be considered "sane".
1591
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1592
alias in your environment" >&5
1593
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1594
alias in your environment" >&2;}
1595
{ (exit 1); exit 1; }; }
1598
test "$2" = conftest.file
1604
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1605
Check your system clock" >&5
1606
echo "$as_me: error: newly created file is older than distributed files!
1607
Check your system clock" >&2;}
1608
{ (exit 1); exit 1; }; }
1610
echo "$as_me:$LINENO: result: yes" >&5
1611
echo "${ECHO_T}yes" >&6
1612
test "$program_prefix" != NONE &&
1613
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1614
# Use a double $ so make ignores it.
1615
test "$program_suffix" != NONE &&
1616
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1617
# Double any \ or $. echo might interpret backslashes.
1618
# By default was `s,x,x', remove it if useless.
1619
cat <<\_ACEOF >conftest.sed
1620
s/[\\$]/&&/g;s/;s,x,x,$//
1622
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1626
# expand $ac_aux_dir to an absolute path
1627
am_aux_dir=`cd $ac_aux_dir && pwd`
1629
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1630
# Use eval to expand $SHELL
1631
if eval "$MISSING --run true"; then
1632
am_missing_run="$MISSING --run "
1635
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1636
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1639
for ac_prog in gawk mawk nawk awk
1641
# Extract the first word of "$ac_prog", so it can be a program name with args.
1642
set dummy $ac_prog; ac_word=$2
1643
echo "$as_me:$LINENO: checking for $ac_word" >&5
1644
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645
if test "${ac_cv_prog_AWK+set}" = set; then
1646
echo $ECHO_N "(cached) $ECHO_C" >&6
1648
if test -n "$AWK"; then
1649
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655
test -z "$as_dir" && as_dir=.
1656
for ac_exec_ext in '' $ac_executable_extensions; do
1657
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658
ac_cv_prog_AWK="$ac_prog"
1659
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668
if test -n "$AWK"; then
1669
echo "$as_me:$LINENO: result: $AWK" >&5
1670
echo "${ECHO_T}$AWK" >&6
1672
echo "$as_me:$LINENO: result: no" >&5
1673
echo "${ECHO_T}no" >&6
1676
test -n "$AWK" && break
1679
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1680
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1681
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1682
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1683
echo $ECHO_N "(cached) $ECHO_C" >&6
1685
cat >conftest.make <<\_ACEOF
1687
@echo 'ac_maketemp="$(MAKE)"'
1689
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1690
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1691
if test -n "$ac_maketemp"; then
1692
eval ac_cv_prog_make_${ac_make}_set=yes
1694
eval ac_cv_prog_make_${ac_make}_set=no
1698
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1699
echo "$as_me:$LINENO: result: yes" >&5
1700
echo "${ECHO_T}yes" >&6
1703
echo "$as_me:$LINENO: result: no" >&5
1704
echo "${ECHO_T}no" >&6
1705
SET_MAKE="MAKE=${MAKE-make}"
1708
rm -rf .tst 2>/dev/null
1709
mkdir .tst 2>/dev/null
1710
if test -d .tst; then
1715
rmdir .tst 2>/dev/null
1717
# test to see if srcdir already configured
1718
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1719
test -f $srcdir/config.status; then
1720
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722
{ (exit 1); exit 1; }; }
1725
# test whether we have cygpath
1726
if test -z "$CYGPATH_W"; then
1727
if (cygpath --version) >/dev/null 2>/dev/null; then
1728
CYGPATH_W='cygpath -w'
1735
# Define the identity of the package.
1736
PACKAGE=gettext_rpathx
1740
cat >>confdefs.h <<_ACEOF
1741
#define PACKAGE "$PACKAGE"
1745
cat >>confdefs.h <<_ACEOF
1746
#define VERSION "$VERSION"
1749
# Some tools Automake needs.
1751
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1754
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1757
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1760
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1763
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1766
AMTAR=${AMTAR-"${am_missing_run}tar"}
1768
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1770
# Installed binaries are usually stripped using `strip' when the user
1771
# run `make install-strip'. However `strip' might not be the right
1772
# tool to use in cross-compilation environments, therefore Automake
1773
# will honor the `STRIP' environment variable to overrule this program.
1774
if test "$cross_compiling" != no; then
1775
if test -n "$ac_tool_prefix"; then
1776
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1777
set dummy ${ac_tool_prefix}strip; ac_word=$2
1778
echo "$as_me:$LINENO: checking for $ac_word" >&5
1779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780
if test "${ac_cv_prog_STRIP+set}" = set; then
1781
echo $ECHO_N "(cached) $ECHO_C" >&6
1783
if test -n "$STRIP"; then
1784
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790
test -z "$as_dir" && as_dir=.
1791
for ac_exec_ext in '' $ac_executable_extensions; do
1792
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1794
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802
STRIP=$ac_cv_prog_STRIP
1803
if test -n "$STRIP"; then
1804
echo "$as_me:$LINENO: result: $STRIP" >&5
1805
echo "${ECHO_T}$STRIP" >&6
1807
echo "$as_me:$LINENO: result: no" >&5
1808
echo "${ECHO_T}no" >&6
1812
if test -z "$ac_cv_prog_STRIP"; then
1814
# Extract the first word of "strip", so it can be a program name with args.
1815
set dummy strip; ac_word=$2
1816
echo "$as_me:$LINENO: checking for $ac_word" >&5
1817
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1819
echo $ECHO_N "(cached) $ECHO_C" >&6
1821
if test -n "$ac_ct_STRIP"; then
1822
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828
test -z "$as_dir" && as_dir=.
1829
for ac_exec_ext in '' $ac_executable_extensions; do
1830
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831
ac_cv_prog_ac_ct_STRIP="strip"
1832
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1841
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1842
if test -n "$ac_ct_STRIP"; then
1843
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1844
echo "${ECHO_T}$ac_ct_STRIP" >&6
1846
echo "$as_me:$LINENO: result: no" >&5
1847
echo "${ECHO_T}no" >&6
1852
STRIP="$ac_cv_prog_STRIP"
1856
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1858
# We need awk for the "check" target. The system "awk" is bad on
1864
ac_cpp='$CPP $CPPFLAGS'
1865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868
if test -n "$ac_tool_prefix"; then
1869
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1870
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1871
echo "$as_me:$LINENO: checking for $ac_word" >&5
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873
if test "${ac_cv_prog_CC+set}" = set; then
1874
echo $ECHO_N "(cached) $ECHO_C" >&6
1876
if test -n "$CC"; then
1877
ac_cv_prog_CC="$CC" # Let the user override the test.
1879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883
test -z "$as_dir" && as_dir=.
1884
for ac_exec_ext in '' $ac_executable_extensions; do
1885
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1887
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896
if test -n "$CC"; then
1897
echo "$as_me:$LINENO: result: $CC" >&5
1898
echo "${ECHO_T}$CC" >&6
1900
echo "$as_me:$LINENO: result: no" >&5
1901
echo "${ECHO_T}no" >&6
1905
if test -z "$ac_cv_prog_CC"; then
1907
# Extract the first word of "gcc", so it can be a program name with args.
1908
set dummy gcc; ac_word=$2
1909
echo "$as_me:$LINENO: checking for $ac_word" >&5
1910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912
echo $ECHO_N "(cached) $ECHO_C" >&6
1914
if test -n "$ac_ct_CC"; then
1915
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921
test -z "$as_dir" && as_dir=.
1922
for ac_exec_ext in '' $ac_executable_extensions; do
1923
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924
ac_cv_prog_ac_ct_CC="gcc"
1925
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934
if test -n "$ac_ct_CC"; then
1935
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936
echo "${ECHO_T}$ac_ct_CC" >&6
1938
echo "$as_me:$LINENO: result: no" >&5
1939
echo "${ECHO_T}no" >&6
1947
if test -z "$CC"; then
1948
if test -n "$ac_tool_prefix"; then
1949
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1950
set dummy ${ac_tool_prefix}cc; ac_word=$2
1951
echo "$as_me:$LINENO: checking for $ac_word" >&5
1952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953
if test "${ac_cv_prog_CC+set}" = set; then
1954
echo $ECHO_N "(cached) $ECHO_C" >&6
1956
if test -n "$CC"; then
1957
ac_cv_prog_CC="$CC" # Let the user override the test.
1959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963
test -z "$as_dir" && as_dir=.
1964
for ac_exec_ext in '' $ac_executable_extensions; do
1965
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966
ac_cv_prog_CC="${ac_tool_prefix}cc"
1967
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976
if test -n "$CC"; then
1977
echo "$as_me:$LINENO: result: $CC" >&5
1978
echo "${ECHO_T}$CC" >&6
1980
echo "$as_me:$LINENO: result: no" >&5
1981
echo "${ECHO_T}no" >&6
1985
if test -z "$ac_cv_prog_CC"; then
1987
# Extract the first word of "cc", so it can be a program name with args.
1988
set dummy cc; ac_word=$2
1989
echo "$as_me:$LINENO: checking for $ac_word" >&5
1990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992
echo $ECHO_N "(cached) $ECHO_C" >&6
1994
if test -n "$ac_ct_CC"; then
1995
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001
test -z "$as_dir" && as_dir=.
2002
for ac_exec_ext in '' $ac_executable_extensions; do
2003
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004
ac_cv_prog_ac_ct_CC="cc"
2005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014
if test -n "$ac_ct_CC"; then
2015
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016
echo "${ECHO_T}$ac_ct_CC" >&6
2018
echo "$as_me:$LINENO: result: no" >&5
2019
echo "${ECHO_T}no" >&6
2028
if test -z "$CC"; then
2029
# Extract the first word of "cc", so it can be a program name with args.
2030
set dummy cc; ac_word=$2
2031
echo "$as_me:$LINENO: checking for $ac_word" >&5
2032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033
if test "${ac_cv_prog_CC+set}" = set; then
2034
echo $ECHO_N "(cached) $ECHO_C" >&6
2036
if test -n "$CC"; then
2037
ac_cv_prog_CC="$CC" # Let the user override the test.
2040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044
test -z "$as_dir" && as_dir=.
2045
for ac_exec_ext in '' $ac_executable_extensions; do
2046
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2048
ac_prog_rejected=yes
2052
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058
if test $ac_prog_rejected = yes; then
2059
# We found a bogon in the path, so make sure we never use it.
2060
set dummy $ac_cv_prog_CC
2062
if test $# != 0; then
2063
# We chose a different compiler from the bogus one.
2064
# However, it has the same basename, so the bogon will be chosen
2065
# first if we set CC to just the basename; use the full file name.
2067
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2073
if test -n "$CC"; then
2074
echo "$as_me:$LINENO: result: $CC" >&5
2075
echo "${ECHO_T}$CC" >&6
2077
echo "$as_me:$LINENO: result: no" >&5
2078
echo "${ECHO_T}no" >&6
2082
if test -z "$CC"; then
2083
if test -n "$ac_tool_prefix"; then
2086
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2087
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2088
echo "$as_me:$LINENO: checking for $ac_word" >&5
2089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090
if test "${ac_cv_prog_CC+set}" = set; then
2091
echo $ECHO_N "(cached) $ECHO_C" >&6
2093
if test -n "$CC"; then
2094
ac_cv_prog_CC="$CC" # Let the user override the test.
2096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100
test -z "$as_dir" && as_dir=.
2101
for ac_exec_ext in '' $ac_executable_extensions; do
2102
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2104
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113
if test -n "$CC"; then
2114
echo "$as_me:$LINENO: result: $CC" >&5
2115
echo "${ECHO_T}$CC" >&6
2117
echo "$as_me:$LINENO: result: no" >&5
2118
echo "${ECHO_T}no" >&6
2121
test -n "$CC" && break
2124
if test -z "$CC"; then
2128
# Extract the first word of "$ac_prog", so it can be a program name with args.
2129
set dummy $ac_prog; ac_word=$2
2130
echo "$as_me:$LINENO: checking for $ac_word" >&5
2131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133
echo $ECHO_N "(cached) $ECHO_C" >&6
2135
if test -n "$ac_ct_CC"; then
2136
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142
test -z "$as_dir" && as_dir=.
2143
for ac_exec_ext in '' $ac_executable_extensions; do
2144
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145
ac_cv_prog_ac_ct_CC="$ac_prog"
2146
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155
if test -n "$ac_ct_CC"; then
2156
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157
echo "${ECHO_T}$ac_ct_CC" >&6
2159
echo "$as_me:$LINENO: result: no" >&5
2160
echo "${ECHO_T}no" >&6
2163
test -n "$ac_ct_CC" && break
2172
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2173
See \`config.log' for more details." >&5
2174
echo "$as_me: error: no acceptable C compiler found in \$PATH
2175
See \`config.log' for more details." >&2;}
2176
{ (exit 1); exit 1; }; }
2178
# Provide some information about the compiler.
2179
echo "$as_me:$LINENO:" \
2180
"checking for C compiler version" >&5
2181
ac_compiler=`set X $ac_compile; echo $2`
2182
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2183
(eval $ac_compiler --version </dev/null >&5) 2>&5
2185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186
(exit $ac_status); }
2187
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2188
(eval $ac_compiler -v </dev/null >&5) 2>&5
2190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
(exit $ac_status); }
2192
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2193
(eval $ac_compiler -V </dev/null >&5) 2>&5
2195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196
(exit $ac_status); }
2198
cat >conftest.$ac_ext <<_ACEOF
2199
#line $LINENO "configure"
2202
cat confdefs.h >>conftest.$ac_ext
2203
cat >>conftest.$ac_ext <<_ACEOF
2204
/* end confdefs.h. */
2214
ac_clean_files_save=$ac_clean_files
2215
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216
# Try to create an executable without -o first, disregard a.out.
2217
# It will help us diagnose broken compilers, and finding out an intuition
2219
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2220
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2221
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2223
(eval $ac_link_default) 2>&5
2225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226
(exit $ac_status); }; then
2227
# Find the output, starting from the most likely. This scheme is
2228
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2231
# Be careful to initialize this variable, since it used to be cached.
2232
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2234
# b.out is created by i960 compilers.
2235
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2237
test -f "$ac_file" || continue
2239
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2242
# This is the source file.
2245
# We found the default executable, but exeext='' is most
2249
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250
# FIXME: I believe we export ac_cv_exeext for Libtool,
2251
# but it would be cool to find out if it's true. Does anybody
2252
# maintain Libtool? --akim.
2260
echo "$as_me: failed program was:" >&5
2261
sed 's/^/| /' conftest.$ac_ext >&5
2263
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2264
See \`config.log' for more details." >&5
2265
echo "$as_me: error: C compiler cannot create executables
2266
See \`config.log' for more details." >&2;}
2267
{ (exit 77); exit 77; }; }
2270
ac_exeext=$ac_cv_exeext
2271
echo "$as_me:$LINENO: result: $ac_file" >&5
2272
echo "${ECHO_T}$ac_file" >&6
2274
# Check the compiler produces executables we can run. If not, either
2275
# the compiler is broken, or we cross compile.
2276
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2278
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279
# If not cross compiling, check that we can run a simple program.
2280
if test "$cross_compiling" != yes; then
2281
if { ac_try='./$ac_file'
2282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286
(exit $ac_status); }; }; then
2289
if test "$cross_compiling" = maybe; then
2292
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2293
If you meant to cross compile, use \`--host'.
2294
See \`config.log' for more details." >&5
2295
echo "$as_me: error: cannot run C compiled programs.
2296
If you meant to cross compile, use \`--host'.
2297
See \`config.log' for more details." >&2;}
2298
{ (exit 1); exit 1; }; }
2302
echo "$as_me:$LINENO: result: yes" >&5
2303
echo "${ECHO_T}yes" >&6
2305
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2306
ac_clean_files=$ac_clean_files_save
2307
# Check the compiler produces executables we can run. If not, either
2308
# the compiler is broken, or we cross compile.
2309
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2310
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2311
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2312
echo "${ECHO_T}$cross_compiling" >&6
2314
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2315
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317
(eval $ac_link) 2>&5
2319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320
(exit $ac_status); }; then
2321
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2322
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2323
# work properly (i.e., refer to `conftest.exe'), while it won't with
2325
for ac_file in conftest.exe conftest conftest.*; do
2326
test -f "$ac_file" || continue
2328
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2329
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337
See \`config.log' for more details." >&5
2338
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339
See \`config.log' for more details." >&2;}
2340
{ (exit 1); exit 1; }; }
2343
rm -f conftest$ac_cv_exeext
2344
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345
echo "${ECHO_T}$ac_cv_exeext" >&6
2347
rm -f conftest.$ac_ext
2348
EXEEXT=$ac_cv_exeext
2350
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2351
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2352
if test "${ac_cv_objext+set}" = set; then
2353
echo $ECHO_N "(cached) $ECHO_C" >&6
2355
cat >conftest.$ac_ext <<_ACEOF
2356
#line $LINENO "configure"
2359
cat confdefs.h >>conftest.$ac_ext
2360
cat >>conftest.$ac_ext <<_ACEOF
2361
/* end confdefs.h. */
2371
rm -f conftest.o conftest.obj
2372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373
(eval $ac_compile) 2>&5
2375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
(exit $ac_status); }; then
2377
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2380
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2385
echo "$as_me: failed program was:" >&5
2386
sed 's/^/| /' conftest.$ac_ext >&5
2388
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2389
See \`config.log' for more details." >&5
2390
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2391
See \`config.log' for more details." >&2;}
2392
{ (exit 1); exit 1; }; }
2395
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2398
echo "${ECHO_T}$ac_cv_objext" >&6
2399
OBJEXT=$ac_cv_objext
2401
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2402
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2403
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2404
echo $ECHO_N "(cached) $ECHO_C" >&6
2406
cat >conftest.$ac_ext <<_ACEOF
2407
#line $LINENO "configure"
2410
cat confdefs.h >>conftest.$ac_ext
2411
cat >>conftest.$ac_ext <<_ACEOF
2412
/* end confdefs.h. */
2425
rm -f conftest.$ac_objext
2426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427
(eval $ac_compile) 2>&5
2429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
(exit $ac_status); } &&
2431
{ ac_try='test -s conftest.$ac_objext'
2432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
(exit $ac_status); }; }; then
2439
echo "$as_me: failed program was:" >&5
2440
sed 's/^/| /' conftest.$ac_ext >&5
2444
rm -f conftest.$ac_objext conftest.$ac_ext
2445
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450
GCC=`test $ac_compiler_gnu = yes && echo yes`
2451
ac_test_CFLAGS=${CFLAGS+set}
2452
ac_save_CFLAGS=$CFLAGS
2454
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456
if test "${ac_cv_prog_cc_g+set}" = set; then
2457
echo $ECHO_N "(cached) $ECHO_C" >&6
2459
cat >conftest.$ac_ext <<_ACEOF
2460
#line $LINENO "configure"
2463
cat confdefs.h >>conftest.$ac_ext
2464
cat >>conftest.$ac_ext <<_ACEOF
2465
/* end confdefs.h. */
2475
rm -f conftest.$ac_objext
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477
(eval $ac_compile) 2>&5
2479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480
(exit $ac_status); } &&
2481
{ ac_try='test -s conftest.$ac_objext'
2482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
(exit $ac_status); }; }; then
2489
echo "$as_me: failed program was:" >&5
2490
sed 's/^/| /' conftest.$ac_ext >&5
2494
rm -f conftest.$ac_objext conftest.$ac_ext
2496
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2497
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2498
if test "$ac_test_CFLAGS" = set; then
2499
CFLAGS=$ac_save_CFLAGS
2500
elif test $ac_cv_prog_cc_g = yes; then
2501
if test "$GCC" = yes; then
2507
if test "$GCC" = yes; then
2513
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2514
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2515
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2516
echo $ECHO_N "(cached) $ECHO_C" >&6
2518
ac_cv_prog_cc_stdc=no
2520
cat >conftest.$ac_ext <<_ACEOF
2521
#line $LINENO "configure"
2524
cat confdefs.h >>conftest.$ac_ext
2525
cat >>conftest.$ac_ext <<_ACEOF
2526
/* end confdefs.h. */
2529
#include <sys/types.h>
2530
#include <sys/stat.h>
2531
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2532
struct buf { int x; };
2533
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2534
static char *e (p, i)
2540
static char *f (char * (*g) (char **, int), char **p, ...)
2545
s = g (p, va_arg (v,int));
2549
int test (int i, double x);
2550
struct s1 {int (*f) (int a);};
2551
struct s2 {int (*f) (double a);};
2552
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2558
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2563
# Don't try gcc -ansi; that turns off useful extensions and
2564
# breaks some systems' header files.
2565
# AIX -qlanglvl=ansi
2566
# Ultrix and OSF/1 -std1
2567
# HP-UX 10.20 and later -Ae
2568
# HP-UX older versions -Aa -D_HPUX_SOURCE
2569
# SVR4 -Xc -D__EXTENSIONS__
2570
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572
CC="$ac_save_CC $ac_arg"
2573
rm -f conftest.$ac_objext
2574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575
(eval $ac_compile) 2>&5
2577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
(exit $ac_status); } &&
2579
{ ac_try='test -s conftest.$ac_objext'
2580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); }; }; then
2585
ac_cv_prog_cc_stdc=$ac_arg
2588
echo "$as_me: failed program was:" >&5
2589
sed 's/^/| /' conftest.$ac_ext >&5
2592
rm -f conftest.$ac_objext
2594
rm -f conftest.$ac_ext conftest.$ac_objext
2599
case "x$ac_cv_prog_cc_stdc" in
2601
echo "$as_me:$LINENO: result: none needed" >&5
2602
echo "${ECHO_T}none needed" >&6 ;;
2604
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2605
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2606
CC="$CC $ac_cv_prog_cc_stdc" ;;
2609
# Some people use a C++ compiler to compile C. Since we use `exit',
2610
# in C++ we need to declare it. In case someone uses the same compiler
2611
# for both compiling C and C++ we need to have the C++ compiler decide
2612
# the declaration of exit, since it's the most demanding environment.
2613
cat >conftest.$ac_ext <<_ACEOF
2618
rm -f conftest.$ac_objext
2619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620
(eval $ac_compile) 2>&5
2622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623
(exit $ac_status); } &&
2624
{ ac_try='test -s conftest.$ac_objext'
2625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
(exit $ac_status); }; }; then
2630
for ac_declaration in \
2632
'#include <stdlib.h>' \
2633
'extern "C" void std::exit (int) throw (); using std::exit;' \
2634
'extern "C" void std::exit (int); using std::exit;' \
2635
'extern "C" void exit (int) throw ();' \
2636
'extern "C" void exit (int);' \
2639
cat >conftest.$ac_ext <<_ACEOF
2640
#line $LINENO "configure"
2643
cat confdefs.h >>conftest.$ac_ext
2644
cat >>conftest.$ac_ext <<_ACEOF
2645
/* end confdefs.h. */
2656
rm -f conftest.$ac_objext
2657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658
(eval $ac_compile) 2>&5
2660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661
(exit $ac_status); } &&
2662
{ ac_try='test -s conftest.$ac_objext'
2663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667
(exit $ac_status); }; }; then
2670
echo "$as_me: failed program was:" >&5
2671
sed 's/^/| /' conftest.$ac_ext >&5
2675
rm -f conftest.$ac_objext conftest.$ac_ext
2676
cat >conftest.$ac_ext <<_ACEOF
2677
#line $LINENO "configure"
2680
cat confdefs.h >>conftest.$ac_ext
2681
cat >>conftest.$ac_ext <<_ACEOF
2682
/* end confdefs.h. */
2692
rm -f conftest.$ac_objext
2693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694
(eval $ac_compile) 2>&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
2710
rm -f conftest.$ac_objext conftest.$ac_ext
2713
if test -n "$ac_declaration"; then
2714
echo '#ifdef __cplusplus' >>confdefs.h
2715
echo $ac_declaration >>confdefs.h
2716
echo '#endif' >>confdefs.h
2720
echo "$as_me: failed program was:" >&5
2721
sed 's/^/| /' conftest.$ac_ext >&5
2724
rm -f conftest.$ac_objext conftest.$ac_ext
2726
ac_cpp='$CPP $CPPFLAGS'
2727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
DEPDIR="${am__leading_dot}deps"
2732
ac_config_commands="$ac_config_commands depfiles"
2735
am_make=${MAKE-make}
2736
cat > confinc << 'END'
2740
# If we don't find an include directive, just comment out the code.
2741
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2742
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2746
# First try GNU make style include.
2747
echo "include confinc" > confmf
2748
# We grep out `Entering directory' and `Leaving directory'
2749
# messages which can occur if `w' ends up in MAKEFLAGS.
2750
# In particular we don't look at `^make:' because GNU make might
2751
# be invoked under some other name (usually "gmake"), in which
2752
# case it prints its new name instead of `make'.
2753
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2758
# Now try BSD make style include.
2759
if test "$am__include" = "#"; then
2760
echo '.include "confinc"' > confmf
2761
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2762
am__include=.include
2769
echo "$as_me:$LINENO: result: $_am_result" >&5
2770
echo "${ECHO_T}$_am_result" >&6
2771
rm -f confinc confmf
2773
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2774
if test "${enable_dependency_tracking+set}" = set; then
2775
enableval="$enable_dependency_tracking"
2778
if test "x$enable_dependency_tracking" != xno; then
2779
am_depcomp="$ac_aux_dir/depcomp"
2784
if test "x$enable_dependency_tracking" != xno; then
2795
depcc="$CC" am_compiler_list=
2797
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2798
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2799
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2800
echo $ECHO_N "(cached) $ECHO_C" >&6
2802
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2803
# We make a subdir and do the tests there. Otherwise we can end up
2804
# making bogus files that we don't know about and never remove. For
2805
# instance it was reported that on HP-UX the gcc test will end up
2806
# making a dummy file named `D' -- because `-MD' means `put the output
2809
# Copy depcomp to subdir because otherwise we won't find it if we're
2810
# using a relative directory.
2811
cp "$am_depcomp" conftest.dir
2814
am_cv_CC_dependencies_compiler_type=none
2815
if test "$am_compiler_list" = ""; then
2816
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2818
for depmode in $am_compiler_list; do
2819
# We need to recreate these files for each test, as the compiler may
2820
# overwrite some of them when testing with obscure command lines.
2821
# This happens at least with the AIX C compiler.
2822
echo '#include "conftest.h"' > conftest.c
2823
echo 'int i;' > conftest.h
2824
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2828
# after this tag, mechanisms are not by side-effect, so they'll
2829
# only be used when explicitly requested
2830
if test "x$enable_dependency_tracking" = xyes; then
2838
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2839
# mode. It turns out that the SunPro C++ compiler does not properly
2840
# handle `-M -o', and we need to detect this.
2841
if depmode=$depmode \
2842
source=conftest.c object=conftest.o \
2843
depfile=conftest.Po tmpdepfile=conftest.TPo \
2844
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2845
>/dev/null 2>conftest.err &&
2846
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2847
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2848
# icc doesn't choke on unknown options, it will just issue warnings
2849
# (even with -Werror). So we grep stderr for any message
2850
# that says an option was ignored.
2851
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2852
am_cv_CC_dependencies_compiler_type=$depmode
2861
am_cv_CC_dependencies_compiler_type=none
2865
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2866
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2867
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2872
test "x$enable_dependency_tracking" != xno \
2873
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2875
am__fastdepCC_FALSE='#'
2877
am__fastdepCC_TRUE='#'
2878
am__fastdepCC_FALSE=
2882
# Check whether --enable-shared or --disable-shared was given.
2883
if test "${enable_shared+set}" = set; then
2884
enableval="$enable_shared"
2885
p=${PACKAGE-default}
2887
yes) enable_shared=yes ;;
2888
no) enable_shared=no ;;
2891
# Look at the argument we got. We use all the common list separators.
2892
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2893
for pkg in $enableval; do
2895
if test "X$pkg" = "X$p"; then
2906
# Check whether --enable-static or --disable-static was given.
2907
if test "${enable_static+set}" = set; then
2908
enableval="$enable_static"
2909
p=${PACKAGE-default}
2911
yes) enable_static=yes ;;
2912
no) enable_static=no ;;
2915
# Look at the argument we got. We use all the common list separators.
2916
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2917
for pkg in $enableval; do
2919
if test "X$pkg" = "X$p"; then
2930
# Check whether --enable-fast-install or --disable-fast-install was given.
2931
if test "${enable_fast_install+set}" = set; then
2932
enableval="$enable_fast_install"
2933
p=${PACKAGE-default}
2935
yes) enable_fast_install=yes ;;
2936
no) enable_fast_install=no ;;
2938
enable_fast_install=no
2939
# Look at the argument we got. We use all the common list separators.
2940
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2941
for pkg in $enableval; do
2943
if test "X$pkg" = "X$p"; then
2944
enable_fast_install=yes
2951
enable_fast_install=yes
2954
# Make sure we can run config.sub.
2955
$ac_config_sub sun4 >/dev/null 2>&1 ||
2956
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2957
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2958
{ (exit 1); exit 1; }; }
2960
echo "$as_me:$LINENO: checking build system type" >&5
2961
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2962
if test "${ac_cv_build+set}" = set; then
2963
echo $ECHO_N "(cached) $ECHO_C" >&6
2965
ac_cv_build_alias=$build_alias
2966
test -z "$ac_cv_build_alias" &&
2967
ac_cv_build_alias=`$ac_config_guess`
2968
test -z "$ac_cv_build_alias" &&
2969
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2970
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2971
{ (exit 1); exit 1; }; }
2972
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2973
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2974
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2975
{ (exit 1); exit 1; }; }
2978
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2979
echo "${ECHO_T}$ac_cv_build" >&6
2981
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2982
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2983
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2986
echo "$as_me:$LINENO: checking host system type" >&5
2987
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2988
if test "${ac_cv_host+set}" = set; then
2989
echo $ECHO_N "(cached) $ECHO_C" >&6
2991
ac_cv_host_alias=$host_alias
2992
test -z "$ac_cv_host_alias" &&
2993
ac_cv_host_alias=$ac_cv_build_alias
2994
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2995
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2996
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2997
{ (exit 1); exit 1; }; }
3000
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3001
echo "${ECHO_T}$ac_cv_host" >&6
3003
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3004
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3005
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3008
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3009
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3010
if test "${lt_cv_path_SED+set}" = set; then
3011
echo $ECHO_N "(cached) $ECHO_C" >&6
3013
# Loop through the user's path and test for sed and gsed.
3014
# Then use that list of sed's as ones to test for truncation.
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019
test -z "$as_dir" && as_dir=.
3020
for lt_ac_prog in sed gsed; do
3021
for ac_exec_ext in '' $ac_executable_extensions; do
3022
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3023
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3030
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3031
# along with /bin/sed that truncates output.
3032
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3033
test ! -f $lt_ac_sed && break
3034
cat /dev/null > conftest.in
3036
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3037
# Check for GNU sed and select it if it is found.
3038
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3039
lt_cv_path_SED=$lt_ac_sed
3043
cat conftest.in conftest.in >conftest.tmp
3044
mv conftest.tmp conftest.in
3045
cp conftest.in conftest.nl
3047
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3048
cmp -s conftest.out conftest.nl || break
3049
# 10000 chars as input seems more than enough
3050
test $lt_ac_count -gt 10 && break
3051
lt_ac_count=`expr $lt_ac_count + 1`
3052
if test $lt_ac_count -gt $lt_ac_max; then
3053
lt_ac_max=$lt_ac_count
3054
lt_cv_path_SED=$lt_ac_sed
3062
echo "$as_me:$LINENO: result: $SED" >&5
3063
echo "${ECHO_T}$SED" >&6
3065
echo "$as_me:$LINENO: checking for egrep" >&5
3066
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3067
if test "${ac_cv_prog_egrep+set}" = set; then
3068
echo $ECHO_N "(cached) $ECHO_C" >&6
3070
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3071
then ac_cv_prog_egrep='grep -E'
3072
else ac_cv_prog_egrep='egrep'
3075
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3076
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3077
EGREP=$ac_cv_prog_egrep
3081
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3082
if test "${with_gnu_ld+set}" = set; then
3083
withval="$with_gnu_ld"
3084
test "$withval" = no || with_gnu_ld=yes
3089
if test "$GCC" = yes; then
3090
# Check if gcc -print-prog-name=ld gives a path.
3091
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3092
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3095
# gcc leaves a trailing carriage return which upsets mingw
3096
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3098
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3101
# Accept absolute paths.
3103
re_direlt='/[^/][^/]*/\.\./'
3104
# Canonicalize the path of ld
3105
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3106
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3107
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3109
test -z "$LD" && LD="$ac_prog"
3112
# If it fails, then pretend we aren't using GCC.
3116
# If it is relative, then search for the first ld in PATH.
3120
elif test "$with_gnu_ld" = yes; then
3121
echo "$as_me:$LINENO: checking for GNU ld" >&5
3122
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3124
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3125
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3127
if test "${lt_cv_path_LD+set}" = set; then
3128
echo $ECHO_N "(cached) $ECHO_C" >&6
3130
if test -z "$LD"; then
3131
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3132
for ac_dir in $PATH; do
3134
test -z "$ac_dir" && ac_dir=.
3135
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3136
lt_cv_path_LD="$ac_dir/$ac_prog"
3137
# Check to see if the program is GNU ld. I'd rather use --version,
3138
# but apparently some GNU ld's only accept -v.
3139
# Break only if it was the GNU/non-GNU ld that we prefer.
3140
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3141
*GNU* | *'with BFD'*)
3142
test "$with_gnu_ld" != no && break
3145
test "$with_gnu_ld" != yes && break
3152
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3157
if test -n "$LD"; then
3158
echo "$as_me:$LINENO: result: $LD" >&5
3159
echo "${ECHO_T}$LD" >&6
3161
echo "$as_me:$LINENO: result: no" >&5
3162
echo "${ECHO_T}no" >&6
3164
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3165
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3166
{ (exit 1); exit 1; }; }
3167
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3168
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3169
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3170
echo $ECHO_N "(cached) $ECHO_C" >&6
3172
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3173
case `"$LD" -v 2>&1 </dev/null` in
3174
*GNU* | *'with BFD'*)
3175
lt_cv_prog_gnu_ld=yes
3178
lt_cv_prog_gnu_ld=no
3182
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3183
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3184
with_gnu_ld=$lt_cv_prog_gnu_ld
3187
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3188
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3189
if test "${lt_cv_ld_reload_flag+set}" = set; then
3190
echo $ECHO_N "(cached) $ECHO_C" >&6
3192
lt_cv_ld_reload_flag='-r'
3194
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3195
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3196
reload_flag=$lt_cv_ld_reload_flag
3197
case $reload_flag in
3199
*) reload_flag=" $reload_flag" ;;
3201
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3203
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3204
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3205
if test "${lt_cv_path_NM+set}" = set; then
3206
echo $ECHO_N "(cached) $ECHO_C" >&6
3208
if test -n "$NM"; then
3209
# Let the user override the test.
3212
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3213
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3215
test -z "$ac_dir" && ac_dir=.
3216
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3217
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3218
# Check to see if the nm accepts a BSD-compat flag.
3219
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3220
# nm: unknown option "B" ignored
3221
# Tru64's nm complains that /dev/null is an invalid object file
3222
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3223
*/dev/null* | *'Invalid file or object type'*)
3224
lt_cv_path_NM="$tmp_nm -B"
3228
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3230
lt_cv_path_NM="$tmp_nm -p"
3234
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3235
continue # so that we can try to find one that supports BSD flags
3242
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3245
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3246
echo "${ECHO_T}$lt_cv_path_NM" >&6
3249
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3250
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3252
if test "$LN_S" = "ln -s"; then
3253
echo "$as_me:$LINENO: result: yes" >&5
3254
echo "${ECHO_T}yes" >&6
3256
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3257
echo "${ECHO_T}no, using $LN_S" >&6
3260
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3261
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3262
if test "${lt_cv_deplibs_check_method+set}" = set; then
3263
echo $ECHO_N "(cached) $ECHO_C" >&6
3265
lt_cv_file_magic_cmd='$MAGIC_CMD'
3266
lt_cv_file_magic_test_file=
3267
lt_cv_deplibs_check_method='unknown'
3268
# Need to set the preceding variable on all platforms that support
3269
# interlibrary dependencies.
3270
# 'none' -- dependencies not supported.
3271
# `unknown' -- same as none, but documents that we really don't know.
3272
# 'pass_all' -- all dependencies passed with no checks.
3273
# 'test_compile' -- check by making test program.
3274
# 'file_magic [[regex]]' -- check by looking for files in library path
3275
# which responds to the $file_magic_cmd with a given extended regex.
3276
# If you have `file' or equivalent on your system and you're not sure
3277
# whether `pass_all' will *always* work, you probably want this one.
3281
lt_cv_deplibs_check_method=pass_all
3285
lt_cv_deplibs_check_method=pass_all
3289
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3290
lt_cv_file_magic_cmd='/usr/bin/file -L'
3291
lt_cv_file_magic_test_file=/shlib/libc.so
3294
cygwin* | mingw* | pw32*)
3295
# win32_libid is a shell function defined in ltmain.sh
3296
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3297
lt_cv_file_magic_cmd='win32_libid'
3300
darwin* | rhapsody*)
3301
# this will be overwritten by pass_all, but leave it in just in case
3302
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3303
lt_cv_file_magic_cmd='/usr/bin/file -L'
3305
rhapsody* | darwin1.[012])
3306
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3309
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3312
lt_cv_deplibs_check_method=pass_all
3316
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3319
# Not sure whether the presence of OpenBSD here was a mistake.
3320
# Let's accept both of them until this is cleared up.
3321
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3322
lt_cv_file_magic_cmd=/usr/bin/file
3323
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3327
lt_cv_deplibs_check_method=pass_all
3332
lt_cv_deplibs_check_method=pass_all
3335
hpux10.20* | hpux11*)
3336
lt_cv_file_magic_cmd=/usr/bin/file
3339
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3340
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3343
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]'
3344
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3347
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3348
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3353
irix5* | irix6* | nonstopux*)
3355
irix5* | nonstopux*)
3356
# this will be overridden with pass_all, but let us keep it just in case
3357
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3361
*-32|*"-32 ") libmagic=32-bit;;
3362
*-n32|*"-n32 ") libmagic=N32;;
3363
*-64|*"-64 ") libmagic=64-bit;;
3364
*) libmagic=never-match;;
3366
# this will be overridden with pass_all, but let us keep it just in case
3367
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3370
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3371
lt_cv_deplibs_check_method=pass_all
3374
# This must be Linux ELF.
3377
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3378
lt_cv_deplibs_check_method=pass_all ;;
3380
# glibc up to 2.1.1 does not perform some relocations on ARM
3381
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3383
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3387
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3388
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3390
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3395
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3396
lt_cv_file_magic_cmd=/usr/bin/file
3397
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3401
lt_cv_deplibs_check_method=unknown
3405
lt_cv_file_magic_cmd=/usr/bin/file
3406
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3407
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3408
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3410
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3414
osf3* | osf4* | osf5*)
3415
# this will be overridden with pass_all, but let us keep it just in case
3416
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3417
lt_cv_file_magic_test_file=/shlib/libc.so
3418
lt_cv_deplibs_check_method=pass_all
3422
lt_cv_deplibs_check_method=pass_all
3426
lt_cv_deplibs_check_method=pass_all
3427
lt_cv_file_magic_test_file=/lib/libc.so
3430
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3431
case $host_vendor in
3433
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]'
3434
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3437
lt_cv_deplibs_check_method=pass_all
3440
lt_cv_file_magic_cmd='/bin/file'
3441
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3444
lt_cv_file_magic_cmd='/bin/file'
3445
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3446
lt_cv_file_magic_test_file=/lib/libc.so
3449
lt_cv_deplibs_check_method=pass_all
3454
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3455
lt_cv_deplibs_check_method=pass_all
3460
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3461
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3462
file_magic_cmd=$lt_cv_file_magic_cmd
3463
deplibs_check_method=$lt_cv_deplibs_check_method
3464
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3469
# If no C compiler was specified, use CC.
3472
# Allow CC to be a program name with arguments.
3476
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3477
if test "${enable_libtool_lock+set}" = set; then
3478
enableval="$enable_libtool_lock"
3481
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3483
# Some flags need to be propagated to the compiler or linker for good
3487
# Find out which ABI we are using.
3488
echo 'int i;' > conftest.$ac_ext
3489
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490
(eval $ac_compile) 2>&5
3492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493
(exit $ac_status); }; then
3494
case `/usr/bin/file conftest.$ac_objext` in
3506
# Find out which ABI we are using.
3507
echo '#line 3507 "configure"' > conftest.$ac_ext
3508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509
(eval $ac_compile) 2>&5
3511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512
(exit $ac_status); }; then
3513
if test "$lt_cv_prog_gnu_ld" = yes; then
3514
case `/usr/bin/file conftest.$ac_objext` in
3516
LD="${LD-ld} -melf32bsmip"
3519
LD="${LD-ld} -melf32bmipn32"
3522
LD="${LD-ld} -melf64bmip"
3526
case `/usr/bin/file conftest.$ac_objext` in
3542
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3543
# Find out which ABI we are using.
3544
echo 'int i;' > conftest.$ac_ext
3545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546
(eval $ac_compile) 2>&5
3548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549
(exit $ac_status); }; then
3550
case "`/usr/bin/file conftest.o`" in
3554
LD="${LD-ld} -m elf_i386"
3557
LD="${LD-ld} -m elf32ppclinux"
3560
LD="${LD-ld} -m elf_s390"
3563
LD="${LD-ld} -m elf32_sparc"
3570
LD="${LD-ld} -m elf_x86_64"
3572
ppc*-*linux*|powerpc*-*linux*)
3573
LD="${LD-ld} -m elf64ppc"
3576
LD="${LD-ld} -m elf64_s390"
3579
LD="${LD-ld} -m elf64_sparc"
3589
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3590
SAVE_CFLAGS="$CFLAGS"
3591
CFLAGS="$CFLAGS -belf"
3592
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3593
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3594
if test "${lt_cv_cc_needs_belf+set}" = set; then
3595
echo $ECHO_N "(cached) $ECHO_C" >&6
3598
ac_cpp='$CPP $CPPFLAGS'
3599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
cat >conftest.$ac_ext <<_ACEOF
3604
#line $LINENO "configure"
3607
cat confdefs.h >>conftest.$ac_ext
3608
cat >>conftest.$ac_ext <<_ACEOF
3609
/* end confdefs.h. */
3619
rm -f conftest.$ac_objext conftest$ac_exeext
3620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621
(eval $ac_link) 2>&5
3623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
(exit $ac_status); } &&
3625
{ ac_try='test -s conftest$ac_exeext'
3626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630
(exit $ac_status); }; }; then
3631
lt_cv_cc_needs_belf=yes
3633
echo "$as_me: failed program was:" >&5
3634
sed 's/^/| /' conftest.$ac_ext >&5
3636
lt_cv_cc_needs_belf=no
3638
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3640
ac_cpp='$CPP $CPPFLAGS'
3641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3647
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3648
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3649
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3650
CFLAGS="$SAVE_CFLAGS"
3656
need_locks="$enable_libtool_lock"
3660
ac_cpp='$CPP $CPPFLAGS'
3661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3665
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3666
# On Suns, sometimes $CPP names a directory.
3667
if test -n "$CPP" && test -d "$CPP"; then
3670
if test -z "$CPP"; then
3671
if test "${ac_cv_prog_CPP+set}" = set; then
3672
echo $ECHO_N "(cached) $ECHO_C" >&6
3674
# Double quotes because CPP needs to be expanded
3675
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678
for ac_c_preproc_warn_flag in '' yes
3680
# Use a header file that comes with gcc, so configuring glibc
3681
# with a fresh cross-compiler works.
3682
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3683
# <limits.h> exists even on freestanding compilers.
3684
# On the NeXT, cc -E runs the code through the compiler's parser,
3685
# not just through cpp. "Syntax error" is here to catch this case.
3686
cat >conftest.$ac_ext <<_ACEOF
3687
#line $LINENO "configure"
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h. */
3694
# include <limits.h>
3696
# include <assert.h>
3700
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703
grep -v '^ *+' conftest.er1 >conftest.err
3705
cat conftest.err >&5
3706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707
(exit $ac_status); } >/dev/null; then
3708
if test -s conftest.err; then
3709
ac_cpp_err=$ac_c_preproc_warn_flag
3716
if test -z "$ac_cpp_err"; then
3719
echo "$as_me: failed program was:" >&5
3720
sed 's/^/| /' conftest.$ac_ext >&5
3722
# Broken: fails on valid input.
3725
rm -f conftest.err conftest.$ac_ext
3727
# OK, works on sane cases. Now check whether non-existent headers
3728
# can be detected and how.
3729
cat >conftest.$ac_ext <<_ACEOF
3730
#line $LINENO "configure"
3733
cat confdefs.h >>conftest.$ac_ext
3734
cat >>conftest.$ac_ext <<_ACEOF
3735
/* end confdefs.h. */
3736
#include <ac_nonexistent.h>
3738
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3739
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741
grep -v '^ *+' conftest.er1 >conftest.err
3743
cat conftest.err >&5
3744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
(exit $ac_status); } >/dev/null; then
3746
if test -s conftest.err; then
3747
ac_cpp_err=$ac_c_preproc_warn_flag
3754
if test -z "$ac_cpp_err"; then
3755
# Broken: success on invalid input.
3758
echo "$as_me: failed program was:" >&5
3759
sed 's/^/| /' conftest.$ac_ext >&5
3761
# Passes both tests.
3765
rm -f conftest.err conftest.$ac_ext
3768
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769
rm -f conftest.err conftest.$ac_ext
3770
if $ac_preproc_ok; then
3782
echo "$as_me:$LINENO: result: $CPP" >&5
3783
echo "${ECHO_T}$CPP" >&6
3785
for ac_c_preproc_warn_flag in '' yes
3787
# Use a header file that comes with gcc, so configuring glibc
3788
# with a fresh cross-compiler works.
3789
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790
# <limits.h> exists even on freestanding compilers.
3791
# On the NeXT, cc -E runs the code through the compiler's parser,
3792
# not just through cpp. "Syntax error" is here to catch this case.
3793
cat >conftest.$ac_ext <<_ACEOF
3794
#line $LINENO "configure"
3797
cat confdefs.h >>conftest.$ac_ext
3798
cat >>conftest.$ac_ext <<_ACEOF
3799
/* end confdefs.h. */
3801
# include <limits.h>
3803
# include <assert.h>
3807
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810
grep -v '^ *+' conftest.er1 >conftest.err
3812
cat conftest.err >&5
3813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814
(exit $ac_status); } >/dev/null; then
3815
if test -s conftest.err; then
3816
ac_cpp_err=$ac_c_preproc_warn_flag
3823
if test -z "$ac_cpp_err"; then
3826
echo "$as_me: failed program was:" >&5
3827
sed 's/^/| /' conftest.$ac_ext >&5
3829
# Broken: fails on valid input.
3832
rm -f conftest.err conftest.$ac_ext
3834
# OK, works on sane cases. Now check whether non-existent headers
3835
# can be detected and how.
3836
cat >conftest.$ac_ext <<_ACEOF
3837
#line $LINENO "configure"
3840
cat confdefs.h >>conftest.$ac_ext
3841
cat >>conftest.$ac_ext <<_ACEOF
3842
/* end confdefs.h. */
3843
#include <ac_nonexistent.h>
3845
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848
grep -v '^ *+' conftest.er1 >conftest.err
3850
cat conftest.err >&5
3851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852
(exit $ac_status); } >/dev/null; then
3853
if test -s conftest.err; then
3854
ac_cpp_err=$ac_c_preproc_warn_flag
3861
if test -z "$ac_cpp_err"; then
3862
# Broken: success on invalid input.
3865
echo "$as_me: failed program was:" >&5
3866
sed 's/^/| /' conftest.$ac_ext >&5
3868
# Passes both tests.
3872
rm -f conftest.err conftest.$ac_ext
3875
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876
rm -f conftest.err conftest.$ac_ext
3877
if $ac_preproc_ok; then
3880
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3881
See \`config.log' for more details." >&5
3882
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3883
See \`config.log' for more details." >&2;}
3884
{ (exit 1); exit 1; }; }
3888
ac_cpp='$CPP $CPPFLAGS'
3889
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3895
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3896
if test "${ac_cv_header_stdc+set}" = set; then
3897
echo $ECHO_N "(cached) $ECHO_C" >&6
3899
cat >conftest.$ac_ext <<_ACEOF
3900
#line $LINENO "configure"
3903
cat confdefs.h >>conftest.$ac_ext
3904
cat >>conftest.$ac_ext <<_ACEOF
3905
/* end confdefs.h. */
3919
rm -f conftest.$ac_objext
3920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921
(eval $ac_compile) 2>&5
3923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924
(exit $ac_status); } &&
3925
{ ac_try='test -s conftest.$ac_objext'
3926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
(exit $ac_status); }; }; then
3931
ac_cv_header_stdc=yes
3933
echo "$as_me: failed program was:" >&5
3934
sed 's/^/| /' conftest.$ac_ext >&5
3936
ac_cv_header_stdc=no
3938
rm -f conftest.$ac_objext conftest.$ac_ext
3940
if test $ac_cv_header_stdc = yes; then
3941
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942
cat >conftest.$ac_ext <<_ACEOF
3943
#line $LINENO "configure"
3946
cat confdefs.h >>conftest.$ac_ext
3947
cat >>conftest.$ac_ext <<_ACEOF
3948
/* end confdefs.h. */
3952
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953
$EGREP "memchr" >/dev/null 2>&1; then
3956
ac_cv_header_stdc=no
3962
if test $ac_cv_header_stdc = yes; then
3963
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3964
cat >conftest.$ac_ext <<_ACEOF
3965
#line $LINENO "configure"
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h. */
3974
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975
$EGREP "free" >/dev/null 2>&1; then
3978
ac_cv_header_stdc=no
3984
if test $ac_cv_header_stdc = yes; then
3985
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3986
if test "$cross_compiling" = yes; then
3989
cat >conftest.$ac_ext <<_ACEOF
3990
#line $LINENO "configure"
3993
cat confdefs.h >>conftest.$ac_ext
3994
cat >>conftest.$ac_ext <<_ACEOF
3995
/* end confdefs.h. */
3997
#if ((' ' & 0x0FF) == 0x020)
3998
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3999
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4001
# define ISLOWER(c) \
4002
(('a' <= (c) && (c) <= 'i') \
4003
|| ('j' <= (c) && (c) <= 'r') \
4004
|| ('s' <= (c) && (c) <= 'z'))
4005
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4008
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4013
for (i = 0; i < 256; i++)
4014
if (XOR (islower (i), ISLOWER (i))
4015
|| toupper (i) != TOUPPER (i))
4020
rm -f conftest$ac_exeext
4021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022
(eval $ac_link) 2>&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
(exit $ac_status); }; }; then
4033
echo "$as_me: program exited with status $ac_status" >&5
4034
echo "$as_me: failed program was:" >&5
4035
sed 's/^/| /' conftest.$ac_ext >&5
4038
ac_cv_header_stdc=no
4040
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4044
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4045
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4046
if test $ac_cv_header_stdc = yes; then
4048
cat >>confdefs.h <<\_ACEOF
4049
#define STDC_HEADERS 1
4054
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4064
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4065
inttypes.h stdint.h unistd.h
4067
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4068
echo "$as_me:$LINENO: checking for $ac_header" >&5
4069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071
echo $ECHO_N "(cached) $ECHO_C" >&6
4073
cat >conftest.$ac_ext <<_ACEOF
4074
#line $LINENO "configure"
4077
cat confdefs.h >>conftest.$ac_ext
4078
cat >>conftest.$ac_ext <<_ACEOF
4079
/* end confdefs.h. */
4080
$ac_includes_default
4082
#include <$ac_header>
4084
rm -f conftest.$ac_objext
4085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086
(eval $ac_compile) 2>&5
4088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
(exit $ac_status); } &&
4090
{ ac_try='test -s conftest.$ac_objext'
4091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095
(exit $ac_status); }; }; then
4096
eval "$as_ac_Header=yes"
4098
echo "$as_me: failed program was:" >&5
4099
sed 's/^/| /' conftest.$ac_ext >&5
4101
eval "$as_ac_Header=no"
4103
rm -f conftest.$ac_objext conftest.$ac_ext
4105
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4106
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4107
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4108
cat >>confdefs.h <<_ACEOF
4109
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118
for ac_header in dlfcn.h
4120
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4121
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4122
echo "$as_me:$LINENO: checking for $ac_header" >&5
4123
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4124
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125
echo $ECHO_N "(cached) $ECHO_C" >&6
4127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4130
# Is the header compilable?
4131
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4132
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4133
cat >conftest.$ac_ext <<_ACEOF
4134
#line $LINENO "configure"
4137
cat confdefs.h >>conftest.$ac_ext
4138
cat >>conftest.$ac_ext <<_ACEOF
4139
/* end confdefs.h. */
4140
$ac_includes_default
4141
#include <$ac_header>
4143
rm -f conftest.$ac_objext
4144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145
(eval $ac_compile) 2>&5
4147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148
(exit $ac_status); } &&
4149
{ ac_try='test -s conftest.$ac_objext'
4150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154
(exit $ac_status); }; }; then
4155
ac_header_compiler=yes
4157
echo "$as_me: failed program was:" >&5
4158
sed 's/^/| /' conftest.$ac_ext >&5
4160
ac_header_compiler=no
4162
rm -f conftest.$ac_objext conftest.$ac_ext
4163
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4164
echo "${ECHO_T}$ac_header_compiler" >&6
4166
# Is the header present?
4167
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4168
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4169
cat >conftest.$ac_ext <<_ACEOF
4170
#line $LINENO "configure"
4173
cat confdefs.h >>conftest.$ac_ext
4174
cat >>conftest.$ac_ext <<_ACEOF
4175
/* end confdefs.h. */
4176
#include <$ac_header>
4178
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4179
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181
grep -v '^ *+' conftest.er1 >conftest.err
4183
cat conftest.err >&5
4184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185
(exit $ac_status); } >/dev/null; then
4186
if test -s conftest.err; then
4187
ac_cpp_err=$ac_c_preproc_warn_flag
4194
if test -z "$ac_cpp_err"; then
4195
ac_header_preproc=yes
4197
echo "$as_me: failed program was:" >&5
4198
sed 's/^/| /' conftest.$ac_ext >&5
4200
ac_header_preproc=no
4202
rm -f conftest.err conftest.$ac_ext
4203
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4204
echo "${ECHO_T}$ac_header_preproc" >&6
4206
# So? What about this header?
4207
case $ac_header_compiler:$ac_header_preproc in
4209
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4210
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4211
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4212
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4215
## ------------------------------------ ##
4216
## Report this to bug-autoconf@gnu.org. ##
4217
## ------------------------------------ ##
4220
sed "s/^/$as_me: WARNING: /" >&2
4223
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4224
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4225
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4226
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4227
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4228
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4231
## ------------------------------------ ##
4232
## Report this to bug-autoconf@gnu.org. ##
4233
## ------------------------------------ ##
4236
sed "s/^/$as_me: WARNING: /" >&2
4239
echo "$as_me:$LINENO: checking for $ac_header" >&5
4240
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242
echo $ECHO_N "(cached) $ECHO_C" >&6
4244
eval "$as_ac_Header=$ac_header_preproc"
4246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4250
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4251
cat >>confdefs.h <<_ACEOF
4252
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4260
ac_cpp='$CXXCPP $CPPFLAGS'
4261
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4264
if test -n "$ac_tool_prefix"; then
4265
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4267
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4268
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4269
echo "$as_me:$LINENO: checking for $ac_word" >&5
4270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271
if test "${ac_cv_prog_CXX+set}" = set; then
4272
echo $ECHO_N "(cached) $ECHO_C" >&6
4274
if test -n "$CXX"; then
4275
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281
test -z "$as_dir" && as_dir=.
4282
for ac_exec_ext in '' $ac_executable_extensions; do
4283
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4285
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294
if test -n "$CXX"; then
4295
echo "$as_me:$LINENO: result: $CXX" >&5
4296
echo "${ECHO_T}$CXX" >&6
4298
echo "$as_me:$LINENO: result: no" >&5
4299
echo "${ECHO_T}no" >&6
4302
test -n "$CXX" && break
4305
if test -z "$CXX"; then
4307
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4309
# Extract the first word of "$ac_prog", so it can be a program name with args.
4310
set dummy $ac_prog; ac_word=$2
4311
echo "$as_me:$LINENO: checking for $ac_word" >&5
4312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4314
echo $ECHO_N "(cached) $ECHO_C" >&6
4316
if test -n "$ac_ct_CXX"; then
4317
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323
test -z "$as_dir" && as_dir=.
4324
for ac_exec_ext in '' $ac_executable_extensions; do
4325
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326
ac_cv_prog_ac_ct_CXX="$ac_prog"
4327
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4336
if test -n "$ac_ct_CXX"; then
4337
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4338
echo "${ECHO_T}$ac_ct_CXX" >&6
4340
echo "$as_me:$LINENO: result: no" >&5
4341
echo "${ECHO_T}no" >&6
4344
test -n "$ac_ct_CXX" && break
4346
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4352
# Provide some information about the compiler.
4353
echo "$as_me:$LINENO:" \
4354
"checking for C++ compiler version" >&5
4355
ac_compiler=`set X $ac_compile; echo $2`
4356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4357
(eval $ac_compiler --version </dev/null >&5) 2>&5
4359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
(exit $ac_status); }
4361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4362
(eval $ac_compiler -v </dev/null >&5) 2>&5
4364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
(exit $ac_status); }
4366
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4367
(eval $ac_compiler -V </dev/null >&5) 2>&5
4369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
(exit $ac_status); }
4372
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4373
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4374
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4375
echo $ECHO_N "(cached) $ECHO_C" >&6
4377
cat >conftest.$ac_ext <<_ACEOF
4378
#line $LINENO "configure"
4381
cat confdefs.h >>conftest.$ac_ext
4382
cat >>conftest.$ac_ext <<_ACEOF
4383
/* end confdefs.h. */
4396
rm -f conftest.$ac_objext
4397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398
(eval $ac_compile) 2>&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); } &&
4402
{ ac_try='test -s conftest.$ac_objext'
4403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); }; }; then
4410
echo "$as_me: failed program was:" >&5
4411
sed 's/^/| /' conftest.$ac_ext >&5
4415
rm -f conftest.$ac_objext conftest.$ac_ext
4416
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4419
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4420
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4421
GXX=`test $ac_compiler_gnu = yes && echo yes`
4422
ac_test_CXXFLAGS=${CXXFLAGS+set}
4423
ac_save_CXXFLAGS=$CXXFLAGS
4425
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4426
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4427
if test "${ac_cv_prog_cxx_g+set}" = set; then
4428
echo $ECHO_N "(cached) $ECHO_C" >&6
4430
cat >conftest.$ac_ext <<_ACEOF
4431
#line $LINENO "configure"
4434
cat confdefs.h >>conftest.$ac_ext
4435
cat >>conftest.$ac_ext <<_ACEOF
4436
/* end confdefs.h. */
4446
rm -f conftest.$ac_objext
4447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448
(eval $ac_compile) 2>&5
4450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451
(exit $ac_status); } &&
4452
{ ac_try='test -s conftest.$ac_objext'
4453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
(exit $ac_status); }; }; then
4458
ac_cv_prog_cxx_g=yes
4460
echo "$as_me: failed program was:" >&5
4461
sed 's/^/| /' conftest.$ac_ext >&5
4465
rm -f conftest.$ac_objext conftest.$ac_ext
4467
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4468
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4469
if test "$ac_test_CXXFLAGS" = set; then
4470
CXXFLAGS=$ac_save_CXXFLAGS
4471
elif test $ac_cv_prog_cxx_g = yes; then
4472
if test "$GXX" = yes; then
4478
if test "$GXX" = yes; then
4484
for ac_declaration in \
4486
'#include <stdlib.h>' \
4487
'extern "C" void std::exit (int) throw (); using std::exit;' \
4488
'extern "C" void std::exit (int); using std::exit;' \
4489
'extern "C" void exit (int) throw ();' \
4490
'extern "C" void exit (int);' \
4493
cat >conftest.$ac_ext <<_ACEOF
4494
#line $LINENO "configure"
4497
cat confdefs.h >>conftest.$ac_ext
4498
cat >>conftest.$ac_ext <<_ACEOF
4499
/* end confdefs.h. */
4510
rm -f conftest.$ac_objext
4511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512
(eval $ac_compile) 2>&5
4514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
(exit $ac_status); } &&
4516
{ ac_try='test -s conftest.$ac_objext'
4517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
(exit $ac_status); }; }; then
4524
echo "$as_me: failed program was:" >&5
4525
sed 's/^/| /' conftest.$ac_ext >&5
4529
rm -f conftest.$ac_objext conftest.$ac_ext
4530
cat >conftest.$ac_ext <<_ACEOF
4531
#line $LINENO "configure"
4534
cat confdefs.h >>conftest.$ac_ext
4535
cat >>conftest.$ac_ext <<_ACEOF
4536
/* end confdefs.h. */
4546
rm -f conftest.$ac_objext
4547
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548
(eval $ac_compile) 2>&5
4550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
(exit $ac_status); } &&
4552
{ ac_try='test -s conftest.$ac_objext'
4553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557
(exit $ac_status); }; }; then
4560
echo "$as_me: failed program was:" >&5
4561
sed 's/^/| /' conftest.$ac_ext >&5
4564
rm -f conftest.$ac_objext conftest.$ac_ext
4567
if test -n "$ac_declaration"; then
4568
echo '#ifdef __cplusplus' >>confdefs.h
4569
echo $ac_declaration >>confdefs.h
4570
echo '#endif' >>confdefs.h
4574
ac_cpp='$CXXCPP $CPPFLAGS'
4575
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4579
depcc="$CXX" am_compiler_list=
4581
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4582
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4583
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4584
echo $ECHO_N "(cached) $ECHO_C" >&6
4586
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4587
# We make a subdir and do the tests there. Otherwise we can end up
4588
# making bogus files that we don't know about and never remove. For
4589
# instance it was reported that on HP-UX the gcc test will end up
4590
# making a dummy file named `D' -- because `-MD' means `put the output
4593
# Copy depcomp to subdir because otherwise we won't find it if we're
4594
# using a relative directory.
4595
cp "$am_depcomp" conftest.dir
4598
am_cv_CXX_dependencies_compiler_type=none
4599
if test "$am_compiler_list" = ""; then
4600
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4602
for depmode in $am_compiler_list; do
4603
# We need to recreate these files for each test, as the compiler may
4604
# overwrite some of them when testing with obscure command lines.
4605
# This happens at least with the AIX C compiler.
4606
echo '#include "conftest.h"' > conftest.c
4607
echo 'int i;' > conftest.h
4608
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4612
# after this tag, mechanisms are not by side-effect, so they'll
4613
# only be used when explicitly requested
4614
if test "x$enable_dependency_tracking" = xyes; then
4622
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4623
# mode. It turns out that the SunPro C++ compiler does not properly
4624
# handle `-M -o', and we need to detect this.
4625
if depmode=$depmode \
4626
source=conftest.c object=conftest.o \
4627
depfile=conftest.Po tmpdepfile=conftest.TPo \
4628
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
4629
>/dev/null 2>conftest.err &&
4630
grep conftest.h conftest.Po > /dev/null 2>&1 &&
4631
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4632
# icc doesn't choke on unknown options, it will just issue warnings
4633
# (even with -Werror). So we grep stderr for any message
4634
# that says an option was ignored.
4635
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4636
am_cv_CXX_dependencies_compiler_type=$depmode
4645
am_cv_CXX_dependencies_compiler_type=none
4649
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4650
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4651
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4656
test "x$enable_dependency_tracking" != xno \
4657
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4658
am__fastdepCXX_TRUE=
4659
am__fastdepCXX_FALSE='#'
4661
am__fastdepCXX_TRUE='#'
4662
am__fastdepCXX_FALSE=
4667
ac_cpp='$CXXCPP $CPPFLAGS'
4668
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4671
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4672
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4673
if test -z "$CXXCPP"; then
4674
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4675
echo $ECHO_N "(cached) $ECHO_C" >&6
4677
# Double quotes because CXXCPP needs to be expanded
4678
for CXXCPP in "$CXX -E" "/lib/cpp"
4681
for ac_cxx_preproc_warn_flag in '' yes
4683
# Use a header file that comes with gcc, so configuring glibc
4684
# with a fresh cross-compiler works.
4685
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686
# <limits.h> exists even on freestanding compilers.
4687
# On the NeXT, cc -E runs the code through the compiler's parser,
4688
# not just through cpp. "Syntax error" is here to catch this case.
4689
cat >conftest.$ac_ext <<_ACEOF
4690
#line $LINENO "configure"
4693
cat confdefs.h >>conftest.$ac_ext
4694
cat >>conftest.$ac_ext <<_ACEOF
4695
/* end confdefs.h. */
4697
# include <limits.h>
4699
# include <assert.h>
4703
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4706
grep -v '^ *+' conftest.er1 >conftest.err
4708
cat conftest.err >&5
4709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710
(exit $ac_status); } >/dev/null; then
4711
if test -s conftest.err; then
4712
ac_cpp_err=$ac_cxx_preproc_warn_flag
4719
if test -z "$ac_cpp_err"; then
4722
echo "$as_me: failed program was:" >&5
4723
sed 's/^/| /' conftest.$ac_ext >&5
4725
# Broken: fails on valid input.
4728
rm -f conftest.err conftest.$ac_ext
4730
# OK, works on sane cases. Now check whether non-existent headers
4731
# can be detected and how.
4732
cat >conftest.$ac_ext <<_ACEOF
4733
#line $LINENO "configure"
4736
cat confdefs.h >>conftest.$ac_ext
4737
cat >>conftest.$ac_ext <<_ACEOF
4738
/* end confdefs.h. */
4739
#include <ac_nonexistent.h>
4741
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4742
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744
grep -v '^ *+' conftest.er1 >conftest.err
4746
cat conftest.err >&5
4747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748
(exit $ac_status); } >/dev/null; then
4749
if test -s conftest.err; then
4750
ac_cpp_err=$ac_cxx_preproc_warn_flag
4757
if test -z "$ac_cpp_err"; then
4758
# Broken: success on invalid input.
4761
echo "$as_me: failed program was:" >&5
4762
sed 's/^/| /' conftest.$ac_ext >&5
4764
# Passes both tests.
4768
rm -f conftest.err conftest.$ac_ext
4771
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772
rm -f conftest.err conftest.$ac_ext
4773
if $ac_preproc_ok; then
4778
ac_cv_prog_CXXCPP=$CXXCPP
4781
CXXCPP=$ac_cv_prog_CXXCPP
4783
ac_cv_prog_CXXCPP=$CXXCPP
4785
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4786
echo "${ECHO_T}$CXXCPP" >&6
4788
for ac_cxx_preproc_warn_flag in '' yes
4790
# Use a header file that comes with gcc, so configuring glibc
4791
# with a fresh cross-compiler works.
4792
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793
# <limits.h> exists even on freestanding compilers.
4794
# On the NeXT, cc -E runs the code through the compiler's parser,
4795
# not just through cpp. "Syntax error" is here to catch this case.
4796
cat >conftest.$ac_ext <<_ACEOF
4797
#line $LINENO "configure"
4800
cat confdefs.h >>conftest.$ac_ext
4801
cat >>conftest.$ac_ext <<_ACEOF
4802
/* end confdefs.h. */
4804
# include <limits.h>
4806
# include <assert.h>
4810
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4813
grep -v '^ *+' conftest.er1 >conftest.err
4815
cat conftest.err >&5
4816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
(exit $ac_status); } >/dev/null; then
4818
if test -s conftest.err; then
4819
ac_cpp_err=$ac_cxx_preproc_warn_flag
4826
if test -z "$ac_cpp_err"; then
4829
echo "$as_me: failed program was:" >&5
4830
sed 's/^/| /' conftest.$ac_ext >&5
4832
# Broken: fails on valid input.
4835
rm -f conftest.err conftest.$ac_ext
4837
# OK, works on sane cases. Now check whether non-existent headers
4838
# can be detected and how.
4839
cat >conftest.$ac_ext <<_ACEOF
4840
#line $LINENO "configure"
4843
cat confdefs.h >>conftest.$ac_ext
4844
cat >>conftest.$ac_ext <<_ACEOF
4845
/* end confdefs.h. */
4846
#include <ac_nonexistent.h>
4848
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4851
grep -v '^ *+' conftest.er1 >conftest.err
4853
cat conftest.err >&5
4854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855
(exit $ac_status); } >/dev/null; then
4856
if test -s conftest.err; then
4857
ac_cpp_err=$ac_cxx_preproc_warn_flag
4864
if test -z "$ac_cpp_err"; then
4865
# Broken: success on invalid input.
4868
echo "$as_me: failed program was:" >&5
4869
sed 's/^/| /' conftest.$ac_ext >&5
4871
# Passes both tests.
4875
rm -f conftest.err conftest.$ac_ext
4878
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879
rm -f conftest.err conftest.$ac_ext
4880
if $ac_preproc_ok; then
4883
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4884
See \`config.log' for more details." >&5
4885
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4886
See \`config.log' for more details." >&2;}
4887
{ (exit 1); exit 1; }; }
4891
ac_cpp='$CXXCPP $CPPFLAGS'
4892
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4898
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4899
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4901
if test -n "$ac_tool_prefix"; then
4902
for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4904
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4905
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4906
echo "$as_me:$LINENO: checking for $ac_word" >&5
4907
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4908
if test "${ac_cv_prog_F77+set}" = set; then
4909
echo $ECHO_N "(cached) $ECHO_C" >&6
4911
if test -n "$F77"; then
4912
ac_cv_prog_F77="$F77" # Let the user override the test.
4914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918
test -z "$as_dir" && as_dir=.
4919
for ac_exec_ext in '' $ac_executable_extensions; do
4920
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4922
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931
if test -n "$F77"; then
4932
echo "$as_me:$LINENO: result: $F77" >&5
4933
echo "${ECHO_T}$F77" >&6
4935
echo "$as_me:$LINENO: result: no" >&5
4936
echo "${ECHO_T}no" >&6
4939
test -n "$F77" && break
4942
if test -z "$F77"; then
4944
for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4946
# Extract the first word of "$ac_prog", so it can be a program name with args.
4947
set dummy $ac_prog; ac_word=$2
4948
echo "$as_me:$LINENO: checking for $ac_word" >&5
4949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4951
echo $ECHO_N "(cached) $ECHO_C" >&6
4953
if test -n "$ac_ct_F77"; then
4954
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960
test -z "$as_dir" && as_dir=.
4961
for ac_exec_ext in '' $ac_executable_extensions; do
4962
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963
ac_cv_prog_ac_ct_F77="$ac_prog"
4964
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972
ac_ct_F77=$ac_cv_prog_ac_ct_F77
4973
if test -n "$ac_ct_F77"; then
4974
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4975
echo "${ECHO_T}$ac_ct_F77" >&6
4977
echo "$as_me:$LINENO: result: no" >&5
4978
echo "${ECHO_T}no" >&6
4981
test -n "$ac_ct_F77" && break
4988
# Provide some information about the compiler.
4989
echo "$as_me:4989:" \
4990
"checking for Fortran 77 compiler version" >&5
4991
ac_compiler=`set X $ac_compile; echo $2`
4992
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4993
(eval $ac_compiler --version </dev/null >&5) 2>&5
4995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996
(exit $ac_status); }
4997
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4998
(eval $ac_compiler -v </dev/null >&5) 2>&5
5000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001
(exit $ac_status); }
5002
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5003
(eval $ac_compiler -V </dev/null >&5) 2>&5
5005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006
(exit $ac_status); }
5008
# If we don't use `.F' as extension, the preprocessor is not run on the
5012
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5013
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5014
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5015
echo $ECHO_N "(cached) $ECHO_C" >&6
5017
cat >conftest.$ac_ext <<_ACEOF
5025
rm -f conftest.$ac_objext
5026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027
(eval $ac_compile) 2>&5
5029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030
(exit $ac_status); } &&
5031
{ ac_try='test -s conftest.$ac_objext'
5032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); }; }; then
5039
echo "$as_me: failed program was:" >&5
5040
sed 's/^/| /' conftest.$ac_ext >&5
5044
rm -f conftest.$ac_objext conftest.$ac_ext
5045
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5048
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5049
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5051
G77=`test $ac_compiler_gnu = yes && echo yes`
5052
ac_test_FFLAGS=${FFLAGS+set}
5053
ac_save_FFLAGS=$FFLAGS
5055
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5056
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5057
if test "${ac_cv_prog_f77_g+set}" = set; then
5058
echo $ECHO_N "(cached) $ECHO_C" >&6
5061
cat >conftest.$ac_ext <<_ACEOF
5066
rm -f conftest.$ac_objext
5067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068
(eval $ac_compile) 2>&5
5070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071
(exit $ac_status); } &&
5072
{ ac_try='test -s conftest.$ac_objext'
5073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
(exit $ac_status); }; }; then
5078
ac_cv_prog_f77_g=yes
5080
echo "$as_me: failed program was:" >&5
5081
sed 's/^/| /' conftest.$ac_ext >&5
5085
rm -f conftest.$ac_objext conftest.$ac_ext
5088
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5089
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5090
if test "$ac_test_FFLAGS" = set; then
5091
FFLAGS=$ac_save_FFLAGS
5092
elif test $ac_cv_prog_f77_g = yes; then
5093
if test "$G77" = yes; then
5099
if test "$G77" = yes; then
5106
ac_cpp='$CPP $CPPFLAGS'
5107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5115
# find the maximum length of command line arguments
5116
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5117
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5118
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5119
echo $ECHO_N "(cached) $ECHO_C" >&6
5126
# On DJGPP, this test can blow up pretty badly due to problems in libc
5127
# (any single argument exceeding 2000 bytes causes a buffer overrun
5128
# during glob expansion). Even if it were fixed, the result of this
5129
# check would be larger than it should be.
5130
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5134
# Under GNU Hurd, this test is not required because there is
5135
# no limit to the length of command line arguments.
5136
# Libtool will interpret -1 as no limit whatsoever
5137
lt_cv_sys_max_cmd_len=-1;
5141
# On Win9x/ME, this test blows up -- it succeeds, but takes
5142
# about 5 minutes as the teststring grows exponentially.
5143
# Worse, since 9x/ME are not pre-emptively multitasking,
5144
# you end up with a "frozen" computer, even though with patience
5145
# the test eventually succeeds (with a max line length of 256k).
5146
# Instead, let's just punt: use the minimum linelength reported by
5147
# all of the supported platforms: 8192 (on NT/2K/XP).
5148
lt_cv_sys_max_cmd_len=8192;
5152
# If test is not a shell built-in, we'll probably end up computing a
5153
# maximum length that is only half of the actual maximum length, but
5155
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5156
= "XX$testring") >/dev/null 2>&1 &&
5157
new_result=`expr "X$testring" : ".*" 2>&1` &&
5158
lt_cv_sys_max_cmd_len=$new_result &&
5159
test $i != 17 # 1/2 MB should be enough
5162
testring=$testring$testring
5165
# Add a significant safety factor because C++ compilers can tack on massive
5166
# amounts of additional arguments before passing them to the linker.
5167
# It appears as though 1/2 is a usable value.
5168
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5174
if test -n $lt_cv_sys_max_cmd_len ; then
5175
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5176
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5178
echo "$as_me:$LINENO: result: none" >&5
5179
echo "${ECHO_T}none" >&6
5185
# Check for command to grab the raw symbol name followed by C symbol from nm.
5186
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5187
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5188
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5189
echo $ECHO_N "(cached) $ECHO_C" >&6
5192
# These are sane defaults that work on at least a few old systems.
5193
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5195
# Character class describing NM global symbol codes.
5196
symcode='[BCDEGRST]'
5198
# Regexp to match symbols that can be accessed directly from C.
5199
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5201
# Transform the above into a raw symbol and a C symbol.
5202
symxfrm='\1 \2\3 \3'
5204
# Transform an extracted symbol line into a proper C declaration
5205
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5207
# Transform an extracted symbol line into symbol name and symbol address
5208
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'"
5210
# Define system-specific variables.
5215
cygwin* | mingw* | pw32*)
5216
symcode='[ABCDGISTW]'
5218
hpux*) # Its linker distinguishes data from code symbols
5219
if test "$host_cpu" = ia64; then
5220
symcode='[ABCDEGRST]'
5222
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5223
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'"
5226
symcode='[BCDEGRST]'
5229
symcode='[BCDEGQRST]'
5239
# Handle CRLF in mingw tool chain
5243
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5247
# If we're using GNU nm, then use its standard symbol codes.
5248
case `$NM -V 2>&1` in
5249
*GNU* | *'with BFD'*)
5250
symcode='[ABCDGISTW]' ;;
5253
# Try without a prefix undercore, then with it.
5254
for ac_symprfx in "" "_"; do
5256
# Write the raw and C identifiers.
5257
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5259
# Check to see that the pipe works correctly.
5263
cat > conftest.$ac_ext <<EOF
5268
void nm_test_func(){}
5272
int main(){nm_test_var='a';nm_test_func();return(0);}
5275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276
(eval $ac_compile) 2>&5
5278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279
(exit $ac_status); }; then
5280
# Now try to grab the symbols.
5282
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5283
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
(exit $ac_status); } && test -s "$nlist"; then
5287
# Try sorting and uniquifying the output.
5288
if sort "$nlist" | uniq > "$nlist"T; then
5289
mv -f "$nlist"T "$nlist"
5294
# Make sure that we snagged all the symbols we need.
5295
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5296
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5297
cat <<EOF > conftest.$ac_ext
5303
# Now generate the symbol file.
5304
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5306
cat <<EOF >> conftest.$ac_ext
5307
#if defined (__STDC__) && __STDC__
5308
# define lt_ptr_t void *
5310
# define lt_ptr_t char *
5314
/* The mapping between symbol names and symbols. */
5319
lt_preloaded_symbols[] =
5322
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5323
cat <<\EOF >> conftest.$ac_ext
5331
# Now try linking the two files.
5332
mv conftest.$ac_objext conftstm.$ac_objext
5333
lt_save_LIBS="$LIBS"
5334
lt_save_CFLAGS="$CFLAGS"
5335
LIBS="conftstm.$ac_objext"
5336
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5337
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338
(eval $ac_link) 2>&5
5340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5344
LIBS="$lt_save_LIBS"
5345
CFLAGS="$lt_save_CFLAGS"
5347
echo "cannot find nm_test_func in $nlist" >&5
5350
echo "cannot find nm_test_var in $nlist" >&5
5353
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5356
echo "$progname: failed program was:" >&5
5357
cat conftest.$ac_ext >&5
5359
rm -f conftest* conftst*
5361
# Do not use the global_symbol_pipe unless it works.
5362
if test "$pipe_works" = yes; then
5365
lt_cv_sys_global_symbol_pipe=
5371
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5372
lt_cv_sys_global_symbol_to_cdecl=
5374
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5375
echo "$as_me:$LINENO: result: failed" >&5
5376
echo "${ECHO_T}failed" >&6
5378
echo "$as_me:$LINENO: result: ok" >&5
5379
echo "${ECHO_T}ok" >&6
5382
echo "$as_me:$LINENO: checking for objdir" >&5
5383
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5384
if test "${lt_cv_objdir+set}" = set; then
5385
echo $ECHO_N "(cached) $ECHO_C" >&6
5387
rm -f .libs 2>/dev/null
5388
mkdir .libs 2>/dev/null
5389
if test -d .libs; then
5392
# MS-DOS does not allow filenames that begin with a dot.
5395
rmdir .libs 2>/dev/null
5397
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5398
echo "${ECHO_T}$lt_cv_objdir" >&6
5399
objdir=$lt_cv_objdir
5407
# AIX sometimes has problems with the GCC collect2 program. For some
5408
# reason, if we set the COLLECT_NAMES environment variable, the problems
5409
# vanish in a puff of smoke.
5410
if test "X${COLLECT_NAMES+set}" != Xset; then
5412
export COLLECT_NAMES
5417
# Sed substitution that helps us do robust quoting. It backslashifies
5418
# metacharacters that are still active within double-quoted strings.
5419
Xsed='sed -e s/^X//'
5420
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5422
# Same as above, but do not quote variable references.
5423
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5425
# Sed substitution to delay expansion of an escaped shell variable in a
5426
# double_quote_subst'ed string.
5427
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5429
# Sed substitution to avoid accidental globbing in evaled expressions
5430
no_glob_subst='s/\*/\\\*/g'
5436
default_ofile=libtool
5437
can_build_shared=yes
5439
# All known linkers require a `.a' archive for static linking (except M$VC,
5440
# which needs '.lib').
5442
ltmain="$ac_aux_dir/ltmain.sh"
5443
ofile="$default_ofile"
5444
with_gnu_ld="$lt_cv_prog_gnu_ld"
5446
if test -n "$ac_tool_prefix"; then
5447
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5448
set dummy ${ac_tool_prefix}ar; ac_word=$2
5449
echo "$as_me:$LINENO: checking for $ac_word" >&5
5450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451
if test "${ac_cv_prog_AR+set}" = set; then
5452
echo $ECHO_N "(cached) $ECHO_C" >&6
5454
if test -n "$AR"; then
5455
ac_cv_prog_AR="$AR" # Let the user override the test.
5457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461
test -z "$as_dir" && as_dir=.
5462
for ac_exec_ext in '' $ac_executable_extensions; do
5463
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464
ac_cv_prog_AR="${ac_tool_prefix}ar"
5465
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474
if test -n "$AR"; then
5475
echo "$as_me:$LINENO: result: $AR" >&5
5476
echo "${ECHO_T}$AR" >&6
5478
echo "$as_me:$LINENO: result: no" >&5
5479
echo "${ECHO_T}no" >&6
5483
if test -z "$ac_cv_prog_AR"; then
5485
# Extract the first word of "ar", so it can be a program name with args.
5486
set dummy ar; ac_word=$2
5487
echo "$as_me:$LINENO: checking for $ac_word" >&5
5488
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5490
echo $ECHO_N "(cached) $ECHO_C" >&6
5492
if test -n "$ac_ct_AR"; then
5493
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499
test -z "$as_dir" && as_dir=.
5500
for ac_exec_ext in '' $ac_executable_extensions; do
5501
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502
ac_cv_prog_ac_ct_AR="ar"
5503
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5512
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5513
if test -n "$ac_ct_AR"; then
5514
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5515
echo "${ECHO_T}$ac_ct_AR" >&6
5517
echo "$as_me:$LINENO: result: no" >&5
5518
echo "${ECHO_T}no" >&6
5526
if test -n "$ac_tool_prefix"; then
5527
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5528
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5529
echo "$as_me:$LINENO: checking for $ac_word" >&5
5530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531
if test "${ac_cv_prog_RANLIB+set}" = set; then
5532
echo $ECHO_N "(cached) $ECHO_C" >&6
5534
if test -n "$RANLIB"; then
5535
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541
test -z "$as_dir" && as_dir=.
5542
for ac_exec_ext in '' $ac_executable_extensions; do
5543
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5545
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553
RANLIB=$ac_cv_prog_RANLIB
5554
if test -n "$RANLIB"; then
5555
echo "$as_me:$LINENO: result: $RANLIB" >&5
5556
echo "${ECHO_T}$RANLIB" >&6
5558
echo "$as_me:$LINENO: result: no" >&5
5559
echo "${ECHO_T}no" >&6
5563
if test -z "$ac_cv_prog_RANLIB"; then
5564
ac_ct_RANLIB=$RANLIB
5565
# Extract the first word of "ranlib", so it can be a program name with args.
5566
set dummy ranlib; ac_word=$2
5567
echo "$as_me:$LINENO: checking for $ac_word" >&5
5568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5569
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5570
echo $ECHO_N "(cached) $ECHO_C" >&6
5572
if test -n "$ac_ct_RANLIB"; then
5573
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579
test -z "$as_dir" && as_dir=.
5580
for ac_exec_ext in '' $ac_executable_extensions; do
5581
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582
ac_cv_prog_ac_ct_RANLIB="ranlib"
5583
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5592
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5593
if test -n "$ac_ct_RANLIB"; then
5594
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5595
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5597
echo "$as_me:$LINENO: result: no" >&5
5598
echo "${ECHO_T}no" >&6
5601
RANLIB=$ac_ct_RANLIB
5603
RANLIB="$ac_cv_prog_RANLIB"
5606
if test -n "$ac_tool_prefix"; then
5607
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5608
set dummy ${ac_tool_prefix}strip; ac_word=$2
5609
echo "$as_me:$LINENO: checking for $ac_word" >&5
5610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611
if test "${ac_cv_prog_STRIP+set}" = set; then
5612
echo $ECHO_N "(cached) $ECHO_C" >&6
5614
if test -n "$STRIP"; then
5615
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621
test -z "$as_dir" && as_dir=.
5622
for ac_exec_ext in '' $ac_executable_extensions; do
5623
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5625
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633
STRIP=$ac_cv_prog_STRIP
5634
if test -n "$STRIP"; then
5635
echo "$as_me:$LINENO: result: $STRIP" >&5
5636
echo "${ECHO_T}$STRIP" >&6
5638
echo "$as_me:$LINENO: result: no" >&5
5639
echo "${ECHO_T}no" >&6
5643
if test -z "$ac_cv_prog_STRIP"; then
5645
# Extract the first word of "strip", so it can be a program name with args.
5646
set dummy strip; ac_word=$2
5647
echo "$as_me:$LINENO: checking for $ac_word" >&5
5648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5650
echo $ECHO_N "(cached) $ECHO_C" >&6
5652
if test -n "$ac_ct_STRIP"; then
5653
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659
test -z "$as_dir" && as_dir=.
5660
for ac_exec_ext in '' $ac_executable_extensions; do
5661
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662
ac_cv_prog_ac_ct_STRIP="strip"
5663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5672
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5673
if test -n "$ac_ct_STRIP"; then
5674
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5675
echo "${ECHO_T}$ac_ct_STRIP" >&6
5677
echo "$as_me:$LINENO: result: no" >&5
5678
echo "${ECHO_T}no" >&6
5683
STRIP="$ac_cv_prog_STRIP"
5688
old_CFLAGS="$CFLAGS"
5690
# Set sane defaults for various variables
5691
test -z "$AR" && AR=ar
5692
test -z "$AR_FLAGS" && AR_FLAGS=cru
5693
test -z "$AS" && AS=as
5694
test -z "$CC" && CC=cc
5695
test -z "$LTCC" && LTCC=$CC
5696
test -z "$DLLTOOL" && DLLTOOL=dlltool
5697
test -z "$LD" && LD=ld
5698
test -z "$LN_S" && LN_S="ln -s"
5699
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5700
test -z "$NM" && NM=nm
5701
test -z "$SED" && SED=sed
5702
test -z "$OBJDUMP" && OBJDUMP=objdump
5703
test -z "$RANLIB" && RANLIB=:
5704
test -z "$STRIP" && STRIP=:
5705
test -z "$ac_objext" && ac_objext=o
5707
# Determine commands to create old-style static archives.
5708
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5709
old_postinstall_cmds='chmod 644 $oldlib'
5710
old_postuninstall_cmds=
5712
if test -n "$RANLIB"; then
5715
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5718
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5721
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5724
# Only perform the check for file, if the check method requires it
5725
case $deplibs_check_method in
5727
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5728
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5729
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5730
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5731
echo $ECHO_N "(cached) $ECHO_C" >&6
5735
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5738
lt_save_MAGIC_CMD="$MAGIC_CMD"
5739
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5740
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5741
for ac_dir in $ac_dummy; do
5743
test -z "$ac_dir" && ac_dir=.
5744
if test -f $ac_dir/${ac_tool_prefix}file; then
5745
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5746
if test -n "$file_magic_test_file"; then
5747
case $deplibs_check_method in
5749
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5750
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5751
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5752
$EGREP "$file_magic_regex" > /dev/null; then
5757
*** Warning: the command libtool uses to detect shared libraries,
5758
*** $file_magic_cmd, produces output that libtool cannot recognize.
5759
*** The result is that libtool may fail to recognize shared libraries
5760
*** as such. This will affect the creation of libtool libraries that
5761
*** depend on shared libraries, but programs linked with such libtool
5762
*** libraries will work regardless of this problem. Nevertheless, you
5763
*** may want to report the problem to your system manager and/or to
5764
*** bug-libtool@gnu.org
5774
MAGIC_CMD="$lt_save_MAGIC_CMD"
5779
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5780
if test -n "$MAGIC_CMD"; then
5781
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5782
echo "${ECHO_T}$MAGIC_CMD" >&6
5784
echo "$as_me:$LINENO: result: no" >&5
5785
echo "${ECHO_T}no" >&6
5788
if test -z "$lt_cv_path_MAGIC_CMD"; then
5789
if test -n "$ac_tool_prefix"; then
5790
echo "$as_me:$LINENO: checking for file" >&5
5791
echo $ECHO_N "checking for file... $ECHO_C" >&6
5792
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5793
echo $ECHO_N "(cached) $ECHO_C" >&6
5797
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5800
lt_save_MAGIC_CMD="$MAGIC_CMD"
5801
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5803
for ac_dir in $ac_dummy; do
5805
test -z "$ac_dir" && ac_dir=.
5806
if test -f $ac_dir/file; then
5807
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5808
if test -n "$file_magic_test_file"; then
5809
case $deplibs_check_method in
5811
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5812
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5813
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5814
$EGREP "$file_magic_regex" > /dev/null; then
5819
*** Warning: the command libtool uses to detect shared libraries,
5820
*** $file_magic_cmd, produces output that libtool cannot recognize.
5821
*** The result is that libtool may fail to recognize shared libraries
5822
*** as such. This will affect the creation of libtool libraries that
5823
*** depend on shared libraries, but programs linked with such libtool
5824
*** libraries will work regardless of this problem. Nevertheless, you
5825
*** may want to report the problem to your system manager and/or to
5826
*** bug-libtool@gnu.org
5836
MAGIC_CMD="$lt_save_MAGIC_CMD"
5841
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5842
if test -n "$MAGIC_CMD"; then
5843
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5844
echo "${ECHO_T}$MAGIC_CMD" >&6
5846
echo "$as_me:$LINENO: result: no" >&5
5847
echo "${ECHO_T}no" >&6
5862
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5863
if test "${enable_libtool_lock+set}" = set; then
5864
enableval="$enable_libtool_lock"
5867
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5870
# Check whether --with-pic or --without-pic was given.
5871
if test "${with_pic+set}" = set; then
5877
test -z "$pic_mode" && pic_mode=default
5879
# Use C for the default configuration in the libtool script
5883
ac_cpp='$CPP $CPPFLAGS'
5884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
# Source file extension for C test sources.
5892
# Object file extension for compiled C test sources.
5896
# Code to be used in simple compile tests
5897
lt_simple_compile_test_code="int some_variable = 0;\n"
5899
# Code to be used in simple link tests
5900
lt_simple_link_test_code='int main(){return(0);}\n'
5903
# If no C compiler was specified, use CC.
5906
# Allow CC to be a program name with arguments.
5911
# Check for any special shared library compilation flags.
5914
if test "$GCC" = no; then
5917
lt_prog_cc_shlib='-belf'
5921
if test -n "$lt_prog_cc_shlib"; then
5922
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5923
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5924
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5926
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5927
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5928
lt_cv_prog_cc_can_build_shared=no
5934
# Check to make sure the static flag actually works.
5936
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5937
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5938
if test "${lt_prog_compiler_static_works+set}" = set; then
5939
echo $ECHO_N "(cached) $ECHO_C" >&6
5941
lt_prog_compiler_static_works=no
5942
save_LDFLAGS="$LDFLAGS"
5943
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5944
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5945
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5946
# The compiler can only warn and ignore the option if not recognized
5947
# So say no if there are warnings
5948
if test -s conftest.err; then
5949
# Append any errors to the config.log.
5950
cat conftest.err 1>&5
5952
lt_prog_compiler_static_works=yes
5956
LDFLAGS="$save_LDFLAGS"
5959
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5960
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5962
if test x"$lt_prog_compiler_static_works" = xyes; then
5965
lt_prog_compiler_static=
5971
lt_prog_compiler_no_builtin_flag=
5973
if test "$GCC" = yes; then
5974
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5976
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5977
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5978
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5979
echo $ECHO_N "(cached) $ECHO_C" >&6
5981
lt_cv_prog_compiler_rtti_exceptions=no
5982
ac_outfile=conftest.$ac_objext
5983
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5984
lt_compiler_flag="-fno-rtti -fno-exceptions"
5985
# Insert the option either (1) after the last *FLAGS variable, or
5986
# (2) before a word containing "conftest.", or (3) at the end.
5987
# Note that $ac_compile itself does not contain backslashes and begins
5988
# with a dollar sign (not a hyphen), so the echo should work correctly.
5989
# The option is referenced via a variable to avoid confusing sed.
5990
lt_compile=`echo "$ac_compile" | $SED \
5991
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5992
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5993
-e 's:$: $lt_compiler_flag:'`
5994
(eval echo "\"\$as_me:5994: $lt_compile\"" >&5)
5995
(eval "$lt_compile" 2>conftest.err)
5997
cat conftest.err >&5
5998
echo "$as_me:5998: \$? = $ac_status" >&5
5999
if (exit $ac_status) && test -s "$ac_outfile"; then
6000
# The compiler can only warn and ignore the option if not recognized
6001
# So say no if there are warnings
6002
if test ! -s conftest.err; then
6003
lt_cv_prog_compiler_rtti_exceptions=yes
6009
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6010
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6012
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6013
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6020
lt_prog_compiler_wl=
6021
lt_prog_compiler_pic=
6022
lt_prog_compiler_static=
6024
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6025
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6027
if test "$GCC" = yes; then
6028
lt_prog_compiler_wl='-Wl,'
6029
lt_prog_compiler_static='-static'
6033
# All AIX code is PIC.
6034
if test "$host_cpu" = ia64; then
6035
# AIX 5 now supports IA64 processor
6036
lt_prog_compiler_static='-Bstatic'
6041
# FIXME: we need at least 68020 code to build shared libraries, but
6042
# adding the `-m68020' flag to GCC prevents building anything better,
6044
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6047
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6048
# PIC is the default for these OSes.
6051
mingw* | pw32* | os2*)
6052
# This hack is so that the source file can tell whether it is being
6053
# built for inclusion in a dll (and should export symbols for example).
6054
lt_prog_compiler_pic='-DDLL_EXPORT'
6057
darwin* | rhapsody*)
6058
# PIC is the default on this platform
6059
# Common symbols not allowed in MH_DYLIB files
6060
lt_prog_compiler_pic='-fno-common'
6064
# Just because we use GCC doesn't mean we suddenly get shared libraries
6065
# on systems that don't support them.
6066
lt_prog_compiler_can_build_shared=no
6071
if test -d /usr/nec; then
6072
lt_prog_compiler_pic=-Kconform_pic
6077
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6084
lt_prog_compiler_pic='-fPIC'
6090
lt_prog_compiler_pic='-fPIC'
6094
# PORTME Check for flag to pass linker flags through the system compiler.
6097
lt_prog_compiler_wl='-Wl,'
6098
if test "$host_cpu" = ia64; then
6099
# AIX 5 now supports IA64 processor
6100
lt_prog_compiler_static='-Bstatic'
6102
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6106
mingw* | pw32* | os2*)
6107
# This hack is so that the source file can tell whether it is being
6108
# built for inclusion in a dll (and should export symbols for example).
6109
lt_prog_compiler_pic='-DDLL_EXPORT'
6112
hpux9* | hpux10* | hpux11*)
6113
lt_prog_compiler_wl='-Wl,'
6114
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6121
lt_prog_compiler_pic='+Z'
6124
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6125
lt_prog_compiler_static='${wl}-a ${wl}archive'
6128
irix5* | irix6* | nonstopux*)
6129
lt_prog_compiler_wl='-Wl,'
6130
# PIC (with -KPIC) is the default.
6131
lt_prog_compiler_static='-non_shared'
6135
lt_prog_compiler_pic='-KPIC'
6136
lt_prog_compiler_static='-Bstatic'
6142
lt_prog_compiler_wl='-Wl,'
6143
lt_prog_compiler_pic='-KPIC'
6144
lt_prog_compiler_static='-static'
6147
lt_prog_compiler_wl='-Wl,'
6148
# All Alpha code is PIC.
6149
lt_prog_compiler_static='-non_shared'
6154
osf3* | osf4* | osf5*)
6155
lt_prog_compiler_wl='-Wl,'
6156
# All OSF/1 code is PIC.
6157
lt_prog_compiler_static='-non_shared'
6161
lt_prog_compiler_pic='-Kpic'
6162
lt_prog_compiler_static='-dn'
6166
lt_prog_compiler_wl='-Wl,'
6167
lt_prog_compiler_pic='-KPIC'
6168
lt_prog_compiler_static='-Bstatic'
6172
lt_prog_compiler_wl='-Qoption ld '
6173
lt_prog_compiler_pic='-PIC'
6174
lt_prog_compiler_static='-Bstatic'
6177
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6178
lt_prog_compiler_wl='-Wl,'
6179
lt_prog_compiler_pic='-KPIC'
6180
lt_prog_compiler_static='-Bstatic'
6184
if test -d /usr/nec ;then
6185
lt_prog_compiler_pic='-Kconform_pic'
6186
lt_prog_compiler_static='-Bstatic'
6191
lt_prog_compiler_pic='-pic'
6192
lt_prog_compiler_static='-Bstatic'
6196
lt_prog_compiler_can_build_shared=no
6201
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6202
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6205
# Check to make sure the PIC flag actually works.
6207
if test -n "$lt_prog_compiler_pic"; then
6208
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6209
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6210
if test "${lt_prog_compiler_pic_works+set}" = set; then
6211
echo $ECHO_N "(cached) $ECHO_C" >&6
6213
lt_prog_compiler_pic_works=no
6214
ac_outfile=conftest.$ac_objext
6215
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6216
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6217
# Insert the option either (1) after the last *FLAGS variable, or
6218
# (2) before a word containing "conftest.", or (3) at the end.
6219
# Note that $ac_compile itself does not contain backslashes and begins
6220
# with a dollar sign (not a hyphen), so the echo should work correctly.
6221
# The option is referenced via a variable to avoid confusing sed.
6222
lt_compile=`echo "$ac_compile" | $SED \
6223
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6224
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6225
-e 's:$: $lt_compiler_flag:'`
6226
(eval echo "\"\$as_me:6226: $lt_compile\"" >&5)
6227
(eval "$lt_compile" 2>conftest.err)
6229
cat conftest.err >&5
6230
echo "$as_me:6230: \$? = $ac_status" >&5
6231
if (exit $ac_status) && test -s "$ac_outfile"; then
6232
# The compiler can only warn and ignore the option if not recognized
6233
# So say no if there are warnings
6234
if test ! -s conftest.err; then
6235
lt_prog_compiler_pic_works=yes
6241
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6242
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6244
if test x"$lt_prog_compiler_pic_works" = xyes; then
6245
case $lt_prog_compiler_pic in
6247
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6250
lt_prog_compiler_pic=
6251
lt_prog_compiler_can_build_shared=no
6256
# For platforms which do not support PIC, -DPIC is meaningless:
6258
lt_prog_compiler_pic=
6261
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6265
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6266
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6267
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6268
echo $ECHO_N "(cached) $ECHO_C" >&6
6270
lt_cv_prog_compiler_c_o=no
6271
$rm -r conftest 2>/dev/null
6275
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6278
# that will create temporary files in the current directory regardless of
6279
# the output directory. Thus, making CWD read-only will cause this test
6280
# to fail, enabling locking or at least warning the user not to do parallel
6284
lt_compiler_flag="-o out/conftest2.$ac_objext"
6285
# Insert the option either (1) after the last *FLAGS variable, or
6286
# (2) before a word containing "conftest.", or (3) at the end.
6287
# Note that $ac_compile itself does not contain backslashes and begins
6288
# with a dollar sign (not a hyphen), so the echo should work correctly.
6289
lt_compile=`echo "$ac_compile" | $SED \
6290
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6291
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6292
-e 's:$: $lt_compiler_flag:'`
6293
(eval echo "\"\$as_me:6293: $lt_compile\"" >&5)
6294
(eval "$lt_compile" 2>out/conftest.err)
6296
cat out/conftest.err >&5
6297
echo "$as_me:6297: \$? = $ac_status" >&5
6298
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6300
# The compiler can only warn and ignore the option if not recognized
6301
# So say no if there are warnings
6302
if test ! -s out/conftest.err; then
6303
lt_cv_prog_compiler_c_o=yes
6314
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6315
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6318
hard_links="nottested"
6319
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6320
# do not overwrite the value of need_locks provided by the user
6321
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6322
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6325
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6327
ln conftest.a conftest.b 2>&5 || hard_links=no
6328
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6329
echo "$as_me:$LINENO: result: $hard_links" >&5
6330
echo "${ECHO_T}$hard_links" >&6
6331
if test "$hard_links" = no; then
6332
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6333
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6340
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6341
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6344
allow_undefined_flag=
6345
enable_shared_with_static_runtimes=no
6347
archive_expsym_cmds=
6348
old_archive_From_new_cmds=
6349
old_archive_from_expsyms_cmds=
6350
export_dynamic_flag_spec=
6351
whole_archive_flag_spec=
6352
thread_safe_flag_spec=
6353
hardcode_libdir_flag_spec=
6354
hardcode_libdir_flag_spec_ld=
6355
hardcode_libdir_separator=
6358
hardcode_shlibpath_var=unsupported
6359
link_all_deplibs=unknown
6360
hardcode_automatic=no
6363
always_export_symbols=no
6364
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6365
# include_expsyms should be a list of space-separated symbols to be *always*
6366
# included in the symbol list
6368
# exclude_expsyms can be an extended regexp of symbols to exclude
6369
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6370
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6371
# as well as any symbol that contains `d'.
6372
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6373
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6374
# platforms (ab)use it in PIC code, but their linkers get confused if
6375
# the symbol is explicitly referenced. Since portable code cannot
6376
# rely on this symbol name, it's probably fine to never include it in
6377
# preloaded symbol tables.
6378
extract_expsyms_cmds=
6381
cygwin* | mingw* | pw32*)
6382
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6383
# When not using gcc, we currently assume that we are using
6384
# Microsoft Visual C++.
6385
if test "$GCC" != yes; then
6395
if test "$with_gnu_ld" = yes; then
6396
# If archive_cmds runs LD, not CC, wlarc should be empty
6399
# See if GNU ld supports shared libraries.
6401
aix3* | aix4* | aix5*)
6402
# On AIX/PPC, the GNU linker is very broken
6403
if test "$host_cpu" != ia64; then
6407
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6408
*** to be unable to reliably create shared libraries on AIX.
6409
*** Therefore, libtool is disabling shared libraries support. If you
6410
*** really care for shared libraries, you may want to modify your PATH
6411
*** so that a non-GNU linker is found, and then restart.
6418
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)'
6419
hardcode_libdir_flag_spec='-L$libdir'
6420
hardcode_minus_L=yes
6422
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6423
# that the semantics of dynamic libraries on AmigaOS, at least up
6424
# to version 4, is to share data among multiple programs linked
6425
# with the same dynamic library. Since this doesn't match the
6426
# behavior of shared libraries on other platforms, we can't use
6432
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6433
allow_undefined_flag=unsupported
6434
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6435
# support --undefined. This deserves some investigation. FIXME
6436
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6442
cygwin* | mingw* | pw32*)
6443
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6444
# as there is no search path for DLLs.
6445
hardcode_libdir_flag_spec='-L$libdir'
6446
allow_undefined_flag=unsupported
6447
always_export_symbols=no
6448
enable_shared_with_static_runtimes=yes
6449
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6451
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6452
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6453
# If the export-symbols file already is a .def file (1st line
6454
# is EXPORTS), use it as is; otherwise, prepend...
6455
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6456
cp $export_symbols $output_objdir/$soname.def;
6458
echo EXPORTS > $output_objdir/$soname.def;
6459
cat $export_symbols >> $output_objdir/$soname.def;
6461
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6468
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6469
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6472
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6473
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6478
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6482
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6483
*** create shared libraries on Solaris systems. Therefore, libtool
6484
*** is disabling shared libraries support. We urge you to upgrade GNU
6485
*** binutils to release 2.9.1 or newer. Another option is to modify
6486
*** your PATH or compiler configuration so that the native linker is
6487
*** used, and then restart.
6490
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6491
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6492
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6499
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6502
hardcode_shlibpath_var=no
6506
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6507
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6508
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6515
if test "$ld_shlibs" = yes; then
6516
runpath_var=LD_RUN_PATH
6517
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6518
export_dynamic_flag_spec='${wl}--export-dynamic'
6519
# ancient GNU ld didn't support --whole-archive et. al.
6520
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6521
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6523
whole_archive_flag_spec=
6527
# PORTME fill in a description of your system's linker (not GNU ld)
6530
allow_undefined_flag=unsupported
6531
always_export_symbols=yes
6532
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'
6533
# Note: this linker hardcodes the directories in LIBPATH if there
6534
# are no directories specified by -L.
6535
hardcode_minus_L=yes
6536
if test "$GCC" = yes && test -z "$link_static_flag"; then
6537
# Neither direct hardcoding nor static linking is supported with a
6539
hardcode_direct=unsupported
6544
if test "$host_cpu" = ia64; then
6545
# On IA64, the linker does run time linking by default, so we don't
6546
# have to do anything special.
6547
aix_use_runtimelinking=no
6548
exp_sym_flag='-Bexport'
6551
# If we're using GNU nm, then we don't want the "-C" option.
6552
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6553
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6554
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'
6556
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'
6558
aix_use_runtimelinking=no
6560
# Test if we are trying to use run time linking or normal
6561
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6562
# need to do runtime linking.
6563
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6564
for ld_flag in $LDFLAGS; do
6565
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6566
aix_use_runtimelinking=yes
6572
exp_sym_flag='-bexport'
6573
no_entry_flag='-bnoentry'
6576
# When large executables or shared objects are built, AIX ld can
6577
# have problems creating the table of contents. If linking a library
6578
# or program results in "error TOC overflow" add -mminimal-toc to
6579
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6580
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6584
hardcode_libdir_separator=':'
6585
link_all_deplibs=yes
6587
if test "$GCC" = yes; then
6588
case $host_os in aix4.012|aix4.012.*)
6589
# We only want to do this on AIX 4.2 and lower, the check
6590
# below for broken collect2 doesn't work under 4.3+
6591
collect2name=`${CC} -print-prog-name=collect2`
6592
if test -f "$collect2name" && \
6593
strings "$collect2name" | grep resolve_lib_name >/dev/null
6595
# We have reworked collect2
6598
# We have old collect2
6599
hardcode_direct=unsupported
6600
# It fails to find uninstalled libraries when the uninstalled
6601
# path is not listed in the libpath. Setting hardcode_minus_L
6602
# to unsupported forces relinking
6603
hardcode_minus_L=yes
6604
hardcode_libdir_flag_spec='-L$libdir'
6605
hardcode_libdir_separator=
6608
shared_flag='-shared'
6611
if test "$host_cpu" = ia64; then
6612
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6613
# chokes on -Wl,-G. The following line is correct:
6616
if test "$aix_use_runtimelinking" = yes; then
6617
shared_flag='${wl}-G'
6619
shared_flag='${wl}-bM:SRE'
6624
# It seems that -bexpall does not export symbols beginning with
6625
# underscore (_), so it is better to generate a list of symbols to export.
6626
always_export_symbols=yes
6627
if test "$aix_use_runtimelinking" = yes; then
6628
# Warning - without using the other runtime loading flags (-brtl),
6629
# -berok will link without error, but may produce a broken library.
6630
allow_undefined_flag='-berok'
6631
# Determine the default libpath from the value encoded in an empty executable.
6632
cat >conftest.$ac_ext <<_ACEOF
6633
#line $LINENO "configure"
6636
cat confdefs.h >>conftest.$ac_ext
6637
cat >>conftest.$ac_ext <<_ACEOF
6638
/* end confdefs.h. */
6648
rm -f conftest.$ac_objext conftest$ac_exeext
6649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650
(eval $ac_link) 2>&5
6652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653
(exit $ac_status); } &&
6654
{ ac_try='test -s conftest$ac_exeext'
6655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659
(exit $ac_status); }; }; then
6661
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6663
# Check for a 64-bit object if we didn't find anything.
6664
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; }
6667
echo "$as_me: failed program was:" >&5
6668
sed 's/^/| /' conftest.$ac_ext >&5
6671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6674
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6675
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"
6677
if test "$host_cpu" = ia64; then
6678
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6679
allow_undefined_flag="-z nodefs"
6680
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"
6682
# Determine the default libpath from the value encoded in an empty executable.
6683
cat >conftest.$ac_ext <<_ACEOF
6684
#line $LINENO "configure"
6687
cat confdefs.h >>conftest.$ac_ext
6688
cat >>conftest.$ac_ext <<_ACEOF
6689
/* end confdefs.h. */
6699
rm -f conftest.$ac_objext conftest$ac_exeext
6700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701
(eval $ac_link) 2>&5
6703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704
(exit $ac_status); } &&
6705
{ ac_try='test -s conftest$ac_exeext'
6706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710
(exit $ac_status); }; }; then
6712
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6714
# Check for a 64-bit object if we didn't find anything.
6715
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; }
6718
echo "$as_me: failed program was:" >&5
6719
sed 's/^/| /' conftest.$ac_ext >&5
6722
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6723
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6725
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6726
# Warning - without using the other run time loading flags,
6727
# -berok will link without error, but may produce a broken library.
6728
no_undefined_flag=' ${wl}-bernotok'
6729
allow_undefined_flag=' ${wl}-berok'
6730
# -bexpall does not export symbols beginning with underscore (_)
6731
always_export_symbols=yes
6732
# Exported symbols can be pulled into shared objects from archives
6733
whole_archive_flag_spec=' '
6734
archive_cmds_need_lc=yes
6735
# This is similar to how AIX traditionally builds it's shared libraries.
6736
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'
6742
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)'
6743
hardcode_libdir_flag_spec='-L$libdir'
6744
hardcode_minus_L=yes
6745
# see comment about different semantics on the GNU ld section
6750
export_dynamic_flag_spec=-rdynamic
6753
cygwin* | mingw* | pw32*)
6754
# When not using gcc, we currently assume that we are using
6755
# Microsoft Visual C++.
6756
# hardcode_libdir_flag_spec is actually meaningless, as there is
6757
# no search path for DLLs.
6758
hardcode_libdir_flag_spec=' '
6759
allow_undefined_flag=unsupported
6760
# Tell ltmain to make .lib files, not .a files.
6762
# Tell ltmain to make .dll files, not .so files.
6764
# FIXME: Setting linknames here is a bad hack.
6765
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6766
# The linker will automatically build a .lib file if we build a DLL.
6767
old_archive_From_new_cmds='true'
6768
# FIXME: Should let the user specify the lib program.
6769
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6770
fix_srcfile_path='`cygpath -w "$srcfile"`'
6771
enable_shared_with_static_runtimes=yes
6774
darwin* | rhapsody*)
6775
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6776
archive_cmds_need_lc=no
6778
rhapsody* | darwin1.[012])
6779
allow_undefined_flag='-undefined suppress'
6782
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6785
# FIXME: Relying on posixy $() will cause problems for
6786
# cross-compilation, but unfortunately the echo tests do not
6787
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
6788
# `"' quotes if we put them in here... so don't!
6789
lt_int_apple_cc_single_mod=no
6790
output_verbose_link_cmd='echo'
6791
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6792
lt_int_apple_cc_single_mod=yes
6794
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6795
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6797
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'
6799
module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6800
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6801
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6802
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}'
6804
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}'
6806
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6808
hardcode_automatic=yes
6809
hardcode_shlibpath_var=unsupported
6810
whole_archive_flag_spec='-all_load $convenience'
6811
link_all_deplibs=yes
6816
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6817
hardcode_libdir_flag_spec='-L$libdir'
6818
hardcode_shlibpath_var=no
6825
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6826
# support. Future versions do this automatically, but an explicit c++rt0.o
6827
# does not break anything, and helps significantly (at the cost of a little
6830
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6831
hardcode_libdir_flag_spec='-R$libdir'
6833
hardcode_shlibpath_var=no
6836
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6838
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6840
hardcode_minus_L=yes
6841
hardcode_shlibpath_var=no
6844
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6846
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6847
hardcode_libdir_flag_spec='-R$libdir'
6849
hardcode_shlibpath_var=no
6853
if test "$GCC" = yes; then
6854
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'
6856
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'
6858
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6859
hardcode_libdir_separator=:
6862
# hardcode_minus_L: Not really in the search PATH,
6863
# but as the default location of the library.
6864
hardcode_minus_L=yes
6865
export_dynamic_flag_spec='${wl}-E'
6869
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6872
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6875
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6881
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6884
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6888
if test "$with_gnu_ld" = no; then
6891
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6892
hardcode_libdir_flag_spec_ld='+b $libdir'
6893
hardcode_libdir_separator=:
6895
hardcode_shlibpath_var=no
6898
hardcode_libdir_flag_spec='-L$libdir'
6900
hardcode_shlibpath_var=no
6902
# hardcode_minus_L: Not really in the search PATH,
6903
# but as the default location of the library.
6904
hardcode_minus_L=yes
6907
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6908
hardcode_libdir_separator=:
6910
export_dynamic_flag_spec='${wl}-E'
6912
# hardcode_minus_L: Not really in the search PATH,
6913
# but as the default location of the library.
6914
hardcode_minus_L=yes
6920
irix5* | irix6* | nonstopux*)
6921
if test "$GCC" = yes; then
6922
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'
6924
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'
6925
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6927
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6928
hardcode_libdir_separator=:
6929
link_all_deplibs=yes
6933
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6934
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6936
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6938
hardcode_libdir_flag_spec='-R$libdir'
6940
hardcode_shlibpath_var=no
6944
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6946
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6947
hardcode_libdir_separator=:
6948
hardcode_shlibpath_var=no
6953
hardcode_shlibpath_var=no
6954
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6955
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6956
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6957
export_dynamic_flag_spec='${wl}-E'
6960
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6961
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6962
hardcode_libdir_flag_spec='-R$libdir'
6965
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6966
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6973
hardcode_libdir_flag_spec='-L$libdir'
6974
hardcode_minus_L=yes
6975
allow_undefined_flag=unsupported
6976
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'
6977
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6981
if test "$GCC" = yes; then
6982
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6983
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'
6985
allow_undefined_flag=' -expect_unresolved \*'
6986
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'
6988
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6989
hardcode_libdir_separator=:
6992
osf4* | osf5*) # as osf3* with the addition of -msym flag
6993
if test "$GCC" = yes; then
6994
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6995
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'
6996
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6998
allow_undefined_flag=' -expect_unresolved \*'
6999
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'
7000
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7001
$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'
7003
# Both c and cxx compiler support -rpath directly
7004
hardcode_libdir_flag_spec='-rpath $libdir'
7006
hardcode_libdir_separator=:
7010
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011
hardcode_shlibpath_var=no
7012
export_dynamic_flag_spec='${wl}-Bexport'
7013
runpath_var=LD_RUN_PATH
7014
hardcode_runpath_var=yes
7018
no_undefined_flag=' -z text'
7019
if test "$GCC" = yes; then
7020
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7021
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7022
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7024
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7026
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028
hardcode_libdir_flag_spec='-R$libdir'
7029
hardcode_shlibpath_var=no
7031
solaris2.[0-5] | solaris2.[0-5].*) ;;
7032
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7033
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7035
link_all_deplibs=yes
7039
if test "x$host_vendor" = xsequent; then
7040
# Use $CC to link under sequent, because it throws in some extra .o
7041
# files that make .init and .fini sections work.
7042
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7044
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7046
hardcode_libdir_flag_spec='-L$libdir'
7048
hardcode_minus_L=yes
7049
hardcode_shlibpath_var=no
7053
case $host_vendor in
7055
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7056
hardcode_direct=yes # is this really true???
7059
## LD is ld it makes a PLAMLIB
7060
## CC just makes a GrossModule.
7061
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7062
reload_cmds='$CC -r -o $output$reload_objs'
7066
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7067
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7070
runpath_var='LD_RUN_PATH'
7071
hardcode_shlibpath_var=no
7075
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7076
hardcode_shlibpath_var=no
7077
export_dynamic_flag_spec='-Bexport'
7081
if test -d /usr/nec; then
7082
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083
hardcode_shlibpath_var=no
7084
runpath_var=LD_RUN_PATH
7085
hardcode_runpath_var=yes
7091
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7094
hardcode_shlibpath_var=no
7095
hardcode_runpath_var=yes
7096
runpath_var=LD_RUN_PATH
7099
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7100
no_undefined_flag='${wl}-z ${wl}text'
7101
if test "$GCC" = yes; then
7102
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7104
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7106
runpath_var='LD_RUN_PATH'
7107
hardcode_shlibpath_var=no
7111
no_undefined_flag=' -z text'
7112
# $CC -shared without GNU ld will not create a library from C++
7113
# object files and a static libstdc++, better avoid it by now
7114
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7116
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7117
hardcode_libdir_flag_spec=
7118
hardcode_shlibpath_var=no
7119
runpath_var='LD_RUN_PATH'
7123
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7124
hardcode_libdir_flag_spec='-L$libdir'
7125
hardcode_shlibpath_var=no
7134
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7135
echo "${ECHO_T}$ld_shlibs" >&6
7136
test "$ld_shlibs" = no && can_build_shared=no
7138
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7139
if test "$GCC" = yes; then
7140
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7144
# Do we need to explicitly link libc?
7146
case "x$archive_cmds_need_lc" in
7148
# Assume -lc should be added
7149
archive_cmds_need_lc=yes
7151
if test "$enable_shared" = yes && test "$GCC" = yes; then
7152
case $archive_cmds in
7154
# FIXME: we may have to deal with multi-command sequences.
7157
# Test whether the compiler implicitly links with -lc since on some
7158
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7159
# to ld, don't add -lc before -lgcc.
7160
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7161
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7163
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7165
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166
(eval $ac_compile) 2>&5
7168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169
(exit $ac_status); } 2>conftest.err; then
7172
libobjs=conftest.$ac_objext
7174
wl=$lt_prog_compiler_wl
7180
lt_save_allow_undefined_flag=$allow_undefined_flag
7181
allow_undefined_flag=
7182
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7183
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
(exit $ac_status); }
7188
archive_cmds_need_lc=no
7190
archive_cmds_need_lc=yes
7192
allow_undefined_flag=$lt_save_allow_undefined_flag
7194
cat conftest.err 1>&5
7197
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7198
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7205
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7206
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7208
if test -n "$hardcode_libdir_flag_spec" || \
7209
test -n "$runpath_var " || \
7210
test "X$hardcode_automatic"="Xyes" ; then
7212
# We can hardcode non-existant directories.
7213
if test "$hardcode_direct" != no &&
7214
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7215
# have to relink, otherwise we might link with an installed library
7216
# when we should be linking with a yet-to-be-installed one
7217
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7218
test "$hardcode_minus_L" != no; then
7219
# Linking always hardcodes the temporary library directory.
7220
hardcode_action=relink
7222
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7223
hardcode_action=immediate
7226
# We cannot hardcode anything, or else we can only hardcode existing
7228
hardcode_action=unsupported
7230
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7231
echo "${ECHO_T}$hardcode_action" >&6
7233
if test "$hardcode_action" = relink; then
7234
# Fast installation is not supported
7235
enable_fast_install=no
7236
elif test "$shlibpath_overrides_runpath" = yes ||
7237
test "$enable_shared" = no; then
7238
# Fast installation is not necessary
7239
enable_fast_install=needless
7244
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7245
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7246
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7247
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7248
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7249
echo "$as_me:$LINENO: result: yes" >&5
7250
echo "${ECHO_T}yes" >&6
7252
# FIXME - insert some real tests, host_os isn't really good enough
7255
if test -n "$STRIP" ; then
7256
striplib="$STRIP -x"
7257
echo "$as_me:$LINENO: result: yes" >&5
7258
echo "${ECHO_T}yes" >&6
7260
echo "$as_me:$LINENO: result: no" >&5
7261
echo "${ECHO_T}no" >&6
7265
echo "$as_me:$LINENO: result: no" >&5
7266
echo "${ECHO_T}no" >&6
7271
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7272
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7274
libname_spec='lib$name'
7282
shlibpath_overrides_runpath=unknown
7284
dynamic_linker="$host_os ld.so"
7285
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7286
if test "$GCC" = yes; then
7287
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7288
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7289
# if the path contains ";" then we assume it to be the separator
7290
# otherwise default to the standard path separator (i.e. ":") - it is
7291
# assumed that no part of a normal pathname contains ";" but that should
7292
# okay in the real world where ";" in dirpaths is itself problematic.
7293
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7295
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7298
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7300
need_lib_prefix=unknown
7301
hardcode_into_libs=no
7303
# when you set need_version to no, make sure it does not cause -set_version
7304
# flags to be left without arguments
7305
need_version=unknown
7310
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7311
shlibpath_var=LIBPATH
7313
# AIX 3 has no versioning support, so we append a major version to the name.
7314
soname_spec='${libname}${release}${shared_ext}$major'
7321
hardcode_into_libs=yes
7322
if test "$host_cpu" = ia64; then
7323
# AIX 5 supports IA64
7324
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7325
shlibpath_var=LD_LIBRARY_PATH
7327
# With GCC up to 2.95.x, collect2 would create an import file
7328
# for dependence libraries. The import file would start with
7329
# the line `#! .'. This would cause the generated library to
7330
# depend on `.', always an invalid library. This was fixed in
7331
# development snapshots of GCC prior to 3.0.
7333
aix4 | aix4.[01] | aix4.[01].*)
7334
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7336
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7343
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7344
# soname into executable. Probably we can add versioning support to
7345
# collect2, so additional links can be useful in future.
7346
if test "$aix_use_runtimelinking" = yes; then
7347
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7348
# instead of lib<name>.a to let people know that these are not
7349
# typical AIX shared libraries.
7350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7352
# We preserve .a as extension for shared libraries through AIX4.2
7353
# and later when we are not doing run time linking.
7354
library_names_spec='${libname}${release}.a $libname.a'
7355
soname_spec='${libname}${release}${shared_ext}$major'
7357
shlibpath_var=LIBPATH
7362
library_names_spec='$libname.ixlibrary $libname.a'
7363
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7364
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'
7368
library_names_spec='${libname}${shared_ext}'
7369
dynamic_linker="$host_os ld.so"
7370
shlibpath_var=LIBRARY_PATH
7376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7377
soname_spec='${libname}${release}${shared_ext}$major'
7378
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7379
shlibpath_var=LD_LIBRARY_PATH
7380
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7381
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7382
# the default ld.so.conf also contains /usr/contrib/lib and
7383
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7384
# libtool to hard-code these into programs
7387
cygwin* | mingw* | pw32*)
7388
version_type=windows
7393
case $GCC,$host_os in
7394
yes,cygwin* | yes,mingw* | yes,pw32*)
7395
library_names_spec='$libname.dll.a'
7396
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7397
postinstall_cmds='base_file=`basename \${file}`~
7398
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7399
dldir=$destdir/`dirname \$dlpath`~
7400
test -d \$dldir || mkdir -p \$dldir~
7401
$install_prog $dir/$dlname \$dldir/$dlname'
7402
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7403
dlpath=$dir/\$dldll~
7405
shlibpath_overrides_runpath=yes
7409
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7410
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7411
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7414
# MinGW DLLs use traditional 'lib' prefix
7415
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7416
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7417
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7418
# It is most probably a Windows format PATH printed by
7419
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7420
# path with ; separators, and with drive letters. We can handle the
7421
# drive letters (cygwin fileutils understands them), so leave them,
7422
# especially as we might pass files found there to a mingw objdump,
7423
# which wouldn't understand a cygwinified path. Ahh.
7424
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7426
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7430
# pw32 DLLs use 'pw' prefix rather than 'lib'
7431
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7437
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7440
dynamic_linker='Win32 ld.exe'
7441
# FIXME: first we should search . and the directory the executable is in
7445
darwin* | rhapsody*)
7446
dynamic_linker="$host_os dyld"
7450
# FIXME: Relying on posixy $() will cause problems for
7451
# cross-compilation, but unfortunately the echo tests do not
7452
# yet detect zsh echo's removal of \ escapes.
7453
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7454
soname_spec='${libname}${release}${major}$shared_ext'
7455
shlibpath_overrides_runpath=yes
7456
shlibpath_var=DYLD_LIBRARY_PATH
7457
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7458
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7459
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7460
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"`
7462
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7470
soname_spec='${libname}${release}${shared_ext}$major'
7471
shlibpath_var=LD_LIBRARY_PATH
7482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7483
soname_spec='${libname}${release}${shared_ext}$major'
7484
shlibpath_var=LD_LIBRARY_PATH
7485
shlibpath_overrides_runpath=no
7486
hardcode_into_libs=yes
7487
dynamic_linker='GNU ld.so'
7491
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7492
version_type=freebsd-$objformat
7493
case $version_type in
7495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7500
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7504
shlibpath_var=LD_LIBRARY_PATH
7507
shlibpath_overrides_runpath=yes
7509
freebsd3.01* | freebsdelf3.01*)
7510
shlibpath_overrides_runpath=yes
7511
hardcode_into_libs=yes
7514
shlibpath_overrides_runpath=no
7515
hardcode_into_libs=yes
7524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7525
soname_spec='${libname}${release}${shared_ext}$major'
7526
shlibpath_var=LD_LIBRARY_PATH
7527
hardcode_into_libs=yes
7530
hpux9* | hpux10* | hpux11*)
7531
# Give a soname corresponding to the major version so that dld.sl refuses to
7532
# link against other versions.
7539
hardcode_into_libs=yes
7540
dynamic_linker="$host_os dld.so"
7541
shlibpath_var=LD_LIBRARY_PATH
7542
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7544
soname_spec='${libname}${release}${shared_ext}$major'
7545
if test "X$HPUX_IA64_MODE" = X32; then
7546
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7548
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7550
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7554
hardcode_into_libs=yes
7555
dynamic_linker="$host_os dld.sl"
7556
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7557
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559
soname_spec='${libname}${release}${shared_ext}$major'
7560
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7561
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7565
dynamic_linker="$host_os dld.sl"
7566
shlibpath_var=SHLIB_PATH
7567
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7569
soname_spec='${libname}${release}${shared_ext}$major'
7572
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7573
postinstall_cmds='chmod 555 $lib'
7576
irix5* | irix6* | nonstopux*)
7578
nonstopux*) version_type=nonstopux ;;
7580
if test "$lt_cv_prog_gnu_ld" = yes; then
7588
soname_spec='${libname}${release}${shared_ext}$major'
7589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7591
irix5* | nonstopux*)
7595
case $LD in # libtool.m4 will add one of these switches to LD
7596
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7597
libsuff= shlibsuff= libmagic=32-bit;;
7598
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7599
libsuff=32 shlibsuff=N32 libmagic=N32;;
7600
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7601
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7602
*) libsuff= shlibsuff= libmagic=never-match;;
7606
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7607
shlibpath_overrides_runpath=no
7608
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7609
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7610
hardcode_into_libs=yes
7613
# No shared lib support for Linux oldld, aout, or coff.
7614
linux*oldld* | linux*aout* | linux*coff*)
7618
# This must be Linux ELF.
7623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624
soname_spec='${libname}${release}${shared_ext}$major'
7625
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7626
shlibpath_var=LD_LIBRARY_PATH
7627
shlibpath_overrides_runpath=no
7628
# This implies no fast_install, which is unacceptable.
7629
# Some rework will be needed to allow for fast_install
7630
# before this can be enabled.
7631
hardcode_into_libs=yes
7633
# We used to test for /lib/ld.so.1 and disable shared libraries on
7634
# powerpc, because MkLinux only supported shared libraries with the
7635
# GNU dynamic linker. Since this was broken with cross compilers,
7636
# most powerpc-linux boxes support dynamic linking these days and
7637
# people can always --disable-shared, the test was removed, and we
7638
# assume the GNU/Linux dynamic linker is in use.
7639
dynamic_linker='GNU/Linux ld.so'
7646
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7648
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7649
dynamic_linker='NetBSD (a.out) ld.so'
7651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7652
soname_spec='${libname}${release}${shared_ext}$major'
7653
dynamic_linker='NetBSD ld.elf_so'
7655
shlibpath_var=LD_LIBRARY_PATH
7656
shlibpath_overrides_runpath=yes
7657
hardcode_into_libs=yes
7662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7663
shlibpath_var=LD_LIBRARY_PATH
7664
shlibpath_overrides_runpath=yes
7671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7672
soname_spec='${libname}${release}${shared_ext}$major'
7673
shlibpath_var=LD_LIBRARY_PATH
7674
shlibpath_overrides_runpath=yes
7681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7682
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7683
shlibpath_var=LD_LIBRARY_PATH
7684
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7686
openbsd2.[89] | openbsd2.[89].*)
7687
shlibpath_overrides_runpath=no
7690
shlibpath_overrides_runpath=yes
7694
shlibpath_overrides_runpath=yes
7699
libname_spec='$name'
7702
library_names_spec='$libname${shared_ext} $libname.a'
7703
dynamic_linker='OS/2 ld.exe'
7704
shlibpath_var=LIBPATH
7707
osf3* | osf4* | osf5*)
7711
soname_spec='${libname}${release}${shared_ext}$major'
7712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7713
shlibpath_var=LD_LIBRARY_PATH
7714
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7715
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7720
soname_spec='${libname}${release}${shared_ext}$major'
7721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7722
shlibpath_var=LD_LIBRARY_PATH
7729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730
soname_spec='${libname}${release}${shared_ext}$major'
7731
shlibpath_var=LD_LIBRARY_PATH
7732
shlibpath_overrides_runpath=yes
7733
hardcode_into_libs=yes
7734
# ldd complains unless libraries are executable
7735
postinstall_cmds='chmod +x $lib'
7740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7741
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7742
shlibpath_var=LD_LIBRARY_PATH
7743
shlibpath_overrides_runpath=yes
7744
if test "$with_gnu_ld" = yes; then
7750
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7753
soname_spec='${libname}${release}${shared_ext}$major'
7754
shlibpath_var=LD_LIBRARY_PATH
7755
case $host_vendor in
7757
shlibpath_overrides_runpath=no
7759
export_dynamic_flag_spec='${wl}-Blargedynsym'
7760
runpath_var=LD_RUN_PATH
7768
shlibpath_overrides_runpath=no
7769
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7775
if test -d /usr/nec ;then
7777
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7778
soname_spec='$libname${shared_ext}.$major'
7779
shlibpath_var=LD_LIBRARY_PATH
7785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7786
soname_spec='${libname}${release}${shared_ext}$major'
7787
shlibpath_var=LD_LIBRARY_PATH
7794
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7795
echo "${ECHO_T}$dynamic_linker" >&6
7796
test "$dynamic_linker" = no && can_build_shared=no
7798
if test "x$enable_dlopen" != xyes; then
7799
enable_dlopen=unknown
7800
enable_dlopen_self=unknown
7801
enable_dlopen_self_static=unknown
7808
lt_cv_dlopen="load_add_on"
7810
lt_cv_dlopen_self=yes
7814
lt_cv_dlopen="LoadLibrary"
7819
lt_cv_dlopen="dlopen"
7824
# if libdl is installed we need to link against it
7825
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7826
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7827
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7828
echo $ECHO_N "(cached) $ECHO_C" >&6
7830
ac_check_lib_save_LIBS=$LIBS
7832
cat >conftest.$ac_ext <<_ACEOF
7833
#line $LINENO "configure"
7836
cat confdefs.h >>conftest.$ac_ext
7837
cat >>conftest.$ac_ext <<_ACEOF
7838
/* end confdefs.h. */
7840
/* Override any gcc2 internal prototype to avoid an error. */
7844
/* We use char because int might match the return type of a gcc2
7845
builtin and then its argument prototype would still apply. */
7855
rm -f conftest.$ac_objext conftest$ac_exeext
7856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857
(eval $ac_link) 2>&5
7859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860
(exit $ac_status); } &&
7861
{ ac_try='test -s conftest$ac_exeext'
7862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866
(exit $ac_status); }; }; then
7867
ac_cv_lib_dl_dlopen=yes
7869
echo "$as_me: failed program was:" >&5
7870
sed 's/^/| /' conftest.$ac_ext >&5
7872
ac_cv_lib_dl_dlopen=no
7874
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7875
LIBS=$ac_check_lib_save_LIBS
7877
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7878
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7879
if test $ac_cv_lib_dl_dlopen = yes; then
7880
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7885
lt_cv_dlopen_self=yes
7892
echo "$as_me:$LINENO: checking for shl_load" >&5
7893
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7894
if test "${ac_cv_func_shl_load+set}" = set; then
7895
echo $ECHO_N "(cached) $ECHO_C" >&6
7897
cat >conftest.$ac_ext <<_ACEOF
7898
#line $LINENO "configure"
7901
cat confdefs.h >>conftest.$ac_ext
7902
cat >>conftest.$ac_ext <<_ACEOF
7903
/* end confdefs.h. */
7904
/* System header to define __stub macros and hopefully few prototypes,
7905
which can conflict with char shl_load (); below.
7906
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7907
<limits.h> exists even on freestanding compilers. */
7909
# include <limits.h>
7911
# include <assert.h>
7913
/* Override any gcc2 internal prototype to avoid an error. */
7918
/* We use char because int might match the return type of a gcc2
7919
builtin and then its argument prototype would still apply. */
7921
/* The GNU C library defines this for functions which it implements
7922
to always fail with ENOSYS. Some functions are actually named
7923
something starting with __ and the normal name is an alias. */
7924
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7927
char (*f) () = shl_load;
7936
return f != shl_load;
7941
rm -f conftest.$ac_objext conftest$ac_exeext
7942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943
(eval $ac_link) 2>&5
7945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946
(exit $ac_status); } &&
7947
{ ac_try='test -s conftest$ac_exeext'
7948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952
(exit $ac_status); }; }; then
7953
ac_cv_func_shl_load=yes
7955
echo "$as_me: failed program was:" >&5
7956
sed 's/^/| /' conftest.$ac_ext >&5
7958
ac_cv_func_shl_load=no
7960
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7963
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7964
if test $ac_cv_func_shl_load = yes; then
7965
lt_cv_dlopen="shl_load"
7967
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7968
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7969
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7970
echo $ECHO_N "(cached) $ECHO_C" >&6
7972
ac_check_lib_save_LIBS=$LIBS
7974
cat >conftest.$ac_ext <<_ACEOF
7975
#line $LINENO "configure"
7978
cat confdefs.h >>conftest.$ac_ext
7979
cat >>conftest.$ac_ext <<_ACEOF
7980
/* end confdefs.h. */
7982
/* Override any gcc2 internal prototype to avoid an error. */
7986
/* We use char because int might match the return type of a gcc2
7987
builtin and then its argument prototype would still apply. */
7997
rm -f conftest.$ac_objext conftest$ac_exeext
7998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999
(eval $ac_link) 2>&5
8001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002
(exit $ac_status); } &&
8003
{ ac_try='test -s conftest$ac_exeext'
8004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
(exit $ac_status); }; }; then
8009
ac_cv_lib_dld_shl_load=yes
8011
echo "$as_me: failed program was:" >&5
8012
sed 's/^/| /' conftest.$ac_ext >&5
8014
ac_cv_lib_dld_shl_load=no
8016
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8017
LIBS=$ac_check_lib_save_LIBS
8019
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8020
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8021
if test $ac_cv_lib_dld_shl_load = yes; then
8022
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8024
echo "$as_me:$LINENO: checking for dlopen" >&5
8025
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8026
if test "${ac_cv_func_dlopen+set}" = set; then
8027
echo $ECHO_N "(cached) $ECHO_C" >&6
8029
cat >conftest.$ac_ext <<_ACEOF
8030
#line $LINENO "configure"
8033
cat confdefs.h >>conftest.$ac_ext
8034
cat >>conftest.$ac_ext <<_ACEOF
8035
/* end confdefs.h. */
8036
/* System header to define __stub macros and hopefully few prototypes,
8037
which can conflict with char dlopen (); below.
8038
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039
<limits.h> exists even on freestanding compilers. */
8041
# include <limits.h>
8043
# include <assert.h>
8045
/* Override any gcc2 internal prototype to avoid an error. */
8050
/* We use char because int might match the return type of a gcc2
8051
builtin and then its argument prototype would still apply. */
8053
/* The GNU C library defines this for functions which it implements
8054
to always fail with ENOSYS. Some functions are actually named
8055
something starting with __ and the normal name is an alias. */
8056
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8059
char (*f) () = dlopen;
8073
rm -f conftest.$ac_objext conftest$ac_exeext
8074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075
(eval $ac_link) 2>&5
8077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078
(exit $ac_status); } &&
8079
{ ac_try='test -s conftest$ac_exeext'
8080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084
(exit $ac_status); }; }; then
8085
ac_cv_func_dlopen=yes
8087
echo "$as_me: failed program was:" >&5
8088
sed 's/^/| /' conftest.$ac_ext >&5
8090
ac_cv_func_dlopen=no
8092
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8094
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8095
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8096
if test $ac_cv_func_dlopen = yes; then
8097
lt_cv_dlopen="dlopen"
8099
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8100
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8101
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8102
echo $ECHO_N "(cached) $ECHO_C" >&6
8104
ac_check_lib_save_LIBS=$LIBS
8106
cat >conftest.$ac_ext <<_ACEOF
8107
#line $LINENO "configure"
8110
cat confdefs.h >>conftest.$ac_ext
8111
cat >>conftest.$ac_ext <<_ACEOF
8112
/* end confdefs.h. */
8114
/* Override any gcc2 internal prototype to avoid an error. */
8118
/* We use char because int might match the return type of a gcc2
8119
builtin and then its argument prototype would still apply. */
8129
rm -f conftest.$ac_objext conftest$ac_exeext
8130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8131
(eval $ac_link) 2>&5
8133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134
(exit $ac_status); } &&
8135
{ ac_try='test -s conftest$ac_exeext'
8136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140
(exit $ac_status); }; }; then
8141
ac_cv_lib_dl_dlopen=yes
8143
echo "$as_me: failed program was:" >&5
8144
sed 's/^/| /' conftest.$ac_ext >&5
8146
ac_cv_lib_dl_dlopen=no
8148
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8149
LIBS=$ac_check_lib_save_LIBS
8151
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8152
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8153
if test $ac_cv_lib_dl_dlopen = yes; then
8154
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8156
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8157
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8158
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8159
echo $ECHO_N "(cached) $ECHO_C" >&6
8161
ac_check_lib_save_LIBS=$LIBS
8163
cat >conftest.$ac_ext <<_ACEOF
8164
#line $LINENO "configure"
8167
cat confdefs.h >>conftest.$ac_ext
8168
cat >>conftest.$ac_ext <<_ACEOF
8169
/* end confdefs.h. */
8171
/* Override any gcc2 internal prototype to avoid an error. */
8175
/* We use char because int might match the return type of a gcc2
8176
builtin and then its argument prototype would still apply. */
8186
rm -f conftest.$ac_objext conftest$ac_exeext
8187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188
(eval $ac_link) 2>&5
8190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191
(exit $ac_status); } &&
8192
{ ac_try='test -s conftest$ac_exeext'
8193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197
(exit $ac_status); }; }; then
8198
ac_cv_lib_svld_dlopen=yes
8200
echo "$as_me: failed program was:" >&5
8201
sed 's/^/| /' conftest.$ac_ext >&5
8203
ac_cv_lib_svld_dlopen=no
8205
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206
LIBS=$ac_check_lib_save_LIBS
8208
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8209
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8210
if test $ac_cv_lib_svld_dlopen = yes; then
8211
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8213
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8214
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8215
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8216
echo $ECHO_N "(cached) $ECHO_C" >&6
8218
ac_check_lib_save_LIBS=$LIBS
8220
cat >conftest.$ac_ext <<_ACEOF
8221
#line $LINENO "configure"
8224
cat confdefs.h >>conftest.$ac_ext
8225
cat >>conftest.$ac_ext <<_ACEOF
8226
/* end confdefs.h. */
8228
/* Override any gcc2 internal prototype to avoid an error. */
8232
/* We use char because int might match the return type of a gcc2
8233
builtin and then its argument prototype would still apply. */
8243
rm -f conftest.$ac_objext conftest$ac_exeext
8244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245
(eval $ac_link) 2>&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); } &&
8249
{ ac_try='test -s conftest$ac_exeext'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; }; then
8255
ac_cv_lib_dld_dld_link=yes
8257
echo "$as_me: failed program was:" >&5
8258
sed 's/^/| /' conftest.$ac_ext >&5
8260
ac_cv_lib_dld_dld_link=no
8262
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8263
LIBS=$ac_check_lib_save_LIBS
8265
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8266
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8267
if test $ac_cv_lib_dld_dld_link = yes; then
8268
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8289
if test "x$lt_cv_dlopen" != xno; then
8295
case $lt_cv_dlopen in
8297
save_CPPFLAGS="$CPPFLAGS"
8298
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8300
save_LDFLAGS="$LDFLAGS"
8301
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8304
LIBS="$lt_cv_dlopen_libs $LIBS"
8306
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8307
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8308
if test "${lt_cv_dlopen_self+set}" = set; then
8309
echo $ECHO_N "(cached) $ECHO_C" >&6
8311
if test "$cross_compiling" = yes; then :
8312
lt_cv_dlopen_self=cross
8314
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8315
lt_status=$lt_dlunknown
8316
cat > conftest.$ac_ext <<EOF
8317
#line 8317 "configure"
8318
#include "confdefs.h"
8327
# define LT_DLGLOBAL RTLD_GLOBAL
8330
# define LT_DLGLOBAL DL_GLOBAL
8332
# define LT_DLGLOBAL 0
8336
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8337
find out it does not work in some platform. */
8338
#ifndef LT_DLLAZY_OR_NOW
8340
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8343
# define LT_DLLAZY_OR_NOW DL_LAZY
8346
# define LT_DLLAZY_OR_NOW RTLD_NOW
8349
# define LT_DLLAZY_OR_NOW DL_NOW
8351
# define LT_DLLAZY_OR_NOW 0
8359
extern "C" void exit (int);
8362
void fnord() { int i=42;}
8365
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8366
int status = $lt_dlunknown;
8370
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8371
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8372
/* dlclose (self); */
8378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379
(eval $ac_link) 2>&5
8381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8383
(./conftest; exit; ) 2>/dev/null
8386
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8387
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8388
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8391
# compilation failed
8392
lt_cv_dlopen_self=no
8399
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8400
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8402
if test "x$lt_cv_dlopen_self" = xyes; then
8403
LDFLAGS="$LDFLAGS $link_static_flag"
8404
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8405
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8406
if test "${lt_cv_dlopen_self_static+set}" = set; then
8407
echo $ECHO_N "(cached) $ECHO_C" >&6
8409
if test "$cross_compiling" = yes; then :
8410
lt_cv_dlopen_self_static=cross
8412
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8413
lt_status=$lt_dlunknown
8414
cat > conftest.$ac_ext <<EOF
8415
#line 8415 "configure"
8416
#include "confdefs.h"
8425
# define LT_DLGLOBAL RTLD_GLOBAL
8428
# define LT_DLGLOBAL DL_GLOBAL
8430
# define LT_DLGLOBAL 0
8434
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8435
find out it does not work in some platform. */
8436
#ifndef LT_DLLAZY_OR_NOW
8438
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8441
# define LT_DLLAZY_OR_NOW DL_LAZY
8444
# define LT_DLLAZY_OR_NOW RTLD_NOW
8447
# define LT_DLLAZY_OR_NOW DL_NOW
8449
# define LT_DLLAZY_OR_NOW 0
8457
extern "C" void exit (int);
8460
void fnord() { int i=42;}
8463
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8464
int status = $lt_dlunknown;
8468
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8469
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8470
/* dlclose (self); */
8476
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477
(eval $ac_link) 2>&5
8479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8481
(./conftest; exit; ) 2>/dev/null
8484
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8485
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8486
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8489
# compilation failed
8490
lt_cv_dlopen_self_static=no
8497
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8498
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8501
CPPFLAGS="$save_CPPFLAGS"
8502
LDFLAGS="$save_LDFLAGS"
8507
case $lt_cv_dlopen_self in
8508
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8509
*) enable_dlopen_self=unknown ;;
8512
case $lt_cv_dlopen_self_static in
8513
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8514
*) enable_dlopen_self_static=unknown ;;
8519
# Report which librarie types wil actually be built
8520
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8521
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8522
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8523
echo "${ECHO_T}$can_build_shared" >&6
8525
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8526
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8527
test "$can_build_shared" = "no" && enable_shared=no
8529
# On AIX, shared libraries and static libraries use the same namespace, and
8530
# are all built from PIC.
8533
test "$enable_shared" = yes && enable_static=no
8534
if test -n "$RANLIB"; then
8535
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8536
postinstall_cmds='$RANLIB $lib'
8541
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8542
test "$enable_shared" = yes && enable_static=no
8545
darwin* | rhapsody*)
8546
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8547
archive_cmds_need_lc=no
8549
rhapsody* | darwin1.[012])
8550
allow_undefined_flag='-undefined suppress'
8553
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8556
# FIXME: Relying on posixy $() will cause problems for
8557
# cross-compilation, but unfortunately the echo tests do not
8558
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
8559
# `"' quotes if we put them in here... so don't!
8560
output_verbose_link_cmd='echo'
8561
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8562
module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8563
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8564
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}'
8565
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8567
hardcode_automatic=yes
8568
hardcode_shlibpath_var=unsupported
8569
whole_archive_flag_spec='-all_load $convenience'
8570
link_all_deplibs=yes
8574
echo "$as_me:$LINENO: result: $enable_shared" >&5
8575
echo "${ECHO_T}$enable_shared" >&6
8577
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8578
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8579
# Make sure either enable_shared or enable_static is yes.
8580
test "$enable_shared" = yes || enable_static=yes
8581
echo "$as_me:$LINENO: result: $enable_static" >&5
8582
echo "${ECHO_T}$enable_static" >&6
8584
# The else clause should only fire when bootstrapping the
8585
# libtool distribution, otherwise you forgot to ship ltmain.sh
8586
# with your package, and you will get complaints that there are
8587
# no rules to generate ltmain.sh.
8588
if test -f "$ltmain"; then
8589
# See if we are running on zsh, and set the options which allow our commands through
8590
# without removal of \ escapes.
8591
if test -n "${ZSH_VERSION+set}" ; then
8592
setopt NO_GLOB_SUBST
8594
# Now quote all the things that may contain metacharacters while being
8595
# careful not to overquote the AC_SUBSTed values. We take copies of the
8596
# variables and quote the copies for generation of the libtool script.
8597
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8598
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8599
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8600
deplibs_check_method reload_flag reload_cmds need_locks \
8601
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8602
lt_cv_sys_global_symbol_to_c_name_address \
8603
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8604
old_postinstall_cmds old_postuninstall_cmds \
8608
lt_prog_compiler_wl \
8609
lt_prog_compiler_pic \
8610
lt_prog_compiler_static \
8611
lt_prog_compiler_no_builtin_flag \
8612
export_dynamic_flag_spec \
8613
thread_safe_flag_spec \
8614
whole_archive_flag_spec \
8615
enable_shared_with_static_runtimes \
8617
old_archive_from_new_cmds \
8622
compiler_lib_search_path \
8624
archive_expsym_cmds \
8626
postuninstall_cmds \
8627
old_archive_from_expsyms_cmds \
8628
allow_undefined_flag \
8630
export_symbols_cmds \
8631
hardcode_libdir_flag_spec \
8632
hardcode_libdir_flag_spec_ld \
8633
hardcode_libdir_separator \
8634
hardcode_automatic \
8636
module_expsym_cmds \
8637
lt_cv_prog_compiler_c_o \
8642
old_archive_cmds | \
8643
old_archive_from_new_cmds | \
8645
archive_expsym_cmds | \
8647
module_expsym_cmds | \
8648
old_archive_from_expsyms_cmds | \
8649
export_symbols_cmds | \
8650
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8651
postinstall_cmds | postuninstall_cmds | \
8652
old_postinstall_cmds | old_postuninstall_cmds | \
8653
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8654
# Double-quote double-evaled strings.
8655
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8658
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8664
*'\$0 --fallback-echo"')
8665
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8670
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8672
{ echo "$as_me:$LINENO: creating $ofile" >&5
8673
echo "$as_me: creating $ofile" >&6;}
8675
cat <<__EOF__ >> "$cfgfile"
8678
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8679
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8680
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8682
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8683
# Free Software Foundation, Inc.
8685
# This file is part of GNU Libtool:
8686
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8688
# This program is free software; you can redistribute it and/or modify
8689
# it under the terms of the GNU General Public License as published by
8690
# the Free Software Foundation; either version 2 of the License, or
8691
# (at your option) any later version.
8693
# This program is distributed in the hope that it will be useful, but
8694
# WITHOUT ANY WARRANTY; without even the implied warranty of
8695
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8696
# General Public License for more details.
8698
# You should have received a copy of the GNU General Public License
8699
# along with this program; if not, write to the Free Software
8700
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8702
# As a special exception to the GNU General Public License, if you
8703
# distribute this file as part of a program that contains a
8704
# configuration script generated by Autoconf, you may include it under
8705
# the same distribution terms that you use for the rest of that program.
8707
# A sed program that does not truncate output.
8710
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8711
Xsed="$SED -e s/^X//"
8713
# The HP-UX ksh and POSIX shell print the target directory to stdout
8715
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8717
# The names of the tagged configurations supported by this script.
8720
# ### BEGIN LIBTOOL CONFIG
8722
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8724
# Shell to use when invoking shell scripts.
8727
# Whether or not to build shared libraries.
8728
build_libtool_libs=$enable_shared
8730
# Whether or not to build static libraries.
8731
build_old_libs=$enable_static
8733
# Whether or not to add -lc for building shared libraries.
8734
build_libtool_need_lc=$archive_cmds_need_lc
8736
# Whether or not to disallow shared libs when runtime libs are static
8737
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8739
# Whether or not to optimize for fast installation.
8740
fast_install=$enable_fast_install
8743
host_alias=$host_alias
8746
# An echo program that does not interpret backslashes.
8751
AR_FLAGS=$lt_AR_FLAGS
8756
# A language-specific compiler.
8759
# Is the compiler the GNU C compiler?
8765
# The linker used to build libraries.
8768
# Whether we need hard or soft links.
8771
# A BSD-compatible nm program.
8774
# A symbol stripping program
8777
# Used to examine libraries when file_magic_cmd begins "file"
8778
MAGIC_CMD=$MAGIC_CMD
8780
# Used on cygwin: DLL creation program.
8783
# Used on cygwin: object dumper.
8786
# Used on cygwin: assembler.
8789
# The name of the directory that contains temporary libtool files.
8792
# How to create reloadable object files.
8793
reload_flag=$lt_reload_flag
8794
reload_cmds=$lt_reload_cmds
8796
# How to pass a linker flag through the compiler.
8797
wl=$lt_lt_prog_compiler_wl
8799
# Object file suffix (normally "o").
8802
# Old archive suffix (normally "a").
8805
# Shared library suffix (normally ".so").
8808
# Executable file suffix (normally "").
8811
# Additional compiler flags for building library objects.
8812
pic_flag=$lt_lt_prog_compiler_pic
8815
# What is the maximum length of a command?
8816
max_cmd_len=$lt_cv_sys_max_cmd_len
8818
# Does compiler simultaneously support -c and -o options?
8819
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8821
# Must we lock files when doing compilation ?
8822
need_locks=$lt_need_locks
8824
# Do we need the lib prefix for modules?
8825
need_lib_prefix=$need_lib_prefix
8827
# Do we need a version for libraries?
8828
need_version=$need_version
8830
# Whether dlopen is supported.
8831
dlopen_support=$enable_dlopen
8833
# Whether dlopen of programs is supported.
8834
dlopen_self=$enable_dlopen_self
8836
# Whether dlopen of statically linked programs is supported.
8837
dlopen_self_static=$enable_dlopen_self_static
8839
# Compiler flag to prevent dynamic linking.
8840
link_static_flag=$lt_lt_prog_compiler_static
8842
# Compiler flag to turn off builtin functions.
8843
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8845
# Compiler flag to allow reflexive dlopens.
8846
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8848
# Compiler flag to generate shared objects directly from archives.
8849
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8851
# Compiler flag to generate thread-safe objects.
8852
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8854
# Library versioning type.
8855
version_type=$version_type
8857
# Format of library name prefix.
8858
libname_spec=$lt_libname_spec
8860
# List of archive names. First name is the real one, the rest are links.
8861
# The last name is the one that the linker finds with -lNAME.
8862
library_names_spec=$lt_library_names_spec
8864
# The coded name of the library, if different from the real name.
8865
soname_spec=$lt_soname_spec
8867
# Commands used to build and install an old-style archive.
8869
old_archive_cmds=$lt_old_archive_cmds
8870
old_postinstall_cmds=$lt_old_postinstall_cmds
8871
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8873
# Create an old-style archive from a shared archive.
8874
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8876
# Create a temporary old-style archive to link instead of a shared archive.
8877
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8879
# Commands used to build and install a shared archive.
8880
archive_cmds=$lt_archive_cmds
8881
archive_expsym_cmds=$lt_archive_expsym_cmds
8882
postinstall_cmds=$lt_postinstall_cmds
8883
postuninstall_cmds=$lt_postuninstall_cmds
8885
# Commands used to build a loadable module (assumed same as above if empty)
8886
module_cmds=$lt_module_cmds
8887
module_expsym_cmds=$lt_module_expsym_cmds
8889
# Commands to strip libraries.
8890
old_striplib=$lt_old_striplib
8891
striplib=$lt_striplib
8893
# Dependencies to place before the objects being linked to create a
8895
predep_objects=$lt_predep_objects
8897
# Dependencies to place after the objects being linked to create a
8899
postdep_objects=$lt_postdep_objects
8901
# Dependencies to place before the objects being linked to create a
8905
# Dependencies to place after the objects being linked to create a
8907
postdeps=$lt_postdeps
8909
# The library search path used internally by the compiler when linking
8911
compiler_lib_search_path=$lt_compiler_lib_search_path
8913
# Method to check whether dependent libraries are shared objects.
8914
deplibs_check_method=$lt_deplibs_check_method
8916
# Command to use when deplibs_check_method == file_magic.
8917
file_magic_cmd=$lt_file_magic_cmd
8919
# Flag that allows shared libraries with undefined symbols to be built.
8920
allow_undefined_flag=$lt_allow_undefined_flag
8922
# Flag that forces no undefined symbols.
8923
no_undefined_flag=$lt_no_undefined_flag
8925
# Commands used to finish a libtool library installation in a directory.
8926
finish_cmds=$lt_finish_cmds
8928
# Same as above, but a single script fragment to be evaled but not shown.
8929
finish_eval=$lt_finish_eval
8931
# Take the output of nm and produce a listing of raw symbols and C names.
8932
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8934
# Transform the output of nm in a proper C declaration
8935
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8937
# Transform the output of nm in a C name address pair
8938
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8940
# This is the shared library runtime path variable.
8941
runpath_var=$runpath_var
8943
# This is the shared library path variable.
8944
shlibpath_var=$shlibpath_var
8946
# Is shlibpath searched before the hard-coded library search path?
8947
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8949
# How to hardcode a shared library path into an executable.
8950
hardcode_action=$hardcode_action
8952
# Whether we should hardcode library paths into libraries.
8953
hardcode_into_libs=$hardcode_into_libs
8955
# Flag to hardcode \$libdir into a binary during linking.
8956
# This must work even if \$libdir does not exist.
8957
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8959
# If ld is used when linking, flag to hardcode \$libdir into
8960
# a binary during linking. This must work even if \$libdir does
8962
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8964
# Whether we need a single -rpath flag with a separated argument.
8965
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8967
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8969
hardcode_direct=$hardcode_direct
8971
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8973
hardcode_minus_L=$hardcode_minus_L
8975
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8976
# the resulting binary.
8977
hardcode_shlibpath_var=$hardcode_shlibpath_var
8979
# Set to yes if building a shared library automatically hardcodes DIR into the library
8980
# and all subsequent libraries and executables linked against it.
8981
hardcode_automatic=$hardcode_automatic
8983
# Variables whose values should be saved in libtool wrapper scripts and
8984
# restored at relink time.
8985
variables_saved_for_relink="$variables_saved_for_relink"
8987
# Whether libtool must link a program against all its dependency libraries.
8988
link_all_deplibs=$link_all_deplibs
8990
# Compile-time system search path for libraries
8991
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8993
# Run-time system search path for libraries
8994
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8996
# Fix the shell variable \$srcfile for the compiler.
8997
fix_srcfile_path="$fix_srcfile_path"
8999
# Set to yes if exported symbols are required.
9000
always_export_symbols=$always_export_symbols
9002
# The commands to list exported symbols.
9003
export_symbols_cmds=$lt_export_symbols_cmds
9005
# The commands to extract the exported symbol list from a shared archive.
9006
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9008
# Symbols that should not be listed in the preloaded symbols.
9009
exclude_expsyms=$lt_exclude_expsyms
9011
# Symbols that must always be exported.
9012
include_expsyms=$lt_include_expsyms
9014
# ### END LIBTOOL CONFIG
9021
cat <<\EOF >> "$cfgfile"
9023
# AIX sometimes has problems with the GCC collect2 program. For some
9024
# reason, if we set the COLLECT_NAMES environment variable, the problems
9025
# vanish in a puff of smoke.
9026
if test "X${COLLECT_NAMES+set}" != Xset; then
9028
export COLLECT_NAMES
9034
# We use sed instead of cat because bash on DJGPP gets confused if
9035
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9036
# text mode, it properly converts lines to CR/LF. This bash problem
9037
# is reportedly fixed, but why not run on old versions too?
9038
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9040
mv -f "$cfgfile" "$ofile" || \
9041
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9045
# If there is no Makefile yet, we rely on a make rule to execute
9046
# `config.status --recheck' to rerun these tests and create the
9047
# libtool script then.
9048
test -f Makefile && make "$ltmain"
9053
ac_cpp='$CPP $CPPFLAGS'
9054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9061
# Check whether --with-tags or --without-tags was given.
9062
if test "${with_tags+set}" = set; then
9063
withval="$with_tags"
9067
if test -f "$ltmain" && test -n "$tagnames"; then
9068
if test ! -f "${ofile}"; then
9069
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9070
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9073
if test -z "$LTCC"; then
9074
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9075
if test -z "$LTCC"; then
9076
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9077
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9079
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9080
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9084
# Extract list of available tagged configurations in $ofile.
9085
# Note that this assumes the entire list is on one line.
9086
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9088
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089
for tagname in $tagnames; do
9091
# Check whether tagname contains only valid characters
9092
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9094
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9095
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9096
{ (exit 1); exit 1; }; }
9100
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9102
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9103
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9104
{ (exit 1); exit 1; }; }
9107
# Update the list of available tags.
9108
if test -n "$tagname"; then
9109
echo appending configuration tag \"$tagname\" to $ofile
9113
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9115
ac_cpp='$CXXCPP $CPPFLAGS'
9116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9123
archive_cmds_need_lc_CXX=no
9124
allow_undefined_flag_CXX=
9125
always_export_symbols_CXX=no
9126
archive_expsym_cmds_CXX=
9127
export_dynamic_flag_spec_CXX=
9128
hardcode_direct_CXX=no
9129
hardcode_libdir_flag_spec_CXX=
9130
hardcode_libdir_flag_spec_ld_CXX=
9131
hardcode_libdir_separator_CXX=
9132
hardcode_minus_L_CXX=no
9133
hardcode_automatic_CXX=no
9135
module_expsym_cmds_CXX=
9136
link_all_deplibs_CXX=unknown
9137
old_archive_cmds_CXX=$old_archive_cmds
9138
no_undefined_flag_CXX=
9139
whole_archive_flag_spec_CXX=
9140
enable_shared_with_static_runtimes_CXX=no
9142
# Dependencies to place before and after the object being linked:
9144
postdep_objects_CXX=
9147
compiler_lib_search_path_CXX=
9149
# Source file extension for C++ test sources.
9152
# Object file extension for compiled C++ test sources.
9156
# Code to be used in simple compile tests
9157
lt_simple_compile_test_code="int some_variable = 0;\n"
9159
# Code to be used in simple link tests
9160
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9162
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9164
# If no C compiler was specified, use CC.
9167
# Allow CC to be a program name with arguments.
9171
# Allow CC to be a program name with arguments.
9176
lt_save_with_gnu_ld=$with_gnu_ld
9177
lt_save_path_LD=$lt_cv_path_LD
9178
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9179
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9181
unset lt_cv_prog_gnu_ld
9183
if test -n "${lt_cv_path_LDCXX+set}"; then
9184
lt_cv_path_LD=$lt_cv_path_LDCXX
9188
test -z "${LDCXX+set}" || LD=$LDCXX
9192
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9194
# We don't want -fno-exception wen compiling C++ code, so set the
9195
# no_builtin_flag separately
9196
if test "$GXX" = yes; then
9197
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9199
lt_prog_compiler_no_builtin_flag_CXX=
9202
if test "$GXX" = yes; then
9203
# Set up default GNU C++ configuration
9206
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9207
if test "${with_gnu_ld+set}" = set; then
9208
withval="$with_gnu_ld"
9209
test "$withval" = no || with_gnu_ld=yes
9214
if test "$GCC" = yes; then
9215
# Check if gcc -print-prog-name=ld gives a path.
9216
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9217
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9220
# gcc leaves a trailing carriage return which upsets mingw
9221
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9223
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9226
# Accept absolute paths.
9228
re_direlt='/[^/][^/]*/\.\./'
9229
# Canonicalize the path of ld
9230
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9231
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9232
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9234
test -z "$LD" && LD="$ac_prog"
9237
# If it fails, then pretend we aren't using GCC.
9241
# If it is relative, then search for the first ld in PATH.
9245
elif test "$with_gnu_ld" = yes; then
9246
echo "$as_me:$LINENO: checking for GNU ld" >&5
9247
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9249
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9250
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9252
if test "${lt_cv_path_LD+set}" = set; then
9253
echo $ECHO_N "(cached) $ECHO_C" >&6
9255
if test -z "$LD"; then
9256
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9257
for ac_dir in $PATH; do
9259
test -z "$ac_dir" && ac_dir=.
9260
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9261
lt_cv_path_LD="$ac_dir/$ac_prog"
9262
# Check to see if the program is GNU ld. I'd rather use --version,
9263
# but apparently some GNU ld's only accept -v.
9264
# Break only if it was the GNU/non-GNU ld that we prefer.
9265
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9266
*GNU* | *'with BFD'*)
9267
test "$with_gnu_ld" != no && break
9270
test "$with_gnu_ld" != yes && break
9277
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9282
if test -n "$LD"; then
9283
echo "$as_me:$LINENO: result: $LD" >&5
9284
echo "${ECHO_T}$LD" >&6
9286
echo "$as_me:$LINENO: result: no" >&5
9287
echo "${ECHO_T}no" >&6
9289
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9290
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9291
{ (exit 1); exit 1; }; }
9292
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9293
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9294
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9295
echo $ECHO_N "(cached) $ECHO_C" >&6
9297
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9298
case `"$LD" -v 2>&1 </dev/null` in
9299
*GNU* | *'with BFD'*)
9300
lt_cv_prog_gnu_ld=yes
9303
lt_cv_prog_gnu_ld=no
9307
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9308
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9309
with_gnu_ld=$lt_cv_prog_gnu_ld
9313
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9314
# archiving commands below assume that GNU ld is being used.
9315
if test "$with_gnu_ld" = yes; then
9316
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317
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'
9319
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9320
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9322
# If archive_cmds runs LD, not CC, wlarc should be empty
9323
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9324
# investigate it a little bit more. (MM)
9327
# ancient GNU ld didn't support --whole-archive et. al.
9328
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9329
grep 'no-whole-archive' > /dev/null; then
9330
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9332
whole_archive_flag_spec_CXX=
9338
# A generic and very simple default shared library creation
9339
# command for GNU C++ for the case where it uses the native
9340
# linker, instead of GNU ld. If possible, this setting should
9341
# overridden to take advantage of the native linker features on
9342
# the platform it is being used on.
9343
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9346
# Commands to make compiler produce verbose output that lists
9347
# what "hidden" libraries, object files and flags are used when
9348
# linking a shared library.
9349
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9357
# PORTME: fill in a description of your system's C++ link characteristics
9358
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9359
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9363
# FIXME: insert proper C++ library support
9367
if test "$host_cpu" = ia64; then
9368
# On IA64, the linker does run time linking by default, so we don't
9369
# have to do anything special.
9370
aix_use_runtimelinking=no
9371
exp_sym_flag='-Bexport'
9374
aix_use_runtimelinking=no
9376
# Test if we are trying to use run time linking or normal
9377
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378
# need to do runtime linking.
9379
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9380
for ld_flag in $LDFLAGS; do
9383
aix_use_runtimelinking=yes
9390
exp_sym_flag='-bexport'
9391
no_entry_flag='-bnoentry'
9394
# When large executables or shared objects are built, AIX ld can
9395
# have problems creating the table of contents. If linking a library
9396
# or program results in "error TOC overflow" add -mminimal-toc to
9397
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9398
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9401
hardcode_direct_CXX=yes
9402
hardcode_libdir_separator_CXX=':'
9403
link_all_deplibs_CXX=yes
9405
if test "$GXX" = yes; then
9406
case $host_os in aix4.012|aix4.012.*)
9407
# We only want to do this on AIX 4.2 and lower, the check
9408
# below for broken collect2 doesn't work under 4.3+
9409
collect2name=`${CC} -print-prog-name=collect2`
9410
if test -f "$collect2name" && \
9411
strings "$collect2name" | grep resolve_lib_name >/dev/null
9413
# We have reworked collect2
9414
hardcode_direct_CXX=yes
9416
# We have old collect2
9417
hardcode_direct_CXX=unsupported
9418
# It fails to find uninstalled libraries when the uninstalled
9419
# path is not listed in the libpath. Setting hardcode_minus_L
9420
# to unsupported forces relinking
9421
hardcode_minus_L_CXX=yes
9422
hardcode_libdir_flag_spec_CXX='-L$libdir'
9423
hardcode_libdir_separator_CXX=
9426
shared_flag='-shared'
9429
if test "$host_cpu" = ia64; then
9430
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9431
# chokes on -Wl,-G. The following line is correct:
9434
if test "$aix_use_runtimelinking" = yes; then
9435
shared_flag='${wl}-G'
9437
shared_flag='${wl}-bM:SRE'
9442
# It seems that -bexpall does not export symbols beginning with
9443
# underscore (_), so it is better to generate a list of symbols to export.
9444
always_export_symbols_CXX=yes
9445
if test "$aix_use_runtimelinking" = yes; then
9446
# Warning - without using the other runtime loading flags (-brtl),
9447
# -berok will link without error, but may produce a broken library.
9448
allow_undefined_flag_CXX='-berok'
9449
# Determine the default libpath from the value encoded in an empty executable.
9450
cat >conftest.$ac_ext <<_ACEOF
9451
#line $LINENO "configure"
9454
cat confdefs.h >>conftest.$ac_ext
9455
cat >>conftest.$ac_ext <<_ACEOF
9456
/* end confdefs.h. */
9466
rm -f conftest.$ac_objext conftest$ac_exeext
9467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468
(eval $ac_link) 2>&5
9470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471
(exit $ac_status); } &&
9472
{ ac_try='test -s conftest$ac_exeext'
9473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477
(exit $ac_status); }; }; then
9479
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9481
# Check for a 64-bit object if we didn't find anything.
9482
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; }
9485
echo "$as_me: failed program was:" >&5
9486
sed 's/^/| /' conftest.$ac_ext >&5
9489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9490
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9492
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9494
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"
9496
if test "$host_cpu" = ia64; then
9497
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9498
allow_undefined_flag_CXX="-z nodefs"
9499
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"
9501
# Determine the default libpath from the value encoded in an empty executable.
9502
cat >conftest.$ac_ext <<_ACEOF
9503
#line $LINENO "configure"
9506
cat confdefs.h >>conftest.$ac_ext
9507
cat >>conftest.$ac_ext <<_ACEOF
9508
/* end confdefs.h. */
9518
rm -f conftest.$ac_objext conftest$ac_exeext
9519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520
(eval $ac_link) 2>&5
9522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523
(exit $ac_status); } &&
9524
{ ac_try='test -s conftest$ac_exeext'
9525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529
(exit $ac_status); }; }; then
9531
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9533
# Check for a 64-bit object if we didn't find anything.
9534
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; }
9537
echo "$as_me: failed program was:" >&5
9538
sed 's/^/| /' conftest.$ac_ext >&5
9541
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9542
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9544
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9545
# Warning - without using the other run time loading flags,
9546
# -berok will link without error, but may produce a broken library.
9547
no_undefined_flag_CXX=' ${wl}-bernotok'
9548
allow_undefined_flag_CXX=' ${wl}-berok'
9549
# -bexpall does not export symbols beginning with underscore (_)
9550
always_export_symbols_CXX=yes
9551
# Exported symbols can be pulled into shared objects from archives
9552
whole_archive_flag_spec_CXX=' '
9553
archive_cmds_need_lc_CXX=yes
9554
# This is similar to how AIX traditionally builds it's shared libraries.
9555
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'
9560
case $cc_basename in
9562
# FIXME: insert proper C++ library support
9568
cygwin* | mingw* | pw32*)
9569
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9570
# as there is no search path for DLLs.
9571
hardcode_libdir_flag_spec_CXX='-L$libdir'
9572
allow_undefined_flag_CXX=unsupported
9573
always_export_symbols_CXX=no
9574
enable_shared_with_static_runtimes_CXX=yes
9576
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9577
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'
9578
# If the export-symbols file already is a .def file (1st line
9579
# is EXPORTS), use it as is; otherwise, prepend...
9580
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9581
cp $export_symbols $output_objdir/$soname.def;
9583
echo EXPORTS > $output_objdir/$soname.def;
9584
cat $export_symbols >> $output_objdir/$soname.def;
9586
$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'
9592
darwin* | rhapsody*)
9593
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9594
archive_cmds_need_lc_CXX=no
9596
rhapsody* | darwin1.[012])
9597
allow_undefined_flag_CXX='-undefined suppress'
9600
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9603
lt_int_apple_cc_single_mod=no
9604
output_verbose_link_cmd='echo'
9605
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9606
lt_int_apple_cc_single_mod=yes
9608
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9609
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9611
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'
9613
module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9615
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9616
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9617
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}'
9619
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}'
9621
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9622
hardcode_direct_CXX=no
9623
hardcode_automatic_CXX=yes
9624
hardcode_shlibpath_var_CXX=unsupported
9625
whole_archive_flag_spec_CXX='-all_load $convenience'
9626
link_all_deplibs_CXX=yes
9631
case $cc_basename in
9633
# FIXME: insert proper C++ library support
9637
# Green Hills C++ Compiler
9638
# FIXME: insert proper C++ library support
9642
# FIXME: insert proper C++ library support
9648
# C++ shared libraries reported to be fairly broken before switch to ELF
9652
archive_cmds_need_lc_CXX=no
9655
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9662
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9663
hardcode_libdir_separator_CXX=:
9664
export_dynamic_flag_spec_CXX='${wl}-E'
9665
hardcode_direct_CXX=yes
9666
hardcode_minus_L_CXX=yes # Not in the search PATH,
9667
# but as the default
9668
# location of the library.
9670
case $cc_basename in
9672
# FIXME: insert proper C++ library support
9676
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'
9677
# Commands to make compiler produce verbose output that lists
9678
# what "hidden" libraries, object files and flags are used when
9679
# linking a shared library.
9681
# There doesn't appear to be a way to prevent this compiler from
9682
# explicitly linking system object files so we need to strip them
9683
# from the output so that they don't get included in the library
9685
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'
9688
if test "$GXX" = yes; then
9689
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'
9691
# FIXME: insert proper C++ library support
9698
if test $with_gnu_ld = no; then
9701
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9702
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9703
hardcode_libdir_separator_CXX=:
9706
hardcode_libdir_flag_spec_CXX='-L$libdir'
9709
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9710
hardcode_libdir_separator_CXX=:
9711
export_dynamic_flag_spec_CXX='${wl}-E'
9717
hardcode_direct_CXX=no
9718
hardcode_shlibpath_var_CXX=no
9721
hardcode_direct_CXX=no
9722
hardcode_shlibpath_var_CXX=no
9723
hardcode_minus_L_CXX=yes # Not in the search PATH,
9724
# but as the default
9725
# location of the library.
9728
hardcode_direct_CXX=yes
9729
hardcode_minus_L_CXX=yes # Not in the search PATH,
9730
# but as the default
9731
# location of the library.
9735
case $cc_basename in
9737
# FIXME: insert proper C++ library support
9743
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9746
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9749
# Commands to make compiler produce verbose output that lists
9750
# what "hidden" libraries, object files and flags are used when
9751
# linking a shared library.
9753
# There doesn't appear to be a way to prevent this compiler from
9754
# explicitly linking system object files so we need to strip them
9755
# from the output so that they don't get included in the library
9757
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'
9760
if test "$GXX" = yes; then
9761
if test $with_gnu_ld = no; then
9764
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9767
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'
9772
# FIXME: insert proper C++ library support
9779
case $cc_basename in
9782
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'
9784
# Archives containing C++ object files must be created using
9785
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9786
# necessary to make sure instantiated templates are included
9788
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9791
if test "$GXX" = yes; then
9792
if test "$with_gnu_ld" = no; then
9793
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'
9795
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'
9798
link_all_deplibs_CXX=yes
9801
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9802
hardcode_libdir_separator_CXX=:
9805
case $cc_basename in
9807
# Kuck and Associates, Inc. (KAI) C++ Compiler
9809
# KCC will only create a shared library if the output file
9810
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9811
# to its proper name (with version) after linking.
9812
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'
9813
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'
9814
# Commands to make compiler produce verbose output that lists
9815
# what "hidden" libraries, object files and flags are used when
9816
# linking a shared library.
9818
# There doesn't appear to be a way to prevent this compiler from
9819
# explicitly linking system object files so we need to strip them
9820
# from the output so that they don't get included in the library
9822
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'
9824
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9825
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9827
# Archives containing C++ object files must be created using
9828
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9829
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9834
archive_cmds_need_lc_CXX=no
9835
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836
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'
9837
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9838
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9839
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9843
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844
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'
9846
runpath_var=LD_RUN_PATH
9847
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9848
hardcode_libdir_separator_CXX=:
9850
# Commands to make compiler produce verbose output that lists
9851
# what "hidden" libraries, object files and flags are used when
9852
# linking a shared library.
9854
# There doesn't appear to be a way to prevent this compiler from
9855
# explicitly linking system object files so we need to strip them
9856
# from the output so that they don't get included in the library
9858
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'
9863
# FIXME: insert proper C++ library support
9867
# FIXME: insert proper C++ library support
9871
case $cc_basename in
9873
# FIXME: insert proper C++ library support
9877
# FIXME: insert proper C++ library support
9883
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9884
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9886
hardcode_libdir_flag_spec_CXX='-R$libdir'
9887
hardcode_direct_CXX=yes
9888
hardcode_shlibpath_var_CXX=no
9890
# Workaround some broken pre-1.5 toolchains
9891
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9894
case $cc_basename in
9896
# Kuck and Associates, Inc. (KAI) C++ Compiler
9898
# KCC will only create a shared library if the output file
9899
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9900
# to its proper name (with version) after linking.
9901
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'
9903
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9904
hardcode_libdir_separator_CXX=:
9906
# Archives containing C++ object files must be created using
9907
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9908
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9912
# Rational C++ 2.4.1
9913
# FIXME: insert proper C++ library support
9917
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9918
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'
9920
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9921
hardcode_libdir_separator_CXX=:
9923
# Commands to make compiler produce verbose output that lists
9924
# what "hidden" libraries, object files and flags are used when
9925
# linking a shared library.
9927
# There doesn't appear to be a way to prevent this compiler from
9928
# explicitly linking system object files so we need to strip them
9929
# from the output so that they don't get included in the library
9931
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'
9934
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9935
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9936
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'
9938
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939
hardcode_libdir_separator_CXX=:
9941
# Commands to make compiler produce verbose output that lists
9942
# what "hidden" libraries, object files and flags are used when
9943
# linking a shared library.
9944
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9947
# FIXME: insert proper C++ library support
9954
case $cc_basename in
9956
# Kuck and Associates, Inc. (KAI) C++ Compiler
9958
# KCC will only create a shared library if the output file
9959
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9960
# to its proper name (with version) after linking.
9961
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'
9963
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9964
hardcode_libdir_separator_CXX=:
9966
# Archives containing C++ object files must be created using
9967
# the KAI C++ compiler.
9968
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9971
# Rational C++ 2.4.1
9972
# FIXME: insert proper C++ library support
9976
allow_undefined_flag_CXX=' -expect_unresolved \*'
9977
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'
9978
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9979
echo "-hidden">> $lib.exp~
9980
$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~
9983
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9984
hardcode_libdir_separator_CXX=:
9986
# Commands to make compiler produce verbose output that lists
9987
# what "hidden" libraries, object files and flags are used when
9988
# linking a shared library.
9990
# There doesn't appear to be a way to prevent this compiler from
9991
# explicitly linking system object files so we need to strip them
9992
# from the output so that they don't get included in the library
9994
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'
9997
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9998
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9999
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'
10001
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10002
hardcode_libdir_separator_CXX=:
10004
# Commands to make compiler produce verbose output that lists
10005
# what "hidden" libraries, object files and flags are used when
10006
# linking a shared library.
10007
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10010
# FIXME: insert proper C++ library support
10017
# FIXME: insert proper C++ library support
10021
archive_cmds_need_lc_CXX=no
10022
case $cc_basename in
10024
# FIXME: insert proper C++ library support
10028
# FIXME: insert proper C++ library support
10034
case $cc_basename in
10037
# FIXME: insert proper C++ library support
10042
# FIXME: insert proper C++ library support
10046
# FIXME: insert proper C++ library support
10052
case $cc_basename in
10054
# Sun C++ 4.2, 5.x and Centerline C++
10055
no_undefined_flag_CXX=' -zdefs'
10056
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10057
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10058
$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'
10060
hardcode_libdir_flag_spec_CXX='-R$libdir'
10061
hardcode_shlibpath_var_CXX=no
10063
solaris2.0-5 | solaris2.0-5.*) ;;
10065
# The C++ compiler is used as linker so we must use $wl
10066
# flag to pass the commands to the underlying system
10068
# Supported since Solaris 2.6 (maybe 2.5.1?)
10069
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10072
link_all_deplibs_CXX=yes
10074
# Commands to make compiler produce verbose output that lists
10075
# what "hidden" libraries, object files and flags are used when
10076
# linking a shared library.
10078
# There doesn't appear to be a way to prevent this compiler from
10079
# explicitly linking system object files so we need to strip them
10080
# from the output so that they don't get included in the library
10082
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'
10084
# Archives containing C++ object files must be created using
10085
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10086
# necessary to make sure instantiated templates are included
10088
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10091
# Green Hills C++ Compiler
10092
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10094
# The C++ compiler must be used to create the archive.
10095
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10098
# GNU C++ compiler with Solaris linker
10099
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10100
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10101
if $CC --version | grep -v '^2\.7' > /dev/null; then
10102
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10103
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10104
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10106
# Commands to make compiler produce verbose output that lists
10107
# what "hidden" libraries, object files and flags are used when
10108
# linking a shared library.
10109
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10111
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10113
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10114
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10115
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10117
# Commands to make compiler produce verbose output that lists
10118
# what "hidden" libraries, object files and flags are used when
10119
# linking a shared library.
10120
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10123
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10128
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10129
archive_cmds_need_lc_CXX=no
10132
case $cc_basename in
10134
# NonStop-UX NCC 3.20
10135
# FIXME: insert proper C++ library support
10139
# FIXME: insert proper C++ library support
10145
# FIXME: insert proper C++ library support
10149
# FIXME: insert proper C++ library support
10153
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10154
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10155
test "$ld_shlibs_CXX" = no && can_build_shared=no
10161
cat > conftest.$ac_ext <<EOF
10165
Foo (void) { a = 0; }
10171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172
(eval $ac_compile) 2>&5
10174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175
(exit $ac_status); }; then
10176
# Parse the compiler output and extract the necessary
10177
# objects, libraries and library flags.
10179
# Sentinel used to keep track of whether or not we are before
10180
# the conftest object file.
10181
pre_test_object_deps_done=no
10183
# The `*' in the case matches for architectures that use `case' in
10184
# $output_verbose_cmd can trigger glob expansion during the loop
10185
# eval without this substitution.
10186
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10188
for p in `eval $output_verbose_link_cmd`; do
10192
# Some compilers place space between "-{L,R}" and the path.
10193
# Remove the space.
10194
if test $p = "-L" \
10195
|| test $p = "-R"; then
10202
if test "$pre_test_object_deps_done" = no; then
10205
# Internal compiler library paths should come after those
10206
# provided the user. The postdeps already come after the
10207
# user supplied libs so there is no need to process them.
10208
if test -z "$compiler_lib_search_path_CXX"; then
10209
compiler_lib_search_path_CXX="${prev}${p}"
10211
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10214
# The "-l" case would never come before the object being
10215
# linked, so don't bother handling this case.
10218
if test -z "$postdeps_CXX"; then
10219
postdeps_CXX="${prev}${p}"
10221
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10227
# This assumes that the test object file only shows up
10228
# once in the compiler output.
10229
if test "$p" = "conftest.$objext"; then
10230
pre_test_object_deps_done=yes
10234
if test "$pre_test_object_deps_done" = no; then
10235
if test -z "$predep_objects_CXX"; then
10236
predep_objects_CXX="$p"
10238
predep_objects_CXX="$predep_objects_CXX $p"
10241
if test -z "$postdep_objects_CXX"; then
10242
postdep_objects_CXX="$p"
10244
postdep_objects_CXX="$postdep_objects_CXX $p"
10249
*) ;; # Ignore the rest.
10257
echo "libtool.m4: error: problem compiling CXX test program"
10260
$rm -f confest.$objext
10262
case " $postdeps_CXX " in
10263
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10266
lt_prog_compiler_wl_CXX=
10267
lt_prog_compiler_pic_CXX=
10268
lt_prog_compiler_static_CXX=
10270
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10271
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10273
# C++ specific cases for pic, static, wl, etc.
10274
if test "$GXX" = yes; then
10275
lt_prog_compiler_wl_CXX='-Wl,'
10276
lt_prog_compiler_static_CXX='-static'
10280
# All AIX code is PIC.
10281
if test "$host_cpu" = ia64; then
10282
# AIX 5 now supports IA64 processor
10283
lt_prog_compiler_static_CXX='-Bstatic'
10287
# FIXME: we need at least 68020 code to build shared libraries, but
10288
# adding the `-m68020' flag to GCC prevents building anything better,
10290
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10292
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10293
# PIC is the default for these OSes.
10295
mingw* | os2* | pw32*)
10296
# This hack is so that the source file can tell whether it is being
10297
# built for inclusion in a dll (and should export symbols for example).
10298
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10300
darwin* | rhapsody*)
10301
# PIC is the default on this platform
10302
# Common symbols not allowed in MH_DYLIB files
10303
lt_prog_compiler_pic_CXX='-fno-common'
10306
# DJGPP does not support shared libraries at all
10307
lt_prog_compiler_pic_CXX=
10310
if test -d /usr/nec; then
10311
lt_prog_compiler_pic_CXX=-Kconform_pic
10315
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10316
# not for PA HP-UX.
10317
case "$host_cpu" in
10321
lt_prog_compiler_pic_CXX='-fPIC'
10326
lt_prog_compiler_pic_CXX='-fPIC'
10332
# All AIX code is PIC.
10333
if test "$host_cpu" = ia64; then
10334
# AIX 5 now supports IA64 processor
10335
lt_prog_compiler_static_CXX='-Bstatic'
10337
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10341
case $cc_basename in
10343
# Green Hills C++ Compiler
10344
# _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"
10349
case $cc_basename in
10351
lt_prog_compiler_pic_CXX='-KPIC'
10354
# Green Hills C++ Compiler
10355
lt_prog_compiler_pic_CXX='-pic'
10362
# FreeBSD uses GNU C++
10364
hpux9* | hpux10* | hpux11*)
10365
case $cc_basename in
10367
lt_prog_compiler_wl_CXX='-Wl,'
10368
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10369
if test "$host_cpu" != ia64; then
10370
lt_prog_compiler_pic_CXX='+Z'
10374
lt_prog_compiler_wl_CXX='-Wl,'
10375
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10376
case "$host_cpu" in
10381
lt_prog_compiler_pic_CXX='+Z'
10389
irix5* | irix6* | nonstopux*)
10390
case $cc_basename in
10392
lt_prog_compiler_wl_CXX='-Wl,'
10393
lt_prog_compiler_static_CXX='-non_shared'
10394
# CC pic flag -KPIC is the default.
10401
case $cc_basename in
10404
lt_prog_compiler_wl_CXX='--backend -Wl,'
10405
lt_prog_compiler_pic_CXX='-fPIC'
10409
lt_prog_compiler_wl_CXX='-Wl,'
10410
lt_prog_compiler_pic_CXX='-KPIC'
10411
lt_prog_compiler_static_CXX='-static'
10415
# Make sure the PIC flag is empty. It appears that all Alpha
10416
# Linux and Compaq Tru64 Unix objects are PIC.
10417
lt_prog_compiler_pic_CXX=
10418
lt_prog_compiler_static_CXX='-non_shared'
10429
case $cc_basename in
10431
lt_prog_compiler_pic_CXX='-W c,exportall'
10439
osf3* | osf4* | osf5*)
10440
case $cc_basename in
10442
lt_prog_compiler_wl_CXX='--backend -Wl,'
10445
# Rational C++ 2.4.1
10446
lt_prog_compiler_pic_CXX='-pic'
10449
# Digital/Compaq C++
10450
lt_prog_compiler_wl_CXX='-Wl,'
10451
# Make sure the PIC flag is empty. It appears that all Alpha
10452
# Linux and Compaq Tru64 Unix objects are PIC.
10453
lt_prog_compiler_pic_CXX=
10454
lt_prog_compiler_static_CXX='-non_shared'
10463
case $cc_basename in
10465
lt_prog_compiler_pic_CXX='-fPIC'
10472
case $cc_basename in
10474
# Sun C++ 4.2, 5.x and Centerline C++
10475
lt_prog_compiler_pic_CXX='-KPIC'
10476
lt_prog_compiler_static_CXX='-Bstatic'
10477
lt_prog_compiler_wl_CXX='-Qoption ld '
10480
# Green Hills C++ Compiler
10481
lt_prog_compiler_pic_CXX='-PIC'
10488
case $cc_basename in
10491
lt_prog_compiler_pic_CXX='-pic'
10492
lt_prog_compiler_static_CXX='-Bstatic'
10496
lt_prog_compiler_pic_CXX='-pic'
10503
case $cc_basename in
10505
# NonStop-UX NCC 3.20
10506
lt_prog_compiler_pic_CXX='-KPIC'
10517
lt_prog_compiler_can_build_shared_CXX=no
10522
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10523
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10526
# Check to make sure the PIC flag actually works.
10528
if test -n "$lt_prog_compiler_pic_CXX"; then
10529
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10530
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10531
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10532
echo $ECHO_N "(cached) $ECHO_C" >&6
10534
lt_prog_compiler_pic_works_CXX=no
10535
ac_outfile=conftest.$ac_objext
10536
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10537
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10538
# Insert the option either (1) after the last *FLAGS variable, or
10539
# (2) before a word containing "conftest.", or (3) at the end.
10540
# Note that $ac_compile itself does not contain backslashes and begins
10541
# with a dollar sign (not a hyphen), so the echo should work correctly.
10542
# The option is referenced via a variable to avoid confusing sed.
10543
lt_compile=`echo "$ac_compile" | $SED \
10544
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10545
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10546
-e 's:$: $lt_compiler_flag:'`
10547
(eval echo "\"\$as_me:10547: $lt_compile\"" >&5)
10548
(eval "$lt_compile" 2>conftest.err)
10550
cat conftest.err >&5
10551
echo "$as_me:10551: \$? = $ac_status" >&5
10552
if (exit $ac_status) && test -s "$ac_outfile"; then
10553
# The compiler can only warn and ignore the option if not recognized
10554
# So say no if there are warnings
10555
if test ! -s conftest.err; then
10556
lt_prog_compiler_pic_works_CXX=yes
10562
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10563
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10565
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10566
case $lt_prog_compiler_pic_CXX in
10568
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10571
lt_prog_compiler_pic_CXX=
10572
lt_prog_compiler_can_build_shared_CXX=no
10577
# For platforms which do not support PIC, -DPIC is meaningless:
10579
lt_prog_compiler_pic_CXX=
10582
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10586
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10587
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10588
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10589
echo $ECHO_N "(cached) $ECHO_C" >&6
10591
lt_cv_prog_compiler_c_o_CXX=no
10592
$rm -r conftest 2>/dev/null
10596
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10598
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10599
# that will create temporary files in the current directory regardless of
10600
# the output directory. Thus, making CWD read-only will cause this test
10601
# to fail, enabling locking or at least warning the user not to do parallel
10605
lt_compiler_flag="-o out/conftest2.$ac_objext"
10606
# Insert the option either (1) after the last *FLAGS variable, or
10607
# (2) before a word containing "conftest.", or (3) at the end.
10608
# Note that $ac_compile itself does not contain backslashes and begins
10609
# with a dollar sign (not a hyphen), so the echo should work correctly.
10610
lt_compile=`echo "$ac_compile" | $SED \
10611
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10612
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10613
-e 's:$: $lt_compiler_flag:'`
10614
(eval echo "\"\$as_me:10614: $lt_compile\"" >&5)
10615
(eval "$lt_compile" 2>out/conftest.err)
10617
cat out/conftest.err >&5
10618
echo "$as_me:10618: \$? = $ac_status" >&5
10619
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10621
# The compiler can only warn and ignore the option if not recognized
10622
# So say no if there are warnings
10623
if test ! -s out/conftest.err; then
10624
lt_cv_prog_compiler_c_o_CXX=yes
10628
$rm conftest* out/*
10635
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10636
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10639
hard_links="nottested"
10640
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10641
# do not overwrite the value of need_locks provided by the user
10642
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10643
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10646
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10648
ln conftest.a conftest.b 2>&5 || hard_links=no
10649
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10650
echo "$as_me:$LINENO: result: $hard_links" >&5
10651
echo "${ECHO_T}$hard_links" >&6
10652
if test "$hard_links" = no; then
10653
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10654
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10661
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10662
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10664
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10667
# If we're using GNU nm, then we don't want the "-C" option.
10668
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10669
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10670
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'
10672
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'
10676
export_symbols_cmds_CXX="$ltdll_cmds"
10679
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10682
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10686
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10687
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10688
test "$ld_shlibs_CXX" = no && can_build_shared=no
10690
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10691
if test "$GCC" = yes; then
10692
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10696
# Do we need to explicitly link libc?
10698
case "x$archive_cmds_need_lc_CXX" in
10700
# Assume -lc should be added
10701
archive_cmds_need_lc_CXX=yes
10703
if test "$enable_shared" = yes && test "$GCC" = yes; then
10704
case $archive_cmds_CXX in
10706
# FIXME: we may have to deal with multi-command sequences.
10709
# Test whether the compiler implicitly links with -lc since on some
10710
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10711
# to ld, don't add -lc before -lgcc.
10712
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10713
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10715
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718
(eval $ac_compile) 2>&5
10720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721
(exit $ac_status); } 2>conftest.err; then
10724
libobjs=conftest.$ac_objext
10726
wl=$lt_prog_compiler_wl_CXX
10732
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10733
allow_undefined_flag_CXX=
10734
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10735
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738
(exit $ac_status); }
10740
archive_cmds_need_lc_CXX=no
10742
archive_cmds_need_lc_CXX=yes
10744
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10746
cat conftest.err 1>&5
10749
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10750
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10757
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10758
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10759
hardcode_action_CXX=
10760
if test -n "$hardcode_libdir_flag_spec_CXX" || \
10761
test -n "$runpath_var CXX" || \
10762
test "X$hardcode_automatic_CXX"="Xyes" ; then
10764
# We can hardcode non-existant directories.
10765
if test "$hardcode_direct_CXX" != no &&
10766
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10767
# have to relink, otherwise we might link with an installed library
10768
# when we should be linking with a yet-to-be-installed one
10769
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10770
test "$hardcode_minus_L_CXX" != no; then
10771
# Linking always hardcodes the temporary library directory.
10772
hardcode_action_CXX=relink
10774
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10775
hardcode_action_CXX=immediate
10778
# We cannot hardcode anything, or else we can only hardcode existing
10780
hardcode_action_CXX=unsupported
10782
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10783
echo "${ECHO_T}$hardcode_action_CXX" >&6
10785
if test "$hardcode_action_CXX" = relink; then
10786
# Fast installation is not supported
10787
enable_fast_install=no
10788
elif test "$shlibpath_overrides_runpath" = yes ||
10789
test "$enable_shared" = no; then
10790
# Fast installation is not necessary
10791
enable_fast_install=needless
10796
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10797
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10798
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10799
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10800
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10801
echo "$as_me:$LINENO: result: yes" >&5
10802
echo "${ECHO_T}yes" >&6
10804
# FIXME - insert some real tests, host_os isn't really good enough
10807
if test -n "$STRIP" ; then
10808
striplib="$STRIP -x"
10809
echo "$as_me:$LINENO: result: yes" >&5
10810
echo "${ECHO_T}yes" >&6
10812
echo "$as_me:$LINENO: result: no" >&5
10813
echo "${ECHO_T}no" >&6
10817
echo "$as_me:$LINENO: result: no" >&5
10818
echo "${ECHO_T}no" >&6
10823
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10824
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10825
library_names_spec=
10826
libname_spec='lib$name'
10830
postuninstall_cmds=
10834
shlibpath_overrides_runpath=unknown
10836
dynamic_linker="$host_os ld.so"
10837
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10838
if test "$GCC" = yes; then
10839
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10840
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10841
# if the path contains ";" then we assume it to be the separator
10842
# otherwise default to the standard path separator (i.e. ":") - it is
10843
# assumed that no part of a normal pathname contains ";" but that should
10844
# okay in the real world where ";" in dirpaths is itself problematic.
10845
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10847
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10850
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10852
need_lib_prefix=unknown
10853
hardcode_into_libs=no
10855
# when you set need_version to no, make sure it does not cause -set_version
10856
# flags to be left without arguments
10857
need_version=unknown
10862
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10863
shlibpath_var=LIBPATH
10865
# AIX 3 has no versioning support, so we append a major version to the name.
10866
soname_spec='${libname}${release}${shared_ext}$major'
10873
hardcode_into_libs=yes
10874
if test "$host_cpu" = ia64; then
10875
# AIX 5 supports IA64
10876
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10877
shlibpath_var=LD_LIBRARY_PATH
10879
# With GCC up to 2.95.x, collect2 would create an import file
10880
# for dependence libraries. The import file would start with
10881
# the line `#! .'. This would cause the generated library to
10882
# depend on `.', always an invalid library. This was fixed in
10883
# development snapshots of GCC prior to 3.0.
10885
aix4 | aix4.[01] | aix4.[01].*)
10886
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10888
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10891
can_build_shared=no
10895
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10896
# soname into executable. Probably we can add versioning support to
10897
# collect2, so additional links can be useful in future.
10898
if test "$aix_use_runtimelinking" = yes; then
10899
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10900
# instead of lib<name>.a to let people know that these are not
10901
# typical AIX shared libraries.
10902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904
# We preserve .a as extension for shared libraries through AIX4.2
10905
# and later when we are not doing run time linking.
10906
library_names_spec='${libname}${release}.a $libname.a'
10907
soname_spec='${libname}${release}${shared_ext}$major'
10909
shlibpath_var=LIBPATH
10914
library_names_spec='$libname.ixlibrary $libname.a'
10915
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10916
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'
10920
library_names_spec='${libname}${shared_ext}'
10921
dynamic_linker="$host_os ld.so"
10922
shlibpath_var=LIBRARY_PATH
10928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929
soname_spec='${libname}${release}${shared_ext}$major'
10930
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10931
shlibpath_var=LD_LIBRARY_PATH
10932
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10933
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10934
# the default ld.so.conf also contains /usr/contrib/lib and
10935
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10936
# libtool to hard-code these into programs
10939
cygwin* | mingw* | pw32*)
10940
version_type=windows
10945
case $GCC,$host_os in
10946
yes,cygwin* | yes,mingw* | yes,pw32*)
10947
library_names_spec='$libname.dll.a'
10948
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10949
postinstall_cmds='base_file=`basename \${file}`~
10950
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10951
dldir=$destdir/`dirname \$dlpath`~
10952
test -d \$dldir || mkdir -p \$dldir~
10953
$install_prog $dir/$dlname \$dldir/$dlname'
10954
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10955
dlpath=$dir/\$dldll~
10957
shlibpath_overrides_runpath=yes
10961
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10962
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10963
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10966
# MinGW DLLs use traditional 'lib' prefix
10967
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10968
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10969
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10970
# It is most probably a Windows format PATH printed by
10971
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10972
# path with ; separators, and with drive letters. We can handle the
10973
# drive letters (cygwin fileutils understands them), so leave them,
10974
# especially as we might pass files found there to a mingw objdump,
10975
# which wouldn't understand a cygwinified path. Ahh.
10976
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10978
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10982
# pw32 DLLs use 'pw' prefix rather than 'lib'
10983
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10989
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10992
dynamic_linker='Win32 ld.exe'
10993
# FIXME: first we should search . and the directory the executable is in
10997
darwin* | rhapsody*)
10998
dynamic_linker="$host_os dyld"
10999
version_type=darwin
11002
# FIXME: Relying on posixy $() will cause problems for
11003
# cross-compilation, but unfortunately the echo tests do not
11004
# yet detect zsh echo's removal of \ escapes.
11005
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11006
soname_spec='${libname}${release}${major}$shared_ext'
11007
shlibpath_overrides_runpath=yes
11008
shlibpath_var=DYLD_LIBRARY_PATH
11009
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11010
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11011
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11012
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"`
11014
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11022
soname_spec='${libname}${release}${shared_ext}$major'
11023
shlibpath_var=LD_LIBRARY_PATH
11034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11035
soname_spec='${libname}${release}${shared_ext}$major'
11036
shlibpath_var=LD_LIBRARY_PATH
11037
shlibpath_overrides_runpath=no
11038
hardcode_into_libs=yes
11039
dynamic_linker='GNU ld.so'
11043
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11044
version_type=freebsd-$objformat
11045
case $version_type in
11047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11052
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11056
shlibpath_var=LD_LIBRARY_PATH
11059
shlibpath_overrides_runpath=yes
11061
freebsd3.01* | freebsdelf3.01*)
11062
shlibpath_overrides_runpath=yes
11063
hardcode_into_libs=yes
11066
shlibpath_overrides_runpath=no
11067
hardcode_into_libs=yes
11076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11077
soname_spec='${libname}${release}${shared_ext}$major'
11078
shlibpath_var=LD_LIBRARY_PATH
11079
hardcode_into_libs=yes
11082
hpux9* | hpux10* | hpux11*)
11083
# Give a soname corresponding to the major version so that dld.sl refuses to
11084
# link against other versions.
11088
case "$host_cpu" in
11091
hardcode_into_libs=yes
11092
dynamic_linker="$host_os dld.so"
11093
shlibpath_var=LD_LIBRARY_PATH
11094
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096
soname_spec='${libname}${release}${shared_ext}$major'
11097
if test "X$HPUX_IA64_MODE" = X32; then
11098
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11100
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11102
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106
hardcode_into_libs=yes
11107
dynamic_linker="$host_os dld.sl"
11108
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11109
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111
soname_spec='${libname}${release}${shared_ext}$major'
11112
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11113
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11117
dynamic_linker="$host_os dld.sl"
11118
shlibpath_var=SHLIB_PATH
11119
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121
soname_spec='${libname}${release}${shared_ext}$major'
11124
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11125
postinstall_cmds='chmod 555 $lib'
11128
irix5* | irix6* | nonstopux*)
11130
nonstopux*) version_type=nonstopux ;;
11132
if test "$lt_cv_prog_gnu_ld" = yes; then
11140
soname_spec='${libname}${release}${shared_ext}$major'
11141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11143
irix5* | nonstopux*)
11144
libsuff= shlibsuff=
11147
case $LD in # libtool.m4 will add one of these switches to LD
11148
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11149
libsuff= shlibsuff= libmagic=32-bit;;
11150
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11151
libsuff=32 shlibsuff=N32 libmagic=N32;;
11152
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11153
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11154
*) libsuff= shlibsuff= libmagic=never-match;;
11158
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11159
shlibpath_overrides_runpath=no
11160
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11161
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11162
hardcode_into_libs=yes
11165
# No shared lib support for Linux oldld, aout, or coff.
11166
linux*oldld* | linux*aout* | linux*coff*)
11170
# This must be Linux ELF.
11175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176
soname_spec='${libname}${release}${shared_ext}$major'
11177
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11178
shlibpath_var=LD_LIBRARY_PATH
11179
shlibpath_overrides_runpath=no
11180
# This implies no fast_install, which is unacceptable.
11181
# Some rework will be needed to allow for fast_install
11182
# before this can be enabled.
11183
hardcode_into_libs=yes
11185
# We used to test for /lib/ld.so.1 and disable shared libraries on
11186
# powerpc, because MkLinux only supported shared libraries with the
11187
# GNU dynamic linker. Since this was broken with cross compilers,
11188
# most powerpc-linux boxes support dynamic linking these days and
11189
# people can always --disable-shared, the test was removed, and we
11190
# assume the GNU/Linux dynamic linker is in use.
11191
dynamic_linker='GNU/Linux ld.so'
11198
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11200
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11201
dynamic_linker='NetBSD (a.out) ld.so'
11203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11204
soname_spec='${libname}${release}${shared_ext}$major'
11205
dynamic_linker='NetBSD ld.elf_so'
11207
shlibpath_var=LD_LIBRARY_PATH
11208
shlibpath_overrides_runpath=yes
11209
hardcode_into_libs=yes
11214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215
shlibpath_var=LD_LIBRARY_PATH
11216
shlibpath_overrides_runpath=yes
11223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224
soname_spec='${libname}${release}${shared_ext}$major'
11225
shlibpath_var=LD_LIBRARY_PATH
11226
shlibpath_overrides_runpath=yes
11233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11234
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11235
shlibpath_var=LD_LIBRARY_PATH
11236
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11238
openbsd2.[89] | openbsd2.[89].*)
11239
shlibpath_overrides_runpath=no
11242
shlibpath_overrides_runpath=yes
11246
shlibpath_overrides_runpath=yes
11251
libname_spec='$name'
11254
library_names_spec='$libname${shared_ext} $libname.a'
11255
dynamic_linker='OS/2 ld.exe'
11256
shlibpath_var=LIBPATH
11259
osf3* | osf4* | osf5*)
11263
soname_spec='${libname}${release}${shared_ext}$major'
11264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265
shlibpath_var=LD_LIBRARY_PATH
11266
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11267
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11272
soname_spec='${libname}${release}${shared_ext}$major'
11273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274
shlibpath_var=LD_LIBRARY_PATH
11281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282
soname_spec='${libname}${release}${shared_ext}$major'
11283
shlibpath_var=LD_LIBRARY_PATH
11284
shlibpath_overrides_runpath=yes
11285
hardcode_into_libs=yes
11286
# ldd complains unless libraries are executable
11287
postinstall_cmds='chmod +x $lib'
11292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11293
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11294
shlibpath_var=LD_LIBRARY_PATH
11295
shlibpath_overrides_runpath=yes
11296
if test "$with_gnu_ld" = yes; then
11302
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305
soname_spec='${libname}${release}${shared_ext}$major'
11306
shlibpath_var=LD_LIBRARY_PATH
11307
case $host_vendor in
11309
shlibpath_overrides_runpath=no
11311
export_dynamic_flag_spec='${wl}-Blargedynsym'
11312
runpath_var=LD_RUN_PATH
11320
shlibpath_overrides_runpath=no
11321
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11327
if test -d /usr/nec ;then
11329
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11330
soname_spec='$libname${shared_ext}.$major'
11331
shlibpath_var=LD_LIBRARY_PATH
11337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338
soname_spec='${libname}${release}${shared_ext}$major'
11339
shlibpath_var=LD_LIBRARY_PATH
11346
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11347
echo "${ECHO_T}$dynamic_linker" >&6
11348
test "$dynamic_linker" = no && can_build_shared=no
11350
if test "x$enable_dlopen" != xyes; then
11351
enable_dlopen=unknown
11352
enable_dlopen_self=unknown
11353
enable_dlopen_self_static=unknown
11360
lt_cv_dlopen="load_add_on"
11362
lt_cv_dlopen_self=yes
11366
lt_cv_dlopen="LoadLibrary"
11371
lt_cv_dlopen="dlopen"
11376
# if libdl is installed we need to link against it
11377
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11380
echo $ECHO_N "(cached) $ECHO_C" >&6
11382
ac_check_lib_save_LIBS=$LIBS
11384
cat >conftest.$ac_ext <<_ACEOF
11385
#line $LINENO "configure"
11388
cat confdefs.h >>conftest.$ac_ext
11389
cat >>conftest.$ac_ext <<_ACEOF
11390
/* end confdefs.h. */
11392
/* Override any gcc2 internal prototype to avoid an error. */
11396
/* We use char because int might match the return type of a gcc2
11397
builtin and then its argument prototype would still apply. */
11407
rm -f conftest.$ac_objext conftest$ac_exeext
11408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409
(eval $ac_link) 2>&5
11411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412
(exit $ac_status); } &&
11413
{ ac_try='test -s conftest$ac_exeext'
11414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415
(eval $ac_try) 2>&5
11417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418
(exit $ac_status); }; }; then
11419
ac_cv_lib_dl_dlopen=yes
11421
echo "$as_me: failed program was:" >&5
11422
sed 's/^/| /' conftest.$ac_ext >&5
11424
ac_cv_lib_dl_dlopen=no
11426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427
LIBS=$ac_check_lib_save_LIBS
11429
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11430
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11431
if test $ac_cv_lib_dl_dlopen = yes; then
11432
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11435
lt_cv_dlopen="dyld"
11437
lt_cv_dlopen_self=yes
11444
echo "$as_me:$LINENO: checking for shl_load" >&5
11445
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11446
if test "${ac_cv_func_shl_load+set}" = set; then
11447
echo $ECHO_N "(cached) $ECHO_C" >&6
11449
cat >conftest.$ac_ext <<_ACEOF
11450
#line $LINENO "configure"
11453
cat confdefs.h >>conftest.$ac_ext
11454
cat >>conftest.$ac_ext <<_ACEOF
11455
/* end confdefs.h. */
11456
/* System header to define __stub macros and hopefully few prototypes,
11457
which can conflict with char shl_load (); below.
11458
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11459
<limits.h> exists even on freestanding compilers. */
11461
# include <limits.h>
11463
# include <assert.h>
11465
/* Override any gcc2 internal prototype to avoid an error. */
11470
/* We use char because int might match the return type of a gcc2
11471
builtin and then its argument prototype would still apply. */
11473
/* The GNU C library defines this for functions which it implements
11474
to always fail with ENOSYS. Some functions are actually named
11475
something starting with __ and the normal name is an alias. */
11476
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11479
char (*f) () = shl_load;
11488
return f != shl_load;
11493
rm -f conftest.$ac_objext conftest$ac_exeext
11494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11495
(eval $ac_link) 2>&5
11497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498
(exit $ac_status); } &&
11499
{ ac_try='test -s conftest$ac_exeext'
11500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501
(eval $ac_try) 2>&5
11503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504
(exit $ac_status); }; }; then
11505
ac_cv_func_shl_load=yes
11507
echo "$as_me: failed program was:" >&5
11508
sed 's/^/| /' conftest.$ac_ext >&5
11510
ac_cv_func_shl_load=no
11512
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11515
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11516
if test $ac_cv_func_shl_load = yes; then
11517
lt_cv_dlopen="shl_load"
11519
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11520
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11521
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11522
echo $ECHO_N "(cached) $ECHO_C" >&6
11524
ac_check_lib_save_LIBS=$LIBS
11526
cat >conftest.$ac_ext <<_ACEOF
11527
#line $LINENO "configure"
11530
cat confdefs.h >>conftest.$ac_ext
11531
cat >>conftest.$ac_ext <<_ACEOF
11532
/* end confdefs.h. */
11534
/* Override any gcc2 internal prototype to avoid an error. */
11538
/* We use char because int might match the return type of a gcc2
11539
builtin and then its argument prototype would still apply. */
11549
rm -f conftest.$ac_objext conftest$ac_exeext
11550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551
(eval $ac_link) 2>&5
11553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554
(exit $ac_status); } &&
11555
{ ac_try='test -s conftest$ac_exeext'
11556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557
(eval $ac_try) 2>&5
11559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560
(exit $ac_status); }; }; then
11561
ac_cv_lib_dld_shl_load=yes
11563
echo "$as_me: failed program was:" >&5
11564
sed 's/^/| /' conftest.$ac_ext >&5
11566
ac_cv_lib_dld_shl_load=no
11568
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11569
LIBS=$ac_check_lib_save_LIBS
11571
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11572
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11573
if test $ac_cv_lib_dld_shl_load = yes; then
11574
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11576
echo "$as_me:$LINENO: checking for dlopen" >&5
11577
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11578
if test "${ac_cv_func_dlopen+set}" = set; then
11579
echo $ECHO_N "(cached) $ECHO_C" >&6
11581
cat >conftest.$ac_ext <<_ACEOF
11582
#line $LINENO "configure"
11585
cat confdefs.h >>conftest.$ac_ext
11586
cat >>conftest.$ac_ext <<_ACEOF
11587
/* end confdefs.h. */
11588
/* System header to define __stub macros and hopefully few prototypes,
11589
which can conflict with char dlopen (); below.
11590
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591
<limits.h> exists even on freestanding compilers. */
11593
# include <limits.h>
11595
# include <assert.h>
11597
/* Override any gcc2 internal prototype to avoid an error. */
11602
/* We use char because int might match the return type of a gcc2
11603
builtin and then its argument prototype would still apply. */
11605
/* The GNU C library defines this for functions which it implements
11606
to always fail with ENOSYS. Some functions are actually named
11607
something starting with __ and the normal name is an alias. */
11608
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11611
char (*f) () = dlopen;
11620
return f != dlopen;
11625
rm -f conftest.$ac_objext conftest$ac_exeext
11626
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627
(eval $ac_link) 2>&5
11629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630
(exit $ac_status); } &&
11631
{ ac_try='test -s conftest$ac_exeext'
11632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633
(eval $ac_try) 2>&5
11635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636
(exit $ac_status); }; }; then
11637
ac_cv_func_dlopen=yes
11639
echo "$as_me: failed program was:" >&5
11640
sed 's/^/| /' conftest.$ac_ext >&5
11642
ac_cv_func_dlopen=no
11644
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11646
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11647
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11648
if test $ac_cv_func_dlopen = yes; then
11649
lt_cv_dlopen="dlopen"
11651
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11652
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11653
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11654
echo $ECHO_N "(cached) $ECHO_C" >&6
11656
ac_check_lib_save_LIBS=$LIBS
11658
cat >conftest.$ac_ext <<_ACEOF
11659
#line $LINENO "configure"
11662
cat confdefs.h >>conftest.$ac_ext
11663
cat >>conftest.$ac_ext <<_ACEOF
11664
/* end confdefs.h. */
11666
/* Override any gcc2 internal prototype to avoid an error. */
11670
/* We use char because int might match the return type of a gcc2
11671
builtin and then its argument prototype would still apply. */
11681
rm -f conftest.$ac_objext conftest$ac_exeext
11682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683
(eval $ac_link) 2>&5
11685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686
(exit $ac_status); } &&
11687
{ ac_try='test -s conftest$ac_exeext'
11688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689
(eval $ac_try) 2>&5
11691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692
(exit $ac_status); }; }; then
11693
ac_cv_lib_dl_dlopen=yes
11695
echo "$as_me: failed program was:" >&5
11696
sed 's/^/| /' conftest.$ac_ext >&5
11698
ac_cv_lib_dl_dlopen=no
11700
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11701
LIBS=$ac_check_lib_save_LIBS
11703
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11704
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11705
if test $ac_cv_lib_dl_dlopen = yes; then
11706
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11708
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11709
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11710
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11711
echo $ECHO_N "(cached) $ECHO_C" >&6
11713
ac_check_lib_save_LIBS=$LIBS
11714
LIBS="-lsvld $LIBS"
11715
cat >conftest.$ac_ext <<_ACEOF
11716
#line $LINENO "configure"
11719
cat confdefs.h >>conftest.$ac_ext
11720
cat >>conftest.$ac_ext <<_ACEOF
11721
/* end confdefs.h. */
11723
/* Override any gcc2 internal prototype to avoid an error. */
11727
/* We use char because int might match the return type of a gcc2
11728
builtin and then its argument prototype would still apply. */
11738
rm -f conftest.$ac_objext conftest$ac_exeext
11739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740
(eval $ac_link) 2>&5
11742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743
(exit $ac_status); } &&
11744
{ ac_try='test -s conftest$ac_exeext'
11745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746
(eval $ac_try) 2>&5
11748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749
(exit $ac_status); }; }; then
11750
ac_cv_lib_svld_dlopen=yes
11752
echo "$as_me: failed program was:" >&5
11753
sed 's/^/| /' conftest.$ac_ext >&5
11755
ac_cv_lib_svld_dlopen=no
11757
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11758
LIBS=$ac_check_lib_save_LIBS
11760
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11761
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11762
if test $ac_cv_lib_svld_dlopen = yes; then
11763
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11765
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11766
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11767
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11768
echo $ECHO_N "(cached) $ECHO_C" >&6
11770
ac_check_lib_save_LIBS=$LIBS
11772
cat >conftest.$ac_ext <<_ACEOF
11773
#line $LINENO "configure"
11776
cat confdefs.h >>conftest.$ac_ext
11777
cat >>conftest.$ac_ext <<_ACEOF
11778
/* end confdefs.h. */
11780
/* Override any gcc2 internal prototype to avoid an error. */
11784
/* We use char because int might match the return type of a gcc2
11785
builtin and then its argument prototype would still apply. */
11795
rm -f conftest.$ac_objext conftest$ac_exeext
11796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797
(eval $ac_link) 2>&5
11799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800
(exit $ac_status); } &&
11801
{ ac_try='test -s conftest$ac_exeext'
11802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803
(eval $ac_try) 2>&5
11805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806
(exit $ac_status); }; }; then
11807
ac_cv_lib_dld_dld_link=yes
11809
echo "$as_me: failed program was:" >&5
11810
sed 's/^/| /' conftest.$ac_ext >&5
11812
ac_cv_lib_dld_dld_link=no
11814
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11815
LIBS=$ac_check_lib_save_LIBS
11817
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11818
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11819
if test $ac_cv_lib_dld_dld_link = yes; then
11820
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11841
if test "x$lt_cv_dlopen" != xno; then
11847
case $lt_cv_dlopen in
11849
save_CPPFLAGS="$CPPFLAGS"
11850
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11852
save_LDFLAGS="$LDFLAGS"
11853
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11856
LIBS="$lt_cv_dlopen_libs $LIBS"
11858
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11859
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11860
if test "${lt_cv_dlopen_self+set}" = set; then
11861
echo $ECHO_N "(cached) $ECHO_C" >&6
11863
if test "$cross_compiling" = yes; then :
11864
lt_cv_dlopen_self=cross
11866
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11867
lt_status=$lt_dlunknown
11868
cat > conftest.$ac_ext <<EOF
11869
#line 11869 "configure"
11870
#include "confdefs.h"
11879
# define LT_DLGLOBAL RTLD_GLOBAL
11882
# define LT_DLGLOBAL DL_GLOBAL
11884
# define LT_DLGLOBAL 0
11888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11889
find out it does not work in some platform. */
11890
#ifndef LT_DLLAZY_OR_NOW
11892
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11895
# define LT_DLLAZY_OR_NOW DL_LAZY
11898
# define LT_DLLAZY_OR_NOW RTLD_NOW
11901
# define LT_DLLAZY_OR_NOW DL_NOW
11903
# define LT_DLLAZY_OR_NOW 0
11911
extern "C" void exit (int);
11914
void fnord() { int i=42;}
11917
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918
int status = $lt_dlunknown;
11922
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11923
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11924
/* dlclose (self); */
11930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931
(eval $ac_link) 2>&5
11933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11935
(./conftest; exit; ) 2>/dev/null
11937
case x$lt_status in
11938
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11939
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11940
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11943
# compilation failed
11944
lt_cv_dlopen_self=no
11951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11952
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11954
if test "x$lt_cv_dlopen_self" = xyes; then
11955
LDFLAGS="$LDFLAGS $link_static_flag"
11956
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11957
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11958
if test "${lt_cv_dlopen_self_static+set}" = set; then
11959
echo $ECHO_N "(cached) $ECHO_C" >&6
11961
if test "$cross_compiling" = yes; then :
11962
lt_cv_dlopen_self_static=cross
11964
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11965
lt_status=$lt_dlunknown
11966
cat > conftest.$ac_ext <<EOF
11967
#line 11967 "configure"
11968
#include "confdefs.h"
11977
# define LT_DLGLOBAL RTLD_GLOBAL
11980
# define LT_DLGLOBAL DL_GLOBAL
11982
# define LT_DLGLOBAL 0
11986
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11987
find out it does not work in some platform. */
11988
#ifndef LT_DLLAZY_OR_NOW
11990
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11993
# define LT_DLLAZY_OR_NOW DL_LAZY
11996
# define LT_DLLAZY_OR_NOW RTLD_NOW
11999
# define LT_DLLAZY_OR_NOW DL_NOW
12001
# define LT_DLLAZY_OR_NOW 0
12009
extern "C" void exit (int);
12012
void fnord() { int i=42;}
12015
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12016
int status = $lt_dlunknown;
12020
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12021
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12022
/* dlclose (self); */
12028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029
(eval $ac_link) 2>&5
12031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12033
(./conftest; exit; ) 2>/dev/null
12035
case x$lt_status in
12036
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12037
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12038
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12041
# compilation failed
12042
lt_cv_dlopen_self_static=no
12049
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12050
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12053
CPPFLAGS="$save_CPPFLAGS"
12054
LDFLAGS="$save_LDFLAGS"
12059
case $lt_cv_dlopen_self in
12060
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12061
*) enable_dlopen_self=unknown ;;
12064
case $lt_cv_dlopen_self_static in
12065
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12066
*) enable_dlopen_self_static=unknown ;;
12071
# The else clause should only fire when bootstrapping the
12072
# libtool distribution, otherwise you forgot to ship ltmain.sh
12073
# with your package, and you will get complaints that there are
12074
# no rules to generate ltmain.sh.
12075
if test -f "$ltmain"; then
12076
# See if we are running on zsh, and set the options which allow our commands through
12077
# without removal of \ escapes.
12078
if test -n "${ZSH_VERSION+set}" ; then
12079
setopt NO_GLOB_SUBST
12081
# Now quote all the things that may contain metacharacters while being
12082
# careful not to overquote the AC_SUBSTed values. We take copies of the
12083
# variables and quote the copies for generation of the libtool script.
12084
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12085
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12086
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12087
deplibs_check_method reload_flag reload_cmds need_locks \
12088
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12089
lt_cv_sys_global_symbol_to_c_name_address \
12090
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12091
old_postinstall_cmds old_postuninstall_cmds \
12095
lt_prog_compiler_wl_CXX \
12096
lt_prog_compiler_pic_CXX \
12097
lt_prog_compiler_static_CXX \
12098
lt_prog_compiler_no_builtin_flag_CXX \
12099
export_dynamic_flag_spec_CXX \
12100
thread_safe_flag_spec_CXX \
12101
whole_archive_flag_spec_CXX \
12102
enable_shared_with_static_runtimes_CXX \
12103
old_archive_cmds_CXX \
12104
old_archive_from_new_cmds_CXX \
12105
predep_objects_CXX \
12106
postdep_objects_CXX \
12109
compiler_lib_search_path_CXX \
12111
archive_expsym_cmds_CXX \
12112
postinstall_cmds_CXX \
12113
postuninstall_cmds_CXX \
12114
old_archive_from_expsyms_cmds_CXX \
12115
allow_undefined_flag_CXX \
12116
no_undefined_flag_CXX \
12117
export_symbols_cmds_CXX \
12118
hardcode_libdir_flag_spec_CXX \
12119
hardcode_libdir_flag_spec_ld_CXX \
12120
hardcode_libdir_separator_CXX \
12121
hardcode_automatic_CXX \
12123
module_expsym_cmds_CXX \
12124
lt_cv_prog_compiler_c_o_CXX \
12125
exclude_expsyms_CXX \
12126
include_expsyms_CXX; do
12129
old_archive_cmds_CXX | \
12130
old_archive_from_new_cmds_CXX | \
12131
archive_cmds_CXX | \
12132
archive_expsym_cmds_CXX | \
12133
module_cmds_CXX | \
12134
module_expsym_cmds_CXX | \
12135
old_archive_from_expsyms_cmds_CXX | \
12136
export_symbols_cmds_CXX | \
12137
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12138
postinstall_cmds | postuninstall_cmds | \
12139
old_postinstall_cmds | old_postuninstall_cmds | \
12140
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12141
# Double-quote double-evaled strings.
12142
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12145
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12151
*'\$0 --fallback-echo"')
12152
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12158
cat <<__EOF__ >> "$cfgfile"
12159
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12161
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12163
# Shell to use when invoking shell scripts.
12166
# Whether or not to build shared libraries.
12167
build_libtool_libs=$enable_shared
12169
# Whether or not to build static libraries.
12170
build_old_libs=$enable_static
12172
# Whether or not to add -lc for building shared libraries.
12173
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12175
# Whether or not to disallow shared libs when runtime libs are static
12176
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12178
# Whether or not to optimize for fast installation.
12179
fast_install=$enable_fast_install
12182
host_alias=$host_alias
12185
# An echo program that does not interpret backslashes.
12190
AR_FLAGS=$lt_AR_FLAGS
12195
# A language-specific compiler.
12196
CC=$lt_compiler_CXX
12198
# Is the compiler the GNU C compiler?
12204
# The linker used to build libraries.
12207
# Whether we need hard or soft links.
12210
# A BSD-compatible nm program.
12213
# A symbol stripping program
12216
# Used to examine libraries when file_magic_cmd begins "file"
12217
MAGIC_CMD=$MAGIC_CMD
12219
# Used on cygwin: DLL creation program.
12222
# Used on cygwin: object dumper.
12225
# Used on cygwin: assembler.
12228
# The name of the directory that contains temporary libtool files.
12231
# How to create reloadable object files.
12232
reload_flag=$lt_reload_flag
12233
reload_cmds=$lt_reload_cmds
12235
# How to pass a linker flag through the compiler.
12236
wl=$lt_lt_prog_compiler_wl_CXX
12238
# Object file suffix (normally "o").
12239
objext="$ac_objext"
12241
# Old archive suffix (normally "a").
12244
# Shared library suffix (normally ".so").
12247
# Executable file suffix (normally "").
12250
# Additional compiler flags for building library objects.
12251
pic_flag=$lt_lt_prog_compiler_pic_CXX
12254
# What is the maximum length of a command?
12255
max_cmd_len=$lt_cv_sys_max_cmd_len
12257
# Does compiler simultaneously support -c and -o options?
12258
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12260
# Must we lock files when doing compilation ?
12261
need_locks=$lt_need_locks
12263
# Do we need the lib prefix for modules?
12264
need_lib_prefix=$need_lib_prefix
12266
# Do we need a version for libraries?
12267
need_version=$need_version
12269
# Whether dlopen is supported.
12270
dlopen_support=$enable_dlopen
12272
# Whether dlopen of programs is supported.
12273
dlopen_self=$enable_dlopen_self
12275
# Whether dlopen of statically linked programs is supported.
12276
dlopen_self_static=$enable_dlopen_self_static
12278
# Compiler flag to prevent dynamic linking.
12279
link_static_flag=$lt_lt_prog_compiler_static_CXX
12281
# Compiler flag to turn off builtin functions.
12282
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12284
# Compiler flag to allow reflexive dlopens.
12285
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12287
# Compiler flag to generate shared objects directly from archives.
12288
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12290
# Compiler flag to generate thread-safe objects.
12291
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12293
# Library versioning type.
12294
version_type=$version_type
12296
# Format of library name prefix.
12297
libname_spec=$lt_libname_spec
12299
# List of archive names. First name is the real one, the rest are links.
12300
# The last name is the one that the linker finds with -lNAME.
12301
library_names_spec=$lt_library_names_spec
12303
# The coded name of the library, if different from the real name.
12304
soname_spec=$lt_soname_spec
12306
# Commands used to build and install an old-style archive.
12308
old_archive_cmds=$lt_old_archive_cmds_CXX
12309
old_postinstall_cmds=$lt_old_postinstall_cmds
12310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12312
# Create an old-style archive from a shared archive.
12313
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12315
# Create a temporary old-style archive to link instead of a shared archive.
12316
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12318
# Commands used to build and install a shared archive.
12319
archive_cmds=$lt_archive_cmds_CXX
12320
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12321
postinstall_cmds=$lt_postinstall_cmds
12322
postuninstall_cmds=$lt_postuninstall_cmds
12324
# Commands used to build a loadable module (assumed same as above if empty)
12325
module_cmds=$lt_module_cmds_CXX
12326
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12328
# Commands to strip libraries.
12329
old_striplib=$lt_old_striplib
12330
striplib=$lt_striplib
12332
# Dependencies to place before the objects being linked to create a
12334
predep_objects=$lt_predep_objects_CXX
12336
# Dependencies to place after the objects being linked to create a
12338
postdep_objects=$lt_postdep_objects_CXX
12340
# Dependencies to place before the objects being linked to create a
12342
predeps=$lt_predeps_CXX
12344
# Dependencies to place after the objects being linked to create a
12346
postdeps=$lt_postdeps_CXX
12348
# The library search path used internally by the compiler when linking
12349
# a shared library.
12350
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12352
# Method to check whether dependent libraries are shared objects.
12353
deplibs_check_method=$lt_deplibs_check_method
12355
# Command to use when deplibs_check_method == file_magic.
12356
file_magic_cmd=$lt_file_magic_cmd
12358
# Flag that allows shared libraries with undefined symbols to be built.
12359
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12361
# Flag that forces no undefined symbols.
12362
no_undefined_flag=$lt_no_undefined_flag_CXX
12364
# Commands used to finish a libtool library installation in a directory.
12365
finish_cmds=$lt_finish_cmds
12367
# Same as above, but a single script fragment to be evaled but not shown.
12368
finish_eval=$lt_finish_eval
12370
# Take the output of nm and produce a listing of raw symbols and C names.
12371
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12373
# Transform the output of nm in a proper C declaration
12374
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12376
# Transform the output of nm in a C name address pair
12377
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12379
# This is the shared library runtime path variable.
12380
runpath_var=$runpath_var
12382
# This is the shared library path variable.
12383
shlibpath_var=$shlibpath_var
12385
# Is shlibpath searched before the hard-coded library search path?
12386
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12388
# How to hardcode a shared library path into an executable.
12389
hardcode_action=$hardcode_action_CXX
12391
# Whether we should hardcode library paths into libraries.
12392
hardcode_into_libs=$hardcode_into_libs
12394
# Flag to hardcode \$libdir into a binary during linking.
12395
# This must work even if \$libdir does not exist.
12396
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12398
# If ld is used when linking, flag to hardcode \$libdir into
12399
# a binary during linking. This must work even if \$libdir does
12401
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12403
# Whether we need a single -rpath flag with a separated argument.
12404
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12406
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12407
# resulting binary.
12408
hardcode_direct=$hardcode_direct_CXX
12410
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12411
# resulting binary.
12412
hardcode_minus_L=$hardcode_minus_L_CXX
12414
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12415
# the resulting binary.
12416
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12418
# Set to yes if building a shared library automatically hardcodes DIR into the library
12419
# and all subsequent libraries and executables linked against it.
12420
hardcode_automatic=$hardcode_automatic_CXX
12422
# Variables whose values should be saved in libtool wrapper scripts and
12423
# restored at relink time.
12424
variables_saved_for_relink="$variables_saved_for_relink"
12426
# Whether libtool must link a program against all its dependency libraries.
12427
link_all_deplibs=$link_all_deplibs_CXX
12429
# Compile-time system search path for libraries
12430
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12432
# Run-time system search path for libraries
12433
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12435
# Fix the shell variable \$srcfile for the compiler.
12436
fix_srcfile_path="$fix_srcfile_path_CXX"
12438
# Set to yes if exported symbols are required.
12439
always_export_symbols=$always_export_symbols_CXX
12441
# The commands to list exported symbols.
12442
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12444
# The commands to extract the exported symbol list from a shared archive.
12445
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12447
# Symbols that should not be listed in the preloaded symbols.
12448
exclude_expsyms=$lt_exclude_expsyms_CXX
12450
# Symbols that must always be exported.
12451
include_expsyms=$lt_include_expsyms_CXX
12453
# ### END LIBTOOL TAG CONFIG: $tagname
12459
# If there is no Makefile yet, we rely on a make rule to execute
12460
# `config.status --recheck' to rerun these tests and create the
12461
# libtool script then.
12462
test -f Makefile && make "$ltmain"
12467
ac_cpp='$CPP $CPPFLAGS'
12468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476
with_gnu_ldcxx=$with_gnu_ld
12477
with_gnu_ld=$lt_save_with_gnu_ld
12478
lt_cv_path_LDCXX=$lt_cv_path_LD
12479
lt_cv_path_LD=$lt_save_path_LD
12480
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12481
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12489
if test -n "$F77" && test "X$F77" != "Xno"; then
12492
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12493
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12497
archive_cmds_need_lc_F77=no
12498
allow_undefined_flag_F77=
12499
always_export_symbols_F77=no
12500
archive_expsym_cmds_F77=
12501
export_dynamic_flag_spec_F77=
12502
hardcode_direct_F77=no
12503
hardcode_libdir_flag_spec_F77=
12504
hardcode_libdir_flag_spec_ld_F77=
12505
hardcode_libdir_separator_F77=
12506
hardcode_minus_L_F77=no
12507
hardcode_automatic_F77=no
12509
module_expsym_cmds_F77=
12510
link_all_deplibs_F77=unknown
12511
old_archive_cmds_F77=$old_archive_cmds
12512
no_undefined_flag_F77=
12513
whole_archive_flag_spec_F77=
12514
enable_shared_with_static_runtimes_F77=no
12516
# Source file extension for f77 test sources.
12519
# Object file extension for compiled f77 test sources.
12523
# Code to be used in simple compile tests
12524
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12526
# Code to be used in simple link tests
12527
lt_simple_link_test_code=" program t\n end\n"
12529
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12531
# If no C compiler was specified, use CC.
12534
# Allow CC to be a program name with arguments.
12538
# Allow CC to be a program name with arguments.
12543
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12545
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12546
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12547
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12548
echo "${ECHO_T}$can_build_shared" >&6
12550
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12551
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12552
test "$can_build_shared" = "no" && enable_shared=no
12554
# On AIX, shared libraries and static libraries use the same namespace, and
12555
# are all built from PIC.
12558
test "$enable_shared" = yes && enable_static=no
12559
if test -n "$RANLIB"; then
12560
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12561
postinstall_cmds='$RANLIB $lib'
12565
test "$enable_shared" = yes && enable_static=no
12568
echo "$as_me:$LINENO: result: $enable_shared" >&5
12569
echo "${ECHO_T}$enable_shared" >&6
12571
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12572
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12573
# Make sure either enable_shared or enable_static is yes.
12574
test "$enable_shared" = yes || enable_static=yes
12575
echo "$as_me:$LINENO: result: $enable_static" >&5
12576
echo "${ECHO_T}$enable_static" >&6
12578
test "$ld_shlibs_F77" = no && can_build_shared=no
12583
lt_prog_compiler_wl_F77=
12584
lt_prog_compiler_pic_F77=
12585
lt_prog_compiler_static_F77=
12587
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12588
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12590
if test "$GCC" = yes; then
12591
lt_prog_compiler_wl_F77='-Wl,'
12592
lt_prog_compiler_static_F77='-static'
12596
# All AIX code is PIC.
12597
if test "$host_cpu" = ia64; then
12598
# AIX 5 now supports IA64 processor
12599
lt_prog_compiler_static_F77='-Bstatic'
12604
# FIXME: we need at least 68020 code to build shared libraries, but
12605
# adding the `-m68020' flag to GCC prevents building anything better,
12607
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12610
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12611
# PIC is the default for these OSes.
12614
mingw* | pw32* | os2*)
12615
# This hack is so that the source file can tell whether it is being
12616
# built for inclusion in a dll (and should export symbols for example).
12617
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12620
darwin* | rhapsody*)
12621
# PIC is the default on this platform
12622
# Common symbols not allowed in MH_DYLIB files
12623
lt_prog_compiler_pic_F77='-fno-common'
12627
# Just because we use GCC doesn't mean we suddenly get shared libraries
12628
# on systems that don't support them.
12629
lt_prog_compiler_can_build_shared_F77=no
12634
if test -d /usr/nec; then
12635
lt_prog_compiler_pic_F77=-Kconform_pic
12640
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12641
# not for PA HP-UX.
12642
case "$host_cpu" in
12647
lt_prog_compiler_pic_F77='-fPIC'
12653
lt_prog_compiler_pic_F77='-fPIC'
12657
# PORTME Check for flag to pass linker flags through the system compiler.
12660
lt_prog_compiler_wl_F77='-Wl,'
12661
if test "$host_cpu" = ia64; then
12662
# AIX 5 now supports IA64 processor
12663
lt_prog_compiler_static_F77='-Bstatic'
12665
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12669
mingw* | pw32* | os2*)
12670
# This hack is so that the source file can tell whether it is being
12671
# built for inclusion in a dll (and should export symbols for example).
12672
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12675
hpux9* | hpux10* | hpux11*)
12676
lt_prog_compiler_wl_F77='-Wl,'
12677
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12678
# not for PA HP-UX.
12679
case "$host_cpu" in
12684
lt_prog_compiler_pic_F77='+Z'
12687
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12688
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12691
irix5* | irix6* | nonstopux*)
12692
lt_prog_compiler_wl_F77='-Wl,'
12693
# PIC (with -KPIC) is the default.
12694
lt_prog_compiler_static_F77='-non_shared'
12698
lt_prog_compiler_pic_F77='-KPIC'
12699
lt_prog_compiler_static_F77='-Bstatic'
12705
lt_prog_compiler_wl_F77='-Wl,'
12706
lt_prog_compiler_pic_F77='-KPIC'
12707
lt_prog_compiler_static_F77='-static'
12710
lt_prog_compiler_wl_F77='-Wl,'
12711
# All Alpha code is PIC.
12712
lt_prog_compiler_static_F77='-non_shared'
12717
osf3* | osf4* | osf5*)
12718
lt_prog_compiler_wl_F77='-Wl,'
12719
# All OSF/1 code is PIC.
12720
lt_prog_compiler_static_F77='-non_shared'
12724
lt_prog_compiler_pic_F77='-Kpic'
12725
lt_prog_compiler_static_F77='-dn'
12729
lt_prog_compiler_wl_F77='-Wl,'
12730
lt_prog_compiler_pic_F77='-KPIC'
12731
lt_prog_compiler_static_F77='-Bstatic'
12735
lt_prog_compiler_wl_F77='-Qoption ld '
12736
lt_prog_compiler_pic_F77='-PIC'
12737
lt_prog_compiler_static_F77='-Bstatic'
12740
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12741
lt_prog_compiler_wl_F77='-Wl,'
12742
lt_prog_compiler_pic_F77='-KPIC'
12743
lt_prog_compiler_static_F77='-Bstatic'
12747
if test -d /usr/nec ;then
12748
lt_prog_compiler_pic_F77='-Kconform_pic'
12749
lt_prog_compiler_static_F77='-Bstatic'
12754
lt_prog_compiler_pic_F77='-pic'
12755
lt_prog_compiler_static_F77='-Bstatic'
12759
lt_prog_compiler_can_build_shared_F77=no
12764
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12765
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12768
# Check to make sure the PIC flag actually works.
12770
if test -n "$lt_prog_compiler_pic_F77"; then
12771
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12772
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12773
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12774
echo $ECHO_N "(cached) $ECHO_C" >&6
12776
lt_prog_compiler_pic_works_F77=no
12777
ac_outfile=conftest.$ac_objext
12778
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12779
lt_compiler_flag="$lt_prog_compiler_pic_F77"
12780
# Insert the option either (1) after the last *FLAGS variable, or
12781
# (2) before a word containing "conftest.", or (3) at the end.
12782
# Note that $ac_compile itself does not contain backslashes and begins
12783
# with a dollar sign (not a hyphen), so the echo should work correctly.
12784
# The option is referenced via a variable to avoid confusing sed.
12785
lt_compile=`echo "$ac_compile" | $SED \
12786
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12787
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12788
-e 's:$: $lt_compiler_flag:'`
12789
(eval echo "\"\$as_me:12789: $lt_compile\"" >&5)
12790
(eval "$lt_compile" 2>conftest.err)
12792
cat conftest.err >&5
12793
echo "$as_me:12793: \$? = $ac_status" >&5
12794
if (exit $ac_status) && test -s "$ac_outfile"; then
12795
# The compiler can only warn and ignore the option if not recognized
12796
# So say no if there are warnings
12797
if test ! -s conftest.err; then
12798
lt_prog_compiler_pic_works_F77=yes
12804
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12805
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12807
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12808
case $lt_prog_compiler_pic_F77 in
12810
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12813
lt_prog_compiler_pic_F77=
12814
lt_prog_compiler_can_build_shared_F77=no
12819
# For platforms which do not support PIC, -DPIC is meaningless:
12821
lt_prog_compiler_pic_F77=
12824
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12828
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12829
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12830
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12831
echo $ECHO_N "(cached) $ECHO_C" >&6
12833
lt_cv_prog_compiler_c_o_F77=no
12834
$rm -r conftest 2>/dev/null
12838
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12840
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12841
# that will create temporary files in the current directory regardless of
12842
# the output directory. Thus, making CWD read-only will cause this test
12843
# to fail, enabling locking or at least warning the user not to do parallel
12847
lt_compiler_flag="-o out/conftest2.$ac_objext"
12848
# Insert the option either (1) after the last *FLAGS variable, or
12849
# (2) before a word containing "conftest.", or (3) at the end.
12850
# Note that $ac_compile itself does not contain backslashes and begins
12851
# with a dollar sign (not a hyphen), so the echo should work correctly.
12852
lt_compile=`echo "$ac_compile" | $SED \
12853
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12854
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12855
-e 's:$: $lt_compiler_flag:'`
12856
(eval echo "\"\$as_me:12856: $lt_compile\"" >&5)
12857
(eval "$lt_compile" 2>out/conftest.err)
12859
cat out/conftest.err >&5
12860
echo "$as_me:12860: \$? = $ac_status" >&5
12861
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12863
# The compiler can only warn and ignore the option if not recognized
12864
# So say no if there are warnings
12865
if test ! -s out/conftest.err; then
12866
lt_cv_prog_compiler_c_o_F77=yes
12870
$rm conftest* out/*
12877
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12878
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12881
hard_links="nottested"
12882
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12883
# do not overwrite the value of need_locks provided by the user
12884
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12885
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12888
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12890
ln conftest.a conftest.b 2>&5 || hard_links=no
12891
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12892
echo "$as_me:$LINENO: result: $hard_links" >&5
12893
echo "${ECHO_T}$hard_links" >&6
12894
if test "$hard_links" = no; then
12895
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12896
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12903
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12904
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12907
allow_undefined_flag_F77=
12908
enable_shared_with_static_runtimes_F77=no
12910
archive_expsym_cmds_F77=
12911
old_archive_From_new_cmds_F77=
12912
old_archive_from_expsyms_cmds_F77=
12913
export_dynamic_flag_spec_F77=
12914
whole_archive_flag_spec_F77=
12915
thread_safe_flag_spec_F77=
12916
hardcode_libdir_flag_spec_F77=
12917
hardcode_libdir_flag_spec_ld_F77=
12918
hardcode_libdir_separator_F77=
12919
hardcode_direct_F77=no
12920
hardcode_minus_L_F77=no
12921
hardcode_shlibpath_var_F77=unsupported
12922
link_all_deplibs_F77=unknown
12923
hardcode_automatic_F77=no
12925
module_expsym_cmds_F77=
12926
always_export_symbols_F77=no
12927
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12928
# include_expsyms should be a list of space-separated symbols to be *always*
12929
# included in the symbol list
12930
include_expsyms_F77=
12931
# exclude_expsyms can be an extended regexp of symbols to exclude
12932
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12933
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12934
# as well as any symbol that contains `d'.
12935
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12936
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12937
# platforms (ab)use it in PIC code, but their linkers get confused if
12938
# the symbol is explicitly referenced. Since portable code cannot
12939
# rely on this symbol name, it's probably fine to never include it in
12940
# preloaded symbol tables.
12941
extract_expsyms_cmds=
12944
cygwin* | mingw* | pw32*)
12945
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12946
# When not using gcc, we currently assume that we are using
12947
# Microsoft Visual C++.
12948
if test "$GCC" != yes; then
12958
if test "$with_gnu_ld" = yes; then
12959
# If archive_cmds runs LD, not CC, wlarc should be empty
12962
# See if GNU ld supports shared libraries.
12964
aix3* | aix4* | aix5*)
12965
# On AIX/PPC, the GNU linker is very broken
12966
if test "$host_cpu" != ia64; then
12970
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12971
*** to be unable to reliably create shared libraries on AIX.
12972
*** Therefore, libtool is disabling shared libraries support. If you
12973
*** really care for shared libraries, you may want to modify your PATH
12974
*** so that a non-GNU linker is found, and then restart.
12981
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)'
12982
hardcode_libdir_flag_spec_F77='-L$libdir'
12983
hardcode_minus_L_F77=yes
12985
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12986
# that the semantics of dynamic libraries on AmigaOS, at least up
12987
# to version 4, is to share data among multiple programs linked
12988
# with the same dynamic library. Since this doesn't match the
12989
# behavior of shared libraries on other platforms, we can't use
12995
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12996
allow_undefined_flag_F77=unsupported
12997
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12998
# support --undefined. This deserves some investigation. FIXME
12999
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13005
cygwin* | mingw* | pw32*)
13006
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13007
# as there is no search path for DLLs.
13008
hardcode_libdir_flag_spec_F77='-L$libdir'
13009
allow_undefined_flag_F77=unsupported
13010
always_export_symbols_F77=no
13011
enable_shared_with_static_runtimes_F77=yes
13012
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13014
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13015
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13016
# If the export-symbols file already is a .def file (1st line
13017
# is EXPORTS), use it as is; otherwise, prepend...
13018
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13019
cp $export_symbols $output_objdir/$soname.def;
13021
echo EXPORTS > $output_objdir/$soname.def;
13022
cat $export_symbols >> $output_objdir/$soname.def;
13024
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13031
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13032
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13035
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13041
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13045
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13046
*** create shared libraries on Solaris systems. Therefore, libtool
13047
*** is disabling shared libraries support. We urge you to upgrade GNU
13048
*** binutils to release 2.9.1 or newer. Another option is to modify
13049
*** your PATH or compiler configuration so that the native linker is
13050
*** used, and then restart.
13053
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13054
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13055
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13062
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13064
hardcode_direct_F77=yes
13065
hardcode_shlibpath_var_F77=no
13069
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13070
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13078
if test "$ld_shlibs_F77" = yes; then
13079
runpath_var=LD_RUN_PATH
13080
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13081
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13082
# ancient GNU ld didn't support --whole-archive et. al.
13083
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13084
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13086
whole_archive_flag_spec_F77=
13090
# PORTME fill in a description of your system's linker (not GNU ld)
13093
allow_undefined_flag_F77=unsupported
13094
always_export_symbols_F77=yes
13095
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'
13096
# Note: this linker hardcodes the directories in LIBPATH if there
13097
# are no directories specified by -L.
13098
hardcode_minus_L_F77=yes
13099
if test "$GCC" = yes && test -z "$link_static_flag"; then
13100
# Neither direct hardcoding nor static linking is supported with a
13102
hardcode_direct_F77=unsupported
13107
if test "$host_cpu" = ia64; then
13108
# On IA64, the linker does run time linking by default, so we don't
13109
# have to do anything special.
13110
aix_use_runtimelinking=no
13111
exp_sym_flag='-Bexport'
13114
# If we're using GNU nm, then we don't want the "-C" option.
13115
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13116
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13117
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'
13119
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'
13121
aix_use_runtimelinking=no
13123
# Test if we are trying to use run time linking or normal
13124
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13125
# need to do runtime linking.
13126
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13127
for ld_flag in $LDFLAGS; do
13128
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13129
aix_use_runtimelinking=yes
13135
exp_sym_flag='-bexport'
13136
no_entry_flag='-bnoentry'
13139
# When large executables or shared objects are built, AIX ld can
13140
# have problems creating the table of contents. If linking a library
13141
# or program results in "error TOC overflow" add -mminimal-toc to
13142
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13143
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13145
archive_cmds_F77=''
13146
hardcode_direct_F77=yes
13147
hardcode_libdir_separator_F77=':'
13148
link_all_deplibs_F77=yes
13150
if test "$GCC" = yes; then
13151
case $host_os in aix4.012|aix4.012.*)
13152
# We only want to do this on AIX 4.2 and lower, the check
13153
# below for broken collect2 doesn't work under 4.3+
13154
collect2name=`${CC} -print-prog-name=collect2`
13155
if test -f "$collect2name" && \
13156
strings "$collect2name" | grep resolve_lib_name >/dev/null
13158
# We have reworked collect2
13159
hardcode_direct_F77=yes
13161
# We have old collect2
13162
hardcode_direct_F77=unsupported
13163
# It fails to find uninstalled libraries when the uninstalled
13164
# path is not listed in the libpath. Setting hardcode_minus_L
13165
# to unsupported forces relinking
13166
hardcode_minus_L_F77=yes
13167
hardcode_libdir_flag_spec_F77='-L$libdir'
13168
hardcode_libdir_separator_F77=
13171
shared_flag='-shared'
13174
if test "$host_cpu" = ia64; then
13175
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13176
# chokes on -Wl,-G. The following line is correct:
13179
if test "$aix_use_runtimelinking" = yes; then
13180
shared_flag='${wl}-G'
13182
shared_flag='${wl}-bM:SRE'
13187
# It seems that -bexpall does not export symbols beginning with
13188
# underscore (_), so it is better to generate a list of symbols to export.
13189
always_export_symbols_F77=yes
13190
if test "$aix_use_runtimelinking" = yes; then
13191
# Warning - without using the other runtime loading flags (-brtl),
13192
# -berok will link without error, but may produce a broken library.
13193
allow_undefined_flag_F77='-berok'
13194
# Determine the default libpath from the value encoded in an empty executable.
13195
cat >conftest.$ac_ext <<_ACEOF
13200
rm -f conftest.$ac_objext conftest$ac_exeext
13201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202
(eval $ac_link) 2>&5
13204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205
(exit $ac_status); } &&
13206
{ ac_try='test -s conftest$ac_exeext'
13207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208
(eval $ac_try) 2>&5
13210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211
(exit $ac_status); }; }; then
13213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13215
# Check for a 64-bit object if we didn't find anything.
13216
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; }
13219
echo "$as_me: failed program was:" >&5
13220
sed 's/^/| /' conftest.$ac_ext >&5
13223
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13224
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13226
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13227
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"
13229
if test "$host_cpu" = ia64; then
13230
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13231
allow_undefined_flag_F77="-z nodefs"
13232
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"
13234
# Determine the default libpath from the value encoded in an empty executable.
13235
cat >conftest.$ac_ext <<_ACEOF
13240
rm -f conftest.$ac_objext conftest$ac_exeext
13241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242
(eval $ac_link) 2>&5
13244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245
(exit $ac_status); } &&
13246
{ ac_try='test -s conftest$ac_exeext'
13247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248
(eval $ac_try) 2>&5
13250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251
(exit $ac_status); }; }; then
13253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13255
# Check for a 64-bit object if we didn't find anything.
13256
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; }
13259
echo "$as_me: failed program was:" >&5
13260
sed 's/^/| /' conftest.$ac_ext >&5
13263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13264
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13266
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13267
# Warning - without using the other run time loading flags,
13268
# -berok will link without error, but may produce a broken library.
13269
no_undefined_flag_F77=' ${wl}-bernotok'
13270
allow_undefined_flag_F77=' ${wl}-berok'
13271
# -bexpall does not export symbols beginning with underscore (_)
13272
always_export_symbols_F77=yes
13273
# Exported symbols can be pulled into shared objects from archives
13274
whole_archive_flag_spec_F77=' '
13275
archive_cmds_need_lc_F77=yes
13276
# This is similar to how AIX traditionally builds it's shared libraries.
13277
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'
13283
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)'
13284
hardcode_libdir_flag_spec_F77='-L$libdir'
13285
hardcode_minus_L_F77=yes
13286
# see comment about different semantics on the GNU ld section
13291
export_dynamic_flag_spec_F77=-rdynamic
13294
cygwin* | mingw* | pw32*)
13295
# When not using gcc, we currently assume that we are using
13296
# Microsoft Visual C++.
13297
# hardcode_libdir_flag_spec is actually meaningless, as there is
13298
# no search path for DLLs.
13299
hardcode_libdir_flag_spec_F77=' '
13300
allow_undefined_flag_F77=unsupported
13301
# Tell ltmain to make .lib files, not .a files.
13303
# Tell ltmain to make .dll files, not .so files.
13305
# FIXME: Setting linknames here is a bad hack.
13306
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13307
# The linker will automatically build a .lib file if we build a DLL.
13308
old_archive_From_new_cmds_F77='true'
13309
# FIXME: Should let the user specify the lib program.
13310
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13311
fix_srcfile_path='`cygpath -w "$srcfile"`'
13312
enable_shared_with_static_runtimes_F77=yes
13315
darwin* | rhapsody*)
13316
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13317
archive_cmds_need_lc_F77=no
13319
rhapsody* | darwin1.[012])
13320
allow_undefined_flag_F77='-undefined suppress'
13323
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13326
# FIXME: Relying on posixy $() will cause problems for
13327
# cross-compilation, but unfortunately the echo tests do not
13328
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
13329
# `"' quotes if we put them in here... so don't!
13330
lt_int_apple_cc_single_mod=no
13331
output_verbose_link_cmd='echo'
13332
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13333
lt_int_apple_cc_single_mod=yes
13335
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13336
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13338
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'
13340
module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13341
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13342
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13343
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}'
13345
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}'
13347
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13348
hardcode_direct_F77=no
13349
hardcode_automatic_F77=yes
13350
hardcode_shlibpath_var_F77=unsupported
13351
whole_archive_flag_spec_F77='-all_load $convenience'
13352
link_all_deplibs_F77=yes
13357
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13358
hardcode_libdir_flag_spec_F77='-L$libdir'
13359
hardcode_shlibpath_var_F77=no
13366
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13367
# support. Future versions do this automatically, but an explicit c++rt0.o
13368
# does not break anything, and helps significantly (at the cost of a little
13371
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13372
hardcode_libdir_flag_spec_F77='-R$libdir'
13373
hardcode_direct_F77=yes
13374
hardcode_shlibpath_var_F77=no
13377
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13379
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13380
hardcode_direct_F77=yes
13381
hardcode_minus_L_F77=yes
13382
hardcode_shlibpath_var_F77=no
13385
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13387
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13388
hardcode_libdir_flag_spec_F77='-R$libdir'
13389
hardcode_direct_F77=yes
13390
hardcode_shlibpath_var_F77=no
13394
if test "$GCC" = yes; then
13395
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'
13397
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'
13399
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13400
hardcode_libdir_separator_F77=:
13401
hardcode_direct_F77=yes
13403
# hardcode_minus_L: Not really in the search PATH,
13404
# but as the default location of the library.
13405
hardcode_minus_L_F77=yes
13406
export_dynamic_flag_spec_F77='${wl}-E'
13410
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13411
case "$host_cpu" in
13413
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13416
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13420
case "$host_cpu" in
13422
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13425
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13429
if test "$with_gnu_ld" = no; then
13430
case "$host_cpu" in
13432
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13433
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13434
hardcode_libdir_separator_F77=:
13435
hardcode_direct_F77=no
13436
hardcode_shlibpath_var_F77=no
13439
hardcode_libdir_flag_spec_F77='-L$libdir'
13440
hardcode_direct_F77=no
13441
hardcode_shlibpath_var_F77=no
13443
# hardcode_minus_L: Not really in the search PATH,
13444
# but as the default location of the library.
13445
hardcode_minus_L_F77=yes
13448
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13449
hardcode_libdir_separator_F77=:
13450
hardcode_direct_F77=yes
13451
export_dynamic_flag_spec_F77='${wl}-E'
13453
# hardcode_minus_L: Not really in the search PATH,
13454
# but as the default location of the library.
13455
hardcode_minus_L_F77=yes
13461
irix5* | irix6* | nonstopux*)
13462
if test "$GCC" = yes; then
13463
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'
13465
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'
13466
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13468
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13469
hardcode_libdir_separator_F77=:
13470
link_all_deplibs_F77=yes
13474
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13475
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13477
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13479
hardcode_libdir_flag_spec_F77='-R$libdir'
13480
hardcode_direct_F77=yes
13481
hardcode_shlibpath_var_F77=no
13485
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486
hardcode_direct_F77=yes
13487
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13488
hardcode_libdir_separator_F77=:
13489
hardcode_shlibpath_var_F77=no
13493
hardcode_direct_F77=yes
13494
hardcode_shlibpath_var_F77=no
13495
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13496
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13498
export_dynamic_flag_spec_F77='${wl}-E'
13501
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13502
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13503
hardcode_libdir_flag_spec_F77='-R$libdir'
13506
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13507
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13514
hardcode_libdir_flag_spec_F77='-L$libdir'
13515
hardcode_minus_L_F77=yes
13516
allow_undefined_flag_F77=unsupported
13517
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'
13518
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13522
if test "$GCC" = yes; then
13523
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13524
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'
13526
allow_undefined_flag_F77=' -expect_unresolved \*'
13527
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'
13529
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13530
hardcode_libdir_separator_F77=:
13533
osf4* | osf5*) # as osf3* with the addition of -msym flag
13534
if test "$GCC" = yes; then
13535
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13536
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'
13537
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13539
allow_undefined_flag_F77=' -expect_unresolved \*'
13540
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'
13541
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~
13542
$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'
13544
# Both c and cxx compiler support -rpath directly
13545
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13547
hardcode_libdir_separator_F77=:
13551
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552
hardcode_shlibpath_var_F77=no
13553
export_dynamic_flag_spec_F77='${wl}-Bexport'
13554
runpath_var=LD_RUN_PATH
13555
hardcode_runpath_var=yes
13559
no_undefined_flag_F77=' -z text'
13560
if test "$GCC" = yes; then
13561
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13562
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13563
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13565
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13566
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13567
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13569
hardcode_libdir_flag_spec_F77='-R$libdir'
13570
hardcode_shlibpath_var_F77=no
13572
solaris2.[0-5] | solaris2.[0-5].*) ;;
13573
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
13574
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13576
link_all_deplibs_F77=yes
13580
if test "x$host_vendor" = xsequent; then
13581
# Use $CC to link under sequent, because it throws in some extra .o
13582
# files that make .init and .fini sections work.
13583
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13585
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13587
hardcode_libdir_flag_spec_F77='-L$libdir'
13588
hardcode_direct_F77=yes
13589
hardcode_minus_L_F77=yes
13590
hardcode_shlibpath_var_F77=no
13594
case $host_vendor in
13596
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13597
hardcode_direct_F77=yes # is this really true???
13600
## LD is ld it makes a PLAMLIB
13601
## CC just makes a GrossModule.
13602
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13603
reload_cmds_F77='$CC -r -o $output$reload_objs'
13604
hardcode_direct_F77=no
13607
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13608
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13611
runpath_var='LD_RUN_PATH'
13612
hardcode_shlibpath_var_F77=no
13616
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617
hardcode_shlibpath_var_F77=no
13618
export_dynamic_flag_spec_F77='-Bexport'
13622
if test -d /usr/nec; then
13623
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13624
hardcode_shlibpath_var_F77=no
13625
runpath_var=LD_RUN_PATH
13626
hardcode_runpath_var=yes
13632
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13633
hardcode_direct_F77=yes
13634
hardcode_minus_L_F77=no
13635
hardcode_shlibpath_var_F77=no
13636
hardcode_runpath_var=yes
13637
runpath_var=LD_RUN_PATH
13640
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13641
no_undefined_flag_F77='${wl}-z ${wl}text'
13642
if test "$GCC" = yes; then
13643
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13645
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13647
runpath_var='LD_RUN_PATH'
13648
hardcode_shlibpath_var_F77=no
13652
no_undefined_flag_F77=' -z text'
13653
# $CC -shared without GNU ld will not create a library from C++
13654
# object files and a static libstdc++, better avoid it by now
13655
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13656
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13657
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13658
hardcode_libdir_flag_spec_F77=
13659
hardcode_shlibpath_var_F77=no
13660
runpath_var='LD_RUN_PATH'
13664
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13665
hardcode_libdir_flag_spec_F77='-L$libdir'
13666
hardcode_shlibpath_var_F77=no
13675
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13676
echo "${ECHO_T}$ld_shlibs_F77" >&6
13677
test "$ld_shlibs_F77" = no && can_build_shared=no
13679
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13680
if test "$GCC" = yes; then
13681
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13685
# Do we need to explicitly link libc?
13687
case "x$archive_cmds_need_lc_F77" in
13689
# Assume -lc should be added
13690
archive_cmds_need_lc_F77=yes
13692
if test "$enable_shared" = yes && test "$GCC" = yes; then
13693
case $archive_cmds_F77 in
13695
# FIXME: we may have to deal with multi-command sequences.
13698
# Test whether the compiler implicitly links with -lc since on some
13699
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13700
# to ld, don't add -lc before -lgcc.
13701
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13702
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13704
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707
(eval $ac_compile) 2>&5
13709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710
(exit $ac_status); } 2>conftest.err; then
13713
libobjs=conftest.$ac_objext
13715
wl=$lt_prog_compiler_wl_F77
13721
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13722
allow_undefined_flag_F77=
13723
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13724
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727
(exit $ac_status); }
13729
archive_cmds_need_lc_F77=no
13731
archive_cmds_need_lc_F77=yes
13733
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13735
cat conftest.err 1>&5
13738
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13739
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13746
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13747
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13748
hardcode_action_F77=
13749
if test -n "$hardcode_libdir_flag_spec_F77" || \
13750
test -n "$runpath_var F77" || \
13751
test "X$hardcode_automatic_F77"="Xyes" ; then
13753
# We can hardcode non-existant directories.
13754
if test "$hardcode_direct_F77" != no &&
13755
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13756
# have to relink, otherwise we might link with an installed library
13757
# when we should be linking with a yet-to-be-installed one
13758
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13759
test "$hardcode_minus_L_F77" != no; then
13760
# Linking always hardcodes the temporary library directory.
13761
hardcode_action_F77=relink
13763
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13764
hardcode_action_F77=immediate
13767
# We cannot hardcode anything, or else we can only hardcode existing
13769
hardcode_action_F77=unsupported
13771
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13772
echo "${ECHO_T}$hardcode_action_F77" >&6
13774
if test "$hardcode_action_F77" = relink; then
13775
# Fast installation is not supported
13776
enable_fast_install=no
13777
elif test "$shlibpath_overrides_runpath" = yes ||
13778
test "$enable_shared" = no; then
13779
# Fast installation is not necessary
13780
enable_fast_install=needless
13785
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13786
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13787
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13788
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13789
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13790
echo "$as_me:$LINENO: result: yes" >&5
13791
echo "${ECHO_T}yes" >&6
13793
# FIXME - insert some real tests, host_os isn't really good enough
13796
if test -n "$STRIP" ; then
13797
striplib="$STRIP -x"
13798
echo "$as_me:$LINENO: result: yes" >&5
13799
echo "${ECHO_T}yes" >&6
13801
echo "$as_me:$LINENO: result: no" >&5
13802
echo "${ECHO_T}no" >&6
13806
echo "$as_me:$LINENO: result: no" >&5
13807
echo "${ECHO_T}no" >&6
13812
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13813
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13814
library_names_spec=
13815
libname_spec='lib$name'
13819
postuninstall_cmds=
13823
shlibpath_overrides_runpath=unknown
13825
dynamic_linker="$host_os ld.so"
13826
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13827
if test "$GCC" = yes; then
13828
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13829
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13830
# if the path contains ";" then we assume it to be the separator
13831
# otherwise default to the standard path separator (i.e. ":") - it is
13832
# assumed that no part of a normal pathname contains ";" but that should
13833
# okay in the real world where ";" in dirpaths is itself problematic.
13834
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13836
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13839
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13841
need_lib_prefix=unknown
13842
hardcode_into_libs=no
13844
# when you set need_version to no, make sure it does not cause -set_version
13845
# flags to be left without arguments
13846
need_version=unknown
13851
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13852
shlibpath_var=LIBPATH
13854
# AIX 3 has no versioning support, so we append a major version to the name.
13855
soname_spec='${libname}${release}${shared_ext}$major'
13862
hardcode_into_libs=yes
13863
if test "$host_cpu" = ia64; then
13864
# AIX 5 supports IA64
13865
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13866
shlibpath_var=LD_LIBRARY_PATH
13868
# With GCC up to 2.95.x, collect2 would create an import file
13869
# for dependence libraries. The import file would start with
13870
# the line `#! .'. This would cause the generated library to
13871
# depend on `.', always an invalid library. This was fixed in
13872
# development snapshots of GCC prior to 3.0.
13874
aix4 | aix4.[01] | aix4.[01].*)
13875
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13877
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13880
can_build_shared=no
13884
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13885
# soname into executable. Probably we can add versioning support to
13886
# collect2, so additional links can be useful in future.
13887
if test "$aix_use_runtimelinking" = yes; then
13888
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13889
# instead of lib<name>.a to let people know that these are not
13890
# typical AIX shared libraries.
13891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893
# We preserve .a as extension for shared libraries through AIX4.2
13894
# and later when we are not doing run time linking.
13895
library_names_spec='${libname}${release}.a $libname.a'
13896
soname_spec='${libname}${release}${shared_ext}$major'
13898
shlibpath_var=LIBPATH
13903
library_names_spec='$libname.ixlibrary $libname.a'
13904
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13905
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'
13909
library_names_spec='${libname}${shared_ext}'
13910
dynamic_linker="$host_os ld.so"
13911
shlibpath_var=LIBRARY_PATH
13917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918
soname_spec='${libname}${release}${shared_ext}$major'
13919
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13920
shlibpath_var=LD_LIBRARY_PATH
13921
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13922
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13923
# the default ld.so.conf also contains /usr/contrib/lib and
13924
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13925
# libtool to hard-code these into programs
13928
cygwin* | mingw* | pw32*)
13929
version_type=windows
13934
case $GCC,$host_os in
13935
yes,cygwin* | yes,mingw* | yes,pw32*)
13936
library_names_spec='$libname.dll.a'
13937
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13938
postinstall_cmds='base_file=`basename \${file}`~
13939
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13940
dldir=$destdir/`dirname \$dlpath`~
13941
test -d \$dldir || mkdir -p \$dldir~
13942
$install_prog $dir/$dlname \$dldir/$dlname'
13943
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13944
dlpath=$dir/\$dldll~
13946
shlibpath_overrides_runpath=yes
13950
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13951
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13952
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13955
# MinGW DLLs use traditional 'lib' prefix
13956
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13957
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13958
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13959
# It is most probably a Windows format PATH printed by
13960
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13961
# path with ; separators, and with drive letters. We can handle the
13962
# drive letters (cygwin fileutils understands them), so leave them,
13963
# especially as we might pass files found there to a mingw objdump,
13964
# which wouldn't understand a cygwinified path. Ahh.
13965
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13967
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13971
# pw32 DLLs use 'pw' prefix rather than 'lib'
13972
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13978
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13981
dynamic_linker='Win32 ld.exe'
13982
# FIXME: first we should search . and the directory the executable is in
13986
darwin* | rhapsody*)
13987
dynamic_linker="$host_os dyld"
13988
version_type=darwin
13991
# FIXME: Relying on posixy $() will cause problems for
13992
# cross-compilation, but unfortunately the echo tests do not
13993
# yet detect zsh echo's removal of \ escapes.
13994
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13995
soname_spec='${libname}${release}${major}$shared_ext'
13996
shlibpath_overrides_runpath=yes
13997
shlibpath_var=DYLD_LIBRARY_PATH
13998
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13999
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14000
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14001
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"`
14003
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14011
soname_spec='${libname}${release}${shared_ext}$major'
14012
shlibpath_var=LD_LIBRARY_PATH
14023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024
soname_spec='${libname}${release}${shared_ext}$major'
14025
shlibpath_var=LD_LIBRARY_PATH
14026
shlibpath_overrides_runpath=no
14027
hardcode_into_libs=yes
14028
dynamic_linker='GNU ld.so'
14032
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14033
version_type=freebsd-$objformat
14034
case $version_type in
14036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14041
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14045
shlibpath_var=LD_LIBRARY_PATH
14048
shlibpath_overrides_runpath=yes
14050
freebsd3.01* | freebsdelf3.01*)
14051
shlibpath_overrides_runpath=yes
14052
hardcode_into_libs=yes
14055
shlibpath_overrides_runpath=no
14056
hardcode_into_libs=yes
14065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14066
soname_spec='${libname}${release}${shared_ext}$major'
14067
shlibpath_var=LD_LIBRARY_PATH
14068
hardcode_into_libs=yes
14071
hpux9* | hpux10* | hpux11*)
14072
# Give a soname corresponding to the major version so that dld.sl refuses to
14073
# link against other versions.
14077
case "$host_cpu" in
14080
hardcode_into_libs=yes
14081
dynamic_linker="$host_os dld.so"
14082
shlibpath_var=LD_LIBRARY_PATH
14083
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085
soname_spec='${libname}${release}${shared_ext}$major'
14086
if test "X$HPUX_IA64_MODE" = X32; then
14087
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14089
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14091
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14095
hardcode_into_libs=yes
14096
dynamic_linker="$host_os dld.sl"
14097
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14098
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100
soname_spec='${libname}${release}${shared_ext}$major'
14101
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14102
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14106
dynamic_linker="$host_os dld.sl"
14107
shlibpath_var=SHLIB_PATH
14108
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110
soname_spec='${libname}${release}${shared_ext}$major'
14113
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14114
postinstall_cmds='chmod 555 $lib'
14117
irix5* | irix6* | nonstopux*)
14119
nonstopux*) version_type=nonstopux ;;
14121
if test "$lt_cv_prog_gnu_ld" = yes; then
14129
soname_spec='${libname}${release}${shared_ext}$major'
14130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14132
irix5* | nonstopux*)
14133
libsuff= shlibsuff=
14136
case $LD in # libtool.m4 will add one of these switches to LD
14137
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14138
libsuff= shlibsuff= libmagic=32-bit;;
14139
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14140
libsuff=32 shlibsuff=N32 libmagic=N32;;
14141
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14142
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14143
*) libsuff= shlibsuff= libmagic=never-match;;
14147
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14148
shlibpath_overrides_runpath=no
14149
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14150
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14151
hardcode_into_libs=yes
14154
# No shared lib support for Linux oldld, aout, or coff.
14155
linux*oldld* | linux*aout* | linux*coff*)
14159
# This must be Linux ELF.
14164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165
soname_spec='${libname}${release}${shared_ext}$major'
14166
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14167
shlibpath_var=LD_LIBRARY_PATH
14168
shlibpath_overrides_runpath=no
14169
# This implies no fast_install, which is unacceptable.
14170
# Some rework will be needed to allow for fast_install
14171
# before this can be enabled.
14172
hardcode_into_libs=yes
14174
# We used to test for /lib/ld.so.1 and disable shared libraries on
14175
# powerpc, because MkLinux only supported shared libraries with the
14176
# GNU dynamic linker. Since this was broken with cross compilers,
14177
# most powerpc-linux boxes support dynamic linking these days and
14178
# people can always --disable-shared, the test was removed, and we
14179
# assume the GNU/Linux dynamic linker is in use.
14180
dynamic_linker='GNU/Linux ld.so'
14187
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14188
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14189
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14190
dynamic_linker='NetBSD (a.out) ld.so'
14192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14193
soname_spec='${libname}${release}${shared_ext}$major'
14194
dynamic_linker='NetBSD ld.elf_so'
14196
shlibpath_var=LD_LIBRARY_PATH
14197
shlibpath_overrides_runpath=yes
14198
hardcode_into_libs=yes
14203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204
shlibpath_var=LD_LIBRARY_PATH
14205
shlibpath_overrides_runpath=yes
14212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213
soname_spec='${libname}${release}${shared_ext}$major'
14214
shlibpath_var=LD_LIBRARY_PATH
14215
shlibpath_overrides_runpath=yes
14222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14223
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14224
shlibpath_var=LD_LIBRARY_PATH
14225
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14227
openbsd2.[89] | openbsd2.[89].*)
14228
shlibpath_overrides_runpath=no
14231
shlibpath_overrides_runpath=yes
14235
shlibpath_overrides_runpath=yes
14240
libname_spec='$name'
14243
library_names_spec='$libname${shared_ext} $libname.a'
14244
dynamic_linker='OS/2 ld.exe'
14245
shlibpath_var=LIBPATH
14248
osf3* | osf4* | osf5*)
14252
soname_spec='${libname}${release}${shared_ext}$major'
14253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254
shlibpath_var=LD_LIBRARY_PATH
14255
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14256
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14261
soname_spec='${libname}${release}${shared_ext}$major'
14262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263
shlibpath_var=LD_LIBRARY_PATH
14270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271
soname_spec='${libname}${release}${shared_ext}$major'
14272
shlibpath_var=LD_LIBRARY_PATH
14273
shlibpath_overrides_runpath=yes
14274
hardcode_into_libs=yes
14275
# ldd complains unless libraries are executable
14276
postinstall_cmds='chmod +x $lib'
14281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14282
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14283
shlibpath_var=LD_LIBRARY_PATH
14284
shlibpath_overrides_runpath=yes
14285
if test "$with_gnu_ld" = yes; then
14291
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294
soname_spec='${libname}${release}${shared_ext}$major'
14295
shlibpath_var=LD_LIBRARY_PATH
14296
case $host_vendor in
14298
shlibpath_overrides_runpath=no
14300
export_dynamic_flag_spec='${wl}-Blargedynsym'
14301
runpath_var=LD_RUN_PATH
14309
shlibpath_overrides_runpath=no
14310
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14316
if test -d /usr/nec ;then
14318
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14319
soname_spec='$libname${shared_ext}.$major'
14320
shlibpath_var=LD_LIBRARY_PATH
14326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327
soname_spec='${libname}${release}${shared_ext}$major'
14328
shlibpath_var=LD_LIBRARY_PATH
14335
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14336
echo "${ECHO_T}$dynamic_linker" >&6
14337
test "$dynamic_linker" = no && can_build_shared=no
14340
# The else clause should only fire when bootstrapping the
14341
# libtool distribution, otherwise you forgot to ship ltmain.sh
14342
# with your package, and you will get complaints that there are
14343
# no rules to generate ltmain.sh.
14344
if test -f "$ltmain"; then
14345
# See if we are running on zsh, and set the options which allow our commands through
14346
# without removal of \ escapes.
14347
if test -n "${ZSH_VERSION+set}" ; then
14348
setopt NO_GLOB_SUBST
14350
# Now quote all the things that may contain metacharacters while being
14351
# careful not to overquote the AC_SUBSTed values. We take copies of the
14352
# variables and quote the copies for generation of the libtool script.
14353
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14354
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14355
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14356
deplibs_check_method reload_flag reload_cmds need_locks \
14357
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14358
lt_cv_sys_global_symbol_to_c_name_address \
14359
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14360
old_postinstall_cmds old_postuninstall_cmds \
14364
lt_prog_compiler_wl_F77 \
14365
lt_prog_compiler_pic_F77 \
14366
lt_prog_compiler_static_F77 \
14367
lt_prog_compiler_no_builtin_flag_F77 \
14368
export_dynamic_flag_spec_F77 \
14369
thread_safe_flag_spec_F77 \
14370
whole_archive_flag_spec_F77 \
14371
enable_shared_with_static_runtimes_F77 \
14372
old_archive_cmds_F77 \
14373
old_archive_from_new_cmds_F77 \
14374
predep_objects_F77 \
14375
postdep_objects_F77 \
14378
compiler_lib_search_path_F77 \
14380
archive_expsym_cmds_F77 \
14381
postinstall_cmds_F77 \
14382
postuninstall_cmds_F77 \
14383
old_archive_from_expsyms_cmds_F77 \
14384
allow_undefined_flag_F77 \
14385
no_undefined_flag_F77 \
14386
export_symbols_cmds_F77 \
14387
hardcode_libdir_flag_spec_F77 \
14388
hardcode_libdir_flag_spec_ld_F77 \
14389
hardcode_libdir_separator_F77 \
14390
hardcode_automatic_F77 \
14392
module_expsym_cmds_F77 \
14393
lt_cv_prog_compiler_c_o_F77 \
14394
exclude_expsyms_F77 \
14395
include_expsyms_F77; do
14398
old_archive_cmds_F77 | \
14399
old_archive_from_new_cmds_F77 | \
14400
archive_cmds_F77 | \
14401
archive_expsym_cmds_F77 | \
14402
module_cmds_F77 | \
14403
module_expsym_cmds_F77 | \
14404
old_archive_from_expsyms_cmds_F77 | \
14405
export_symbols_cmds_F77 | \
14406
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14407
postinstall_cmds | postuninstall_cmds | \
14408
old_postinstall_cmds | old_postuninstall_cmds | \
14409
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14410
# Double-quote double-evaled strings.
14411
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14414
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14420
*'\$0 --fallback-echo"')
14421
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14427
cat <<__EOF__ >> "$cfgfile"
14428
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14430
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14432
# Shell to use when invoking shell scripts.
14435
# Whether or not to build shared libraries.
14436
build_libtool_libs=$enable_shared
14438
# Whether or not to build static libraries.
14439
build_old_libs=$enable_static
14441
# Whether or not to add -lc for building shared libraries.
14442
build_libtool_need_lc=$archive_cmds_need_lc_F77
14444
# Whether or not to disallow shared libs when runtime libs are static
14445
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14447
# Whether or not to optimize for fast installation.
14448
fast_install=$enable_fast_install
14451
host_alias=$host_alias
14454
# An echo program that does not interpret backslashes.
14459
AR_FLAGS=$lt_AR_FLAGS
14464
# A language-specific compiler.
14465
CC=$lt_compiler_F77
14467
# Is the compiler the GNU C compiler?
14473
# The linker used to build libraries.
14476
# Whether we need hard or soft links.
14479
# A BSD-compatible nm program.
14482
# A symbol stripping program
14485
# Used to examine libraries when file_magic_cmd begins "file"
14486
MAGIC_CMD=$MAGIC_CMD
14488
# Used on cygwin: DLL creation program.
14491
# Used on cygwin: object dumper.
14494
# Used on cygwin: assembler.
14497
# The name of the directory that contains temporary libtool files.
14500
# How to create reloadable object files.
14501
reload_flag=$lt_reload_flag
14502
reload_cmds=$lt_reload_cmds
14504
# How to pass a linker flag through the compiler.
14505
wl=$lt_lt_prog_compiler_wl_F77
14507
# Object file suffix (normally "o").
14508
objext="$ac_objext"
14510
# Old archive suffix (normally "a").
14513
# Shared library suffix (normally ".so").
14516
# Executable file suffix (normally "").
14519
# Additional compiler flags for building library objects.
14520
pic_flag=$lt_lt_prog_compiler_pic_F77
14523
# What is the maximum length of a command?
14524
max_cmd_len=$lt_cv_sys_max_cmd_len
14526
# Does compiler simultaneously support -c and -o options?
14527
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14529
# Must we lock files when doing compilation ?
14530
need_locks=$lt_need_locks
14532
# Do we need the lib prefix for modules?
14533
need_lib_prefix=$need_lib_prefix
14535
# Do we need a version for libraries?
14536
need_version=$need_version
14538
# Whether dlopen is supported.
14539
dlopen_support=$enable_dlopen
14541
# Whether dlopen of programs is supported.
14542
dlopen_self=$enable_dlopen_self
14544
# Whether dlopen of statically linked programs is supported.
14545
dlopen_self_static=$enable_dlopen_self_static
14547
# Compiler flag to prevent dynamic linking.
14548
link_static_flag=$lt_lt_prog_compiler_static_F77
14550
# Compiler flag to turn off builtin functions.
14551
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14553
# Compiler flag to allow reflexive dlopens.
14554
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14556
# Compiler flag to generate shared objects directly from archives.
14557
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14559
# Compiler flag to generate thread-safe objects.
14560
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14562
# Library versioning type.
14563
version_type=$version_type
14565
# Format of library name prefix.
14566
libname_spec=$lt_libname_spec
14568
# List of archive names. First name is the real one, the rest are links.
14569
# The last name is the one that the linker finds with -lNAME.
14570
library_names_spec=$lt_library_names_spec
14572
# The coded name of the library, if different from the real name.
14573
soname_spec=$lt_soname_spec
14575
# Commands used to build and install an old-style archive.
14577
old_archive_cmds=$lt_old_archive_cmds_F77
14578
old_postinstall_cmds=$lt_old_postinstall_cmds
14579
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14581
# Create an old-style archive from a shared archive.
14582
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14584
# Create a temporary old-style archive to link instead of a shared archive.
14585
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14587
# Commands used to build and install a shared archive.
14588
archive_cmds=$lt_archive_cmds_F77
14589
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14590
postinstall_cmds=$lt_postinstall_cmds
14591
postuninstall_cmds=$lt_postuninstall_cmds
14593
# Commands used to build a loadable module (assumed same as above if empty)
14594
module_cmds=$lt_module_cmds_F77
14595
module_expsym_cmds=$lt_module_expsym_cmds_F77
14597
# Commands to strip libraries.
14598
old_striplib=$lt_old_striplib
14599
striplib=$lt_striplib
14601
# Dependencies to place before the objects being linked to create a
14603
predep_objects=$lt_predep_objects_F77
14605
# Dependencies to place after the objects being linked to create a
14607
postdep_objects=$lt_postdep_objects_F77
14609
# Dependencies to place before the objects being linked to create a
14611
predeps=$lt_predeps_F77
14613
# Dependencies to place after the objects being linked to create a
14615
postdeps=$lt_postdeps_F77
14617
# The library search path used internally by the compiler when linking
14618
# a shared library.
14619
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14621
# Method to check whether dependent libraries are shared objects.
14622
deplibs_check_method=$lt_deplibs_check_method
14624
# Command to use when deplibs_check_method == file_magic.
14625
file_magic_cmd=$lt_file_magic_cmd
14627
# Flag that allows shared libraries with undefined symbols to be built.
14628
allow_undefined_flag=$lt_allow_undefined_flag_F77
14630
# Flag that forces no undefined symbols.
14631
no_undefined_flag=$lt_no_undefined_flag_F77
14633
# Commands used to finish a libtool library installation in a directory.
14634
finish_cmds=$lt_finish_cmds
14636
# Same as above, but a single script fragment to be evaled but not shown.
14637
finish_eval=$lt_finish_eval
14639
# Take the output of nm and produce a listing of raw symbols and C names.
14640
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14642
# Transform the output of nm in a proper C declaration
14643
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14645
# Transform the output of nm in a C name address pair
14646
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14648
# This is the shared library runtime path variable.
14649
runpath_var=$runpath_var
14651
# This is the shared library path variable.
14652
shlibpath_var=$shlibpath_var
14654
# Is shlibpath searched before the hard-coded library search path?
14655
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14657
# How to hardcode a shared library path into an executable.
14658
hardcode_action=$hardcode_action_F77
14660
# Whether we should hardcode library paths into libraries.
14661
hardcode_into_libs=$hardcode_into_libs
14663
# Flag to hardcode \$libdir into a binary during linking.
14664
# This must work even if \$libdir does not exist.
14665
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14667
# If ld is used when linking, flag to hardcode \$libdir into
14668
# a binary during linking. This must work even if \$libdir does
14670
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14672
# Whether we need a single -rpath flag with a separated argument.
14673
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14675
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14676
# resulting binary.
14677
hardcode_direct=$hardcode_direct_F77
14679
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14680
# resulting binary.
14681
hardcode_minus_L=$hardcode_minus_L_F77
14683
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14684
# the resulting binary.
14685
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14687
# Set to yes if building a shared library automatically hardcodes DIR into the library
14688
# and all subsequent libraries and executables linked against it.
14689
hardcode_automatic=$hardcode_automatic_F77
14691
# Variables whose values should be saved in libtool wrapper scripts and
14692
# restored at relink time.
14693
variables_saved_for_relink="$variables_saved_for_relink"
14695
# Whether libtool must link a program against all its dependency libraries.
14696
link_all_deplibs=$link_all_deplibs_F77
14698
# Compile-time system search path for libraries
14699
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14701
# Run-time system search path for libraries
14702
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14704
# Fix the shell variable \$srcfile for the compiler.
14705
fix_srcfile_path="$fix_srcfile_path_F77"
14707
# Set to yes if exported symbols are required.
14708
always_export_symbols=$always_export_symbols_F77
14710
# The commands to list exported symbols.
14711
export_symbols_cmds=$lt_export_symbols_cmds_F77
14713
# The commands to extract the exported symbol list from a shared archive.
14714
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14716
# Symbols that should not be listed in the preloaded symbols.
14717
exclude_expsyms=$lt_exclude_expsyms_F77
14719
# Symbols that must always be exported.
14720
include_expsyms=$lt_include_expsyms_F77
14722
# ### END LIBTOOL TAG CONFIG: $tagname
14728
# If there is no Makefile yet, we rely on a make rule to execute
14729
# `config.status --recheck' to rerun these tests and create the
14730
# libtool script then.
14731
test -f Makefile && make "$ltmain"
14736
ac_cpp='$CPP $CPPFLAGS'
14737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14749
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14753
# Source file extension for Java test sources.
14756
# Object file extension for compiled Java test sources.
14760
# Code to be used in simple compile tests
14761
lt_simple_compile_test_code="class foo {}\n"
14763
# Code to be used in simple link tests
14764
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14766
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14768
# If no C compiler was specified, use CC.
14771
# Allow CC to be a program name with arguments.
14775
# Allow CC to be a program name with arguments.
14781
# GCJ did not exist at the time GCC didn't implicitly link libc in.
14782
archive_cmds_need_lc_GCJ=no
14785
lt_prog_compiler_no_builtin_flag_GCJ=
14787
if test "$GCC" = yes; then
14788
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14790
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14791
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14792
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14793
echo $ECHO_N "(cached) $ECHO_C" >&6
14795
lt_cv_prog_compiler_rtti_exceptions=no
14796
ac_outfile=conftest.$ac_objext
14797
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14798
lt_compiler_flag="-fno-rtti -fno-exceptions"
14799
# Insert the option either (1) after the last *FLAGS variable, or
14800
# (2) before a word containing "conftest.", or (3) at the end.
14801
# Note that $ac_compile itself does not contain backslashes and begins
14802
# with a dollar sign (not a hyphen), so the echo should work correctly.
14803
# The option is referenced via a variable to avoid confusing sed.
14804
lt_compile=`echo "$ac_compile" | $SED \
14805
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14806
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14807
-e 's:$: $lt_compiler_flag:'`
14808
(eval echo "\"\$as_me:14808: $lt_compile\"" >&5)
14809
(eval "$lt_compile" 2>conftest.err)
14811
cat conftest.err >&5
14812
echo "$as_me:14812: \$? = $ac_status" >&5
14813
if (exit $ac_status) && test -s "$ac_outfile"; then
14814
# The compiler can only warn and ignore the option if not recognized
14815
# So say no if there are warnings
14816
if test ! -s conftest.err; then
14817
lt_cv_prog_compiler_rtti_exceptions=yes
14823
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14824
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14826
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14827
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14834
lt_prog_compiler_wl_GCJ=
14835
lt_prog_compiler_pic_GCJ=
14836
lt_prog_compiler_static_GCJ=
14838
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14839
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14841
if test "$GCC" = yes; then
14842
lt_prog_compiler_wl_GCJ='-Wl,'
14843
lt_prog_compiler_static_GCJ='-static'
14847
# All AIX code is PIC.
14848
if test "$host_cpu" = ia64; then
14849
# AIX 5 now supports IA64 processor
14850
lt_prog_compiler_static_GCJ='-Bstatic'
14855
# FIXME: we need at least 68020 code to build shared libraries, but
14856
# adding the `-m68020' flag to GCC prevents building anything better,
14858
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14861
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14862
# PIC is the default for these OSes.
14865
mingw* | pw32* | os2*)
14866
# This hack is so that the source file can tell whether it is being
14867
# built for inclusion in a dll (and should export symbols for example).
14868
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14871
darwin* | rhapsody*)
14872
# PIC is the default on this platform
14873
# Common symbols not allowed in MH_DYLIB files
14874
lt_prog_compiler_pic_GCJ='-fno-common'
14878
# Just because we use GCC doesn't mean we suddenly get shared libraries
14879
# on systems that don't support them.
14880
lt_prog_compiler_can_build_shared_GCJ=no
14885
if test -d /usr/nec; then
14886
lt_prog_compiler_pic_GCJ=-Kconform_pic
14891
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14892
# not for PA HP-UX.
14893
case "$host_cpu" in
14898
lt_prog_compiler_pic_GCJ='-fPIC'
14904
lt_prog_compiler_pic_GCJ='-fPIC'
14908
# PORTME Check for flag to pass linker flags through the system compiler.
14911
lt_prog_compiler_wl_GCJ='-Wl,'
14912
if test "$host_cpu" = ia64; then
14913
# AIX 5 now supports IA64 processor
14914
lt_prog_compiler_static_GCJ='-Bstatic'
14916
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14920
mingw* | pw32* | os2*)
14921
# This hack is so that the source file can tell whether it is being
14922
# built for inclusion in a dll (and should export symbols for example).
14923
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14926
hpux9* | hpux10* | hpux11*)
14927
lt_prog_compiler_wl_GCJ='-Wl,'
14928
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14929
# not for PA HP-UX.
14930
case "$host_cpu" in
14935
lt_prog_compiler_pic_GCJ='+Z'
14938
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14939
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14942
irix5* | irix6* | nonstopux*)
14943
lt_prog_compiler_wl_GCJ='-Wl,'
14944
# PIC (with -KPIC) is the default.
14945
lt_prog_compiler_static_GCJ='-non_shared'
14949
lt_prog_compiler_pic_GCJ='-KPIC'
14950
lt_prog_compiler_static_GCJ='-Bstatic'
14956
lt_prog_compiler_wl_GCJ='-Wl,'
14957
lt_prog_compiler_pic_GCJ='-KPIC'
14958
lt_prog_compiler_static_GCJ='-static'
14961
lt_prog_compiler_wl_GCJ='-Wl,'
14962
# All Alpha code is PIC.
14963
lt_prog_compiler_static_GCJ='-non_shared'
14968
osf3* | osf4* | osf5*)
14969
lt_prog_compiler_wl_GCJ='-Wl,'
14970
# All OSF/1 code is PIC.
14971
lt_prog_compiler_static_GCJ='-non_shared'
14975
lt_prog_compiler_pic_GCJ='-Kpic'
14976
lt_prog_compiler_static_GCJ='-dn'
14980
lt_prog_compiler_wl_GCJ='-Wl,'
14981
lt_prog_compiler_pic_GCJ='-KPIC'
14982
lt_prog_compiler_static_GCJ='-Bstatic'
14986
lt_prog_compiler_wl_GCJ='-Qoption ld '
14987
lt_prog_compiler_pic_GCJ='-PIC'
14988
lt_prog_compiler_static_GCJ='-Bstatic'
14991
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14992
lt_prog_compiler_wl_GCJ='-Wl,'
14993
lt_prog_compiler_pic_GCJ='-KPIC'
14994
lt_prog_compiler_static_GCJ='-Bstatic'
14998
if test -d /usr/nec ;then
14999
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15000
lt_prog_compiler_static_GCJ='-Bstatic'
15005
lt_prog_compiler_pic_GCJ='-pic'
15006
lt_prog_compiler_static_GCJ='-Bstatic'
15010
lt_prog_compiler_can_build_shared_GCJ=no
15015
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15016
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15019
# Check to make sure the PIC flag actually works.
15021
if test -n "$lt_prog_compiler_pic_GCJ"; then
15022
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15023
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15024
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15025
echo $ECHO_N "(cached) $ECHO_C" >&6
15027
lt_prog_compiler_pic_works_GCJ=no
15028
ac_outfile=conftest.$ac_objext
15029
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15031
# Insert the option either (1) after the last *FLAGS variable, or
15032
# (2) before a word containing "conftest.", or (3) at the end.
15033
# Note that $ac_compile itself does not contain backslashes and begins
15034
# with a dollar sign (not a hyphen), so the echo should work correctly.
15035
# The option is referenced via a variable to avoid confusing sed.
15036
lt_compile=`echo "$ac_compile" | $SED \
15037
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15038
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039
-e 's:$: $lt_compiler_flag:'`
15040
(eval echo "\"\$as_me:15040: $lt_compile\"" >&5)
15041
(eval "$lt_compile" 2>conftest.err)
15043
cat conftest.err >&5
15044
echo "$as_me:15044: \$? = $ac_status" >&5
15045
if (exit $ac_status) && test -s "$ac_outfile"; then
15046
# The compiler can only warn and ignore the option if not recognized
15047
# So say no if there are warnings
15048
if test ! -s conftest.err; then
15049
lt_prog_compiler_pic_works_GCJ=yes
15055
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15056
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15058
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15059
case $lt_prog_compiler_pic_GCJ in
15061
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15064
lt_prog_compiler_pic_GCJ=
15065
lt_prog_compiler_can_build_shared_GCJ=no
15070
# For platforms which do not support PIC, -DPIC is meaningless:
15072
lt_prog_compiler_pic_GCJ=
15075
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15079
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15080
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15081
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15082
echo $ECHO_N "(cached) $ECHO_C" >&6
15084
lt_cv_prog_compiler_c_o_GCJ=no
15085
$rm -r conftest 2>/dev/null
15089
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15091
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15092
# that will create temporary files in the current directory regardless of
15093
# the output directory. Thus, making CWD read-only will cause this test
15094
# to fail, enabling locking or at least warning the user not to do parallel
15098
lt_compiler_flag="-o out/conftest2.$ac_objext"
15099
# Insert the option either (1) after the last *FLAGS variable, or
15100
# (2) before a word containing "conftest.", or (3) at the end.
15101
# Note that $ac_compile itself does not contain backslashes and begins
15102
# with a dollar sign (not a hyphen), so the echo should work correctly.
15103
lt_compile=`echo "$ac_compile" | $SED \
15104
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15105
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15106
-e 's:$: $lt_compiler_flag:'`
15107
(eval echo "\"\$as_me:15107: $lt_compile\"" >&5)
15108
(eval "$lt_compile" 2>out/conftest.err)
15110
cat out/conftest.err >&5
15111
echo "$as_me:15111: \$? = $ac_status" >&5
15112
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15114
# The compiler can only warn and ignore the option if not recognized
15115
# So say no if there are warnings
15116
if test ! -s out/conftest.err; then
15117
lt_cv_prog_compiler_c_o_GCJ=yes
15121
$rm conftest* out/*
15128
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15129
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15132
hard_links="nottested"
15133
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15134
# do not overwrite the value of need_locks provided by the user
15135
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15136
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15139
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15141
ln conftest.a conftest.b 2>&5 || hard_links=no
15142
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15143
echo "$as_me:$LINENO: result: $hard_links" >&5
15144
echo "${ECHO_T}$hard_links" >&6
15145
if test "$hard_links" = no; then
15146
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15147
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15154
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15155
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15158
allow_undefined_flag_GCJ=
15159
enable_shared_with_static_runtimes_GCJ=no
15161
archive_expsym_cmds_GCJ=
15162
old_archive_From_new_cmds_GCJ=
15163
old_archive_from_expsyms_cmds_GCJ=
15164
export_dynamic_flag_spec_GCJ=
15165
whole_archive_flag_spec_GCJ=
15166
thread_safe_flag_spec_GCJ=
15167
hardcode_libdir_flag_spec_GCJ=
15168
hardcode_libdir_flag_spec_ld_GCJ=
15169
hardcode_libdir_separator_GCJ=
15170
hardcode_direct_GCJ=no
15171
hardcode_minus_L_GCJ=no
15172
hardcode_shlibpath_var_GCJ=unsupported
15173
link_all_deplibs_GCJ=unknown
15174
hardcode_automatic_GCJ=no
15176
module_expsym_cmds_GCJ=
15177
always_export_symbols_GCJ=no
15178
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15179
# include_expsyms should be a list of space-separated symbols to be *always*
15180
# included in the symbol list
15181
include_expsyms_GCJ=
15182
# exclude_expsyms can be an extended regexp of symbols to exclude
15183
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15184
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15185
# as well as any symbol that contains `d'.
15186
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15187
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15188
# platforms (ab)use it in PIC code, but their linkers get confused if
15189
# the symbol is explicitly referenced. Since portable code cannot
15190
# rely on this symbol name, it's probably fine to never include it in
15191
# preloaded symbol tables.
15192
extract_expsyms_cmds=
15195
cygwin* | mingw* | pw32*)
15196
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15197
# When not using gcc, we currently assume that we are using
15198
# Microsoft Visual C++.
15199
if test "$GCC" != yes; then
15209
if test "$with_gnu_ld" = yes; then
15210
# If archive_cmds runs LD, not CC, wlarc should be empty
15213
# See if GNU ld supports shared libraries.
15215
aix3* | aix4* | aix5*)
15216
# On AIX/PPC, the GNU linker is very broken
15217
if test "$host_cpu" != ia64; then
15221
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15222
*** to be unable to reliably create shared libraries on AIX.
15223
*** Therefore, libtool is disabling shared libraries support. If you
15224
*** really care for shared libraries, you may want to modify your PATH
15225
*** so that a non-GNU linker is found, and then restart.
15232
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)'
15233
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15234
hardcode_minus_L_GCJ=yes
15236
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15237
# that the semantics of dynamic libraries on AmigaOS, at least up
15238
# to version 4, is to share data among multiple programs linked
15239
# with the same dynamic library. Since this doesn't match the
15240
# behavior of shared libraries on other platforms, we can't use
15246
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15247
allow_undefined_flag_GCJ=unsupported
15248
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15249
# support --undefined. This deserves some investigation. FIXME
15250
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15256
cygwin* | mingw* | pw32*)
15257
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15258
# as there is no search path for DLLs.
15259
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15260
allow_undefined_flag_GCJ=unsupported
15261
always_export_symbols_GCJ=no
15262
enable_shared_with_static_runtimes_GCJ=yes
15263
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15265
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15266
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15267
# If the export-symbols file already is a .def file (1st line
15268
# is EXPORTS), use it as is; otherwise, prepend...
15269
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15270
cp $export_symbols $output_objdir/$soname.def;
15272
echo EXPORTS > $output_objdir/$soname.def;
15273
cat $export_symbols >> $output_objdir/$soname.def;
15275
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15282
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15283
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15286
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15292
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15296
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15297
*** create shared libraries on Solaris systems. Therefore, libtool
15298
*** is disabling shared libraries support. We urge you to upgrade GNU
15299
*** binutils to release 2.9.1 or newer. Another option is to modify
15300
*** your PATH or compiler configuration so that the native linker is
15301
*** used, and then restart.
15304
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15305
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15306
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15313
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15315
hardcode_direct_GCJ=yes
15316
hardcode_shlibpath_var_GCJ=no
15320
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15321
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15322
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15329
if test "$ld_shlibs_GCJ" = yes; then
15330
runpath_var=LD_RUN_PATH
15331
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15332
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15333
# ancient GNU ld didn't support --whole-archive et. al.
15334
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15335
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15337
whole_archive_flag_spec_GCJ=
15341
# PORTME fill in a description of your system's linker (not GNU ld)
15344
allow_undefined_flag_GCJ=unsupported
15345
always_export_symbols_GCJ=yes
15346
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'
15347
# Note: this linker hardcodes the directories in LIBPATH if there
15348
# are no directories specified by -L.
15349
hardcode_minus_L_GCJ=yes
15350
if test "$GCC" = yes && test -z "$link_static_flag"; then
15351
# Neither direct hardcoding nor static linking is supported with a
15353
hardcode_direct_GCJ=unsupported
15358
if test "$host_cpu" = ia64; then
15359
# On IA64, the linker does run time linking by default, so we don't
15360
# have to do anything special.
15361
aix_use_runtimelinking=no
15362
exp_sym_flag='-Bexport'
15365
# If we're using GNU nm, then we don't want the "-C" option.
15366
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15367
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15368
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'
15370
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'
15372
aix_use_runtimelinking=no
15374
# Test if we are trying to use run time linking or normal
15375
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15376
# need to do runtime linking.
15377
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15378
for ld_flag in $LDFLAGS; do
15379
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15380
aix_use_runtimelinking=yes
15386
exp_sym_flag='-bexport'
15387
no_entry_flag='-bnoentry'
15390
# When large executables or shared objects are built, AIX ld can
15391
# have problems creating the table of contents. If linking a library
15392
# or program results in "error TOC overflow" add -mminimal-toc to
15393
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15394
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15396
archive_cmds_GCJ=''
15397
hardcode_direct_GCJ=yes
15398
hardcode_libdir_separator_GCJ=':'
15399
link_all_deplibs_GCJ=yes
15401
if test "$GCC" = yes; then
15402
case $host_os in aix4.012|aix4.012.*)
15403
# We only want to do this on AIX 4.2 and lower, the check
15404
# below for broken collect2 doesn't work under 4.3+
15405
collect2name=`${CC} -print-prog-name=collect2`
15406
if test -f "$collect2name" && \
15407
strings "$collect2name" | grep resolve_lib_name >/dev/null
15409
# We have reworked collect2
15410
hardcode_direct_GCJ=yes
15412
# We have old collect2
15413
hardcode_direct_GCJ=unsupported
15414
# It fails to find uninstalled libraries when the uninstalled
15415
# path is not listed in the libpath. Setting hardcode_minus_L
15416
# to unsupported forces relinking
15417
hardcode_minus_L_GCJ=yes
15418
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15419
hardcode_libdir_separator_GCJ=
15422
shared_flag='-shared'
15425
if test "$host_cpu" = ia64; then
15426
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15427
# chokes on -Wl,-G. The following line is correct:
15430
if test "$aix_use_runtimelinking" = yes; then
15431
shared_flag='${wl}-G'
15433
shared_flag='${wl}-bM:SRE'
15438
# It seems that -bexpall does not export symbols beginning with
15439
# underscore (_), so it is better to generate a list of symbols to export.
15440
always_export_symbols_GCJ=yes
15441
if test "$aix_use_runtimelinking" = yes; then
15442
# Warning - without using the other runtime loading flags (-brtl),
15443
# -berok will link without error, but may produce a broken library.
15444
allow_undefined_flag_GCJ='-berok'
15445
# Determine the default libpath from the value encoded in an empty executable.
15446
cat >conftest.$ac_ext <<_ACEOF
15447
#line $LINENO "configure"
15450
cat confdefs.h >>conftest.$ac_ext
15451
cat >>conftest.$ac_ext <<_ACEOF
15452
/* end confdefs.h. */
15462
rm -f conftest.$ac_objext conftest$ac_exeext
15463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464
(eval $ac_link) 2>&5
15466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467
(exit $ac_status); } &&
15468
{ ac_try='test -s conftest$ac_exeext'
15469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470
(eval $ac_try) 2>&5
15472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473
(exit $ac_status); }; }; then
15475
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15477
# Check for a 64-bit object if we didn't find anything.
15478
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; }
15481
echo "$as_me: failed program was:" >&5
15482
sed 's/^/| /' conftest.$ac_ext >&5
15485
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15486
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15488
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15489
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"
15491
if test "$host_cpu" = ia64; then
15492
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15493
allow_undefined_flag_GCJ="-z nodefs"
15494
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"
15496
# Determine the default libpath from the value encoded in an empty executable.
15497
cat >conftest.$ac_ext <<_ACEOF
15498
#line $LINENO "configure"
15501
cat confdefs.h >>conftest.$ac_ext
15502
cat >>conftest.$ac_ext <<_ACEOF
15503
/* end confdefs.h. */
15513
rm -f conftest.$ac_objext conftest$ac_exeext
15514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15515
(eval $ac_link) 2>&5
15517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518
(exit $ac_status); } &&
15519
{ ac_try='test -s conftest$ac_exeext'
15520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521
(eval $ac_try) 2>&5
15523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524
(exit $ac_status); }; }; then
15526
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15528
# Check for a 64-bit object if we didn't find anything.
15529
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; }
15532
echo "$as_me: failed program was:" >&5
15533
sed 's/^/| /' conftest.$ac_ext >&5
15536
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15539
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15540
# Warning - without using the other run time loading flags,
15541
# -berok will link without error, but may produce a broken library.
15542
no_undefined_flag_GCJ=' ${wl}-bernotok'
15543
allow_undefined_flag_GCJ=' ${wl}-berok'
15544
# -bexpall does not export symbols beginning with underscore (_)
15545
always_export_symbols_GCJ=yes
15546
# Exported symbols can be pulled into shared objects from archives
15547
whole_archive_flag_spec_GCJ=' '
15548
archive_cmds_need_lc_GCJ=yes
15549
# This is similar to how AIX traditionally builds it's shared libraries.
15550
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'
15556
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)'
15557
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15558
hardcode_minus_L_GCJ=yes
15559
# see comment about different semantics on the GNU ld section
15564
export_dynamic_flag_spec_GCJ=-rdynamic
15567
cygwin* | mingw* | pw32*)
15568
# When not using gcc, we currently assume that we are using
15569
# Microsoft Visual C++.
15570
# hardcode_libdir_flag_spec is actually meaningless, as there is
15571
# no search path for DLLs.
15572
hardcode_libdir_flag_spec_GCJ=' '
15573
allow_undefined_flag_GCJ=unsupported
15574
# Tell ltmain to make .lib files, not .a files.
15576
# Tell ltmain to make .dll files, not .so files.
15578
# FIXME: Setting linknames here is a bad hack.
15579
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15580
# The linker will automatically build a .lib file if we build a DLL.
15581
old_archive_From_new_cmds_GCJ='true'
15582
# FIXME: Should let the user specify the lib program.
15583
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15584
fix_srcfile_path='`cygpath -w "$srcfile"`'
15585
enable_shared_with_static_runtimes_GCJ=yes
15588
darwin* | rhapsody*)
15589
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15590
archive_cmds_need_lc_GCJ=no
15592
rhapsody* | darwin1.[012])
15593
allow_undefined_flag_GCJ='-undefined suppress'
15596
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15599
# FIXME: Relying on posixy $() will cause problems for
15600
# cross-compilation, but unfortunately the echo tests do not
15601
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
15602
# `"' quotes if we put them in here... so don't!
15603
lt_int_apple_cc_single_mod=no
15604
output_verbose_link_cmd='echo'
15605
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15606
lt_int_apple_cc_single_mod=yes
15608
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15609
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15611
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'
15613
module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15614
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15615
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15616
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}'
15618
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}'
15620
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15621
hardcode_direct_GCJ=no
15622
hardcode_automatic_GCJ=yes
15623
hardcode_shlibpath_var_GCJ=unsupported
15624
whole_archive_flag_spec_GCJ='-all_load $convenience'
15625
link_all_deplibs_GCJ=yes
15630
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15632
hardcode_shlibpath_var_GCJ=no
15639
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15640
# support. Future versions do this automatically, but an explicit c++rt0.o
15641
# does not break anything, and helps significantly (at the cost of a little
15644
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15645
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15646
hardcode_direct_GCJ=yes
15647
hardcode_shlibpath_var_GCJ=no
15650
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15652
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15653
hardcode_direct_GCJ=yes
15654
hardcode_minus_L_GCJ=yes
15655
hardcode_shlibpath_var_GCJ=no
15658
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15660
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15661
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15662
hardcode_direct_GCJ=yes
15663
hardcode_shlibpath_var_GCJ=no
15667
if test "$GCC" = yes; then
15668
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'
15670
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'
15672
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15673
hardcode_libdir_separator_GCJ=:
15674
hardcode_direct_GCJ=yes
15676
# hardcode_minus_L: Not really in the search PATH,
15677
# but as the default location of the library.
15678
hardcode_minus_L_GCJ=yes
15679
export_dynamic_flag_spec_GCJ='${wl}-E'
15683
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15684
case "$host_cpu" in
15686
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15693
case "$host_cpu" in
15695
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15698
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15702
if test "$with_gnu_ld" = no; then
15703
case "$host_cpu" in
15705
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15706
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15707
hardcode_libdir_separator_GCJ=:
15708
hardcode_direct_GCJ=no
15709
hardcode_shlibpath_var_GCJ=no
15712
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15713
hardcode_direct_GCJ=no
15714
hardcode_shlibpath_var_GCJ=no
15716
# hardcode_minus_L: Not really in the search PATH,
15717
# but as the default location of the library.
15718
hardcode_minus_L_GCJ=yes
15721
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15722
hardcode_libdir_separator_GCJ=:
15723
hardcode_direct_GCJ=yes
15724
export_dynamic_flag_spec_GCJ='${wl}-E'
15726
# hardcode_minus_L: Not really in the search PATH,
15727
# but as the default location of the library.
15728
hardcode_minus_L_GCJ=yes
15734
irix5* | irix6* | nonstopux*)
15735
if test "$GCC" = yes; then
15736
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'
15738
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'
15739
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15741
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15742
hardcode_libdir_separator_GCJ=:
15743
link_all_deplibs_GCJ=yes
15747
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15748
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15750
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15752
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15753
hardcode_direct_GCJ=yes
15754
hardcode_shlibpath_var_GCJ=no
15758
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759
hardcode_direct_GCJ=yes
15760
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15761
hardcode_libdir_separator_GCJ=:
15762
hardcode_shlibpath_var_GCJ=no
15766
hardcode_direct_GCJ=yes
15767
hardcode_shlibpath_var_GCJ=no
15768
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15769
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15770
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15771
export_dynamic_flag_spec_GCJ='${wl}-E'
15774
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15775
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15776
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15779
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15780
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15787
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15788
hardcode_minus_L_GCJ=yes
15789
allow_undefined_flag_GCJ=unsupported
15790
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'
15791
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15795
if test "$GCC" = yes; then
15796
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15797
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'
15799
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15800
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'
15802
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15803
hardcode_libdir_separator_GCJ=:
15806
osf4* | osf5*) # as osf3* with the addition of -msym flag
15807
if test "$GCC" = yes; then
15808
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15809
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'
15810
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15812
allow_undefined_flag_GCJ=' -expect_unresolved \*'
15813
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'
15814
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~
15815
$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'
15817
# Both c and cxx compiler support -rpath directly
15818
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15820
hardcode_libdir_separator_GCJ=:
15824
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825
hardcode_shlibpath_var_GCJ=no
15826
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15827
runpath_var=LD_RUN_PATH
15828
hardcode_runpath_var=yes
15832
no_undefined_flag_GCJ=' -z text'
15833
if test "$GCC" = yes; then
15834
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15836
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15838
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15840
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15842
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15843
hardcode_shlibpath_var_GCJ=no
15845
solaris2.[0-5] | solaris2.[0-5].*) ;;
15846
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15847
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15849
link_all_deplibs_GCJ=yes
15853
if test "x$host_vendor" = xsequent; then
15854
# Use $CC to link under sequent, because it throws in some extra .o
15855
# files that make .init and .fini sections work.
15856
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15858
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15860
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15861
hardcode_direct_GCJ=yes
15862
hardcode_minus_L_GCJ=yes
15863
hardcode_shlibpath_var_GCJ=no
15867
case $host_vendor in
15869
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870
hardcode_direct_GCJ=yes # is this really true???
15873
## LD is ld it makes a PLAMLIB
15874
## CC just makes a GrossModule.
15875
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15876
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15877
hardcode_direct_GCJ=no
15880
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15884
runpath_var='LD_RUN_PATH'
15885
hardcode_shlibpath_var_GCJ=no
15889
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890
hardcode_shlibpath_var_GCJ=no
15891
export_dynamic_flag_spec_GCJ='-Bexport'
15895
if test -d /usr/nec; then
15896
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897
hardcode_shlibpath_var_GCJ=no
15898
runpath_var=LD_RUN_PATH
15899
hardcode_runpath_var=yes
15905
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15906
hardcode_direct_GCJ=yes
15907
hardcode_minus_L_GCJ=no
15908
hardcode_shlibpath_var_GCJ=no
15909
hardcode_runpath_var=yes
15910
runpath_var=LD_RUN_PATH
15913
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15914
no_undefined_flag_GCJ='${wl}-z ${wl}text'
15915
if test "$GCC" = yes; then
15916
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15920
runpath_var='LD_RUN_PATH'
15921
hardcode_shlibpath_var_GCJ=no
15925
no_undefined_flag_GCJ=' -z text'
15926
# $CC -shared without GNU ld will not create a library from C++
15927
# object files and a static libstdc++, better avoid it by now
15928
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15929
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15930
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15931
hardcode_libdir_flag_spec_GCJ=
15932
hardcode_shlibpath_var_GCJ=no
15933
runpath_var='LD_RUN_PATH'
15937
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939
hardcode_shlibpath_var_GCJ=no
15948
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15949
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15950
test "$ld_shlibs_GCJ" = no && can_build_shared=no
15952
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15953
if test "$GCC" = yes; then
15954
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15958
# Do we need to explicitly link libc?
15960
case "x$archive_cmds_need_lc_GCJ" in
15962
# Assume -lc should be added
15963
archive_cmds_need_lc_GCJ=yes
15965
if test "$enable_shared" = yes && test "$GCC" = yes; then
15966
case $archive_cmds_GCJ in
15968
# FIXME: we may have to deal with multi-command sequences.
15971
# Test whether the compiler implicitly links with -lc since on some
15972
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15973
# to ld, don't add -lc before -lgcc.
15974
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15975
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15977
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980
(eval $ac_compile) 2>&5
15982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983
(exit $ac_status); } 2>conftest.err; then
15986
libobjs=conftest.$ac_objext
15988
wl=$lt_prog_compiler_wl_GCJ
15994
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15995
allow_undefined_flag_GCJ=
15996
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15997
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000
(exit $ac_status); }
16002
archive_cmds_need_lc_GCJ=no
16004
archive_cmds_need_lc_GCJ=yes
16006
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16008
cat conftest.err 1>&5
16011
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16012
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16019
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16020
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16021
hardcode_action_GCJ=
16022
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16023
test -n "$runpath_var GCJ" || \
16024
test "X$hardcode_automatic_GCJ"="Xyes" ; then
16026
# We can hardcode non-existant directories.
16027
if test "$hardcode_direct_GCJ" != no &&
16028
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16029
# have to relink, otherwise we might link with an installed library
16030
# when we should be linking with a yet-to-be-installed one
16031
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16032
test "$hardcode_minus_L_GCJ" != no; then
16033
# Linking always hardcodes the temporary library directory.
16034
hardcode_action_GCJ=relink
16036
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16037
hardcode_action_GCJ=immediate
16040
# We cannot hardcode anything, or else we can only hardcode existing
16042
hardcode_action_GCJ=unsupported
16044
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16045
echo "${ECHO_T}$hardcode_action_GCJ" >&6
16047
if test "$hardcode_action_GCJ" = relink; then
16048
# Fast installation is not supported
16049
enable_fast_install=no
16050
elif test "$shlibpath_overrides_runpath" = yes ||
16051
test "$enable_shared" = no; then
16052
# Fast installation is not necessary
16053
enable_fast_install=needless
16058
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16059
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16060
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16061
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16062
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16063
echo "$as_me:$LINENO: result: yes" >&5
16064
echo "${ECHO_T}yes" >&6
16066
# FIXME - insert some real tests, host_os isn't really good enough
16069
if test -n "$STRIP" ; then
16070
striplib="$STRIP -x"
16071
echo "$as_me:$LINENO: result: yes" >&5
16072
echo "${ECHO_T}yes" >&6
16074
echo "$as_me:$LINENO: result: no" >&5
16075
echo "${ECHO_T}no" >&6
16079
echo "$as_me:$LINENO: result: no" >&5
16080
echo "${ECHO_T}no" >&6
16085
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16086
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16087
library_names_spec=
16088
libname_spec='lib$name'
16092
postuninstall_cmds=
16096
shlibpath_overrides_runpath=unknown
16098
dynamic_linker="$host_os ld.so"
16099
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16100
if test "$GCC" = yes; then
16101
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16102
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16103
# if the path contains ";" then we assume it to be the separator
16104
# otherwise default to the standard path separator (i.e. ":") - it is
16105
# assumed that no part of a normal pathname contains ";" but that should
16106
# okay in the real world where ";" in dirpaths is itself problematic.
16107
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16109
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16112
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16114
need_lib_prefix=unknown
16115
hardcode_into_libs=no
16117
# when you set need_version to no, make sure it does not cause -set_version
16118
# flags to be left without arguments
16119
need_version=unknown
16124
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16125
shlibpath_var=LIBPATH
16127
# AIX 3 has no versioning support, so we append a major version to the name.
16128
soname_spec='${libname}${release}${shared_ext}$major'
16135
hardcode_into_libs=yes
16136
if test "$host_cpu" = ia64; then
16137
# AIX 5 supports IA64
16138
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16139
shlibpath_var=LD_LIBRARY_PATH
16141
# With GCC up to 2.95.x, collect2 would create an import file
16142
# for dependence libraries. The import file would start with
16143
# the line `#! .'. This would cause the generated library to
16144
# depend on `.', always an invalid library. This was fixed in
16145
# development snapshots of GCC prior to 3.0.
16147
aix4 | aix4.[01] | aix4.[01].*)
16148
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16150
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16153
can_build_shared=no
16157
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16158
# soname into executable. Probably we can add versioning support to
16159
# collect2, so additional links can be useful in future.
16160
if test "$aix_use_runtimelinking" = yes; then
16161
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16162
# instead of lib<name>.a to let people know that these are not
16163
# typical AIX shared libraries.
16164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166
# We preserve .a as extension for shared libraries through AIX4.2
16167
# and later when we are not doing run time linking.
16168
library_names_spec='${libname}${release}.a $libname.a'
16169
soname_spec='${libname}${release}${shared_ext}$major'
16171
shlibpath_var=LIBPATH
16176
library_names_spec='$libname.ixlibrary $libname.a'
16177
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16178
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'
16182
library_names_spec='${libname}${shared_ext}'
16183
dynamic_linker="$host_os ld.so"
16184
shlibpath_var=LIBRARY_PATH
16190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191
soname_spec='${libname}${release}${shared_ext}$major'
16192
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16193
shlibpath_var=LD_LIBRARY_PATH
16194
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16195
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16196
# the default ld.so.conf also contains /usr/contrib/lib and
16197
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16198
# libtool to hard-code these into programs
16201
cygwin* | mingw* | pw32*)
16202
version_type=windows
16207
case $GCC,$host_os in
16208
yes,cygwin* | yes,mingw* | yes,pw32*)
16209
library_names_spec='$libname.dll.a'
16210
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16211
postinstall_cmds='base_file=`basename \${file}`~
16212
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16213
dldir=$destdir/`dirname \$dlpath`~
16214
test -d \$dldir || mkdir -p \$dldir~
16215
$install_prog $dir/$dlname \$dldir/$dlname'
16216
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16217
dlpath=$dir/\$dldll~
16219
shlibpath_overrides_runpath=yes
16223
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16224
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16225
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16228
# MinGW DLLs use traditional 'lib' prefix
16229
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16230
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16231
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16232
# It is most probably a Windows format PATH printed by
16233
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16234
# path with ; separators, and with drive letters. We can handle the
16235
# drive letters (cygwin fileutils understands them), so leave them,
16236
# especially as we might pass files found there to a mingw objdump,
16237
# which wouldn't understand a cygwinified path. Ahh.
16238
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16240
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16244
# pw32 DLLs use 'pw' prefix rather than 'lib'
16245
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16251
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16254
dynamic_linker='Win32 ld.exe'
16255
# FIXME: first we should search . and the directory the executable is in
16259
darwin* | rhapsody*)
16260
dynamic_linker="$host_os dyld"
16261
version_type=darwin
16264
# FIXME: Relying on posixy $() will cause problems for
16265
# cross-compilation, but unfortunately the echo tests do not
16266
# yet detect zsh echo's removal of \ escapes.
16267
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16268
soname_spec='${libname}${release}${major}$shared_ext'
16269
shlibpath_overrides_runpath=yes
16270
shlibpath_var=DYLD_LIBRARY_PATH
16271
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16272
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16273
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16274
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"`
16276
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16284
soname_spec='${libname}${release}${shared_ext}$major'
16285
shlibpath_var=LD_LIBRARY_PATH
16296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16297
soname_spec='${libname}${release}${shared_ext}$major'
16298
shlibpath_var=LD_LIBRARY_PATH
16299
shlibpath_overrides_runpath=no
16300
hardcode_into_libs=yes
16301
dynamic_linker='GNU ld.so'
16305
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16306
version_type=freebsd-$objformat
16307
case $version_type in
16309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16314
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16318
shlibpath_var=LD_LIBRARY_PATH
16321
shlibpath_overrides_runpath=yes
16323
freebsd3.01* | freebsdelf3.01*)
16324
shlibpath_overrides_runpath=yes
16325
hardcode_into_libs=yes
16328
shlibpath_overrides_runpath=no
16329
hardcode_into_libs=yes
16338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16339
soname_spec='${libname}${release}${shared_ext}$major'
16340
shlibpath_var=LD_LIBRARY_PATH
16341
hardcode_into_libs=yes
16344
hpux9* | hpux10* | hpux11*)
16345
# Give a soname corresponding to the major version so that dld.sl refuses to
16346
# link against other versions.
16350
case "$host_cpu" in
16353
hardcode_into_libs=yes
16354
dynamic_linker="$host_os dld.so"
16355
shlibpath_var=LD_LIBRARY_PATH
16356
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358
soname_spec='${libname}${release}${shared_ext}$major'
16359
if test "X$HPUX_IA64_MODE" = X32; then
16360
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16362
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16364
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16368
hardcode_into_libs=yes
16369
dynamic_linker="$host_os dld.sl"
16370
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16371
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373
soname_spec='${libname}${release}${shared_ext}$major'
16374
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16375
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16379
dynamic_linker="$host_os dld.sl"
16380
shlibpath_var=SHLIB_PATH
16381
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383
soname_spec='${libname}${release}${shared_ext}$major'
16386
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16387
postinstall_cmds='chmod 555 $lib'
16390
irix5* | irix6* | nonstopux*)
16392
nonstopux*) version_type=nonstopux ;;
16394
if test "$lt_cv_prog_gnu_ld" = yes; then
16402
soname_spec='${libname}${release}${shared_ext}$major'
16403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16405
irix5* | nonstopux*)
16406
libsuff= shlibsuff=
16409
case $LD in # libtool.m4 will add one of these switches to LD
16410
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16411
libsuff= shlibsuff= libmagic=32-bit;;
16412
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16413
libsuff=32 shlibsuff=N32 libmagic=N32;;
16414
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16415
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16416
*) libsuff= shlibsuff= libmagic=never-match;;
16420
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16421
shlibpath_overrides_runpath=no
16422
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16423
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16424
hardcode_into_libs=yes
16427
# No shared lib support for Linux oldld, aout, or coff.
16428
linux*oldld* | linux*aout* | linux*coff*)
16432
# This must be Linux ELF.
16437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438
soname_spec='${libname}${release}${shared_ext}$major'
16439
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16440
shlibpath_var=LD_LIBRARY_PATH
16441
shlibpath_overrides_runpath=no
16442
# This implies no fast_install, which is unacceptable.
16443
# Some rework will be needed to allow for fast_install
16444
# before this can be enabled.
16445
hardcode_into_libs=yes
16447
# We used to test for /lib/ld.so.1 and disable shared libraries on
16448
# powerpc, because MkLinux only supported shared libraries with the
16449
# GNU dynamic linker. Since this was broken with cross compilers,
16450
# most powerpc-linux boxes support dynamic linking these days and
16451
# people can always --disable-shared, the test was removed, and we
16452
# assume the GNU/Linux dynamic linker is in use.
16453
dynamic_linker='GNU/Linux ld.so'
16460
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16462
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16463
dynamic_linker='NetBSD (a.out) ld.so'
16465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16466
soname_spec='${libname}${release}${shared_ext}$major'
16467
dynamic_linker='NetBSD ld.elf_so'
16469
shlibpath_var=LD_LIBRARY_PATH
16470
shlibpath_overrides_runpath=yes
16471
hardcode_into_libs=yes
16476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477
shlibpath_var=LD_LIBRARY_PATH
16478
shlibpath_overrides_runpath=yes
16485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486
soname_spec='${libname}${release}${shared_ext}$major'
16487
shlibpath_var=LD_LIBRARY_PATH
16488
shlibpath_overrides_runpath=yes
16495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16496
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16497
shlibpath_var=LD_LIBRARY_PATH
16498
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16500
openbsd2.[89] | openbsd2.[89].*)
16501
shlibpath_overrides_runpath=no
16504
shlibpath_overrides_runpath=yes
16508
shlibpath_overrides_runpath=yes
16513
libname_spec='$name'
16516
library_names_spec='$libname${shared_ext} $libname.a'
16517
dynamic_linker='OS/2 ld.exe'
16518
shlibpath_var=LIBPATH
16521
osf3* | osf4* | osf5*)
16525
soname_spec='${libname}${release}${shared_ext}$major'
16526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527
shlibpath_var=LD_LIBRARY_PATH
16528
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16529
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16534
soname_spec='${libname}${release}${shared_ext}$major'
16535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536
shlibpath_var=LD_LIBRARY_PATH
16543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544
soname_spec='${libname}${release}${shared_ext}$major'
16545
shlibpath_var=LD_LIBRARY_PATH
16546
shlibpath_overrides_runpath=yes
16547
hardcode_into_libs=yes
16548
# ldd complains unless libraries are executable
16549
postinstall_cmds='chmod +x $lib'
16554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16556
shlibpath_var=LD_LIBRARY_PATH
16557
shlibpath_overrides_runpath=yes
16558
if test "$with_gnu_ld" = yes; then
16564
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567
soname_spec='${libname}${release}${shared_ext}$major'
16568
shlibpath_var=LD_LIBRARY_PATH
16569
case $host_vendor in
16571
shlibpath_overrides_runpath=no
16573
export_dynamic_flag_spec='${wl}-Blargedynsym'
16574
runpath_var=LD_RUN_PATH
16582
shlibpath_overrides_runpath=no
16583
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16589
if test -d /usr/nec ;then
16591
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16592
soname_spec='$libname${shared_ext}.$major'
16593
shlibpath_var=LD_LIBRARY_PATH
16599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600
soname_spec='${libname}${release}${shared_ext}$major'
16601
shlibpath_var=LD_LIBRARY_PATH
16608
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16609
echo "${ECHO_T}$dynamic_linker" >&6
16610
test "$dynamic_linker" = no && can_build_shared=no
16612
if test "x$enable_dlopen" != xyes; then
16613
enable_dlopen=unknown
16614
enable_dlopen_self=unknown
16615
enable_dlopen_self_static=unknown
16622
lt_cv_dlopen="load_add_on"
16624
lt_cv_dlopen_self=yes
16628
lt_cv_dlopen="LoadLibrary"
16633
lt_cv_dlopen="dlopen"
16638
# if libdl is installed we need to link against it
16639
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16640
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16641
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16642
echo $ECHO_N "(cached) $ECHO_C" >&6
16644
ac_check_lib_save_LIBS=$LIBS
16646
cat >conftest.$ac_ext <<_ACEOF
16647
#line $LINENO "configure"
16650
cat confdefs.h >>conftest.$ac_ext
16651
cat >>conftest.$ac_ext <<_ACEOF
16652
/* end confdefs.h. */
16654
/* Override any gcc2 internal prototype to avoid an error. */
16658
/* We use char because int might match the return type of a gcc2
16659
builtin and then its argument prototype would still apply. */
16669
rm -f conftest.$ac_objext conftest$ac_exeext
16670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16671
(eval $ac_link) 2>&5
16673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674
(exit $ac_status); } &&
16675
{ ac_try='test -s conftest$ac_exeext'
16676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677
(eval $ac_try) 2>&5
16679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680
(exit $ac_status); }; }; then
16681
ac_cv_lib_dl_dlopen=yes
16683
echo "$as_me: failed program was:" >&5
16684
sed 's/^/| /' conftest.$ac_ext >&5
16686
ac_cv_lib_dl_dlopen=no
16688
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16689
LIBS=$ac_check_lib_save_LIBS
16691
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16692
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16693
if test $ac_cv_lib_dl_dlopen = yes; then
16694
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16697
lt_cv_dlopen="dyld"
16699
lt_cv_dlopen_self=yes
16706
echo "$as_me:$LINENO: checking for shl_load" >&5
16707
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16708
if test "${ac_cv_func_shl_load+set}" = set; then
16709
echo $ECHO_N "(cached) $ECHO_C" >&6
16711
cat >conftest.$ac_ext <<_ACEOF
16712
#line $LINENO "configure"
16715
cat confdefs.h >>conftest.$ac_ext
16716
cat >>conftest.$ac_ext <<_ACEOF
16717
/* end confdefs.h. */
16718
/* System header to define __stub macros and hopefully few prototypes,
16719
which can conflict with char shl_load (); below.
16720
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721
<limits.h> exists even on freestanding compilers. */
16723
# include <limits.h>
16725
# include <assert.h>
16727
/* Override any gcc2 internal prototype to avoid an error. */
16732
/* We use char because int might match the return type of a gcc2
16733
builtin and then its argument prototype would still apply. */
16735
/* The GNU C library defines this for functions which it implements
16736
to always fail with ENOSYS. Some functions are actually named
16737
something starting with __ and the normal name is an alias. */
16738
#if defined (__stub_shl_load) || defined (__stub___shl_load)
16741
char (*f) () = shl_load;
16750
return f != shl_load;
16755
rm -f conftest.$ac_objext conftest$ac_exeext
16756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16757
(eval $ac_link) 2>&5
16759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760
(exit $ac_status); } &&
16761
{ ac_try='test -s conftest$ac_exeext'
16762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763
(eval $ac_try) 2>&5
16765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766
(exit $ac_status); }; }; then
16767
ac_cv_func_shl_load=yes
16769
echo "$as_me: failed program was:" >&5
16770
sed 's/^/| /' conftest.$ac_ext >&5
16772
ac_cv_func_shl_load=no
16774
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16776
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16777
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16778
if test $ac_cv_func_shl_load = yes; then
16779
lt_cv_dlopen="shl_load"
16781
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16782
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16783
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16784
echo $ECHO_N "(cached) $ECHO_C" >&6
16786
ac_check_lib_save_LIBS=$LIBS
16788
cat >conftest.$ac_ext <<_ACEOF
16789
#line $LINENO "configure"
16792
cat confdefs.h >>conftest.$ac_ext
16793
cat >>conftest.$ac_ext <<_ACEOF
16794
/* end confdefs.h. */
16796
/* Override any gcc2 internal prototype to avoid an error. */
16800
/* We use char because int might match the return type of a gcc2
16801
builtin and then its argument prototype would still apply. */
16811
rm -f conftest.$ac_objext conftest$ac_exeext
16812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813
(eval $ac_link) 2>&5
16815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816
(exit $ac_status); } &&
16817
{ ac_try='test -s conftest$ac_exeext'
16818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819
(eval $ac_try) 2>&5
16821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822
(exit $ac_status); }; }; then
16823
ac_cv_lib_dld_shl_load=yes
16825
echo "$as_me: failed program was:" >&5
16826
sed 's/^/| /' conftest.$ac_ext >&5
16828
ac_cv_lib_dld_shl_load=no
16830
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16831
LIBS=$ac_check_lib_save_LIBS
16833
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16834
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16835
if test $ac_cv_lib_dld_shl_load = yes; then
16836
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16838
echo "$as_me:$LINENO: checking for dlopen" >&5
16839
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16840
if test "${ac_cv_func_dlopen+set}" = set; then
16841
echo $ECHO_N "(cached) $ECHO_C" >&6
16843
cat >conftest.$ac_ext <<_ACEOF
16844
#line $LINENO "configure"
16847
cat confdefs.h >>conftest.$ac_ext
16848
cat >>conftest.$ac_ext <<_ACEOF
16849
/* end confdefs.h. */
16850
/* System header to define __stub macros and hopefully few prototypes,
16851
which can conflict with char dlopen (); below.
16852
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853
<limits.h> exists even on freestanding compilers. */
16855
# include <limits.h>
16857
# include <assert.h>
16859
/* Override any gcc2 internal prototype to avoid an error. */
16864
/* We use char because int might match the return type of a gcc2
16865
builtin and then its argument prototype would still apply. */
16867
/* The GNU C library defines this for functions which it implements
16868
to always fail with ENOSYS. Some functions are actually named
16869
something starting with __ and the normal name is an alias. */
16870
#if defined (__stub_dlopen) || defined (__stub___dlopen)
16873
char (*f) () = dlopen;
16882
return f != dlopen;
16887
rm -f conftest.$ac_objext conftest$ac_exeext
16888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889
(eval $ac_link) 2>&5
16891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892
(exit $ac_status); } &&
16893
{ ac_try='test -s conftest$ac_exeext'
16894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895
(eval $ac_try) 2>&5
16897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898
(exit $ac_status); }; }; then
16899
ac_cv_func_dlopen=yes
16901
echo "$as_me: failed program was:" >&5
16902
sed 's/^/| /' conftest.$ac_ext >&5
16904
ac_cv_func_dlopen=no
16906
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16908
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16909
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16910
if test $ac_cv_func_dlopen = yes; then
16911
lt_cv_dlopen="dlopen"
16913
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16914
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16915
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16916
echo $ECHO_N "(cached) $ECHO_C" >&6
16918
ac_check_lib_save_LIBS=$LIBS
16920
cat >conftest.$ac_ext <<_ACEOF
16921
#line $LINENO "configure"
16924
cat confdefs.h >>conftest.$ac_ext
16925
cat >>conftest.$ac_ext <<_ACEOF
16926
/* end confdefs.h. */
16928
/* Override any gcc2 internal prototype to avoid an error. */
16932
/* We use char because int might match the return type of a gcc2
16933
builtin and then its argument prototype would still apply. */
16943
rm -f conftest.$ac_objext conftest$ac_exeext
16944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945
(eval $ac_link) 2>&5
16947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948
(exit $ac_status); } &&
16949
{ ac_try='test -s conftest$ac_exeext'
16950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951
(eval $ac_try) 2>&5
16953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954
(exit $ac_status); }; }; then
16955
ac_cv_lib_dl_dlopen=yes
16957
echo "$as_me: failed program was:" >&5
16958
sed 's/^/| /' conftest.$ac_ext >&5
16960
ac_cv_lib_dl_dlopen=no
16962
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16963
LIBS=$ac_check_lib_save_LIBS
16965
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16966
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16967
if test $ac_cv_lib_dl_dlopen = yes; then
16968
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16970
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16971
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16972
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16973
echo $ECHO_N "(cached) $ECHO_C" >&6
16975
ac_check_lib_save_LIBS=$LIBS
16976
LIBS="-lsvld $LIBS"
16977
cat >conftest.$ac_ext <<_ACEOF
16978
#line $LINENO "configure"
16981
cat confdefs.h >>conftest.$ac_ext
16982
cat >>conftest.$ac_ext <<_ACEOF
16983
/* end confdefs.h. */
16985
/* Override any gcc2 internal prototype to avoid an error. */
16989
/* We use char because int might match the return type of a gcc2
16990
builtin and then its argument prototype would still apply. */
17000
rm -f conftest.$ac_objext conftest$ac_exeext
17001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17002
(eval $ac_link) 2>&5
17004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005
(exit $ac_status); } &&
17006
{ ac_try='test -s conftest$ac_exeext'
17007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008
(eval $ac_try) 2>&5
17010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011
(exit $ac_status); }; }; then
17012
ac_cv_lib_svld_dlopen=yes
17014
echo "$as_me: failed program was:" >&5
17015
sed 's/^/| /' conftest.$ac_ext >&5
17017
ac_cv_lib_svld_dlopen=no
17019
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17020
LIBS=$ac_check_lib_save_LIBS
17022
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17023
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17024
if test $ac_cv_lib_svld_dlopen = yes; then
17025
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17027
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17028
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17029
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17030
echo $ECHO_N "(cached) $ECHO_C" >&6
17032
ac_check_lib_save_LIBS=$LIBS
17034
cat >conftest.$ac_ext <<_ACEOF
17035
#line $LINENO "configure"
17038
cat confdefs.h >>conftest.$ac_ext
17039
cat >>conftest.$ac_ext <<_ACEOF
17040
/* end confdefs.h. */
17042
/* Override any gcc2 internal prototype to avoid an error. */
17046
/* We use char because int might match the return type of a gcc2
17047
builtin and then its argument prototype would still apply. */
17057
rm -f conftest.$ac_objext conftest$ac_exeext
17058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059
(eval $ac_link) 2>&5
17061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062
(exit $ac_status); } &&
17063
{ ac_try='test -s conftest$ac_exeext'
17064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065
(eval $ac_try) 2>&5
17067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068
(exit $ac_status); }; }; then
17069
ac_cv_lib_dld_dld_link=yes
17071
echo "$as_me: failed program was:" >&5
17072
sed 's/^/| /' conftest.$ac_ext >&5
17074
ac_cv_lib_dld_dld_link=no
17076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17077
LIBS=$ac_check_lib_save_LIBS
17079
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17080
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17081
if test $ac_cv_lib_dld_dld_link = yes; then
17082
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17103
if test "x$lt_cv_dlopen" != xno; then
17109
case $lt_cv_dlopen in
17111
save_CPPFLAGS="$CPPFLAGS"
17112
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17114
save_LDFLAGS="$LDFLAGS"
17115
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17118
LIBS="$lt_cv_dlopen_libs $LIBS"
17120
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17121
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17122
if test "${lt_cv_dlopen_self+set}" = set; then
17123
echo $ECHO_N "(cached) $ECHO_C" >&6
17125
if test "$cross_compiling" = yes; then :
17126
lt_cv_dlopen_self=cross
17128
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17129
lt_status=$lt_dlunknown
17130
cat > conftest.$ac_ext <<EOF
17131
#line 17131 "configure"
17132
#include "confdefs.h"
17141
# define LT_DLGLOBAL RTLD_GLOBAL
17144
# define LT_DLGLOBAL DL_GLOBAL
17146
# define LT_DLGLOBAL 0
17150
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17151
find out it does not work in some platform. */
17152
#ifndef LT_DLLAZY_OR_NOW
17154
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17157
# define LT_DLLAZY_OR_NOW DL_LAZY
17160
# define LT_DLLAZY_OR_NOW RTLD_NOW
17163
# define LT_DLLAZY_OR_NOW DL_NOW
17165
# define LT_DLLAZY_OR_NOW 0
17173
extern "C" void exit (int);
17176
void fnord() { int i=42;}
17179
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17180
int status = $lt_dlunknown;
17184
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17185
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17186
/* dlclose (self); */
17192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193
(eval $ac_link) 2>&5
17195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17197
(./conftest; exit; ) 2>/dev/null
17199
case x$lt_status in
17200
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17201
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17202
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17205
# compilation failed
17206
lt_cv_dlopen_self=no
17213
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17214
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17216
if test "x$lt_cv_dlopen_self" = xyes; then
17217
LDFLAGS="$LDFLAGS $link_static_flag"
17218
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17219
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17220
if test "${lt_cv_dlopen_self_static+set}" = set; then
17221
echo $ECHO_N "(cached) $ECHO_C" >&6
17223
if test "$cross_compiling" = yes; then :
17224
lt_cv_dlopen_self_static=cross
17226
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17227
lt_status=$lt_dlunknown
17228
cat > conftest.$ac_ext <<EOF
17229
#line 17229 "configure"
17230
#include "confdefs.h"
17239
# define LT_DLGLOBAL RTLD_GLOBAL
17242
# define LT_DLGLOBAL DL_GLOBAL
17244
# define LT_DLGLOBAL 0
17248
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17249
find out it does not work in some platform. */
17250
#ifndef LT_DLLAZY_OR_NOW
17252
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17255
# define LT_DLLAZY_OR_NOW DL_LAZY
17258
# define LT_DLLAZY_OR_NOW RTLD_NOW
17261
# define LT_DLLAZY_OR_NOW DL_NOW
17263
# define LT_DLLAZY_OR_NOW 0
17271
extern "C" void exit (int);
17274
void fnord() { int i=42;}
17277
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17278
int status = $lt_dlunknown;
17282
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17283
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17284
/* dlclose (self); */
17290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17291
(eval $ac_link) 2>&5
17293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17295
(./conftest; exit; ) 2>/dev/null
17297
case x$lt_status in
17298
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17299
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17300
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17303
# compilation failed
17304
lt_cv_dlopen_self_static=no
17311
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17312
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17315
CPPFLAGS="$save_CPPFLAGS"
17316
LDFLAGS="$save_LDFLAGS"
17321
case $lt_cv_dlopen_self in
17322
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17323
*) enable_dlopen_self=unknown ;;
17326
case $lt_cv_dlopen_self_static in
17327
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17328
*) enable_dlopen_self_static=unknown ;;
17333
# The else clause should only fire when bootstrapping the
17334
# libtool distribution, otherwise you forgot to ship ltmain.sh
17335
# with your package, and you will get complaints that there are
17336
# no rules to generate ltmain.sh.
17337
if test -f "$ltmain"; then
17338
# See if we are running on zsh, and set the options which allow our commands through
17339
# without removal of \ escapes.
17340
if test -n "${ZSH_VERSION+set}" ; then
17341
setopt NO_GLOB_SUBST
17343
# Now quote all the things that may contain metacharacters while being
17344
# careful not to overquote the AC_SUBSTed values. We take copies of the
17345
# variables and quote the copies for generation of the libtool script.
17346
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17347
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17348
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17349
deplibs_check_method reload_flag reload_cmds need_locks \
17350
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17351
lt_cv_sys_global_symbol_to_c_name_address \
17352
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17353
old_postinstall_cmds old_postuninstall_cmds \
17357
lt_prog_compiler_wl_GCJ \
17358
lt_prog_compiler_pic_GCJ \
17359
lt_prog_compiler_static_GCJ \
17360
lt_prog_compiler_no_builtin_flag_GCJ \
17361
export_dynamic_flag_spec_GCJ \
17362
thread_safe_flag_spec_GCJ \
17363
whole_archive_flag_spec_GCJ \
17364
enable_shared_with_static_runtimes_GCJ \
17365
old_archive_cmds_GCJ \
17366
old_archive_from_new_cmds_GCJ \
17367
predep_objects_GCJ \
17368
postdep_objects_GCJ \
17371
compiler_lib_search_path_GCJ \
17373
archive_expsym_cmds_GCJ \
17374
postinstall_cmds_GCJ \
17375
postuninstall_cmds_GCJ \
17376
old_archive_from_expsyms_cmds_GCJ \
17377
allow_undefined_flag_GCJ \
17378
no_undefined_flag_GCJ \
17379
export_symbols_cmds_GCJ \
17380
hardcode_libdir_flag_spec_GCJ \
17381
hardcode_libdir_flag_spec_ld_GCJ \
17382
hardcode_libdir_separator_GCJ \
17383
hardcode_automatic_GCJ \
17385
module_expsym_cmds_GCJ \
17386
lt_cv_prog_compiler_c_o_GCJ \
17387
exclude_expsyms_GCJ \
17388
include_expsyms_GCJ; do
17391
old_archive_cmds_GCJ | \
17392
old_archive_from_new_cmds_GCJ | \
17393
archive_cmds_GCJ | \
17394
archive_expsym_cmds_GCJ | \
17395
module_cmds_GCJ | \
17396
module_expsym_cmds_GCJ | \
17397
old_archive_from_expsyms_cmds_GCJ | \
17398
export_symbols_cmds_GCJ | \
17399
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17400
postinstall_cmds | postuninstall_cmds | \
17401
old_postinstall_cmds | old_postuninstall_cmds | \
17402
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17403
# Double-quote double-evaled strings.
17404
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17407
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17413
*'\$0 --fallback-echo"')
17414
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17420
cat <<__EOF__ >> "$cfgfile"
17421
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17423
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17425
# Shell to use when invoking shell scripts.
17428
# Whether or not to build shared libraries.
17429
build_libtool_libs=$enable_shared
17431
# Whether or not to build static libraries.
17432
build_old_libs=$enable_static
17434
# Whether or not to add -lc for building shared libraries.
17435
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17437
# Whether or not to disallow shared libs when runtime libs are static
17438
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17440
# Whether or not to optimize for fast installation.
17441
fast_install=$enable_fast_install
17444
host_alias=$host_alias
17447
# An echo program that does not interpret backslashes.
17452
AR_FLAGS=$lt_AR_FLAGS
17457
# A language-specific compiler.
17458
CC=$lt_compiler_GCJ
17460
# Is the compiler the GNU C compiler?
17466
# The linker used to build libraries.
17469
# Whether we need hard or soft links.
17472
# A BSD-compatible nm program.
17475
# A symbol stripping program
17478
# Used to examine libraries when file_magic_cmd begins "file"
17479
MAGIC_CMD=$MAGIC_CMD
17481
# Used on cygwin: DLL creation program.
17484
# Used on cygwin: object dumper.
17487
# Used on cygwin: assembler.
17490
# The name of the directory that contains temporary libtool files.
17493
# How to create reloadable object files.
17494
reload_flag=$lt_reload_flag
17495
reload_cmds=$lt_reload_cmds
17497
# How to pass a linker flag through the compiler.
17498
wl=$lt_lt_prog_compiler_wl_GCJ
17500
# Object file suffix (normally "o").
17501
objext="$ac_objext"
17503
# Old archive suffix (normally "a").
17506
# Shared library suffix (normally ".so").
17509
# Executable file suffix (normally "").
17512
# Additional compiler flags for building library objects.
17513
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17516
# What is the maximum length of a command?
17517
max_cmd_len=$lt_cv_sys_max_cmd_len
17519
# Does compiler simultaneously support -c and -o options?
17520
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17522
# Must we lock files when doing compilation ?
17523
need_locks=$lt_need_locks
17525
# Do we need the lib prefix for modules?
17526
need_lib_prefix=$need_lib_prefix
17528
# Do we need a version for libraries?
17529
need_version=$need_version
17531
# Whether dlopen is supported.
17532
dlopen_support=$enable_dlopen
17534
# Whether dlopen of programs is supported.
17535
dlopen_self=$enable_dlopen_self
17537
# Whether dlopen of statically linked programs is supported.
17538
dlopen_self_static=$enable_dlopen_self_static
17540
# Compiler flag to prevent dynamic linking.
17541
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17543
# Compiler flag to turn off builtin functions.
17544
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17546
# Compiler flag to allow reflexive dlopens.
17547
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17549
# Compiler flag to generate shared objects directly from archives.
17550
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17552
# Compiler flag to generate thread-safe objects.
17553
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17555
# Library versioning type.
17556
version_type=$version_type
17558
# Format of library name prefix.
17559
libname_spec=$lt_libname_spec
17561
# List of archive names. First name is the real one, the rest are links.
17562
# The last name is the one that the linker finds with -lNAME.
17563
library_names_spec=$lt_library_names_spec
17565
# The coded name of the library, if different from the real name.
17566
soname_spec=$lt_soname_spec
17568
# Commands used to build and install an old-style archive.
17570
old_archive_cmds=$lt_old_archive_cmds_GCJ
17571
old_postinstall_cmds=$lt_old_postinstall_cmds
17572
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17574
# Create an old-style archive from a shared archive.
17575
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17577
# Create a temporary old-style archive to link instead of a shared archive.
17578
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17580
# Commands used to build and install a shared archive.
17581
archive_cmds=$lt_archive_cmds_GCJ
17582
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17583
postinstall_cmds=$lt_postinstall_cmds
17584
postuninstall_cmds=$lt_postuninstall_cmds
17586
# Commands used to build a loadable module (assumed same as above if empty)
17587
module_cmds=$lt_module_cmds_GCJ
17588
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17590
# Commands to strip libraries.
17591
old_striplib=$lt_old_striplib
17592
striplib=$lt_striplib
17594
# Dependencies to place before the objects being linked to create a
17596
predep_objects=$lt_predep_objects_GCJ
17598
# Dependencies to place after the objects being linked to create a
17600
postdep_objects=$lt_postdep_objects_GCJ
17602
# Dependencies to place before the objects being linked to create a
17604
predeps=$lt_predeps_GCJ
17606
# Dependencies to place after the objects being linked to create a
17608
postdeps=$lt_postdeps_GCJ
17610
# The library search path used internally by the compiler when linking
17611
# a shared library.
17612
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17614
# Method to check whether dependent libraries are shared objects.
17615
deplibs_check_method=$lt_deplibs_check_method
17617
# Command to use when deplibs_check_method == file_magic.
17618
file_magic_cmd=$lt_file_magic_cmd
17620
# Flag that allows shared libraries with undefined symbols to be built.
17621
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17623
# Flag that forces no undefined symbols.
17624
no_undefined_flag=$lt_no_undefined_flag_GCJ
17626
# Commands used to finish a libtool library installation in a directory.
17627
finish_cmds=$lt_finish_cmds
17629
# Same as above, but a single script fragment to be evaled but not shown.
17630
finish_eval=$lt_finish_eval
17632
# Take the output of nm and produce a listing of raw symbols and C names.
17633
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17635
# Transform the output of nm in a proper C declaration
17636
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17638
# Transform the output of nm in a C name address pair
17639
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17641
# This is the shared library runtime path variable.
17642
runpath_var=$runpath_var
17644
# This is the shared library path variable.
17645
shlibpath_var=$shlibpath_var
17647
# Is shlibpath searched before the hard-coded library search path?
17648
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17650
# How to hardcode a shared library path into an executable.
17651
hardcode_action=$hardcode_action_GCJ
17653
# Whether we should hardcode library paths into libraries.
17654
hardcode_into_libs=$hardcode_into_libs
17656
# Flag to hardcode \$libdir into a binary during linking.
17657
# This must work even if \$libdir does not exist.
17658
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17660
# If ld is used when linking, flag to hardcode \$libdir into
17661
# a binary during linking. This must work even if \$libdir does
17663
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17665
# Whether we need a single -rpath flag with a separated argument.
17666
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17668
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17669
# resulting binary.
17670
hardcode_direct=$hardcode_direct_GCJ
17672
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17673
# resulting binary.
17674
hardcode_minus_L=$hardcode_minus_L_GCJ
17676
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17677
# the resulting binary.
17678
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17680
# Set to yes if building a shared library automatically hardcodes DIR into the library
17681
# and all subsequent libraries and executables linked against it.
17682
hardcode_automatic=$hardcode_automatic_GCJ
17684
# Variables whose values should be saved in libtool wrapper scripts and
17685
# restored at relink time.
17686
variables_saved_for_relink="$variables_saved_for_relink"
17688
# Whether libtool must link a program against all its dependency libraries.
17689
link_all_deplibs=$link_all_deplibs_GCJ
17691
# Compile-time system search path for libraries
17692
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17694
# Run-time system search path for libraries
17695
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17697
# Fix the shell variable \$srcfile for the compiler.
17698
fix_srcfile_path="$fix_srcfile_path_GCJ"
17700
# Set to yes if exported symbols are required.
17701
always_export_symbols=$always_export_symbols_GCJ
17703
# The commands to list exported symbols.
17704
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17706
# The commands to extract the exported symbol list from a shared archive.
17707
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17709
# Symbols that should not be listed in the preloaded symbols.
17710
exclude_expsyms=$lt_exclude_expsyms_GCJ
17712
# Symbols that must always be exported.
17713
include_expsyms=$lt_include_expsyms_GCJ
17715
# ### END LIBTOOL TAG CONFIG: $tagname
17721
# If there is no Makefile yet, we rely on a make rule to execute
17722
# `config.status --recheck' to rerun these tests and create the
17723
# libtool script then.
17724
test -f Makefile && make "$ltmain"
17729
ac_cpp='$CPP $CPPFLAGS'
17730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17745
# Source file extension for RC test sources.
17748
# Object file extension for compiled RC test sources.
17752
# Code to be used in simple compile tests
17753
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17755
# Code to be used in simple link tests
17756
lt_simple_link_test_code="$lt_simple_compile_test_code"
17758
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17760
# If no C compiler was specified, use CC.
17763
# Allow CC to be a program name with arguments.
17767
# Allow CC to be a program name with arguments.
17772
lt_cv_prog_compiler_c_o_RC=yes
17774
# The else clause should only fire when bootstrapping the
17775
# libtool distribution, otherwise you forgot to ship ltmain.sh
17776
# with your package, and you will get complaints that there are
17777
# no rules to generate ltmain.sh.
17778
if test -f "$ltmain"; then
17779
# See if we are running on zsh, and set the options which allow our commands through
17780
# without removal of \ escapes.
17781
if test -n "${ZSH_VERSION+set}" ; then
17782
setopt NO_GLOB_SUBST
17784
# Now quote all the things that may contain metacharacters while being
17785
# careful not to overquote the AC_SUBSTed values. We take copies of the
17786
# variables and quote the copies for generation of the libtool script.
17787
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17788
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17789
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17790
deplibs_check_method reload_flag reload_cmds need_locks \
17791
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17792
lt_cv_sys_global_symbol_to_c_name_address \
17793
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17794
old_postinstall_cmds old_postuninstall_cmds \
17798
lt_prog_compiler_wl_RC \
17799
lt_prog_compiler_pic_RC \
17800
lt_prog_compiler_static_RC \
17801
lt_prog_compiler_no_builtin_flag_RC \
17802
export_dynamic_flag_spec_RC \
17803
thread_safe_flag_spec_RC \
17804
whole_archive_flag_spec_RC \
17805
enable_shared_with_static_runtimes_RC \
17806
old_archive_cmds_RC \
17807
old_archive_from_new_cmds_RC \
17808
predep_objects_RC \
17809
postdep_objects_RC \
17812
compiler_lib_search_path_RC \
17814
archive_expsym_cmds_RC \
17815
postinstall_cmds_RC \
17816
postuninstall_cmds_RC \
17817
old_archive_from_expsyms_cmds_RC \
17818
allow_undefined_flag_RC \
17819
no_undefined_flag_RC \
17820
export_symbols_cmds_RC \
17821
hardcode_libdir_flag_spec_RC \
17822
hardcode_libdir_flag_spec_ld_RC \
17823
hardcode_libdir_separator_RC \
17824
hardcode_automatic_RC \
17826
module_expsym_cmds_RC \
17827
lt_cv_prog_compiler_c_o_RC \
17828
exclude_expsyms_RC \
17829
include_expsyms_RC; do
17832
old_archive_cmds_RC | \
17833
old_archive_from_new_cmds_RC | \
17834
archive_cmds_RC | \
17835
archive_expsym_cmds_RC | \
17837
module_expsym_cmds_RC | \
17838
old_archive_from_expsyms_cmds_RC | \
17839
export_symbols_cmds_RC | \
17840
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17841
postinstall_cmds | postuninstall_cmds | \
17842
old_postinstall_cmds | old_postuninstall_cmds | \
17843
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17844
# Double-quote double-evaled strings.
17845
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17848
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17854
*'\$0 --fallback-echo"')
17855
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17861
cat <<__EOF__ >> "$cfgfile"
17862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17866
# Shell to use when invoking shell scripts.
17869
# Whether or not to build shared libraries.
17870
build_libtool_libs=$enable_shared
17872
# Whether or not to build static libraries.
17873
build_old_libs=$enable_static
17875
# Whether or not to add -lc for building shared libraries.
17876
build_libtool_need_lc=$archive_cmds_need_lc_RC
17878
# Whether or not to disallow shared libs when runtime libs are static
17879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17881
# Whether or not to optimize for fast installation.
17882
fast_install=$enable_fast_install
17885
host_alias=$host_alias
17888
# An echo program that does not interpret backslashes.
17893
AR_FLAGS=$lt_AR_FLAGS
17898
# A language-specific compiler.
17901
# Is the compiler the GNU C compiler?
17907
# The linker used to build libraries.
17910
# Whether we need hard or soft links.
17913
# A BSD-compatible nm program.
17916
# A symbol stripping program
17919
# Used to examine libraries when file_magic_cmd begins "file"
17920
MAGIC_CMD=$MAGIC_CMD
17922
# Used on cygwin: DLL creation program.
17925
# Used on cygwin: object dumper.
17928
# Used on cygwin: assembler.
17931
# The name of the directory that contains temporary libtool files.
17934
# How to create reloadable object files.
17935
reload_flag=$lt_reload_flag
17936
reload_cmds=$lt_reload_cmds
17938
# How to pass a linker flag through the compiler.
17939
wl=$lt_lt_prog_compiler_wl_RC
17941
# Object file suffix (normally "o").
17942
objext="$ac_objext"
17944
# Old archive suffix (normally "a").
17947
# Shared library suffix (normally ".so").
17950
# Executable file suffix (normally "").
17953
# Additional compiler flags for building library objects.
17954
pic_flag=$lt_lt_prog_compiler_pic_RC
17957
# What is the maximum length of a command?
17958
max_cmd_len=$lt_cv_sys_max_cmd_len
17960
# Does compiler simultaneously support -c and -o options?
17961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17963
# Must we lock files when doing compilation ?
17964
need_locks=$lt_need_locks
17966
# Do we need the lib prefix for modules?
17967
need_lib_prefix=$need_lib_prefix
17969
# Do we need a version for libraries?
17970
need_version=$need_version
17972
# Whether dlopen is supported.
17973
dlopen_support=$enable_dlopen
17975
# Whether dlopen of programs is supported.
17976
dlopen_self=$enable_dlopen_self
17978
# Whether dlopen of statically linked programs is supported.
17979
dlopen_self_static=$enable_dlopen_self_static
17981
# Compiler flag to prevent dynamic linking.
17982
link_static_flag=$lt_lt_prog_compiler_static_RC
17984
# Compiler flag to turn off builtin functions.
17985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17987
# Compiler flag to allow reflexive dlopens.
17988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17990
# Compiler flag to generate shared objects directly from archives.
17991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17993
# Compiler flag to generate thread-safe objects.
17994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17996
# Library versioning type.
17997
version_type=$version_type
17999
# Format of library name prefix.
18000
libname_spec=$lt_libname_spec
18002
# List of archive names. First name is the real one, the rest are links.
18003
# The last name is the one that the linker finds with -lNAME.
18004
library_names_spec=$lt_library_names_spec
18006
# The coded name of the library, if different from the real name.
18007
soname_spec=$lt_soname_spec
18009
# Commands used to build and install an old-style archive.
18011
old_archive_cmds=$lt_old_archive_cmds_RC
18012
old_postinstall_cmds=$lt_old_postinstall_cmds
18013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18015
# Create an old-style archive from a shared archive.
18016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18018
# Create a temporary old-style archive to link instead of a shared archive.
18019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18021
# Commands used to build and install a shared archive.
18022
archive_cmds=$lt_archive_cmds_RC
18023
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18024
postinstall_cmds=$lt_postinstall_cmds
18025
postuninstall_cmds=$lt_postuninstall_cmds
18027
# Commands used to build a loadable module (assumed same as above if empty)
18028
module_cmds=$lt_module_cmds_RC
18029
module_expsym_cmds=$lt_module_expsym_cmds_RC
18031
# Commands to strip libraries.
18032
old_striplib=$lt_old_striplib
18033
striplib=$lt_striplib
18035
# Dependencies to place before the objects being linked to create a
18037
predep_objects=$lt_predep_objects_RC
18039
# Dependencies to place after the objects being linked to create a
18041
postdep_objects=$lt_postdep_objects_RC
18043
# Dependencies to place before the objects being linked to create a
18045
predeps=$lt_predeps_RC
18047
# Dependencies to place after the objects being linked to create a
18049
postdeps=$lt_postdeps_RC
18051
# The library search path used internally by the compiler when linking
18052
# a shared library.
18053
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18055
# Method to check whether dependent libraries are shared objects.
18056
deplibs_check_method=$lt_deplibs_check_method
18058
# Command to use when deplibs_check_method == file_magic.
18059
file_magic_cmd=$lt_file_magic_cmd
18061
# Flag that allows shared libraries with undefined symbols to be built.
18062
allow_undefined_flag=$lt_allow_undefined_flag_RC
18064
# Flag that forces no undefined symbols.
18065
no_undefined_flag=$lt_no_undefined_flag_RC
18067
# Commands used to finish a libtool library installation in a directory.
18068
finish_cmds=$lt_finish_cmds
18070
# Same as above, but a single script fragment to be evaled but not shown.
18071
finish_eval=$lt_finish_eval
18073
# Take the output of nm and produce a listing of raw symbols and C names.
18074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18076
# Transform the output of nm in a proper C declaration
18077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18079
# Transform the output of nm in a C name address pair
18080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18082
# This is the shared library runtime path variable.
18083
runpath_var=$runpath_var
18085
# This is the shared library path variable.
18086
shlibpath_var=$shlibpath_var
18088
# Is shlibpath searched before the hard-coded library search path?
18089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18091
# How to hardcode a shared library path into an executable.
18092
hardcode_action=$hardcode_action_RC
18094
# Whether we should hardcode library paths into libraries.
18095
hardcode_into_libs=$hardcode_into_libs
18097
# Flag to hardcode \$libdir into a binary during linking.
18098
# This must work even if \$libdir does not exist.
18099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18101
# If ld is used when linking, flag to hardcode \$libdir into
18102
# a binary during linking. This must work even if \$libdir does
18104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18106
# Whether we need a single -rpath flag with a separated argument.
18107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18110
# resulting binary.
18111
hardcode_direct=$hardcode_direct_RC
18113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18114
# resulting binary.
18115
hardcode_minus_L=$hardcode_minus_L_RC
18117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18118
# the resulting binary.
18119
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18121
# Set to yes if building a shared library automatically hardcodes DIR into the library
18122
# and all subsequent libraries and executables linked against it.
18123
hardcode_automatic=$hardcode_automatic_RC
18125
# Variables whose values should be saved in libtool wrapper scripts and
18126
# restored at relink time.
18127
variables_saved_for_relink="$variables_saved_for_relink"
18129
# Whether libtool must link a program against all its dependency libraries.
18130
link_all_deplibs=$link_all_deplibs_RC
18132
# Compile-time system search path for libraries
18133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18135
# Run-time system search path for libraries
18136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18138
# Fix the shell variable \$srcfile for the compiler.
18139
fix_srcfile_path="$fix_srcfile_path_RC"
18141
# Set to yes if exported symbols are required.
18142
always_export_symbols=$always_export_symbols_RC
18144
# The commands to list exported symbols.
18145
export_symbols_cmds=$lt_export_symbols_cmds_RC
18147
# The commands to extract the exported symbol list from a shared archive.
18148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18150
# Symbols that should not be listed in the preloaded symbols.
18151
exclude_expsyms=$lt_exclude_expsyms_RC
18153
# Symbols that must always be exported.
18154
include_expsyms=$lt_include_expsyms_RC
18156
# ### END LIBTOOL TAG CONFIG: $tagname
18162
# If there is no Makefile yet, we rely on a make rule to execute
18163
# `config.status --recheck' to rerun these tests and create the
18164
# libtool script then.
18165
test -f Makefile && make "$ltmain"
18170
ac_cpp='$CPP $CPPFLAGS'
18171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18180
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18181
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18182
{ (exit 1); exit 1; }; }
18186
# Append the new tag name to the list of available tags.
18187
if test -n "$tagname" ; then
18188
available_tags="$available_tags $tagname"
18194
# Now substitute the updated list of available tags.
18195
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18196
mv "${ofile}T" "$ofile"
18200
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18201
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18202
{ (exit 1); exit 1; }; }
18208
# This can be used to rebuild libtool when needed
18209
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18211
# Always use our own libtool.
18212
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18214
# Prevent multiple expansion
18236
ac_config_files="$ac_config_files Makefile"
18237
cat >confcache <<\_ACEOF
18238
# This file is a shell script that caches the results of configure
18239
# tests run on this system so they can be shared between configure
18240
# scripts and configure runs, see configure's option --config-cache.
18241
# It is not useful on other systems. If it contains results you don't
18242
# want to keep, you may remove or edit it.
18244
# config.status only pays attention to the cache file if you give it
18245
# the --recheck option to rerun configure.
18247
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18248
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18249
# following values.
18253
# The following way of writing the cache mishandles newlines in values,
18254
# but we know of no workaround that is simple, portable, and efficient.
18255
# So, don't put newlines in cache variables' values.
18256
# Ultrix sh set writes to stderr and can't be redirected directly,
18257
# and sets the high bit in the cache file unless we assign to the vars.
18260
case `(ac_space=' '; set | grep ac_space) 2>&1` in
18262
# `set' does not quote correctly, so add quotes (double-quote
18263
# substitution turns \\\\ into \\, and sed turns \\ into \).
18266
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18269
# `set' quotes correctly as required by POSIX, so do not add quotes.
18271
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18278
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18280
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18282
if diff $cache_file confcache >/dev/null 2>&1; then :; else
18283
if test -w $cache_file; then
18284
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18285
cat confcache >$cache_file
18287
echo "not updating unwritable cache $cache_file"
18292
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18293
# Let make expand exec_prefix.
18294
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18296
# VPATH may cause trouble with some makes, so we remove $(srcdir),
18297
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18298
# trailing colons and then remove the whole line if VPATH becomes empty
18299
# (actually we leave an empty line to preserve line numbers).
18300
if test "x$srcdir" = x.; then
18301
ac_vpsub='/^[ ]*VPATH[ ]*=/{
18302
s/:*\$(srcdir):*/:/;
18303
s/:*\${srcdir}:*/:/;
18305
s/^\([^=]*=[ ]*\):*/\1/;
18311
# Transform confdefs.h into DEFS.
18312
# Protect against shell expansion while executing Makefile rules.
18313
# Protect against Makefile macro expansion.
18315
# If the first sed substitution is executed (which looks for macros that
18316
# take arguments), then we branch to the quote section. Otherwise,
18317
# look for a macro that doesn't take arguments.
18318
cat >confdef2opt.sed <<\_ACEOF
18321
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
18323
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
18327
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
18333
# We use echo to avoid assuming a particular line-breaking character.
18334
# The extra dot is to prevent the shell from consuming trailing
18335
# line-breaks from the sub-command output. A line-break within
18336
# single-quotes doesn't work because, if this script is created in a
18337
# platform that uses two characters for line-breaks (e.g., DOS), tr
18339
ac_LF_and_DOT=`echo; echo .`
18340
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18341
rm -f confdef2opt.sed
18346
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18347
# 1. Remove the extension, and $U if already installed.
18348
ac_i=`echo "$ac_i" |
18349
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18351
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18352
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18354
LIBOBJS=$ac_libobjs
18356
LTLIBOBJS=$ac_ltlibobjs
18359
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18360
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18361
Usually this means the macro was only invoked conditionally." >&5
18362
echo "$as_me: error: conditional \"AMDEP\" was never defined.
18363
Usually this means the macro was only invoked conditionally." >&2;}
18364
{ (exit 1); exit 1; }; }
18366
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18367
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18368
Usually this means the macro was only invoked conditionally." >&5
18369
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18370
Usually this means the macro was only invoked conditionally." >&2;}
18371
{ (exit 1); exit 1; }; }
18373
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18374
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18375
Usually this means the macro was only invoked conditionally." >&5
18376
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18377
Usually this means the macro was only invoked conditionally." >&2;}
18378
{ (exit 1); exit 1; }; }
18381
: ${CONFIG_STATUS=./config.status}
18382
ac_clean_files_save=$ac_clean_files
18383
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18384
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18385
echo "$as_me: creating $CONFIG_STATUS" >&6;}
18386
cat >$CONFIG_STATUS <<_ACEOF
18388
# Generated by $as_me.
18389
# Run this file to recreate the current configuration.
18390
# Compiler output produced by configure, useful for debugging
18391
# configure, is in config.log if it exists.
18394
ac_cs_recheck=false
18396
SHELL=\${CONFIG_SHELL-$SHELL}
18399
cat >>$CONFIG_STATUS <<\_ACEOF
18400
## --------------------- ##
18401
## M4sh Initialization. ##
18402
## --------------------- ##
18404
# Be Bourne compatible
18405
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18408
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18409
# is contrary to our usage. Disable this feature.
18410
alias -g '${1+"$@"}'='"$@"'
18411
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18415
# Support unset when possible.
18416
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18423
# Work around bugs in pre-3.0 UWIN ksh.
18424
$as_unset ENV MAIL MAILPATH
18431
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18432
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18433
LC_TELEPHONE LC_TIME
18435
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18436
eval $as_var=C; export $as_var
18442
# Required to use basename.
18443
if expr a : '\(a\)' >/dev/null 2>&1; then
18449
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18450
as_basename=basename
18456
# Name of the executable.
18457
as_me=`$as_basename "$0" ||
18458
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18459
X"$0" : 'X\(//\)$' \| \
18460
X"$0" : 'X\(/\)$' \| \
18461
. : '\(.\)' 2>/dev/null ||
18463
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18464
/^X\/\(\/\/\)$/{ s//\1/; q; }
18465
/^X\/\(\/\).*/{ s//\1/; q; }
18469
# PATH needs CR, and LINENO needs CR and PATH.
18470
# Avoid depending upon Character Ranges.
18471
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18472
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18473
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18474
as_cr_digits='0123456789'
18475
as_cr_alnum=$as_cr_Letters$as_cr_digits
18477
# The user is always right.
18478
if test "${PATH_SEPARATOR+set}" != set; then
18479
echo "#! /bin/sh" >conf$$.sh
18480
echo "exit 0" >>conf$$.sh
18482
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18491
as_lineno_1=$LINENO
18492
as_lineno_2=$LINENO
18493
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18494
test "x$as_lineno_1" != "x$as_lineno_2" &&
18495
test "x$as_lineno_3" = "x$as_lineno_2" || {
18496
# Find who we are. Look in the path if we contain no path at all
18499
*[\\/]* ) as_myself=$0 ;;
18500
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501
for as_dir in $PATH
18504
test -z "$as_dir" && as_dir=.
18505
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18510
# We did not find ourselves, most probably we were run as `sh COMMAND'
18511
# in which case we are not to be found in the path.
18512
if test "x$as_myself" = x; then
18515
if test ! -f "$as_myself"; then
18516
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18517
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18518
{ (exit 1); exit 1; }; }
18520
case $CONFIG_SHELL in
18522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18526
test -z "$as_dir" && as_dir=.
18527
for as_base in sh bash ksh sh5; do
18530
if ("$as_dir/$as_base" -c '
18531
as_lineno_1=$LINENO
18532
as_lineno_2=$LINENO
18533
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18534
test "x$as_lineno_1" != "x$as_lineno_2" &&
18535
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18536
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18537
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18538
CONFIG_SHELL=$as_dir/$as_base
18539
export CONFIG_SHELL
18540
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18548
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18549
# uniformly replaced by the line number. The first 'sed' inserts a
18550
# line-number line before each line; the second 'sed' does the real
18551
# work. The second script uses 'N' to pair each line-number line
18552
# with the numbered line, and appends trailing '-' during
18553
# substitution so that $LINENO is not a special case at line end.
18554
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18555
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18556
sed '=' <$as_myself |
18561
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18564
s,^['$as_cr_digits']*\n,,
18565
' >$as_me.lineno &&
18566
chmod +x $as_me.lineno ||
18567
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18568
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18569
{ (exit 1); exit 1; }; }
18571
# Don't try to exec as it changes $[0], causing all sort of problems
18572
# (the dirname of $[0] is not the place where we might find the
18573
# original and so on. Autoconf is especially sensible to this).
18575
# Exit status is that of the last command.
18580
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18581
*c*,-n*) ECHO_N= ECHO_C='
18583
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18584
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18587
if expr a : '\(a\)' >/dev/null 2>&1; then
18593
rm -f conf$$ conf$$.exe conf$$.file
18595
if ln -s conf$$.file conf$$ 2>/dev/null; then
18596
# We could just check for DJGPP; but this test a) works b) is more generic
18597
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18598
if test -f conf$$.exe; then
18599
# Don't use ln at all; we don't have any links
18604
elif ln conf$$.file conf$$ 2>/dev/null; then
18609
rm -f conf$$ conf$$.exe conf$$.file
18611
if mkdir -p . 2>/dev/null; then
18617
as_executable_p="test -f"
18619
# Sed expression to map a string onto a valid CPP name.
18620
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18622
# Sed expression to map a string onto a valid variable name.
18623
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18627
# We need space, tab and new line, in precisely that order.
18637
# Open the log real soon, to keep \$[0] and so on meaningful, and to
18638
# report actual input values of CONFIG_FILES etc. instead of their
18639
# values after options handling. Logging --version etc. is OK.
18643
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18644
## Running $as_me. ##
18649
This file was extended by $as_me, which was
18650
generated by GNU Autoconf 2.57. Invocation command line was
18652
CONFIG_FILES = $CONFIG_FILES
18653
CONFIG_HEADERS = $CONFIG_HEADERS
18654
CONFIG_LINKS = $CONFIG_LINKS
18655
CONFIG_COMMANDS = $CONFIG_COMMANDS
18659
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18663
# Files that config.status was made for.
18664
if test -n "$ac_config_files"; then
18665
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18668
if test -n "$ac_config_headers"; then
18669
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18672
if test -n "$ac_config_links"; then
18673
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18676
if test -n "$ac_config_commands"; then
18677
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18680
cat >>$CONFIG_STATUS <<\_ACEOF
18683
\`$as_me' instantiates files from templates according to the
18684
current configuration.
18686
Usage: $0 [OPTIONS] [FILE]...
18688
-h, --help print this help, then exit
18689
-V, --version print version number, then exit
18690
-q, --quiet do not print progress messages
18691
-d, --debug don't remove temporary files
18692
--recheck update $as_me by reconfiguring in the same conditions
18693
--file=FILE[:TEMPLATE]
18694
instantiate the configuration file FILE
18696
Configuration files:
18699
Configuration commands:
18702
Report bugs to <bug-autoconf@gnu.org>."
18705
cat >>$CONFIG_STATUS <<_ACEOF
18708
configured by $0, generated by GNU Autoconf 2.57,
18709
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18711
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18712
Free Software Foundation, Inc.
18713
This config.status script is free software; the Free Software Foundation
18714
gives unlimited permission to copy, distribute and modify it."
18719
cat >>$CONFIG_STATUS <<\_ACEOF
18720
# If no file are specified by the user, then we need to provide default
18721
# value. By we need to know if files were specified by the user.
18727
ac_option=`expr "x$1" : 'x\([^=]*\)='`
18728
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18736
*) # This is not an option, so the user has probably given explicit
18739
ac_need_defaults=false;;
18743
# Handling of the options.
18745
cat >>$CONFIG_STATUS <<\_ACEOF
18746
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18748
--version | --vers* | -V )
18749
echo "$ac_cs_version"; exit 0 ;;
18751
# Conflict between --help and --header
18752
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
18753
Try \`$0 --help' for more information." >&5
18754
echo "$as_me: error: ambiguous option: $1
18755
Try \`$0 --help' for more information." >&2;}
18756
{ (exit 1); exit 1; }; };;
18757
--help | --hel | -h )
18758
echo "$ac_cs_usage"; exit 0 ;;
18759
--debug | --d* | -d )
18761
--file | --fil | --fi | --f )
18763
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18764
ac_need_defaults=false;;
18765
--header | --heade | --head | --hea )
18767
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18768
ac_need_defaults=false;;
18769
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
18770
| -silent | --silent | --silen | --sile | --sil | --si | --s)
18773
# This is an error.
18774
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18775
Try \`$0 --help' for more information." >&5
18776
echo "$as_me: error: unrecognized option: $1
18777
Try \`$0 --help' for more information." >&2;}
18778
{ (exit 1); exit 1; }; } ;;
18780
*) ac_config_targets="$ac_config_targets $1" ;;
18786
ac_configure_extra_args=
18788
if $ac_cs_silent; then
18790
ac_configure_extra_args="$ac_configure_extra_args --silent"
18794
cat >>$CONFIG_STATUS <<_ACEOF
18795
if \$ac_cs_recheck; then
18796
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18797
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18802
cat >>$CONFIG_STATUS <<_ACEOF
18804
# INIT-COMMANDS section.
18807
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18813
cat >>$CONFIG_STATUS <<\_ACEOF
18814
for ac_config_target in $ac_config_targets
18816
case "$ac_config_target" in
18817
# Handling of arguments.
18818
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18819
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18820
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18821
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18822
{ (exit 1); exit 1; }; };;
18826
# If the user did not use the arguments to specify the items to instantiate,
18827
# then the envvar interface is used. Set only those that are not.
18828
# We use the long form for the default assignment because of an extremely
18829
# bizarre bug on SunOS 4.1.3.
18830
if $ac_need_defaults; then
18831
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18832
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18835
# Have a temporary directory for convenience. Make it in the build tree
18836
# simply because there is no reason to put it here, and in addition,
18837
# creating and moving files from /tmp can sometimes cause problems.
18838
# Create a temporary directory, and hook for its removal unless debugging.
18841
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18842
trap '{ (exit 1); exit 1; }' 1 2 13 15
18845
# Create a (secure) tmp directory for tmp files.
18848
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18849
test -n "$tmp" && test -d "$tmp"
18852
tmp=./confstat$$-$RANDOM
18853
(umask 077 && mkdir $tmp)
18856
echo "$me: cannot create a temporary directory in ." >&2
18857
{ (exit 1); exit 1; }
18862
cat >>$CONFIG_STATUS <<_ACEOF
18865
# CONFIG_FILES section.
18868
# No need to generate the scripts if there are no CONFIG_FILES.
18869
# This happens for instance when ./config.status config.h
18870
if test -n "\$CONFIG_FILES"; then
18871
# Protect against being on the right side of a sed subst in config.status.
18872
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18873
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18874
s,@SHELL@,$SHELL,;t t
18875
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18876
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18877
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18878
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18879
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18880
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18881
s,@exec_prefix@,$exec_prefix,;t t
18882
s,@prefix@,$prefix,;t t
18883
s,@program_transform_name@,$program_transform_name,;t t
18884
s,@bindir@,$bindir,;t t
18885
s,@sbindir@,$sbindir,;t t
18886
s,@libexecdir@,$libexecdir,;t t
18887
s,@datadir@,$datadir,;t t
18888
s,@sysconfdir@,$sysconfdir,;t t
18889
s,@sharedstatedir@,$sharedstatedir,;t t
18890
s,@localstatedir@,$localstatedir,;t t
18891
s,@libdir@,$libdir,;t t
18892
s,@includedir@,$includedir,;t t
18893
s,@oldincludedir@,$oldincludedir,;t t
18894
s,@infodir@,$infodir,;t t
18895
s,@mandir@,$mandir,;t t
18896
s,@build_alias@,$build_alias,;t t
18897
s,@host_alias@,$host_alias,;t t
18898
s,@target_alias@,$target_alias,;t t
18899
s,@DEFS@,$DEFS,;t t
18900
s,@ECHO_C@,$ECHO_C,;t t
18901
s,@ECHO_N@,$ECHO_N,;t t
18902
s,@ECHO_T@,$ECHO_T,;t t
18903
s,@LIBS@,$LIBS,;t t
18904
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18905
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18906
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18907
s,@CYGPATH_W@,$CYGPATH_W,;t t
18908
s,@PACKAGE@,$PACKAGE,;t t
18909
s,@VERSION@,$VERSION,;t t
18910
s,@ACLOCAL@,$ACLOCAL,;t t
18911
s,@AUTOCONF@,$AUTOCONF,;t t
18912
s,@AUTOMAKE@,$AUTOMAKE,;t t
18913
s,@AUTOHEADER@,$AUTOHEADER,;t t
18914
s,@MAKEINFO@,$MAKEINFO,;t t
18915
s,@AMTAR@,$AMTAR,;t t
18916
s,@install_sh@,$install_sh,;t t
18917
s,@STRIP@,$STRIP,;t t
18918
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18919
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18921
s,@SET_MAKE@,$SET_MAKE,;t t
18922
s,@am__leading_dot@,$am__leading_dot,;t t
18924
s,@CFLAGS@,$CFLAGS,;t t
18925
s,@LDFLAGS@,$LDFLAGS,;t t
18926
s,@CPPFLAGS@,$CPPFLAGS,;t t
18927
s,@ac_ct_CC@,$ac_ct_CC,;t t
18928
s,@EXEEXT@,$EXEEXT,;t t
18929
s,@OBJEXT@,$OBJEXT,;t t
18930
s,@DEPDIR@,$DEPDIR,;t t
18931
s,@am__include@,$am__include,;t t
18932
s,@am__quote@,$am__quote,;t t
18933
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18934
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18935
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18936
s,@CCDEPMODE@,$CCDEPMODE,;t t
18937
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18938
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18939
s,@build@,$build,;t t
18940
s,@build_cpu@,$build_cpu,;t t
18941
s,@build_vendor@,$build_vendor,;t t
18942
s,@build_os@,$build_os,;t t
18943
s,@host@,$host,;t t
18944
s,@host_cpu@,$host_cpu,;t t
18945
s,@host_vendor@,$host_vendor,;t t
18946
s,@host_os@,$host_os,;t t
18947
s,@EGREP@,$EGREP,;t t
18948
s,@LN_S@,$LN_S,;t t
18949
s,@ECHO@,$ECHO,;t t
18951
s,@ac_ct_AR@,$ac_ct_AR,;t t
18952
s,@RANLIB@,$RANLIB,;t t
18953
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18956
s,@CXXFLAGS@,$CXXFLAGS,;t t
18957
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18958
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18959
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18960
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18961
s,@CXXCPP@,$CXXCPP,;t t
18963
s,@FFLAGS@,$FFLAGS,;t t
18964
s,@ac_ct_F77@,$ac_ct_F77,;t t
18965
s,@LIBTOOL@,$LIBTOOL,;t t
18966
s,@global_top_auxdir@,$global_top_auxdir,;t t
18967
s,@LIBOBJS@,$LIBOBJS,;t t
18968
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18973
cat >>$CONFIG_STATUS <<\_ACEOF
18974
# Split the substitutions into bite-sized pieces for seds with
18975
# small command number limits, like on Digital OSF/1 and HP-UX.
18976
ac_max_sed_lines=48
18977
ac_sed_frag=1 # Number of current file.
18978
ac_beg=1 # First line for current file.
18979
ac_end=$ac_max_sed_lines # Line after last line for current file.
18982
while $ac_more_lines; do
18983
if test $ac_beg -gt 1; then
18984
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18986
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18988
if test ! -s $tmp/subs.frag; then
18989
ac_more_lines=false
18991
# The purpose of the label and of the branching condition is to
18992
# speed up the sed processing (if there are no `@' at all, there
18993
# is no need to browse any of the substitutions).
18994
# These are the two extra sed commands mentioned above.
18996
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18997
if test -z "$ac_sed_cmds"; then
18998
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19000
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19002
ac_sed_frag=`expr $ac_sed_frag + 1`
19004
ac_end=`expr $ac_end + $ac_max_sed_lines`
19007
if test -z "$ac_sed_cmds"; then
19010
fi # test -n "$CONFIG_FILES"
19013
cat >>$CONFIG_STATUS <<\_ACEOF
19014
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19015
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19017
- | *:- | *:-:* ) # input from stdin
19019
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19020
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19021
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19022
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19023
* ) ac_file_in=$ac_file.in ;;
19026
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19027
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19028
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19029
X"$ac_file" : 'X\(//\)[^/]' \| \
19030
X"$ac_file" : 'X\(//\)$' \| \
19031
X"$ac_file" : 'X\(/\)' \| \
19032
. : '\(.\)' 2>/dev/null ||
19034
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19035
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19036
/^X\(\/\/\)$/{ s//\1/; q; }
19037
/^X\(\/\).*/{ s//\1/; q; }
19039
{ if $as_mkdir_p; then
19044
while test ! -d "$as_dir"; do
19045
as_dirs="$as_dir $as_dirs"
19046
as_dir=`(dirname "$as_dir") 2>/dev/null ||
19047
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19048
X"$as_dir" : 'X\(//\)[^/]' \| \
19049
X"$as_dir" : 'X\(//\)$' \| \
19050
X"$as_dir" : 'X\(/\)' \| \
19051
. : '\(.\)' 2>/dev/null ||
19053
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19054
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19055
/^X\(\/\/\)$/{ s//\1/; q; }
19056
/^X\(\/\).*/{ s//\1/; q; }
19059
test ! -n "$as_dirs" || mkdir $as_dirs
19060
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19061
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19062
{ (exit 1); exit 1; }; }; }
19066
if test "$ac_dir" != .; then
19067
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19068
# A "../" for each directory in $ac_dir_suffix.
19069
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19071
ac_dir_suffix= ac_top_builddir=
19075
.) # No --srcdir option. We are building in place.
19077
if test -z "$ac_top_builddir"; then
19080
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19082
[\\/]* | ?:[\\/]* ) # Absolute path.
19083
ac_srcdir=$srcdir$ac_dir_suffix;
19084
ac_top_srcdir=$srcdir ;;
19085
*) # Relative path.
19086
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19087
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19089
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19091
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19092
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19093
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19094
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19098
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19099
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19102
if test x"$ac_file" != x-; then
19103
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19104
echo "$as_me: creating $ac_file" >&6;}
19107
# Let's still pretend it is `configure' which instantiates (i.e., don't
19108
# use $as_me), people would be surprised to read:
19109
# /* config.h. Generated by config.status. */
19110
if test x"$ac_file" = x-; then
19113
configure_input="$ac_file. "
19115
configure_input=$configure_input"Generated from `echo $ac_file_in |
19116
sed 's,.*/,,'` by configure."
19118
# First look for the input files in the build tree, otherwise in the
19120
ac_file_inputs=`IFS=:
19121
for f in $ac_file_in; do
19123
-) echo $tmp/stdin ;;
19125
# Absolute (can't be DOS-style, as IFS=:)
19126
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19127
echo "$as_me: error: cannot find input file: $f" >&2;}
19128
{ (exit 1); exit 1; }; }
19131
if test -f "$f"; then
19134
elif test -f "$srcdir/$f"; then
19139
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19140
echo "$as_me: error: cannot find input file: $f" >&2;}
19141
{ (exit 1); exit 1; }; }
19144
done` || { (exit 1); exit 1; }
19146
cat >>$CONFIG_STATUS <<_ACEOF
19150
cat >>$CONFIG_STATUS <<\_ACEOF
19152
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19153
s,@configure_input@,$configure_input,;t t
19154
s,@srcdir@,$ac_srcdir,;t t
19155
s,@abs_srcdir@,$ac_abs_srcdir,;t t
19156
s,@top_srcdir@,$ac_top_srcdir,;t t
19157
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19158
s,@builddir@,$ac_builddir,;t t
19159
s,@abs_builddir@,$ac_abs_builddir,;t t
19160
s,@top_builddir@,$ac_top_builddir,;t t
19161
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19162
s,@INSTALL@,$ac_INSTALL,;t t
19163
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19165
if test x"$ac_file" != x-; then
19166
mv $tmp/out $ac_file
19174
cat >>$CONFIG_STATUS <<\_ACEOF
19177
# CONFIG_COMMANDS section.
19179
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19180
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19181
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19182
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19183
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19184
X"$ac_dest" : 'X\(//\)[^/]' \| \
19185
X"$ac_dest" : 'X\(//\)$' \| \
19186
X"$ac_dest" : 'X\(/\)' \| \
19187
. : '\(.\)' 2>/dev/null ||
19189
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19190
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19191
/^X\(\/\/\)$/{ s//\1/; q; }
19192
/^X\(\/\).*/{ s//\1/; q; }
19196
if test "$ac_dir" != .; then
19197
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19198
# A "../" for each directory in $ac_dir_suffix.
19199
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19201
ac_dir_suffix= ac_top_builddir=
19205
.) # No --srcdir option. We are building in place.
19207
if test -z "$ac_top_builddir"; then
19210
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19212
[\\/]* | ?:[\\/]* ) # Absolute path.
19213
ac_srcdir=$srcdir$ac_dir_suffix;
19214
ac_top_srcdir=$srcdir ;;
19215
*) # Relative path.
19216
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19217
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19219
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19221
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19222
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19223
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19224
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19227
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19228
echo "$as_me: executing $ac_dest commands" >&6;}
19230
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19231
# Strip MF so we end up with the name of the file.
19232
mf=`echo "$mf" | sed -e 's/:.*$//'`
19233
# Check whether this is an Automake generated Makefile or not.
19234
# We used to match only the files named `Makefile.in', but
19235
# some people rename them; so instead we look at the file content.
19236
# Grep'ing the first line is not enough: some people post-process
19237
# each Makefile.in and add a new line on top of each file to say so.
19238
# So let's grep whole file.
19239
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19240
dirpart=`(dirname "$mf") 2>/dev/null ||
19241
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19242
X"$mf" : 'X\(//\)[^/]' \| \
19243
X"$mf" : 'X\(//\)$' \| \
19244
X"$mf" : 'X\(/\)' \| \
19245
. : '\(.\)' 2>/dev/null ||
19247
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19248
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19249
/^X\(\/\/\)$/{ s//\1/; q; }
19250
/^X\(\/\).*/{ s//\1/; q; }
19255
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19256
# Extract the definition of DEP_FILES from the Makefile without
19258
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19259
test -z "$DEPDIR" && continue
19260
# When using ansi2knr, U may be empty or an underscore; expand it
19261
U=`sed -n -e '/^U = / s///p' < "$mf"`
19262
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19263
# We invoke sed twice because it is the simplest approach to
19264
# changing $(DEPDIR) to its actual value in the expansion.
19265
for file in `sed -n -e '
19266
/^DEP_FILES = .*\\\\$/ {
19275
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19276
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19277
# Make sure the directory exists.
19278
test -f "$dirpart/$file" && continue
19279
fdir=`(dirname "$file") 2>/dev/null ||
19280
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281
X"$file" : 'X\(//\)[^/]' \| \
19282
X"$file" : 'X\(//\)$' \| \
19283
X"$file" : 'X\(/\)' \| \
19284
. : '\(.\)' 2>/dev/null ||
19286
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19287
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19288
/^X\(\/\/\)$/{ s//\1/; q; }
19289
/^X\(\/\).*/{ s//\1/; q; }
19291
{ if $as_mkdir_p; then
19292
mkdir -p $dirpart/$fdir
19294
as_dir=$dirpart/$fdir
19296
while test ! -d "$as_dir"; do
19297
as_dirs="$as_dir $as_dirs"
19298
as_dir=`(dirname "$as_dir") 2>/dev/null ||
19299
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19300
X"$as_dir" : 'X\(//\)[^/]' \| \
19301
X"$as_dir" : 'X\(//\)$' \| \
19302
X"$as_dir" : 'X\(/\)' \| \
19303
. : '\(.\)' 2>/dev/null ||
19305
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19306
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19307
/^X\(\/\/\)$/{ s//\1/; q; }
19308
/^X\(\/\).*/{ s//\1/; q; }
19311
test ! -n "$as_dirs" || mkdir $as_dirs
19312
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19313
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19314
{ (exit 1); exit 1; }; }; }
19316
# echo "creating $dirpart/$file"
19317
echo '# dummy' > "$dirpart/$file"
19325
cat >>$CONFIG_STATUS <<\_ACEOF
19327
{ (exit 0); exit 0; }
19329
chmod +x $CONFIG_STATUS
19330
ac_clean_files=$ac_clean_files_save
19333
# configure is writing to config.log, and then calls config.status.
19334
# config.status does its own redirection, appending to config.log.
19335
# Unfortunately, on DOS this fails, as config.log is still kept open
19336
# by configure, so config.status won't be able to write to it; its
19337
# output is simply discarded. So we exec the FD to /dev/null,
19338
# effectively closing config.log, so it can be properly (re)opened and
19339
# appended to by config.status. When coming back to configure, we
19340
# need to make the FD available again.
19341
if test "$no_create" != yes; then
19343
ac_config_status_args=
19344
test "$silent" = yes &&
19345
ac_config_status_args="$ac_config_status_args --quiet"
19347
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19349
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19350
# would make configure fail if this is the last instruction.
19351
$ac_cs_success || { (exit 1); exit 1; }