7312
cygwin* | mingw* | pw32* | os2*)
7313
cat <<'EOF' >> "${ofile}T"
7314
# This is a source program that is used to create dlls on Windows
7315
# Don't remove nor modify the starting and closing comments
7316
# /* ltdll.c starts here */
7317
# #define WIN32_LEAN_AND_MEAN
7318
# #include <windows.h>
7319
# #undef WIN32_LEAN_AND_MEAN
7320
# #include <stdio.h>
7322
# #ifndef __CYGWIN__
7323
# # ifdef __CYGWIN32__
7324
# # define __CYGWIN__ __CYGWIN32__
7328
# #ifdef __cplusplus
7331
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7332
# #ifdef __cplusplus
7337
# #include <cygwin/cygwin_dll.h>
7338
# DECLARE_CYGWIN_DLL( DllMain );
7340
# HINSTANCE __hDllInstance_base;
7343
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7345
# __hDllInstance_base = hInst;
7348
# /* ltdll.c ends here */
7349
# This is a source program that is used to create import libraries
7350
# on Windows for dlls which lack them. Don't remove nor modify the
7351
# starting and closing comments
7352
# /* impgen.c starts here */
7353
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7355
# This file is part of GNU libtool.
7357
# This program is free software; you can redistribute it and/or modify
7358
# it under the terms of the GNU General Public License as published by
7359
# the Free Software Foundation; either version 2 of the License, or
7360
# (at your option) any later version.
7362
# This program is distributed in the hope that it will be useful,
7363
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7364
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7365
# GNU General Public License for more details.
7367
# You should have received a copy of the GNU General Public License
7368
# along with this program; if not, write to the Free Software
7369
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7372
# #include <stdio.h> /* for printf() */
7373
# #include <unistd.h> /* for open(), lseek(), read() */
7374
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7375
# #include <string.h> /* for strdup() */
7377
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7379
# #define O_BINARY 0
7382
# static unsigned int
7383
# pe_get16 (fd, offset)
7387
# unsigned char b[2];
7388
# lseek (fd, offset, SEEK_SET);
7390
# return b[0] + (b[1]<<8);
7393
# static unsigned int
7394
# pe_get32 (fd, offset)
7398
# unsigned char b[4];
7399
# lseek (fd, offset, SEEK_SET);
7401
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7404
# static unsigned int
7408
# unsigned char *b = ptr;
7409
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7418
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7419
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7420
# unsigned long name_rvas, nexp;
7421
# unsigned char *expdata, *erva;
7422
# char *filename, *dll_name;
7424
# filename = argv[1];
7426
# dll = open(filename, O_RDONLY|O_BINARY);
7430
# dll_name = filename;
7432
# for (i=0; filename[i]; i++)
7433
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7434
# dll_name = filename + i +1;
7436
# pe_header_offset = pe_get32 (dll, 0x3c);
7437
# opthdr_ofs = pe_header_offset + 4 + 20;
7438
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7440
# if (num_entries < 1) /* no exports */
7443
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7444
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7445
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7446
# secptr = (pe_header_offset + 4 + 20 +
7447
# pe_get16 (dll, pe_header_offset + 4 + 16));
7450
# for (i = 0; i < nsections; i++)
7453
# unsigned long secptr1 = secptr + 40 * i;
7454
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7455
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7456
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7457
# lseek(dll, secptr1, SEEK_SET);
7458
# read(dll, sname, 8);
7459
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7461
# expptr = fptr + (export_rva - vaddr);
7462
# if (export_rva + export_size > vaddr + vsize)
7463
# export_size = vsize - (export_rva - vaddr);
7468
# expdata = (unsigned char*)malloc(export_size);
7469
# lseek (dll, expptr, SEEK_SET);
7470
# read (dll, expdata, export_size);
7471
# erva = expdata - export_rva;
7473
# nexp = pe_as32 (expdata+24);
7474
# name_rvas = pe_as32 (expdata+32);
7476
# printf ("EXPORTS\n");
7477
# for (i = 0; i<nexp; i++)
7479
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7480
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7485
# /* impgen.c ends here */
7491
9134
# We use sed instead of cat because bash on DJGPP gets confused if
7492
9135
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7493
9136
# text mode, it properly converts lines to CR/LF. This bash problem
7494
9137
# is reportedly fixed, but why not run on old versions too?
7495
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9138
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7497
mv -f "${ofile}T" "$ofile" || \
7498
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9140
mv -f "$cfgfile" "$ofile" || \
9141
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7499
9142
chmod +x "$ofile"
9145
# If there is no Makefile yet, we rely on a make rule to execute
9146
# `config.status --recheck' to rerun these tests and create the
9147
# libtool script then.
9148
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9149
if test -f "$ltmain_in"; then
9150
test -f Makefile && make "$ltmain"
9156
ac_cpp='$CPP $CPPFLAGS'
9157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9164
# Check whether --with-tags or --without-tags was given.
9165
if test "${with_tags+set}" = set; then
9166
withval="$with_tags"
9170
if test -f "$ltmain" && test -n "$tagnames"; then
9171
if test ! -f "${ofile}"; then
9172
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9173
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9176
if test -z "$LTCC"; then
9177
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9178
if test -z "$LTCC"; then
9179
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9180
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9182
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9183
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9187
# Extract list of available tagged configurations in $ofile.
9188
# Note that this assumes the entire list is on one line.
9189
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9191
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9192
for tagname in $tagnames; do
9194
# Check whether tagname contains only valid characters
9195
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9197
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9198
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9199
{ (exit 1); exit 1; }; }
9203
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9205
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9206
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9207
{ (exit 1); exit 1; }; }
9210
# Update the list of available tags.
9211
if test -n "$tagname"; then
9212
echo appending configuration tag \"$tagname\" to $ofile
9216
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9217
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9218
(test "X$CXX" != "Xg++"))) ; then
9220
ac_cpp='$CXXCPP $CPPFLAGS'
9221
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9222
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9223
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9228
archive_cmds_need_lc_CXX=no
9229
allow_undefined_flag_CXX=
9230
always_export_symbols_CXX=no
9231
archive_expsym_cmds_CXX=
9232
export_dynamic_flag_spec_CXX=
9233
hardcode_direct_CXX=no
9234
hardcode_libdir_flag_spec_CXX=
9235
hardcode_libdir_flag_spec_ld_CXX=
9236
hardcode_libdir_separator_CXX=
9237
hardcode_minus_L_CXX=no
9238
hardcode_automatic_CXX=no
9240
module_expsym_cmds_CXX=
9241
link_all_deplibs_CXX=unknown
9242
old_archive_cmds_CXX=$old_archive_cmds
9243
no_undefined_flag_CXX=
9244
whole_archive_flag_spec_CXX=
9245
enable_shared_with_static_runtimes_CXX=no
9247
# Dependencies to place before and after the object being linked:
9249
postdep_objects_CXX=
9252
compiler_lib_search_path_CXX=
9254
# Source file extension for C++ test sources.
9257
# Object file extension for compiled C++ test sources.
9261
# Code to be used in simple compile tests
9262
lt_simple_compile_test_code="int some_variable = 0;\n"
9264
# Code to be used in simple link tests
9265
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9267
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9269
# If no C compiler was specified, use CC.
9272
# Allow CC to be a program name with arguments.
9276
# Allow CC to be a program name with arguments.
9281
lt_save_with_gnu_ld=$with_gnu_ld
9282
lt_save_path_LD=$lt_cv_path_LD
9283
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9284
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9286
unset lt_cv_prog_gnu_ld
9288
if test -n "${lt_cv_path_LDCXX+set}"; then
9289
lt_cv_path_LD=$lt_cv_path_LDCXX
9293
test -z "${LDCXX+set}" || LD=$LDCXX
9297
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9299
# We don't want -fno-exception wen compiling C++ code, so set the
9300
# no_builtin_flag separately
9301
if test "$GXX" = yes; then
9302
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9304
lt_prog_compiler_no_builtin_flag_CXX=
9307
if test "$GXX" = yes; then
9308
# Set up default GNU C++ configuration
9311
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9312
if test "${with_gnu_ld+set}" = set; then
9313
withval="$with_gnu_ld"
9314
test "$withval" = no || with_gnu_ld=yes
9319
if test "$GCC" = yes; then
9320
# Check if gcc -print-prog-name=ld gives a path.
9321
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9322
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9325
# gcc leaves a trailing carriage return which upsets mingw
9326
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9328
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9331
# Accept absolute paths.
9333
re_direlt='/[^/][^/]*/\.\./'
9334
# Canonicalize the pathname of ld
9335
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9336
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9337
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9339
test -z "$LD" && LD="$ac_prog"
9342
# If it fails, then pretend we aren't using GCC.
9346
# If it is relative, then search for the first ld in PATH.
9350
elif test "$with_gnu_ld" = yes; then
9351
echo "$as_me:$LINENO: checking for GNU ld" >&5
9352
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9354
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9355
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9357
if test "${lt_cv_path_LD+set}" = set; then
9358
echo $ECHO_N "(cached) $ECHO_C" >&6
9360
if test -z "$LD"; then
9361
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9362
for ac_dir in $PATH; do
9364
test -z "$ac_dir" && ac_dir=.
9365
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9366
lt_cv_path_LD="$ac_dir/$ac_prog"
9367
# Check to see if the program is GNU ld. I'd rather use --version,
9368
# but apparently some GNU ld's only accept -v.
9369
# Break only if it was the GNU/non-GNU ld that we prefer.
9370
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9371
*GNU* | *'with BFD'*)
9372
test "$with_gnu_ld" != no && break
9375
test "$with_gnu_ld" != yes && break
9382
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9387
if test -n "$LD"; then
9388
echo "$as_me:$LINENO: result: $LD" >&5
9389
echo "${ECHO_T}$LD" >&6
9391
echo "$as_me:$LINENO: result: no" >&5
9392
echo "${ECHO_T}no" >&6
9394
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9395
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9396
{ (exit 1); exit 1; }; }
9397
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9398
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9399
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9400
echo $ECHO_N "(cached) $ECHO_C" >&6
9402
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9403
case `$LD -v 2>&1 </dev/null` in
9404
*GNU* | *'with BFD'*)
9405
lt_cv_prog_gnu_ld=yes
9408
lt_cv_prog_gnu_ld=no
9412
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9413
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9414
with_gnu_ld=$lt_cv_prog_gnu_ld
9418
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9419
# archiving commands below assume that GNU ld is being used.
9420
if test "$with_gnu_ld" = yes; then
9421
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422
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'
9424
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9425
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9427
# If archive_cmds runs LD, not CC, wlarc should be empty
9428
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9429
# investigate it a little bit more. (MM)
9432
# ancient GNU ld didn't support --whole-archive et. al.
9433
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9434
grep 'no-whole-archive' > /dev/null; then
9435
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9437
whole_archive_flag_spec_CXX=
9443
# A generic and very simple default shared library creation
9444
# command for GNU C++ for the case where it uses the native
9445
# linker, instead of GNU ld. If possible, this setting should
9446
# overridden to take advantage of the native linker features on
9447
# the platform it is being used on.
9448
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9451
# Commands to make compiler produce verbose output that lists
9452
# what "hidden" libraries, object files and flags are used when
9453
# linking a shared library.
9454
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9462
# PORTME: fill in a description of your system's C++ link characteristics
9463
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9468
# FIXME: insert proper C++ library support
9472
if test "$host_cpu" = ia64; then
9473
# On IA64, the linker does run time linking by default, so we don't
9474
# have to do anything special.
9475
aix_use_runtimelinking=no
9476
exp_sym_flag='-Bexport'
9479
aix_use_runtimelinking=no
9481
# Test if we are trying to use run time linking or normal
9482
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9483
# need to do runtime linking.
9484
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9485
for ld_flag in $LDFLAGS; do
9488
aix_use_runtimelinking=yes
9495
exp_sym_flag='-bexport'
9496
no_entry_flag='-bnoentry'
9499
# When large executables or shared objects are built, AIX ld can
9500
# have problems creating the table of contents. If linking a library
9501
# or program results in "error TOC overflow" add -mminimal-toc to
9502
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9503
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9506
hardcode_direct_CXX=yes
9507
hardcode_libdir_separator_CXX=':'
9508
link_all_deplibs_CXX=yes
9510
if test "$GXX" = yes; then
9511
case $host_os in aix4.[012]|aix4.[012].*)
9512
# We only want to do this on AIX 4.2 and lower, the check
9513
# below for broken collect2 doesn't work under 4.3+
9514
collect2name=`${CC} -print-prog-name=collect2`
9515
if test -f "$collect2name" && \
9516
strings "$collect2name" | grep resolve_lib_name >/dev/null
9518
# We have reworked collect2
9519
hardcode_direct_CXX=yes
9521
# We have old collect2
9522
hardcode_direct_CXX=unsupported
9523
# It fails to find uninstalled libraries when the uninstalled
9524
# path is not listed in the libpath. Setting hardcode_minus_L
9525
# to unsupported forces relinking
9526
hardcode_minus_L_CXX=yes
9527
hardcode_libdir_flag_spec_CXX='-L$libdir'
9528
hardcode_libdir_separator_CXX=
9531
shared_flag='-shared'
9532
if test "$aix_use_runtimelinking" = yes; then
9533
shared_flag="$shared_flag "'${wl}-G'
9537
if test "$host_cpu" = ia64; then
9538
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539
# chokes on -Wl,-G. The following line is correct:
9542
if test "$aix_use_runtimelinking" = yes; then
9543
shared_flag='${wl}-G'
9545
shared_flag='${wl}-bM:SRE'
9550
# It seems that -bexpall does not export symbols beginning with
9551
# underscore (_), so it is better to generate a list of symbols to export.
9552
always_export_symbols_CXX=yes
9553
if test "$aix_use_runtimelinking" = yes; then
9554
# Warning - without using the other runtime loading flags (-brtl),
9555
# -berok will link without error, but may produce a broken library.
9556
allow_undefined_flag_CXX='-berok'
9557
# Determine the default libpath from the value encoded in an empty executable.
9558
cat >conftest.$ac_ext <<_ACEOF
9561
cat confdefs.h >>conftest.$ac_ext
9562
cat >>conftest.$ac_ext <<_ACEOF
9563
/* end confdefs.h. */
9573
rm -f conftest.$ac_objext conftest$ac_exeext
9574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575
(eval $ac_link) 2>conftest.er1
9577
grep -v '^ *+' conftest.er1 >conftest.err
9579
cat conftest.err >&5
9580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581
(exit $ac_status); } &&
9582
{ ac_try='test -z "$ac_cxx_werror_flag"
9583
|| test ! -s conftest.err'
9584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588
(exit $ac_status); }; } &&
9589
{ ac_try='test -s conftest$ac_exeext'
9590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594
(exit $ac_status); }; }; then
9596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9598
# Check for a 64-bit object if we didn't find anything.
9599
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; }
9602
echo "$as_me: failed program was:" >&5
9603
sed 's/^/| /' conftest.$ac_ext >&5
9606
rm -f conftest.err conftest.$ac_objext \
9607
conftest$ac_exeext conftest.$ac_ext
9608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9610
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9612
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"
9614
if test "$host_cpu" = ia64; then
9615
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9616
allow_undefined_flag_CXX="-z nodefs"
9617
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"
9619
# Determine the default libpath from the value encoded in an empty executable.
9620
cat >conftest.$ac_ext <<_ACEOF
9623
cat confdefs.h >>conftest.$ac_ext
9624
cat >>conftest.$ac_ext <<_ACEOF
9625
/* end confdefs.h. */
9635
rm -f conftest.$ac_objext conftest$ac_exeext
9636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
(eval $ac_link) 2>conftest.er1
9639
grep -v '^ *+' conftest.er1 >conftest.err
9641
cat conftest.err >&5
9642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643
(exit $ac_status); } &&
9644
{ ac_try='test -z "$ac_cxx_werror_flag"
9645
|| test ! -s conftest.err'
9646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650
(exit $ac_status); }; } &&
9651
{ ac_try='test -s conftest$ac_exeext'
9652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656
(exit $ac_status); }; }; then
9658
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9660
# Check for a 64-bit object if we didn't find anything.
9661
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; }
9664
echo "$as_me: failed program was:" >&5
9665
sed 's/^/| /' conftest.$ac_ext >&5
9668
rm -f conftest.err conftest.$ac_objext \
9669
conftest$ac_exeext conftest.$ac_ext
9670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9673
# Warning - without using the other run time loading flags,
9674
# -berok will link without error, but may produce a broken library.
9675
no_undefined_flag_CXX=' ${wl}-bernotok'
9676
allow_undefined_flag_CXX=' ${wl}-berok'
9677
# -bexpall does not export symbols beginning with underscore (_)
9678
always_export_symbols_CXX=yes
9679
# Exported symbols can be pulled into shared objects from archives
9680
whole_archive_flag_spec_CXX=' '
9681
archive_cmds_need_lc_CXX=yes
9682
# This is similar to how AIX traditionally builds it's shared libraries.
9683
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'
9688
case $cc_basename in
9690
# FIXME: insert proper C++ library support
9697
cygwin* | mingw* | pw32*)
9698
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9699
# as there is no search path for DLLs.
9700
hardcode_libdir_flag_spec_CXX='-L$libdir'
9701
allow_undefined_flag_CXX=unsupported
9702
always_export_symbols_CXX=no
9703
enable_shared_with_static_runtimes_CXX=yes
9705
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9706
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'
9707
# If the export-symbols file already is a .def file (1st line
9708
# is EXPORTS), use it as is; otherwise, prepend...
9709
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710
cp $export_symbols $output_objdir/$soname.def;
9712
echo EXPORTS > $output_objdir/$soname.def;
9713
cat $export_symbols >> $output_objdir/$soname.def;
9715
$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'
9720
darwin* | rhapsody*)
9722
rhapsody* | darwin1.[012])
9723
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9726
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9727
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9729
case ${MACOSX_DEPLOYMENT_TARGET} in
9731
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9734
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9740
archive_cmds_need_lc_CXX=no
9741
hardcode_direct_CXX=no
9742
hardcode_automatic_CXX=yes
9743
hardcode_shlibpath_var_CXX=unsupported
9744
whole_archive_flag_spec_CXX=''
9745
link_all_deplibs_CXX=yes
9747
if test "$GXX" = yes ; then
9748
lt_int_apple_cc_single_mod=no
9749
output_verbose_link_cmd='echo'
9750
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9751
lt_int_apple_cc_single_mod=yes
9753
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9754
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9756
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9758
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9759
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9760
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9761
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}'
9763
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9765
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9767
case "$cc_basename" in
9769
output_verbose_link_cmd='echo'
9770
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9771
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9772
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9773
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9774
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9784
case $cc_basename in
9786
# FIXME: insert proper C++ library support
9790
# Green Hills C++ Compiler
9791
# FIXME: insert proper C++ library support
9795
# FIXME: insert proper C++ library support
9801
# C++ shared libraries reported to be fairly broken before switch to ELF
9805
archive_cmds_need_lc_CXX=no
9807
freebsd* | kfreebsd*-gnu | dragonfly*)
9808
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9815
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9816
hardcode_libdir_separator_CXX=:
9817
export_dynamic_flag_spec_CXX='${wl}-E'
9818
hardcode_direct_CXX=yes
9819
hardcode_minus_L_CXX=yes # Not in the search PATH,
9820
# but as the default
9821
# location of the library.
9823
case $cc_basename in
9825
# FIXME: insert proper C++ library support
9829
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'
9830
# Commands to make compiler produce verbose output that lists
9831
# what "hidden" libraries, object files and flags are used when
9832
# linking a shared library.
9834
# There doesn't appear to be a way to prevent this compiler from
9835
# explicitly linking system object files so we need to strip them
9836
# from the output so that they don't get included in the library
9838
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'
9841
if test "$GXX" = yes; then
9842
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'
9844
# FIXME: insert proper C++ library support
9851
if test $with_gnu_ld = no; then
9854
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9855
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9856
hardcode_libdir_separator_CXX=:
9859
hardcode_libdir_flag_spec_CXX='-L$libdir'
9862
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9863
hardcode_libdir_separator_CXX=:
9864
export_dynamic_flag_spec_CXX='${wl}-E'
9870
hardcode_direct_CXX=no
9871
hardcode_shlibpath_var_CXX=no
9874
hardcode_direct_CXX=no
9875
hardcode_shlibpath_var_CXX=no
9876
hardcode_minus_L_CXX=yes # Not in the search PATH,
9877
# but as the default
9878
# location of the library.
9881
hardcode_direct_CXX=yes
9882
hardcode_minus_L_CXX=yes # Not in the search PATH,
9883
# but as the default
9884
# location of the library.
9888
case $cc_basename in
9890
# FIXME: insert proper C++ library support
9896
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9899
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9902
# Commands to make compiler produce verbose output that lists
9903
# what "hidden" libraries, object files and flags are used when
9904
# linking a shared library.
9906
# There doesn't appear to be a way to prevent this compiler from
9907
# explicitly linking system object files so we need to strip them
9908
# from the output so that they don't get included in the library
9910
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'
9913
if test "$GXX" = yes; then
9914
if test $with_gnu_ld = no; then
9917
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9920
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'
9925
# FIXME: insert proper C++ library support
9932
case $cc_basename in
9935
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'
9937
# Archives containing C++ object files must be created using
9938
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9939
# necessary to make sure instantiated templates are included
9941
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9944
if test "$GXX" = yes; then
9945
if test "$with_gnu_ld" = no; then
9946
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'
9948
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'
9951
link_all_deplibs_CXX=yes
9954
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9955
hardcode_libdir_separator_CXX=:
9958
case $cc_basename in
9960
# Kuck and Associates, Inc. (KAI) C++ Compiler
9962
# KCC will only create a shared library if the output file
9963
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9964
# to its proper name (with version) after linking.
9965
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'
9966
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'
9967
# Commands to make compiler produce verbose output that lists
9968
# what "hidden" libraries, object files and flags are used when
9969
# linking a shared library.
9971
# There doesn't appear to be a way to prevent this compiler from
9972
# explicitly linking system object files so we need to strip them
9973
# from the output so that they don't get included in the library
9975
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'
9977
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9978
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9980
# Archives containing C++ object files must be created using
9981
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9982
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9987
# version 8.0 and above of icpc choke on multiply defined symbols
9988
# if we add $predep_objects and $postdep_objects, however 7.1 and
9989
# earlier do not add the objects themselves.
9990
case `$CC -V 2>&1` in
9992
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9993
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'
9995
*) # Version 8.0 or newer
9998
ia64*) tmp_idyn=' -i_dynamic';;
10000
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10004
archive_cmds_need_lc_CXX=no
10005
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10006
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10007
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10010
# Portland Group C++ compiler
10011
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10012
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'
10014
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10015
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10019
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020
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'
10022
runpath_var=LD_RUN_PATH
10023
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10024
hardcode_libdir_separator_CXX=:
10026
# Commands to make compiler produce verbose output that lists
10027
# what "hidden" libraries, object files and flags are used when
10028
# linking a shared library.
10030
# There doesn't appear to be a way to prevent this compiler from
10031
# explicitly linking system object files so we need to strip them
10032
# from the output so that they don't get included in the library
10034
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'
10039
# FIXME: insert proper C++ library support
10043
# FIXME: insert proper C++ library support
10047
case $cc_basename in
10049
# FIXME: insert proper C++ library support
10053
# FIXME: insert proper C++ library support
10059
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10062
hardcode_libdir_flag_spec_CXX='-R$libdir'
10063
hardcode_direct_CXX=yes
10064
hardcode_shlibpath_var_CXX=no
10066
# Workaround some broken pre-1.5 toolchains
10067
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10070
# C++ shared libraries are fairly broken
10074
hardcode_direct_CXX=yes
10075
hardcode_shlibpath_var_CXX=no
10076
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10077
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10079
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10080
export_dynamic_flag_spec_CXX='${wl}-E'
10081
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10083
output_verbose_link_cmd='echo'
10086
case $cc_basename in
10088
# Kuck and Associates, Inc. (KAI) C++ Compiler
10090
# KCC will only create a shared library if the output file
10091
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10092
# to its proper name (with version) after linking.
10093
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'
10095
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10096
hardcode_libdir_separator_CXX=:
10098
# Archives containing C++ object files must be created using
10099
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10100
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10104
# Rational C++ 2.4.1
10105
# FIXME: insert proper C++ library support
10109
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10110
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'
10112
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113
hardcode_libdir_separator_CXX=:
10115
# Commands to make compiler produce verbose output that lists
10116
# what "hidden" libraries, object files and flags are used when
10117
# linking a shared library.
10119
# There doesn't appear to be a way to prevent this compiler from
10120
# explicitly linking system object files so we need to strip them
10121
# from the output so that they don't get included in the library
10123
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'
10126
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10127
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10128
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'
10130
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10131
hardcode_libdir_separator_CXX=:
10133
# Commands to make compiler produce verbose output that lists
10134
# what "hidden" libraries, object files and flags are used when
10135
# linking a shared library.
10136
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10139
# FIXME: insert proper C++ library support
10146
case $cc_basename in
10148
# Kuck and Associates, Inc. (KAI) C++ Compiler
10150
# KCC will only create a shared library if the output file
10151
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10152
# to its proper name (with version) after linking.
10153
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10155
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10156
hardcode_libdir_separator_CXX=:
10158
# Archives containing C++ object files must be created using
10159
# the KAI C++ compiler.
10160
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10163
# Rational C++ 2.4.1
10164
# FIXME: insert proper C++ library support
10168
allow_undefined_flag_CXX=' -expect_unresolved \*'
10169
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'
10170
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10171
echo "-hidden">> $lib.exp~
10172
$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~
10175
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10176
hardcode_libdir_separator_CXX=:
10178
# Commands to make compiler produce verbose output that lists
10179
# what "hidden" libraries, object files and flags are used when
10180
# linking a shared library.
10182
# There doesn't appear to be a way to prevent this compiler from
10183
# explicitly linking system object files so we need to strip them
10184
# from the output so that they don't get included in the library
10186
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'
10189
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10190
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191
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'
10193
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194
hardcode_libdir_separator_CXX=:
10196
# Commands to make compiler produce verbose output that lists
10197
# what "hidden" libraries, object files and flags are used when
10198
# linking a shared library.
10199
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10202
# FIXME: insert proper C++ library support
10209
# FIXME: insert proper C++ library support
10213
archive_cmds_need_lc_CXX=no
10214
case $cc_basename in
10216
# FIXME: insert proper C++ library support
10220
# FIXME: insert proper C++ library support
10226
case $cc_basename in
10229
# FIXME: insert proper C++ library support
10234
# FIXME: insert proper C++ library support
10238
# FIXME: insert proper C++ library support
10244
case $cc_basename in
10246
# Sun C++ 4.2, 5.x and Centerline C++
10247
no_undefined_flag_CXX=' -zdefs'
10248
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10249
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10250
$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'
10252
hardcode_libdir_flag_spec_CXX='-R$libdir'
10253
hardcode_shlibpath_var_CXX=no
10255
solaris2.[0-5] | solaris2.[0-5].*) ;;
10257
# The C++ compiler is used as linker so we must use $wl
10258
# flag to pass the commands to the underlying system
10260
# Supported since Solaris 2.6 (maybe 2.5.1?)
10261
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10264
link_all_deplibs_CXX=yes
10266
# Commands to make compiler produce verbose output that lists
10267
# what "hidden" libraries, object files and flags are used when
10268
# linking a shared library.
10270
# There doesn't appear to be a way to prevent this compiler from
10271
# explicitly linking system object files so we need to strip them
10272
# from the output so that they don't get included in the library
10274
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'
10276
# Archives containing C++ object files must be created using
10277
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10278
# necessary to make sure instantiated templates are included
10280
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10283
# Green Hills C++ Compiler
10284
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10286
# The C++ compiler must be used to create the archive.
10287
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10290
# GNU C++ compiler with Solaris linker
10291
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10292
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10293
if $CC --version | grep -v '^2\.7' > /dev/null; then
10294
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10295
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10296
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10298
# Commands to make compiler produce verbose output that lists
10299
# what "hidden" libraries, object files and flags are used when
10300
# linking a shared library.
10301
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10303
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10305
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10307
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10309
# Commands to make compiler produce verbose output that lists
10310
# what "hidden" libraries, object files and flags are used when
10311
# linking a shared library.
10312
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10315
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10320
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10321
archive_cmds_need_lc_CXX=no
10324
case $cc_basename in
10326
# NonStop-UX NCC 3.20
10327
# FIXME: insert proper C++ library support
10331
# FIXME: insert proper C++ library support
10337
# FIXME: insert proper C++ library support
10341
# FIXME: insert proper C++ library support
10345
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10346
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10347
test "$ld_shlibs_CXX" = no && can_build_shared=no
10353
## There is no encapsulation within the following macros, do not change
10354
## the running order or otherwise move them around unless you know exactly
10355
## what you are doing...
10357
cat > conftest.$ac_ext <<EOF
10361
Foo (void) { a = 0; }
10367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368
(eval $ac_compile) 2>&5
10370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
(exit $ac_status); }; then
10372
# Parse the compiler output and extract the necessary
10373
# objects, libraries and library flags.
10375
# Sentinel used to keep track of whether or not we are before
10376
# the conftest object file.
10377
pre_test_object_deps_done=no
10379
# The `*' in the case matches for architectures that use `case' in
10380
# $output_verbose_cmd can trigger glob expansion during the loop
10381
# eval without this substitution.
10382
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10384
for p in `eval $output_verbose_link_cmd`; do
10388
# Some compilers place space between "-{L,R}" and the path.
10389
# Remove the space.
10390
if test $p = "-L" \
10391
|| test $p = "-R"; then
10398
if test "$pre_test_object_deps_done" = no; then
10401
# Internal compiler library paths should come after those
10402
# provided the user. The postdeps already come after the
10403
# user supplied libs so there is no need to process them.
10404
if test -z "$compiler_lib_search_path_CXX"; then
10405
compiler_lib_search_path_CXX="${prev}${p}"
10407
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10410
# The "-l" case would never come before the object being
10411
# linked, so don't bother handling this case.
10414
if test -z "$postdeps_CXX"; then
10415
postdeps_CXX="${prev}${p}"
10417
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10423
# This assumes that the test object file only shows up
10424
# once in the compiler output.
10425
if test "$p" = "conftest.$objext"; then
10426
pre_test_object_deps_done=yes
10430
if test "$pre_test_object_deps_done" = no; then
10431
if test -z "$predep_objects_CXX"; then
10432
predep_objects_CXX="$p"
10434
predep_objects_CXX="$predep_objects_CXX $p"
10437
if test -z "$postdep_objects_CXX"; then
10438
postdep_objects_CXX="$p"
10440
postdep_objects_CXX="$postdep_objects_CXX $p"
10445
*) ;; # Ignore the rest.
10453
echo "libtool.m4: error: problem compiling CXX test program"
10456
$rm -f confest.$objext
10458
case " $postdeps_CXX " in
10459
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10462
lt_prog_compiler_wl_CXX=
10463
lt_prog_compiler_pic_CXX=
10464
lt_prog_compiler_static_CXX=
10466
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10467
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10469
# C++ specific cases for pic, static, wl, etc.
10470
if test "$GXX" = yes; then
10471
lt_prog_compiler_wl_CXX='-Wl,'
10472
lt_prog_compiler_static_CXX='-static'
10476
# All AIX code is PIC.
10477
if test "$host_cpu" = ia64; then
10478
# AIX 5 now supports IA64 processor
10479
lt_prog_compiler_static_CXX='-Bstatic'
10483
# FIXME: we need at least 68020 code to build shared libraries, but
10484
# adding the `-m68020' flag to GCC prevents building anything better,
10486
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10488
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10489
# PIC is the default for these OSes.
10491
mingw* | os2* | pw32*)
10492
# This hack is so that the source file can tell whether it is being
10493
# built for inclusion in a dll (and should export symbols for example).
10494
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10496
darwin* | rhapsody*)
10497
# PIC is the default on this platform
10498
# Common symbols not allowed in MH_DYLIB files
10499
lt_prog_compiler_pic_CXX='-fno-common'
10502
# DJGPP does not support shared libraries at all
10503
lt_prog_compiler_pic_CXX=
10506
if test -d /usr/nec; then
10507
lt_prog_compiler_pic_CXX=-Kconform_pic
10511
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10512
# not for PA HP-UX.
10513
case "$host_cpu" in
10517
lt_prog_compiler_pic_CXX='-fPIC'
10522
lt_prog_compiler_pic_CXX='-fPIC'
10528
# All AIX code is PIC.
10529
if test "$host_cpu" = ia64; then
10530
# AIX 5 now supports IA64 processor
10531
lt_prog_compiler_static_CXX='-Bstatic'
10533
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10537
case $cc_basename in
10539
# Green Hills C++ Compiler
10540
# _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"
10545
# PIC is the default on this platform
10546
# Common symbols not allowed in MH_DYLIB files
10547
case "$cc_basename" in
10549
lt_prog_compiler_pic_CXX='-qnocommon'
10550
lt_prog_compiler_wl_CXX='-Wl,'
10555
case $cc_basename in
10557
lt_prog_compiler_pic_CXX='-KPIC'
10560
# Green Hills C++ Compiler
10561
lt_prog_compiler_pic_CXX='-pic'
10567
freebsd* | kfreebsd*-gnu | dragonfly*)
10568
# FreeBSD uses GNU C++
10570
hpux9* | hpux10* | hpux11*)
10571
case $cc_basename in
10573
lt_prog_compiler_wl_CXX='-Wl,'
10574
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10575
if test "$host_cpu" != ia64; then
10576
lt_prog_compiler_pic_CXX='+Z'
10580
lt_prog_compiler_wl_CXX='-Wl,'
10581
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10582
case "$host_cpu" in
10587
lt_prog_compiler_pic_CXX='+Z'
10595
irix5* | irix6* | nonstopux*)
10596
case $cc_basename in
10598
lt_prog_compiler_wl_CXX='-Wl,'
10599
lt_prog_compiler_static_CXX='-non_shared'
10600
# CC pic flag -KPIC is the default.
10607
case $cc_basename in
10610
lt_prog_compiler_wl_CXX='--backend -Wl,'
10611
lt_prog_compiler_pic_CXX='-fPIC'
10615
lt_prog_compiler_wl_CXX='-Wl,'
10616
lt_prog_compiler_pic_CXX='-KPIC'
10617
lt_prog_compiler_static_CXX='-static'
10620
# Portland Group C++ compiler.
10621
lt_prog_compiler_wl_CXX='-Wl,'
10622
lt_prog_compiler_pic_CXX='-fpic'
10623
lt_prog_compiler_static_CXX='-static'
10627
# Make sure the PIC flag is empty. It appears that all Alpha
10628
# Linux and Compaq Tru64 Unix objects are PIC.
10629
lt_prog_compiler_pic_CXX=
10630
lt_prog_compiler_static_CXX='-non_shared'
10641
case $cc_basename in
10643
lt_prog_compiler_pic_CXX='-W c,exportall'
10651
osf3* | osf4* | osf5*)
10652
case $cc_basename in
10654
lt_prog_compiler_wl_CXX='--backend -Wl,'
10657
# Rational C++ 2.4.1
10658
lt_prog_compiler_pic_CXX='-pic'
10661
# Digital/Compaq C++
10662
lt_prog_compiler_wl_CXX='-Wl,'
10663
# Make sure the PIC flag is empty. It appears that all Alpha
10664
# Linux and Compaq Tru64 Unix objects are PIC.
10665
lt_prog_compiler_pic_CXX=
10666
lt_prog_compiler_static_CXX='-non_shared'
10675
case $cc_basename in
10677
lt_prog_compiler_pic_CXX='-fPIC'
10684
case $cc_basename in
10686
# Sun C++ 4.2, 5.x and Centerline C++
10687
lt_prog_compiler_pic_CXX='-KPIC'
10688
lt_prog_compiler_static_CXX='-Bstatic'
10689
lt_prog_compiler_wl_CXX='-Qoption ld '
10692
# Green Hills C++ Compiler
10693
lt_prog_compiler_pic_CXX='-PIC'
10700
case $cc_basename in
10703
lt_prog_compiler_pic_CXX='-pic'
10704
lt_prog_compiler_static_CXX='-Bstatic'
10708
lt_prog_compiler_pic_CXX='-pic'
10715
case $cc_basename in
10717
# NonStop-UX NCC 3.20
10718
lt_prog_compiler_pic_CXX='-KPIC'
10729
lt_prog_compiler_can_build_shared_CXX=no
10734
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10735
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10738
# Check to make sure the PIC flag actually works.
10740
if test -n "$lt_prog_compiler_pic_CXX"; then
10742
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10743
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10744
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10745
echo $ECHO_N "(cached) $ECHO_C" >&6
10747
lt_prog_compiler_pic_works_CXX=no
10748
ac_outfile=conftest.$ac_objext
10749
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10750
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10751
# Insert the option either (1) after the last *FLAGS variable, or
10752
# (2) before a word containing "conftest.", or (3) at the end.
10753
# Note that $ac_compile itself does not contain backslashes and begins
10754
# with a dollar sign (not a hyphen), so the echo should work correctly.
10755
# The option is referenced via a variable to avoid confusing sed.
10756
lt_compile=`echo "$ac_compile" | $SED \
10757
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10758
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10759
-e 's:$: $lt_compiler_flag:'`
10760
(eval echo "\"\$as_me:10760: $lt_compile\"" >&5)
10761
(eval "$lt_compile" 2>conftest.err)
10763
cat conftest.err >&5
10764
echo "$as_me:10764: \$? = $ac_status" >&5
10765
if (exit $ac_status) && test -s "$ac_outfile"; then
10766
# The compiler can only warn and ignore the option if not recognized
10767
# So say no if there are warnings
10768
if test ! -s conftest.err; then
10769
lt_prog_compiler_pic_works_CXX=yes
10775
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10776
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10778
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10779
case $lt_prog_compiler_pic_CXX in
10781
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10784
lt_prog_compiler_pic_CXX=
10785
lt_prog_compiler_can_build_shared_CXX=no
10790
# For platforms which do not support PIC, -DPIC is meaningless:
10792
lt_prog_compiler_pic_CXX=
10795
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10801
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10802
echo $ECHO_N "(cached) $ECHO_C" >&6
10804
lt_cv_prog_compiler_c_o_CXX=no
10805
$rm -r conftest 2>/dev/null
10809
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10811
lt_compiler_flag="-o out/conftest2.$ac_objext"
10812
# Insert the option either (1) after the last *FLAGS variable, or
10813
# (2) before a word containing "conftest.", or (3) at the end.
10814
# Note that $ac_compile itself does not contain backslashes and begins
10815
# with a dollar sign (not a hyphen), so the echo should work correctly.
10816
lt_compile=`echo "$ac_compile" | $SED \
10817
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819
-e 's:$: $lt_compiler_flag:'`
10820
(eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
10821
(eval "$lt_compile" 2>out/conftest.err)
10823
cat out/conftest.err >&5
10824
echo "$as_me:10824: \$? = $ac_status" >&5
10825
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827
# The compiler can only warn and ignore the option if not recognized
10828
# So say no if there are warnings
10829
if test ! -s out/conftest.err; then
10830
lt_cv_prog_compiler_c_o_CXX=yes
10835
# SGI C++ compiler will create directory out/ii_files/ for
10836
# template instantiation
10837
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10838
$rm out/* && rmdir out
10844
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10845
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10848
hard_links="nottested"
10849
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10850
# do not overwrite the value of need_locks provided by the user
10851
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10852
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10855
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857
ln conftest.a conftest.b 2>&5 || hard_links=no
10858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10859
echo "$as_me:$LINENO: result: $hard_links" >&5
10860
echo "${ECHO_T}$hard_links" >&6
10861
if test "$hard_links" = no; then
10862
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10863
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10870
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10873
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10876
# If we're using GNU nm, then we don't want the "-C" option.
10877
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10878
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10879
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'
10881
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'
10885
export_symbols_cmds_CXX="$ltdll_cmds"
10888
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10891
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10895
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10896
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10897
test "$ld_shlibs_CXX" = no && can_build_shared=no
10899
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10900
if test "$GCC" = yes; then
10901
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10905
# Do we need to explicitly link libc?
10907
case "x$archive_cmds_need_lc_CXX" in
10909
# Assume -lc should be added
10910
archive_cmds_need_lc_CXX=yes
10912
if test "$enable_shared" = yes && test "$GCC" = yes; then
10913
case $archive_cmds_CXX in
10915
# FIXME: we may have to deal with multi-command sequences.
10918
# Test whether the compiler implicitly links with -lc since on some
10919
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10920
# to ld, don't add -lc before -lgcc.
10921
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10922
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10924
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927
(eval $ac_compile) 2>&5
10929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930
(exit $ac_status); } 2>conftest.err; then
10933
libobjs=conftest.$ac_objext
10935
wl=$lt_prog_compiler_wl_CXX
10941
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10942
allow_undefined_flag_CXX=
10943
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10944
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947
(exit $ac_status); }
10949
archive_cmds_need_lc_CXX=no
10951
archive_cmds_need_lc_CXX=yes
10953
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10955
cat conftest.err 1>&5
10958
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10959
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10966
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10967
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10968
library_names_spec=
10969
libname_spec='lib$name'
10973
postuninstall_cmds=
10977
shlibpath_overrides_runpath=unknown
10979
dynamic_linker="$host_os ld.so"
10980
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10981
if test "$GCC" = yes; then
10982
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10984
# if the path contains ";" then we assume it to be the separator
10985
# otherwise default to the standard path separator (i.e. ":") - it is
10986
# assumed that no part of a normal pathname contains ";" but that should
10987
# okay in the real world where ";" in dirpaths is itself problematic.
10988
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10990
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10993
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10995
need_lib_prefix=unknown
10996
hardcode_into_libs=no
10998
# when you set need_version to no, make sure it does not cause -set_version
10999
# flags to be left without arguments
11000
need_version=unknown
11005
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11006
shlibpath_var=LIBPATH
11008
# AIX 3 has no versioning support, so we append a major version to the name.
11009
soname_spec='${libname}${release}${shared_ext}$major'
11016
hardcode_into_libs=yes
11017
if test "$host_cpu" = ia64; then
11018
# AIX 5 supports IA64
11019
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11020
shlibpath_var=LD_LIBRARY_PATH
11022
# With GCC up to 2.95.x, collect2 would create an import file
11023
# for dependence libraries. The import file would start with
11024
# the line `#! .'. This would cause the generated library to
11025
# depend on `.', always an invalid library. This was fixed in
11026
# development snapshots of GCC prior to 3.0.
11028
aix4 | aix4.[01] | aix4.[01].*)
11029
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11031
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11034
can_build_shared=no
11038
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11039
# soname into executable. Probably we can add versioning support to
11040
# collect2, so additional links can be useful in future.
11041
if test "$aix_use_runtimelinking" = yes; then
11042
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11043
# instead of lib<name>.a to let people know that these are not
11044
# typical AIX shared libraries.
11045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047
# We preserve .a as extension for shared libraries through AIX4.2
11048
# and later when we are not doing run time linking.
11049
library_names_spec='${libname}${release}.a $libname.a'
11050
soname_spec='${libname}${release}${shared_ext}$major'
11052
shlibpath_var=LIBPATH
11057
library_names_spec='$libname.ixlibrary $libname.a'
11058
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11059
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'
11063
library_names_spec='${libname}${shared_ext}'
11064
dynamic_linker="$host_os ld.so"
11065
shlibpath_var=LIBRARY_PATH
11071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072
soname_spec='${libname}${release}${shared_ext}$major'
11073
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11074
shlibpath_var=LD_LIBRARY_PATH
11075
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11076
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11077
# the default ld.so.conf also contains /usr/contrib/lib and
11078
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11079
# libtool to hard-code these into programs
11082
cygwin* | mingw* | pw32*)
11083
version_type=windows
11088
case $GCC,$host_os in
11089
yes,cygwin* | yes,mingw* | yes,pw32*)
11090
library_names_spec='$libname.dll.a'
11091
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11092
postinstall_cmds='base_file=`basename \${file}`~
11093
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11094
dldir=$destdir/`dirname \$dlpath`~
11095
test -d \$dldir || mkdir -p \$dldir~
11096
$install_prog $dir/$dlname \$dldir/$dlname'
11097
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098
dlpath=$dir/\$dldll~
11100
shlibpath_overrides_runpath=yes
11104
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11105
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11106
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11109
# MinGW DLLs use traditional 'lib' prefix
11110
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11111
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11112
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11113
# It is most probably a Windows format PATH printed by
11114
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11115
# path with ; separators, and with drive letters. We can handle the
11116
# drive letters (cygwin fileutils understands them), so leave them,
11117
# especially as we might pass files found there to a mingw objdump,
11118
# which wouldn't understand a cygwinified path. Ahh.
11119
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11121
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11125
# pw32 DLLs use 'pw' prefix rather than 'lib'
11126
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11132
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11135
dynamic_linker='Win32 ld.exe'
11136
# FIXME: first we should search . and the directory the executable is in
11140
darwin* | rhapsody*)
11141
dynamic_linker="$host_os dyld"
11142
version_type=darwin
11145
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11146
soname_spec='${libname}${release}${major}$shared_ext'
11147
shlibpath_overrides_runpath=yes
11148
shlibpath_var=DYLD_LIBRARY_PATH
11149
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11150
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11151
if test "$GCC" = yes; then
11152
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"`
11154
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11156
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11164
soname_spec='${libname}${release}${shared_ext}$major'
11165
shlibpath_var=LD_LIBRARY_PATH
11176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11177
soname_spec='${libname}${release}${shared_ext}$major'
11178
shlibpath_var=LD_LIBRARY_PATH
11179
shlibpath_overrides_runpath=no
11180
hardcode_into_libs=yes
11181
dynamic_linker='GNU ld.so'
11184
freebsd* | dragonfly*)
11185
# DragonFly does not have aout. When/if they implement a new
11186
# versioning mechanism, adjust this.
11187
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11188
version_type=freebsd-$objformat
11189
case $version_type in
11191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11200
shlibpath_var=LD_LIBRARY_PATH
11203
shlibpath_overrides_runpath=yes
11205
freebsd3.[01]* | freebsdelf3.[01]*)
11206
shlibpath_overrides_runpath=yes
11207
hardcode_into_libs=yes
11210
shlibpath_overrides_runpath=no
11211
hardcode_into_libs=yes
11220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221
soname_spec='${libname}${release}${shared_ext}$major'
11222
shlibpath_var=LD_LIBRARY_PATH
11223
hardcode_into_libs=yes
11226
hpux9* | hpux10* | hpux11*)
11227
# Give a soname corresponding to the major version so that dld.sl refuses to
11228
# link against other versions.
11232
case "$host_cpu" in
11235
hardcode_into_libs=yes
11236
dynamic_linker="$host_os dld.so"
11237
shlibpath_var=LD_LIBRARY_PATH
11238
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240
soname_spec='${libname}${release}${shared_ext}$major'
11241
if test "X$HPUX_IA64_MODE" = X32; then
11242
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11244
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11246
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11250
hardcode_into_libs=yes
11251
dynamic_linker="$host_os dld.sl"
11252
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255
soname_spec='${libname}${release}${shared_ext}$major'
11256
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11257
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11261
dynamic_linker="$host_os dld.sl"
11262
shlibpath_var=SHLIB_PATH
11263
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265
soname_spec='${libname}${release}${shared_ext}$major'
11268
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11269
postinstall_cmds='chmod 555 $lib'
11272
irix5* | irix6* | nonstopux*)
11274
nonstopux*) version_type=nonstopux ;;
11276
if test "$lt_cv_prog_gnu_ld" = yes; then
11284
soname_spec='${libname}${release}${shared_ext}$major'
11285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11287
irix5* | nonstopux*)
11288
libsuff= shlibsuff=
11291
case $LD in # libtool.m4 will add one of these switches to LD
11292
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11293
libsuff= shlibsuff= libmagic=32-bit;;
11294
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11295
libsuff=32 shlibsuff=N32 libmagic=N32;;
11296
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11297
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11298
*) libsuff= shlibsuff= libmagic=never-match;;
11302
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11303
shlibpath_overrides_runpath=no
11304
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11305
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11306
hardcode_into_libs=yes
11309
# No shared lib support for Linux oldld, aout, or coff.
11310
linux*oldld* | linux*aout* | linux*coff*)
11314
# This must be Linux ELF.
11319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320
soname_spec='${libname}${release}${shared_ext}$major'
11321
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11322
shlibpath_var=LD_LIBRARY_PATH
11323
shlibpath_overrides_runpath=no
11324
# This implies no fast_install, which is unacceptable.
11325
# Some rework will be needed to allow for fast_install
11326
# before this can be enabled.
11327
hardcode_into_libs=yes
11329
# Append ld.so.conf contents to the search path
11330
if test -f /etc/ld.so.conf; then
11331
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11332
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11335
# We used to test for /lib/ld.so.1 and disable shared libraries on
11336
# powerpc, because MkLinux only supported shared libraries with the
11337
# GNU dynamic linker. Since this was broken with cross compilers,
11338
# most powerpc-linux boxes support dynamic linking these days and
11339
# people can always --disable-shared, the test was removed, and we
11340
# assume the GNU/Linux dynamic linker is in use.
11341
dynamic_linker='GNU/Linux ld.so'
11348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11349
soname_spec='${libname}${release}${shared_ext}$major'
11350
shlibpath_var=LD_LIBRARY_PATH
11351
shlibpath_overrides_runpath=no
11352
hardcode_into_libs=yes
11353
dynamic_linker='GNU ld.so'
11360
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363
dynamic_linker='NetBSD (a.out) ld.so'
11365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366
soname_spec='${libname}${release}${shared_ext}$major'
11367
dynamic_linker='NetBSD ld.elf_so'
11369
shlibpath_var=LD_LIBRARY_PATH
11370
shlibpath_overrides_runpath=yes
11371
hardcode_into_libs=yes
11376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377
shlibpath_var=LD_LIBRARY_PATH
11378
shlibpath_overrides_runpath=yes
11385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386
soname_spec='${libname}${release}${shared_ext}$major'
11387
shlibpath_var=LD_LIBRARY_PATH
11388
shlibpath_overrides_runpath=yes
11395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397
shlibpath_var=LD_LIBRARY_PATH
11398
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400
openbsd2.[89] | openbsd2.[89].*)
11401
shlibpath_overrides_runpath=no
11404
shlibpath_overrides_runpath=yes
11408
shlibpath_overrides_runpath=yes
11413
libname_spec='$name'
11416
library_names_spec='$libname${shared_ext} $libname.a'
11417
dynamic_linker='OS/2 ld.exe'
11418
shlibpath_var=LIBPATH
11421
osf3* | osf4* | osf5*)
11425
soname_spec='${libname}${release}${shared_ext}$major'
11426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427
shlibpath_var=LD_LIBRARY_PATH
11428
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11429
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11434
soname_spec='${libname}${release}${shared_ext}$major'
11435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436
shlibpath_var=LD_LIBRARY_PATH
11443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444
soname_spec='${libname}${release}${shared_ext}$major'
11445
shlibpath_var=LD_LIBRARY_PATH
11446
shlibpath_overrides_runpath=yes
11447
hardcode_into_libs=yes
11448
# ldd complains unless libraries are executable
11449
postinstall_cmds='chmod +x $lib'
11454
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11455
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11456
shlibpath_var=LD_LIBRARY_PATH
11457
shlibpath_overrides_runpath=yes
11458
if test "$with_gnu_ld" = yes; then
11464
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467
soname_spec='${libname}${release}${shared_ext}$major'
11468
shlibpath_var=LD_LIBRARY_PATH
11469
case $host_vendor in
11471
shlibpath_overrides_runpath=no
11473
export_dynamic_flag_spec='${wl}-Blargedynsym'
11474
runpath_var=LD_RUN_PATH
11482
shlibpath_overrides_runpath=no
11483
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11489
if test -d /usr/nec ;then
11491
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11492
soname_spec='$libname${shared_ext}.$major'
11493
shlibpath_var=LD_LIBRARY_PATH
11499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500
soname_spec='${libname}${release}${shared_ext}$major'
11501
shlibpath_var=LD_LIBRARY_PATH
11508
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11509
echo "${ECHO_T}$dynamic_linker" >&6
11510
test "$dynamic_linker" = no && can_build_shared=no
11512
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11513
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11514
hardcode_action_CXX=
11515
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11516
test -n "$runpath_var_CXX" || \
11517
test "X$hardcode_automatic_CXX" = "Xyes" ; then
11519
# We can hardcode non-existant directories.
11520
if test "$hardcode_direct_CXX" != no &&
11521
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11522
# have to relink, otherwise we might link with an installed library
11523
# when we should be linking with a yet-to-be-installed one
11524
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11525
test "$hardcode_minus_L_CXX" != no; then
11526
# Linking always hardcodes the temporary library directory.
11527
hardcode_action_CXX=relink
11529
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11530
hardcode_action_CXX=immediate
11533
# We cannot hardcode anything, or else we can only hardcode existing
11535
hardcode_action_CXX=unsupported
11537
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11538
echo "${ECHO_T}$hardcode_action_CXX" >&6
11540
if test "$hardcode_action_CXX" = relink; then
11541
# Fast installation is not supported
11542
enable_fast_install=no
11543
elif test "$shlibpath_overrides_runpath" = yes ||
11544
test "$enable_shared" = no; then
11545
# Fast installation is not necessary
11546
enable_fast_install=needless
11551
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11552
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11553
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11554
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11555
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11556
echo "$as_me:$LINENO: result: yes" >&5
11557
echo "${ECHO_T}yes" >&6
11559
# FIXME - insert some real tests, host_os isn't really good enough
11562
if test -n "$STRIP" ; then
11563
striplib="$STRIP -x"
11564
echo "$as_me:$LINENO: result: yes" >&5
11565
echo "${ECHO_T}yes" >&6
11567
echo "$as_me:$LINENO: result: no" >&5
11568
echo "${ECHO_T}no" >&6
11572
echo "$as_me:$LINENO: result: no" >&5
11573
echo "${ECHO_T}no" >&6
11578
if test "x$enable_dlopen" != xyes; then
11579
enable_dlopen=unknown
11580
enable_dlopen_self=unknown
11581
enable_dlopen_self_static=unknown
11588
lt_cv_dlopen="load_add_on"
11590
lt_cv_dlopen_self=yes
11594
lt_cv_dlopen="LoadLibrary"
11599
lt_cv_dlopen="dlopen"
11604
# if libdl is installed we need to link against it
11605
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11606
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11607
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11608
echo $ECHO_N "(cached) $ECHO_C" >&6
11610
ac_check_lib_save_LIBS=$LIBS
11612
cat >conftest.$ac_ext <<_ACEOF
11615
cat confdefs.h >>conftest.$ac_ext
11616
cat >>conftest.$ac_ext <<_ACEOF
11617
/* end confdefs.h. */
11619
/* Override any gcc2 internal prototype to avoid an error. */
11623
/* We use char because int might match the return type of a gcc2
11624
builtin and then its argument prototype would still apply. */
11634
rm -f conftest.$ac_objext conftest$ac_exeext
11635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636
(eval $ac_link) 2>conftest.er1
11638
grep -v '^ *+' conftest.er1 >conftest.err
11640
cat conftest.err >&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); } &&
11643
{ ac_try='test -z "$ac_cxx_werror_flag"
11644
|| test ! -s conftest.err'
11645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646
(eval $ac_try) 2>&5
11648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649
(exit $ac_status); }; } &&
11650
{ ac_try='test -s conftest$ac_exeext'
11651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652
(eval $ac_try) 2>&5
11654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); }; }; then
11656
ac_cv_lib_dl_dlopen=yes
11658
echo "$as_me: failed program was:" >&5
11659
sed 's/^/| /' conftest.$ac_ext >&5
11661
ac_cv_lib_dl_dlopen=no
11663
rm -f conftest.err conftest.$ac_objext \
11664
conftest$ac_exeext conftest.$ac_ext
11665
LIBS=$ac_check_lib_save_LIBS
11667
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11668
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11669
if test $ac_cv_lib_dl_dlopen = yes; then
11670
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673
lt_cv_dlopen="dyld"
11675
lt_cv_dlopen_self=yes
11682
echo "$as_me:$LINENO: checking for shl_load" >&5
11683
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11684
if test "${ac_cv_func_shl_load+set}" = set; then
11685
echo $ECHO_N "(cached) $ECHO_C" >&6
11687
cat >conftest.$ac_ext <<_ACEOF
11690
cat confdefs.h >>conftest.$ac_ext
11691
cat >>conftest.$ac_ext <<_ACEOF
11692
/* end confdefs.h. */
11693
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11694
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695
#define shl_load innocuous_shl_load
11697
/* System header to define __stub macros and hopefully few prototypes,
11698
which can conflict with char shl_load (); below.
11699
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700
<limits.h> exists even on freestanding compilers. */
11703
# include <limits.h>
11705
# include <assert.h>
11710
/* Override any gcc2 internal prototype to avoid an error. */
11715
/* We use char because int might match the return type of a gcc2
11716
builtin and then its argument prototype would still apply. */
11718
/* The GNU C library defines this for functions which it implements
11719
to always fail with ENOSYS. Some functions are actually named
11720
something starting with __ and the normal name is an alias. */
11721
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11724
char (*f) () = shl_load;
11733
return f != shl_load;
11738
rm -f conftest.$ac_objext conftest$ac_exeext
11739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740
(eval $ac_link) 2>conftest.er1
11742
grep -v '^ *+' conftest.er1 >conftest.err
11744
cat conftest.err >&5
11745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746
(exit $ac_status); } &&
11747
{ ac_try='test -z "$ac_cxx_werror_flag"
11748
|| test ! -s conftest.err'
11749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750
(eval $ac_try) 2>&5
11752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753
(exit $ac_status); }; } &&
11754
{ ac_try='test -s conftest$ac_exeext'
11755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756
(eval $ac_try) 2>&5
11758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759
(exit $ac_status); }; }; then
11760
ac_cv_func_shl_load=yes
11762
echo "$as_me: failed program was:" >&5
11763
sed 's/^/| /' conftest.$ac_ext >&5
11765
ac_cv_func_shl_load=no
11767
rm -f conftest.err conftest.$ac_objext \
11768
conftest$ac_exeext conftest.$ac_ext
11770
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11771
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11772
if test $ac_cv_func_shl_load = yes; then
11773
lt_cv_dlopen="shl_load"
11775
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11776
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11777
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11778
echo $ECHO_N "(cached) $ECHO_C" >&6
11780
ac_check_lib_save_LIBS=$LIBS
11782
cat >conftest.$ac_ext <<_ACEOF
11785
cat confdefs.h >>conftest.$ac_ext
11786
cat >>conftest.$ac_ext <<_ACEOF
11787
/* end confdefs.h. */
11789
/* Override any gcc2 internal prototype to avoid an error. */
11793
/* We use char because int might match the return type of a gcc2
11794
builtin and then its argument prototype would still apply. */
11804
rm -f conftest.$ac_objext conftest$ac_exeext
11805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806
(eval $ac_link) 2>conftest.er1
11808
grep -v '^ *+' conftest.er1 >conftest.err
11810
cat conftest.err >&5
11811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
(exit $ac_status); } &&
11813
{ ac_try='test -z "$ac_cxx_werror_flag"
11814
|| test ! -s conftest.err'
11815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816
(eval $ac_try) 2>&5
11818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819
(exit $ac_status); }; } &&
11820
{ ac_try='test -s conftest$ac_exeext'
11821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822
(eval $ac_try) 2>&5
11824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825
(exit $ac_status); }; }; then
11826
ac_cv_lib_dld_shl_load=yes
11828
echo "$as_me: failed program was:" >&5
11829
sed 's/^/| /' conftest.$ac_ext >&5
11831
ac_cv_lib_dld_shl_load=no
11833
rm -f conftest.err conftest.$ac_objext \
11834
conftest$ac_exeext conftest.$ac_ext
11835
LIBS=$ac_check_lib_save_LIBS
11837
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11838
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11839
if test $ac_cv_lib_dld_shl_load = yes; then
11840
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11842
echo "$as_me:$LINENO: checking for dlopen" >&5
11843
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11844
if test "${ac_cv_func_dlopen+set}" = set; then
11845
echo $ECHO_N "(cached) $ECHO_C" >&6
11847
cat >conftest.$ac_ext <<_ACEOF
11850
cat confdefs.h >>conftest.$ac_ext
11851
cat >>conftest.$ac_ext <<_ACEOF
11852
/* end confdefs.h. */
11853
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11854
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11855
#define dlopen innocuous_dlopen
11857
/* System header to define __stub macros and hopefully few prototypes,
11858
which can conflict with char dlopen (); below.
11859
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11860
<limits.h> exists even on freestanding compilers. */
11863
# include <limits.h>
11865
# include <assert.h>
11870
/* Override any gcc2 internal prototype to avoid an error. */
11875
/* We use char because int might match the return type of a gcc2
11876
builtin and then its argument prototype would still apply. */
11878
/* The GNU C library defines this for functions which it implements
11879
to always fail with ENOSYS. Some functions are actually named
11880
something starting with __ and the normal name is an alias. */
11881
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11884
char (*f) () = dlopen;
11893
return f != dlopen;
11898
rm -f conftest.$ac_objext conftest$ac_exeext
11899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900
(eval $ac_link) 2>conftest.er1
11902
grep -v '^ *+' conftest.er1 >conftest.err
11904
cat conftest.err >&5
11905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906
(exit $ac_status); } &&
11907
{ ac_try='test -z "$ac_cxx_werror_flag"
11908
|| test ! -s conftest.err'
11909
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910
(eval $ac_try) 2>&5
11912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
(exit $ac_status); }; } &&
11914
{ ac_try='test -s conftest$ac_exeext'
11915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916
(eval $ac_try) 2>&5
11918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919
(exit $ac_status); }; }; then
11920
ac_cv_func_dlopen=yes
11922
echo "$as_me: failed program was:" >&5
11923
sed 's/^/| /' conftest.$ac_ext >&5
11925
ac_cv_func_dlopen=no
11927
rm -f conftest.err conftest.$ac_objext \
11928
conftest$ac_exeext conftest.$ac_ext
11930
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11931
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11932
if test $ac_cv_func_dlopen = yes; then
11933
lt_cv_dlopen="dlopen"
11935
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11936
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11937
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11938
echo $ECHO_N "(cached) $ECHO_C" >&6
11940
ac_check_lib_save_LIBS=$LIBS
11942
cat >conftest.$ac_ext <<_ACEOF
11945
cat confdefs.h >>conftest.$ac_ext
11946
cat >>conftest.$ac_ext <<_ACEOF
11947
/* end confdefs.h. */
11949
/* Override any gcc2 internal prototype to avoid an error. */
11953
/* We use char because int might match the return type of a gcc2
11954
builtin and then its argument prototype would still apply. */
11964
rm -f conftest.$ac_objext conftest$ac_exeext
11965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966
(eval $ac_link) 2>conftest.er1
11968
grep -v '^ *+' conftest.er1 >conftest.err
11970
cat conftest.err >&5
11971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972
(exit $ac_status); } &&
11973
{ ac_try='test -z "$ac_cxx_werror_flag"
11974
|| test ! -s conftest.err'
11975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976
(eval $ac_try) 2>&5
11978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979
(exit $ac_status); }; } &&
11980
{ ac_try='test -s conftest$ac_exeext'
11981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982
(eval $ac_try) 2>&5
11984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985
(exit $ac_status); }; }; then
11986
ac_cv_lib_dl_dlopen=yes
11988
echo "$as_me: failed program was:" >&5
11989
sed 's/^/| /' conftest.$ac_ext >&5
11991
ac_cv_lib_dl_dlopen=no
11993
rm -f conftest.err conftest.$ac_objext \
11994
conftest$ac_exeext conftest.$ac_ext
11995
LIBS=$ac_check_lib_save_LIBS
11997
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11998
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11999
if test $ac_cv_lib_dl_dlopen = yes; then
12000
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12002
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12003
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12004
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12005
echo $ECHO_N "(cached) $ECHO_C" >&6
12007
ac_check_lib_save_LIBS=$LIBS
12008
LIBS="-lsvld $LIBS"
12009
cat >conftest.$ac_ext <<_ACEOF
12012
cat confdefs.h >>conftest.$ac_ext
12013
cat >>conftest.$ac_ext <<_ACEOF
12014
/* end confdefs.h. */
12016
/* Override any gcc2 internal prototype to avoid an error. */
12020
/* We use char because int might match the return type of a gcc2
12021
builtin and then its argument prototype would still apply. */
12031
rm -f conftest.$ac_objext conftest$ac_exeext
12032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033
(eval $ac_link) 2>conftest.er1
12035
grep -v '^ *+' conftest.er1 >conftest.err
12037
cat conftest.err >&5
12038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039
(exit $ac_status); } &&
12040
{ ac_try='test -z "$ac_cxx_werror_flag"
12041
|| test ! -s conftest.err'
12042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043
(eval $ac_try) 2>&5
12045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
(exit $ac_status); }; } &&
12047
{ ac_try='test -s conftest$ac_exeext'
12048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049
(eval $ac_try) 2>&5
12051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052
(exit $ac_status); }; }; then
12053
ac_cv_lib_svld_dlopen=yes
12055
echo "$as_me: failed program was:" >&5
12056
sed 's/^/| /' conftest.$ac_ext >&5
12058
ac_cv_lib_svld_dlopen=no
12060
rm -f conftest.err conftest.$ac_objext \
12061
conftest$ac_exeext conftest.$ac_ext
12062
LIBS=$ac_check_lib_save_LIBS
12064
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12065
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12066
if test $ac_cv_lib_svld_dlopen = yes; then
12067
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12069
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12070
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12071
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12072
echo $ECHO_N "(cached) $ECHO_C" >&6
12074
ac_check_lib_save_LIBS=$LIBS
12076
cat >conftest.$ac_ext <<_ACEOF
12079
cat confdefs.h >>conftest.$ac_ext
12080
cat >>conftest.$ac_ext <<_ACEOF
12081
/* end confdefs.h. */
12083
/* Override any gcc2 internal prototype to avoid an error. */
12087
/* We use char because int might match the return type of a gcc2
12088
builtin and then its argument prototype would still apply. */
12098
rm -f conftest.$ac_objext conftest$ac_exeext
12099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100
(eval $ac_link) 2>conftest.er1
12102
grep -v '^ *+' conftest.er1 >conftest.err
12104
cat conftest.err >&5
12105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
(exit $ac_status); } &&
12107
{ ac_try='test -z "$ac_cxx_werror_flag"
12108
|| test ! -s conftest.err'
12109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110
(eval $ac_try) 2>&5
12112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113
(exit $ac_status); }; } &&
12114
{ ac_try='test -s conftest$ac_exeext'
12115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116
(eval $ac_try) 2>&5
12118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
(exit $ac_status); }; }; then
12120
ac_cv_lib_dld_dld_link=yes
12122
echo "$as_me: failed program was:" >&5
12123
sed 's/^/| /' conftest.$ac_ext >&5
12125
ac_cv_lib_dld_dld_link=no
12127
rm -f conftest.err conftest.$ac_objext \
12128
conftest$ac_exeext conftest.$ac_ext
12129
LIBS=$ac_check_lib_save_LIBS
12131
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12132
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12133
if test $ac_cv_lib_dld_dld_link = yes; then
12134
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12155
if test "x$lt_cv_dlopen" != xno; then
12161
case $lt_cv_dlopen in
12163
save_CPPFLAGS="$CPPFLAGS"
12164
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12166
save_LDFLAGS="$LDFLAGS"
12167
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12170
LIBS="$lt_cv_dlopen_libs $LIBS"
12172
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12173
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12174
if test "${lt_cv_dlopen_self+set}" = set; then
12175
echo $ECHO_N "(cached) $ECHO_C" >&6
12177
if test "$cross_compiling" = yes; then :
12178
lt_cv_dlopen_self=cross
12180
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181
lt_status=$lt_dlunknown
12182
cat > conftest.$ac_ext <<EOF
12183
#line 12183 "configure"
12184
#include "confdefs.h"
12193
# define LT_DLGLOBAL RTLD_GLOBAL
12196
# define LT_DLGLOBAL DL_GLOBAL
12198
# define LT_DLGLOBAL 0
12202
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203
find out it does not work in some platform. */
12204
#ifndef LT_DLLAZY_OR_NOW
12206
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12209
# define LT_DLLAZY_OR_NOW DL_LAZY
12212
# define LT_DLLAZY_OR_NOW RTLD_NOW
12215
# define LT_DLLAZY_OR_NOW DL_NOW
12217
# define LT_DLLAZY_OR_NOW 0
12225
extern "C" void exit (int);
12228
void fnord() { int i=42;}
12231
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232
int status = $lt_dlunknown;
12236
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12237
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12238
/* dlclose (self); */
12244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245
(eval $ac_link) 2>&5
12247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249
(./conftest; exit; ) 2>/dev/null
12251
case x$lt_status in
12252
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12253
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12254
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12257
# compilation failed
12258
lt_cv_dlopen_self=no
12265
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12266
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12268
if test "x$lt_cv_dlopen_self" = xyes; then
12269
LDFLAGS="$LDFLAGS $link_static_flag"
12270
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12271
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12272
if test "${lt_cv_dlopen_self_static+set}" = set; then
12273
echo $ECHO_N "(cached) $ECHO_C" >&6
12275
if test "$cross_compiling" = yes; then :
12276
lt_cv_dlopen_self_static=cross
12278
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279
lt_status=$lt_dlunknown
12280
cat > conftest.$ac_ext <<EOF
12281
#line 12281 "configure"
12282
#include "confdefs.h"
12291
# define LT_DLGLOBAL RTLD_GLOBAL
12294
# define LT_DLGLOBAL DL_GLOBAL
12296
# define LT_DLGLOBAL 0
12300
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301
find out it does not work in some platform. */
12302
#ifndef LT_DLLAZY_OR_NOW
12304
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12307
# define LT_DLLAZY_OR_NOW DL_LAZY
12310
# define LT_DLLAZY_OR_NOW RTLD_NOW
12313
# define LT_DLLAZY_OR_NOW DL_NOW
12315
# define LT_DLLAZY_OR_NOW 0
12323
extern "C" void exit (int);
12326
void fnord() { int i=42;}
12329
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12330
int status = $lt_dlunknown;
12334
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12335
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12336
/* dlclose (self); */
12342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343
(eval $ac_link) 2>&5
12345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12347
(./conftest; exit; ) 2>/dev/null
12349
case x$lt_status in
12350
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12351
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12352
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12355
# compilation failed
12356
lt_cv_dlopen_self_static=no
12363
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12364
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12367
CPPFLAGS="$save_CPPFLAGS"
12368
LDFLAGS="$save_LDFLAGS"
12373
case $lt_cv_dlopen_self in
12374
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12375
*) enable_dlopen_self=unknown ;;
12378
case $lt_cv_dlopen_self_static in
12379
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12380
*) enable_dlopen_self_static=unknown ;;
12385
# The else clause should only fire when bootstrapping the
12386
# libtool distribution, otherwise you forgot to ship ltmain.sh
12387
# with your package, and you will get complaints that there are
12388
# no rules to generate ltmain.sh.
12389
if test -f "$ltmain"; then
12390
# See if we are running on zsh, and set the options which allow our commands through
12391
# without removal of \ escapes.
12392
if test -n "${ZSH_VERSION+set}" ; then
12393
setopt NO_GLOB_SUBST
12395
# Now quote all the things that may contain metacharacters while being
12396
# careful not to overquote the AC_SUBSTed values. We take copies of the
12397
# variables and quote the copies for generation of the libtool script.
12398
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12400
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12401
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12402
deplibs_check_method reload_flag reload_cmds need_locks \
12403
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12404
lt_cv_sys_global_symbol_to_c_name_address \
12405
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12406
old_postinstall_cmds old_postuninstall_cmds \
12410
lt_prog_compiler_wl_CXX \
12411
lt_prog_compiler_pic_CXX \
12412
lt_prog_compiler_static_CXX \
12413
lt_prog_compiler_no_builtin_flag_CXX \
12414
export_dynamic_flag_spec_CXX \
12415
thread_safe_flag_spec_CXX \
12416
whole_archive_flag_spec_CXX \
12417
enable_shared_with_static_runtimes_CXX \
12418
old_archive_cmds_CXX \
12419
old_archive_from_new_cmds_CXX \
12420
predep_objects_CXX \
12421
postdep_objects_CXX \
12424
compiler_lib_search_path_CXX \
12426
archive_expsym_cmds_CXX \
12427
postinstall_cmds_CXX \
12428
postuninstall_cmds_CXX \
12429
old_archive_from_expsyms_cmds_CXX \
12430
allow_undefined_flag_CXX \
12431
no_undefined_flag_CXX \
12432
export_symbols_cmds_CXX \
12433
hardcode_libdir_flag_spec_CXX \
12434
hardcode_libdir_flag_spec_ld_CXX \
12435
hardcode_libdir_separator_CXX \
12436
hardcode_automatic_CXX \
12438
module_expsym_cmds_CXX \
12439
lt_cv_prog_compiler_c_o_CXX \
12440
exclude_expsyms_CXX \
12441
include_expsyms_CXX; do
12444
old_archive_cmds_CXX | \
12445
old_archive_from_new_cmds_CXX | \
12446
archive_cmds_CXX | \
12447
archive_expsym_cmds_CXX | \
12448
module_cmds_CXX | \
12449
module_expsym_cmds_CXX | \
12450
old_archive_from_expsyms_cmds_CXX | \
12451
export_symbols_cmds_CXX | \
12452
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12453
postinstall_cmds | postuninstall_cmds | \
12454
old_postinstall_cmds | old_postuninstall_cmds | \
12455
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12456
# Double-quote double-evaled strings.
12457
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12460
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12466
*'\$0 --fallback-echo"')
12467
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12473
cat <<__EOF__ >> "$cfgfile"
12474
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12476
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12478
# Shell to use when invoking shell scripts.
12481
# Whether or not to build shared libraries.
12482
build_libtool_libs=$enable_shared
12484
# Whether or not to build static libraries.
12485
build_old_libs=$enable_static
12487
# Whether or not to add -lc for building shared libraries.
12488
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12490
# Whether or not to disallow shared libs when runtime libs are static
12491
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12493
# Whether or not to optimize for fast installation.
12494
fast_install=$enable_fast_install
12497
host_alias=$host_alias
12501
# The build system.
12502
build_alias=$build_alias
12506
# An echo program that does not interpret backslashes.
12511
AR_FLAGS=$lt_AR_FLAGS
12516
# A language-specific compiler.
12517
CC=$lt_compiler_CXX
12519
# Is the compiler the GNU C compiler?
12525
# The linker used to build libraries.
12528
# Whether we need hard or soft links.
12531
# A BSD-compatible nm program.
12534
# A symbol stripping program
12537
# Used to examine libraries when file_magic_cmd begins "file"
12538
MAGIC_CMD=$MAGIC_CMD
12540
# Used on cygwin: DLL creation program.
12543
# Used on cygwin: object dumper.
12546
# Used on cygwin: assembler.
12549
# The name of the directory that contains temporary libtool files.
12552
# How to create reloadable object files.
12553
reload_flag=$lt_reload_flag
12554
reload_cmds=$lt_reload_cmds
12556
# How to pass a linker flag through the compiler.
12557
wl=$lt_lt_prog_compiler_wl_CXX
12559
# Object file suffix (normally "o").
12560
objext="$ac_objext"
12562
# Old archive suffix (normally "a").
12565
# Shared library suffix (normally ".so").
12566
shrext_cmds='$shrext_cmds'
12568
# Executable file suffix (normally "").
12571
# Additional compiler flags for building library objects.
12572
pic_flag=$lt_lt_prog_compiler_pic_CXX
12575
# What is the maximum length of a command?
12576
max_cmd_len=$lt_cv_sys_max_cmd_len
12578
# Does compiler simultaneously support -c and -o options?
12579
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12581
# Must we lock files when doing compilation ?
12582
need_locks=$lt_need_locks
12584
# Do we need the lib prefix for modules?
12585
need_lib_prefix=$need_lib_prefix
12587
# Do we need a version for libraries?
12588
need_version=$need_version
12590
# Whether dlopen is supported.
12591
dlopen_support=$enable_dlopen
12593
# Whether dlopen of programs is supported.
12594
dlopen_self=$enable_dlopen_self
12596
# Whether dlopen of statically linked programs is supported.
12597
dlopen_self_static=$enable_dlopen_self_static
12599
# Compiler flag to prevent dynamic linking.
12600
link_static_flag=$lt_lt_prog_compiler_static_CXX
12602
# Compiler flag to turn off builtin functions.
12603
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12605
# Compiler flag to allow reflexive dlopens.
12606
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12608
# Compiler flag to generate shared objects directly from archives.
12609
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12611
# Compiler flag to generate thread-safe objects.
12612
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12614
# Library versioning type.
12615
version_type=$version_type
12617
# Format of library name prefix.
12618
libname_spec=$lt_libname_spec
12620
# List of archive names. First name is the real one, the rest are links.
12621
# The last name is the one that the linker finds with -lNAME.
12622
library_names_spec=$lt_library_names_spec
12624
# The coded name of the library, if different from the real name.
12625
soname_spec=$lt_soname_spec
12627
# Commands used to build and install an old-style archive.
12629
old_archive_cmds=$lt_old_archive_cmds_CXX
12630
old_postinstall_cmds=$lt_old_postinstall_cmds
12631
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12633
# Create an old-style archive from a shared archive.
12634
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12636
# Create a temporary old-style archive to link instead of a shared archive.
12637
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12639
# Commands used to build and install a shared archive.
12640
archive_cmds=$lt_archive_cmds_CXX
12641
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12642
postinstall_cmds=$lt_postinstall_cmds
12643
postuninstall_cmds=$lt_postuninstall_cmds
12645
# Commands used to build a loadable module (assumed same as above if empty)
12646
module_cmds=$lt_module_cmds_CXX
12647
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12649
# Commands to strip libraries.
12650
old_striplib=$lt_old_striplib
12651
striplib=$lt_striplib
12653
# Dependencies to place before the objects being linked to create a
12655
predep_objects=$lt_predep_objects_CXX
12657
# Dependencies to place after the objects being linked to create a
12659
postdep_objects=$lt_postdep_objects_CXX
12661
# Dependencies to place before the objects being linked to create a
12663
predeps=$lt_predeps_CXX
12665
# Dependencies to place after the objects being linked to create a
12667
postdeps=$lt_postdeps_CXX
12669
# The library search path used internally by the compiler when linking
12670
# a shared library.
12671
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12673
# Method to check whether dependent libraries are shared objects.
12674
deplibs_check_method=$lt_deplibs_check_method
12676
# Command to use when deplibs_check_method == file_magic.
12677
file_magic_cmd=$lt_file_magic_cmd
12679
# Flag that allows shared libraries with undefined symbols to be built.
12680
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12682
# Flag that forces no undefined symbols.
12683
no_undefined_flag=$lt_no_undefined_flag_CXX
12685
# Commands used to finish a libtool library installation in a directory.
12686
finish_cmds=$lt_finish_cmds
12688
# Same as above, but a single script fragment to be evaled but not shown.
12689
finish_eval=$lt_finish_eval
12691
# Take the output of nm and produce a listing of raw symbols and C names.
12692
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12694
# Transform the output of nm in a proper C declaration
12695
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12697
# Transform the output of nm in a C name address pair
12698
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12700
# This is the shared library runtime path variable.
12701
runpath_var=$runpath_var
12703
# This is the shared library path variable.
12704
shlibpath_var=$shlibpath_var
12706
# Is shlibpath searched before the hard-coded library search path?
12707
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12709
# How to hardcode a shared library path into an executable.
12710
hardcode_action=$hardcode_action_CXX
12712
# Whether we should hardcode library paths into libraries.
12713
hardcode_into_libs=$hardcode_into_libs
12715
# Flag to hardcode \$libdir into a binary during linking.
12716
# This must work even if \$libdir does not exist.
12717
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12719
# If ld is used when linking, flag to hardcode \$libdir into
12720
# a binary during linking. This must work even if \$libdir does
12722
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12724
# Whether we need a single -rpath flag with a separated argument.
12725
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12727
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12728
# resulting binary.
12729
hardcode_direct=$hardcode_direct_CXX
12731
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12732
# resulting binary.
12733
hardcode_minus_L=$hardcode_minus_L_CXX
12735
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12736
# the resulting binary.
12737
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12739
# Set to yes if building a shared library automatically hardcodes DIR into the library
12740
# and all subsequent libraries and executables linked against it.
12741
hardcode_automatic=$hardcode_automatic_CXX
12743
# Variables whose values should be saved in libtool wrapper scripts and
12744
# restored at relink time.
12745
variables_saved_for_relink="$variables_saved_for_relink"
12747
# Whether libtool must link a program against all its dependency libraries.
12748
link_all_deplibs=$link_all_deplibs_CXX
12750
# Compile-time system search path for libraries
12751
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12753
# Run-time system search path for libraries
12754
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12756
# Fix the shell variable \$srcfile for the compiler.
12757
fix_srcfile_path="$fix_srcfile_path_CXX"
12759
# Set to yes if exported symbols are required.
12760
always_export_symbols=$always_export_symbols_CXX
12762
# The commands to list exported symbols.
12763
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12765
# The commands to extract the exported symbol list from a shared archive.
12766
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12768
# Symbols that should not be listed in the preloaded symbols.
12769
exclude_expsyms=$lt_exclude_expsyms_CXX
12771
# Symbols that must always be exported.
12772
include_expsyms=$lt_include_expsyms_CXX
12774
# ### END LIBTOOL TAG CONFIG: $tagname
12780
# If there is no Makefile yet, we rely on a make rule to execute
12781
# `config.status --recheck' to rerun these tests and create the
12782
# libtool script then.
12783
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12784
if test -f "$ltmain_in"; then
12785
test -f Makefile && make "$ltmain"
12791
ac_cpp='$CPP $CPPFLAGS'
12792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12800
with_gnu_ldcxx=$with_gnu_ld
12801
with_gnu_ld=$lt_save_with_gnu_ld
12802
lt_cv_path_LDCXX=$lt_cv_path_LD
12803
lt_cv_path_LD=$lt_save_path_LD
12804
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12805
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12813
if test -n "$F77" && test "X$F77" != "Xno"; then
12816
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12817
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12821
archive_cmds_need_lc_F77=no
12822
allow_undefined_flag_F77=
12823
always_export_symbols_F77=no
12824
archive_expsym_cmds_F77=
12825
export_dynamic_flag_spec_F77=
12826
hardcode_direct_F77=no
12827
hardcode_libdir_flag_spec_F77=
12828
hardcode_libdir_flag_spec_ld_F77=
12829
hardcode_libdir_separator_F77=
12830
hardcode_minus_L_F77=no
12831
hardcode_automatic_F77=no
12833
module_expsym_cmds_F77=
12834
link_all_deplibs_F77=unknown
12835
old_archive_cmds_F77=$old_archive_cmds
12836
no_undefined_flag_F77=
12837
whole_archive_flag_spec_F77=
12838
enable_shared_with_static_runtimes_F77=no
12840
# Source file extension for f77 test sources.
12843
# Object file extension for compiled f77 test sources.
12847
# Code to be used in simple compile tests
12848
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12850
# Code to be used in simple link tests
12851
lt_simple_link_test_code=" program t\n end\n"
12853
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12855
# If no C compiler was specified, use CC.
12858
# Allow CC to be a program name with arguments.
12862
# Allow CC to be a program name with arguments.
12867
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12869
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12870
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12871
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12872
echo "${ECHO_T}$can_build_shared" >&6
12874
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12875
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12876
test "$can_build_shared" = "no" && enable_shared=no
12878
# On AIX, shared libraries and static libraries use the same namespace, and
12879
# are all built from PIC.
12882
test "$enable_shared" = yes && enable_static=no
12883
if test -n "$RANLIB"; then
12884
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12885
postinstall_cmds='$RANLIB $lib'
12889
test "$enable_shared" = yes && enable_static=no
12892
echo "$as_me:$LINENO: result: $enable_shared" >&5
12893
echo "${ECHO_T}$enable_shared" >&6
12895
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12896
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12897
# Make sure either enable_shared or enable_static is yes.
12898
test "$enable_shared" = yes || enable_static=yes
12899
echo "$as_me:$LINENO: result: $enable_static" >&5
12900
echo "${ECHO_T}$enable_static" >&6
12902
test "$ld_shlibs_F77" = no && can_build_shared=no
12907
lt_prog_compiler_wl_F77=
12908
lt_prog_compiler_pic_F77=
12909
lt_prog_compiler_static_F77=
12911
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914
if test "$GCC" = yes; then
12915
lt_prog_compiler_wl_F77='-Wl,'
12916
lt_prog_compiler_static_F77='-static'
12920
# All AIX code is PIC.
12921
if test "$host_cpu" = ia64; then
12922
# AIX 5 now supports IA64 processor
12923
lt_prog_compiler_static_F77='-Bstatic'
12928
# FIXME: we need at least 68020 code to build shared libraries, but
12929
# adding the `-m68020' flag to GCC prevents building anything better,
12931
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12934
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935
# PIC is the default for these OSes.
12938
mingw* | pw32* | os2*)
12939
# This hack is so that the source file can tell whether it is being
12940
# built for inclusion in a dll (and should export symbols for example).
12941
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12944
darwin* | rhapsody*)
12945
# PIC is the default on this platform
12946
# Common symbols not allowed in MH_DYLIB files
12947
lt_prog_compiler_pic_F77='-fno-common'
12951
# Just because we use GCC doesn't mean we suddenly get shared libraries
12952
# on systems that don't support them.
12953
lt_prog_compiler_can_build_shared_F77=no
12958
if test -d /usr/nec; then
12959
lt_prog_compiler_pic_F77=-Kconform_pic
12964
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12965
# not for PA HP-UX.
12966
case "$host_cpu" in
12971
lt_prog_compiler_pic_F77='-fPIC'
12977
lt_prog_compiler_pic_F77='-fPIC'
12981
# PORTME Check for flag to pass linker flags through the system compiler.
12984
lt_prog_compiler_wl_F77='-Wl,'
12985
if test "$host_cpu" = ia64; then
12986
# AIX 5 now supports IA64 processor
12987
lt_prog_compiler_static_F77='-Bstatic'
12989
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12993
# PIC is the default on this platform
12994
# Common symbols not allowed in MH_DYLIB files
12995
case "$cc_basename" in
12997
lt_prog_compiler_pic_F77='-qnocommon'
12998
lt_prog_compiler_wl_F77='-Wl,'
13003
mingw* | pw32* | os2*)
13004
# This hack is so that the source file can tell whether it is being
13005
# built for inclusion in a dll (and should export symbols for example).
13006
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13009
hpux9* | hpux10* | hpux11*)
13010
lt_prog_compiler_wl_F77='-Wl,'
13011
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13012
# not for PA HP-UX.
13013
case "$host_cpu" in
13018
lt_prog_compiler_pic_F77='+Z'
13021
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13022
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13025
irix5* | irix6* | nonstopux*)
13026
lt_prog_compiler_wl_F77='-Wl,'
13027
# PIC (with -KPIC) is the default.
13028
lt_prog_compiler_static_F77='-non_shared'
13032
lt_prog_compiler_pic_F77='-KPIC'
13033
lt_prog_compiler_static_F77='-Bstatic'
13037
case $cc_basename in
13039
lt_prog_compiler_wl_F77='-Wl,'
13040
lt_prog_compiler_pic_F77='-KPIC'
13041
lt_prog_compiler_static_F77='-static'
13043
pgcc | pgf77 | pgf90)
13044
# Portland Group compilers (*not* the Pentium gcc compiler,
13045
# which looks to be a dead project)
13046
lt_prog_compiler_wl_F77='-Wl,'
13047
lt_prog_compiler_pic_F77='-fpic'
13048
lt_prog_compiler_static_F77='-static'
13051
lt_prog_compiler_wl_F77='-Wl,'
13052
# All Alpha code is PIC.
13053
lt_prog_compiler_static_F77='-non_shared'
13058
osf3* | osf4* | osf5*)
13059
lt_prog_compiler_wl_F77='-Wl,'
13060
# All OSF/1 code is PIC.
13061
lt_prog_compiler_static_F77='-non_shared'
13065
lt_prog_compiler_pic_F77='-Kpic'
13066
lt_prog_compiler_static_F77='-dn'
13070
lt_prog_compiler_wl_F77='-Wl,'
13071
lt_prog_compiler_pic_F77='-KPIC'
13072
lt_prog_compiler_static_F77='-Bstatic'
13076
lt_prog_compiler_wl_F77='-Qoption ld '
13077
lt_prog_compiler_pic_F77='-PIC'
13078
lt_prog_compiler_static_F77='-Bstatic'
13081
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13082
lt_prog_compiler_wl_F77='-Wl,'
13083
lt_prog_compiler_pic_F77='-KPIC'
13084
lt_prog_compiler_static_F77='-Bstatic'
13088
if test -d /usr/nec ;then
13089
lt_prog_compiler_pic_F77='-Kconform_pic'
13090
lt_prog_compiler_static_F77='-Bstatic'
13095
lt_prog_compiler_wl_F77='-Wl,'
13096
lt_prog_compiler_can_build_shared_F77=no
13100
lt_prog_compiler_pic_F77='-pic'
13101
lt_prog_compiler_static_F77='-Bstatic'
13105
lt_prog_compiler_can_build_shared_F77=no
13110
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13111
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13114
# Check to make sure the PIC flag actually works.
13116
if test -n "$lt_prog_compiler_pic_F77"; then
13118
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13119
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13120
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13121
echo $ECHO_N "(cached) $ECHO_C" >&6
13123
lt_prog_compiler_pic_works_F77=no
13124
ac_outfile=conftest.$ac_objext
13125
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13126
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13127
# Insert the option either (1) after the last *FLAGS variable, or
13128
# (2) before a word containing "conftest.", or (3) at the end.
13129
# Note that $ac_compile itself does not contain backslashes and begins
13130
# with a dollar sign (not a hyphen), so the echo should work correctly.
13131
# The option is referenced via a variable to avoid confusing sed.
13132
lt_compile=`echo "$ac_compile" | $SED \
13133
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13134
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13135
-e 's:$: $lt_compiler_flag:'`
13136
(eval echo "\"\$as_me:13136: $lt_compile\"" >&5)
13137
(eval "$lt_compile" 2>conftest.err)
13139
cat conftest.err >&5
13140
echo "$as_me:13140: \$? = $ac_status" >&5
13141
if (exit $ac_status) && test -s "$ac_outfile"; then
13142
# The compiler can only warn and ignore the option if not recognized
13143
# So say no if there are warnings
13144
if test ! -s conftest.err; then
13145
lt_prog_compiler_pic_works_F77=yes
13151
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13152
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13154
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13155
case $lt_prog_compiler_pic_F77 in
13157
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13160
lt_prog_compiler_pic_F77=
13161
lt_prog_compiler_can_build_shared_F77=no
13166
# For platforms which do not support PIC, -DPIC is meaningless:
13168
lt_prog_compiler_pic_F77=
13171
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13175
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13176
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13177
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13178
echo $ECHO_N "(cached) $ECHO_C" >&6
13180
lt_cv_prog_compiler_c_o_F77=no
13181
$rm -r conftest 2>/dev/null
13185
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13187
lt_compiler_flag="-o out/conftest2.$ac_objext"
13188
# Insert the option either (1) after the last *FLAGS variable, or
13189
# (2) before a word containing "conftest.", or (3) at the end.
13190
# Note that $ac_compile itself does not contain backslashes and begins
13191
# with a dollar sign (not a hyphen), so the echo should work correctly.
13192
lt_compile=`echo "$ac_compile" | $SED \
13193
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13194
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13195
-e 's:$: $lt_compiler_flag:'`
13196
(eval echo "\"\$as_me:13196: $lt_compile\"" >&5)
13197
(eval "$lt_compile" 2>out/conftest.err)
13199
cat out/conftest.err >&5
13200
echo "$as_me:13200: \$? = $ac_status" >&5
13201
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13203
# The compiler can only warn and ignore the option if not recognized
13204
# So say no if there are warnings
13205
if test ! -s out/conftest.err; then
13206
lt_cv_prog_compiler_c_o_F77=yes
13211
# SGI C++ compiler will create directory out/ii_files/ for
13212
# template instantiation
13213
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13214
$rm out/* && rmdir out
13220
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13224
hard_links="nottested"
13225
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226
# do not overwrite the value of need_locks provided by the user
13227
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13231
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13233
ln conftest.a conftest.b 2>&5 || hard_links=no
13234
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235
echo "$as_me:$LINENO: result: $hard_links" >&5
13236
echo "${ECHO_T}$hard_links" >&6
13237
if test "$hard_links" = no; then
13238
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13246
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13250
allow_undefined_flag_F77=
13251
enable_shared_with_static_runtimes_F77=no
13253
archive_expsym_cmds_F77=
13254
old_archive_From_new_cmds_F77=
13255
old_archive_from_expsyms_cmds_F77=
13256
export_dynamic_flag_spec_F77=
13257
whole_archive_flag_spec_F77=
13258
thread_safe_flag_spec_F77=
13259
hardcode_libdir_flag_spec_F77=
13260
hardcode_libdir_flag_spec_ld_F77=
13261
hardcode_libdir_separator_F77=
13262
hardcode_direct_F77=no
13263
hardcode_minus_L_F77=no
13264
hardcode_shlibpath_var_F77=unsupported
13265
link_all_deplibs_F77=unknown
13266
hardcode_automatic_F77=no
13268
module_expsym_cmds_F77=
13269
always_export_symbols_F77=no
13270
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271
# include_expsyms should be a list of space-separated symbols to be *always*
13272
# included in the symbol list
13273
include_expsyms_F77=
13274
# exclude_expsyms can be an extended regexp of symbols to exclude
13275
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13276
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277
# as well as any symbol that contains `d'.
13278
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280
# platforms (ab)use it in PIC code, but their linkers get confused if
13281
# the symbol is explicitly referenced. Since portable code cannot
13282
# rely on this symbol name, it's probably fine to never include it in
13283
# preloaded symbol tables.
13284
extract_expsyms_cmds=
13287
cygwin* | mingw* | pw32*)
13288
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13289
# When not using gcc, we currently assume that we are using
13290
# Microsoft Visual C++.
13291
if test "$GCC" != yes; then
13301
if test "$with_gnu_ld" = yes; then
13302
# If archive_cmds runs LD, not CC, wlarc should be empty
13305
# See if GNU ld supports shared libraries.
13307
aix3* | aix4* | aix5*)
13308
# On AIX/PPC, the GNU linker is very broken
13309
if test "$host_cpu" != ia64; then
13313
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314
*** to be unable to reliably create shared libraries on AIX.
13315
*** Therefore, libtool is disabling shared libraries support. If you
13316
*** really care for shared libraries, you may want to modify your PATH
13317
*** so that a non-GNU linker is found, and then restart.
13324
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)'
13325
hardcode_libdir_flag_spec_F77='-L$libdir'
13326
hardcode_minus_L_F77=yes
13328
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329
# that the semantics of dynamic libraries on AmigaOS, at least up
13330
# to version 4, is to share data among multiple programs linked
13331
# with the same dynamic library. Since this doesn't match the
13332
# behavior of shared libraries on other platforms, we can't use
13338
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339
allow_undefined_flag_F77=unsupported
13340
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341
# support --undefined. This deserves some investigation. FIXME
13342
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348
cygwin* | mingw* | pw32*)
13349
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350
# as there is no search path for DLLs.
13351
hardcode_libdir_flag_spec_F77='-L$libdir'
13352
allow_undefined_flag_F77=unsupported
13353
always_export_symbols_F77=no
13354
enable_shared_with_static_runtimes_F77=yes
13355
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13357
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359
# If the export-symbols file already is a .def file (1st line
13360
# is EXPORTS), use it as is; otherwise, prepend...
13361
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362
cp $export_symbols $output_objdir/$soname.def;
13364
echo EXPORTS > $output_objdir/$soname.def;
13365
cat $export_symbols >> $output_objdir/$soname.def;
13367
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13374
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13378
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13388
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389
*** create shared libraries on Solaris systems. Therefore, libtool
13390
*** is disabling shared libraries support. We urge you to upgrade GNU
13391
*** binutils to release 2.9.1 or newer. Another option is to modify
13392
*** your PATH or compiler configuration so that the native linker is
13393
*** used, and then restart.
13396
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13405
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13407
hardcode_direct_F77=yes
13408
hardcode_shlibpath_var_F77=no
13412
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13414
case $CC,$host_cpu in
13415
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13416
tmp_addflag=' -fpic' ;;
13417
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13418
tmp_addflag=' -i_dynamic' ;;
13419
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13420
tmp_addflag=' -i_dynamic -nofor_main' ;;
13421
ifc* | ifort*) # Intel Fortran compiler
13422
tmp_addflag=' -nofor_main' ;;
13424
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425
supports_anon_versioning=no
13426
case `$LD -v 2>/dev/null` in
13427
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13428
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13429
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13430
*\ 2.11.*) ;; # other 2.11 versions
13431
*) supports_anon_versioning=yes ;;
13433
if test $supports_anon_versioning = yes; then
13434
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13435
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13436
$echo "local: *; };" >> $output_objdir/$libname.ver~
13437
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13439
archive_expsym_cmds_F77=$archive_cmds_F77
13447
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13456
if test "$ld_shlibs_F77" = yes; then
13457
runpath_var=LD_RUN_PATH
13458
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460
# ancient GNU ld didn't support --whole-archive et. al.
13461
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13464
whole_archive_flag_spec_F77=
13468
# PORTME fill in a description of your system's linker (not GNU ld)
13471
allow_undefined_flag_F77=unsupported
13472
always_export_symbols_F77=yes
13473
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'
13474
# Note: this linker hardcodes the directories in LIBPATH if there
13475
# are no directories specified by -L.
13476
hardcode_minus_L_F77=yes
13477
if test "$GCC" = yes && test -z "$link_static_flag"; then
13478
# Neither direct hardcoding nor static linking is supported with a
13480
hardcode_direct_F77=unsupported
13485
if test "$host_cpu" = ia64; then
13486
# On IA64, the linker does run time linking by default, so we don't
13487
# have to do anything special.
13488
aix_use_runtimelinking=no
13489
exp_sym_flag='-Bexport'
13492
# If we're using GNU nm, then we don't want the "-C" option.
13493
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13494
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495
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'
13497
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'
13499
aix_use_runtimelinking=no
13501
# Test if we are trying to use run time linking or normal
13502
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503
# need to do runtime linking.
13504
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505
for ld_flag in $LDFLAGS; do
13506
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507
aix_use_runtimelinking=yes
13513
exp_sym_flag='-bexport'
13514
no_entry_flag='-bnoentry'
13517
# When large executables or shared objects are built, AIX ld can
13518
# have problems creating the table of contents. If linking a library
13519
# or program results in "error TOC overflow" add -mminimal-toc to
13520
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13521
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13523
archive_cmds_F77=''
13524
hardcode_direct_F77=yes
13525
hardcode_libdir_separator_F77=':'
13526
link_all_deplibs_F77=yes
13528
if test "$GCC" = yes; then
13529
case $host_os in aix4.[012]|aix4.[012].*)
13530
# We only want to do this on AIX 4.2 and lower, the check
13531
# below for broken collect2 doesn't work under 4.3+
13532
collect2name=`${CC} -print-prog-name=collect2`
13533
if test -f "$collect2name" && \
13534
strings "$collect2name" | grep resolve_lib_name >/dev/null
13536
# We have reworked collect2
13537
hardcode_direct_F77=yes
13539
# We have old collect2
13540
hardcode_direct_F77=unsupported
13541
# It fails to find uninstalled libraries when the uninstalled
13542
# path is not listed in the libpath. Setting hardcode_minus_L
13543
# to unsupported forces relinking
13544
hardcode_minus_L_F77=yes
13545
hardcode_libdir_flag_spec_F77='-L$libdir'
13546
hardcode_libdir_separator_F77=
13549
shared_flag='-shared'
13550
if test "$aix_use_runtimelinking" = yes; then
13551
shared_flag="$shared_flag "'${wl}-G'
13555
if test "$host_cpu" = ia64; then
13556
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13557
# chokes on -Wl,-G. The following line is correct:
13560
if test "$aix_use_runtimelinking" = yes; then
13561
shared_flag='${wl}-G'
13563
shared_flag='${wl}-bM:SRE'
13568
# It seems that -bexpall does not export symbols beginning with
13569
# underscore (_), so it is better to generate a list of symbols to export.
13570
always_export_symbols_F77=yes
13571
if test "$aix_use_runtimelinking" = yes; then
13572
# Warning - without using the other runtime loading flags (-brtl),
13573
# -berok will link without error, but may produce a broken library.
13574
allow_undefined_flag_F77='-berok'
13575
# Determine the default libpath from the value encoded in an empty executable.
13576
cat >conftest.$ac_ext <<_ACEOF
13581
rm -f conftest.$ac_objext conftest$ac_exeext
13582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13583
(eval $ac_link) 2>conftest.er1
13585
grep -v '^ *+' conftest.er1 >conftest.err
13587
cat conftest.err >&5
13588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589
(exit $ac_status); } &&
13590
{ ac_try='test -z "$ac_f77_werror_flag"
13591
|| test ! -s conftest.err'
13592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593
(eval $ac_try) 2>&5
13595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596
(exit $ac_status); }; } &&
13597
{ ac_try='test -s conftest$ac_exeext'
13598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599
(eval $ac_try) 2>&5
13601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602
(exit $ac_status); }; }; then
13604
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13606
# Check for a 64-bit object if we didn't find anything.
13607
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; }
13610
echo "$as_me: failed program was:" >&5
13611
sed 's/^/| /' conftest.$ac_ext >&5
13614
rm -f conftest.err conftest.$ac_objext \
13615
conftest$ac_exeext conftest.$ac_ext
13616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13618
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619
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"
13621
if test "$host_cpu" = ia64; then
13622
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13623
allow_undefined_flag_F77="-z nodefs"
13624
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"
13626
# Determine the default libpath from the value encoded in an empty executable.
13627
cat >conftest.$ac_ext <<_ACEOF
13632
rm -f conftest.$ac_objext conftest$ac_exeext
13633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634
(eval $ac_link) 2>conftest.er1
13636
grep -v '^ *+' conftest.er1 >conftest.err
13638
cat conftest.err >&5
13639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640
(exit $ac_status); } &&
13641
{ ac_try='test -z "$ac_f77_werror_flag"
13642
|| test ! -s conftest.err'
13643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644
(eval $ac_try) 2>&5
13646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647
(exit $ac_status); }; } &&
13648
{ ac_try='test -s conftest$ac_exeext'
13649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650
(eval $ac_try) 2>&5
13652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
(exit $ac_status); }; }; then
13655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13657
# Check for a 64-bit object if we didn't find anything.
13658
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; }
13661
echo "$as_me: failed program was:" >&5
13662
sed 's/^/| /' conftest.$ac_ext >&5
13665
rm -f conftest.err conftest.$ac_objext \
13666
conftest$ac_exeext conftest.$ac_ext
13667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13669
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13670
# Warning - without using the other run time loading flags,
13671
# -berok will link without error, but may produce a broken library.
13672
no_undefined_flag_F77=' ${wl}-bernotok'
13673
allow_undefined_flag_F77=' ${wl}-berok'
13674
# -bexpall does not export symbols beginning with underscore (_)
13675
always_export_symbols_F77=yes
13676
# Exported symbols can be pulled into shared objects from archives
13677
whole_archive_flag_spec_F77=' '
13678
archive_cmds_need_lc_F77=yes
13679
# This is similar to how AIX traditionally builds it's shared libraries.
13680
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'
13686
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)'
13687
hardcode_libdir_flag_spec_F77='-L$libdir'
13688
hardcode_minus_L_F77=yes
13689
# see comment about different semantics on the GNU ld section
13694
export_dynamic_flag_spec_F77=-rdynamic
13697
cygwin* | mingw* | pw32*)
13698
# When not using gcc, we currently assume that we are using
13699
# Microsoft Visual C++.
13700
# hardcode_libdir_flag_spec is actually meaningless, as there is
13701
# no search path for DLLs.
13702
hardcode_libdir_flag_spec_F77=' '
13703
allow_undefined_flag_F77=unsupported
13704
# Tell ltmain to make .lib files, not .a files.
13706
# Tell ltmain to make .dll files, not .so files.
13708
# FIXME: Setting linknames here is a bad hack.
13709
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13710
# The linker will automatically build a .lib file if we build a DLL.
13711
old_archive_From_new_cmds_F77='true'
13712
# FIXME: Should let the user specify the lib program.
13713
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13714
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13715
enable_shared_with_static_runtimes_F77=yes
13718
darwin* | rhapsody*)
13720
rhapsody* | darwin1.[012])
13721
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13724
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13725
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13727
case ${MACOSX_DEPLOYMENT_TARGET} in
13729
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13732
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13738
archive_cmds_need_lc_F77=no
13739
hardcode_direct_F77=no
13740
hardcode_automatic_F77=yes
13741
hardcode_shlibpath_var_F77=unsupported
13742
whole_archive_flag_spec_F77=''
13743
link_all_deplibs_F77=yes
13744
if test "$GCC" = yes ; then
13745
output_verbose_link_cmd='echo'
13746
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13747
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13748
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13749
archive_expsym_cmds_F77='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}'
13750
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13752
case "$cc_basename" in
13754
output_verbose_link_cmd='echo'
13755
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13756
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13758
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13759
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13769
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770
hardcode_libdir_flag_spec_F77='-L$libdir'
13771
hardcode_shlibpath_var_F77=no
13778
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13779
# support. Future versions do this automatically, but an explicit c++rt0.o
13780
# does not break anything, and helps significantly (at the cost of a little
13783
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13784
hardcode_libdir_flag_spec_F77='-R$libdir'
13785
hardcode_direct_F77=yes
13786
hardcode_shlibpath_var_F77=no
13789
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13791
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13792
hardcode_direct_F77=yes
13793
hardcode_minus_L_F77=yes
13794
hardcode_shlibpath_var_F77=no
13797
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13798
freebsd* | kfreebsd*-gnu | dragonfly*)
13799
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13800
hardcode_libdir_flag_spec_F77='-R$libdir'
13801
hardcode_direct_F77=yes
13802
hardcode_shlibpath_var_F77=no
13806
if test "$GCC" = yes; then
13807
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'
13809
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'
13811
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13812
hardcode_libdir_separator_F77=:
13813
hardcode_direct_F77=yes
13815
# hardcode_minus_L: Not really in the search PATH,
13816
# but as the default location of the library.
13817
hardcode_minus_L_F77=yes
13818
export_dynamic_flag_spec_F77='${wl}-E'
13822
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13823
case "$host_cpu" in
13825
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13828
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13832
case "$host_cpu" in
13834
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13837
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13841
if test "$with_gnu_ld" = no; then
13842
case "$host_cpu" in
13844
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13845
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13846
hardcode_libdir_separator_F77=:
13847
hardcode_direct_F77=no
13848
hardcode_shlibpath_var_F77=no
13851
hardcode_libdir_flag_spec_F77='-L$libdir'
13852
hardcode_direct_F77=no
13853
hardcode_shlibpath_var_F77=no
13855
# hardcode_minus_L: Not really in the search PATH,
13856
# but as the default location of the library.
13857
hardcode_minus_L_F77=yes
13860
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13861
hardcode_libdir_separator_F77=:
13862
hardcode_direct_F77=yes
13863
export_dynamic_flag_spec_F77='${wl}-E'
13865
# hardcode_minus_L: Not really in the search PATH,
13866
# but as the default location of the library.
13867
hardcode_minus_L_F77=yes
13873
irix5* | irix6* | nonstopux*)
13874
if test "$GCC" = yes; then
13875
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'
13877
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'
13878
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13880
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13881
hardcode_libdir_separator_F77=:
13882
link_all_deplibs_F77=yes
13886
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13887
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13889
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13891
hardcode_libdir_flag_spec_F77='-R$libdir'
13892
hardcode_direct_F77=yes
13893
hardcode_shlibpath_var_F77=no
13897
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898
hardcode_direct_F77=yes
13899
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13900
hardcode_libdir_separator_F77=:
13901
hardcode_shlibpath_var_F77=no
13905
hardcode_direct_F77=yes
13906
hardcode_shlibpath_var_F77=no
13907
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13909
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13910
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13911
export_dynamic_flag_spec_F77='${wl}-E'
13914
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13915
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916
hardcode_libdir_flag_spec_F77='-R$libdir'
13919
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13920
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13927
hardcode_libdir_flag_spec_F77='-L$libdir'
13928
hardcode_minus_L_F77=yes
13929
allow_undefined_flag_F77=unsupported
13930
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'
13931
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13935
if test "$GCC" = yes; then
13936
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13937
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'
13939
allow_undefined_flag_F77=' -expect_unresolved \*'
13940
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'
13942
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13943
hardcode_libdir_separator_F77=:
13946
osf4* | osf5*) # as osf3* with the addition of -msym flag
13947
if test "$GCC" = yes; then
13948
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13949
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'
13950
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13952
allow_undefined_flag_F77=' -expect_unresolved \*'
13953
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'
13954
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~
13955
$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'
13957
# Both c and cxx compiler support -rpath directly
13958
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13960
hardcode_libdir_separator_F77=:
13964
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13965
hardcode_shlibpath_var_F77=no
13966
export_dynamic_flag_spec_F77='${wl}-Bexport'
13967
runpath_var=LD_RUN_PATH
13968
hardcode_runpath_var=yes
13972
no_undefined_flag_F77=' -z text'
13973
if test "$GCC" = yes; then
13974
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13975
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13976
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13978
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13980
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13982
hardcode_libdir_flag_spec_F77='-R$libdir'
13983
hardcode_shlibpath_var_F77=no
13985
solaris2.[0-5] | solaris2.[0-5].*) ;;
13986
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
13987
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
13989
link_all_deplibs_F77=yes
13993
if test "x$host_vendor" = xsequent; then
13994
# Use $CC to link under sequent, because it throws in some extra .o
13995
# files that make .init and .fini sections work.
13996
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13998
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14000
hardcode_libdir_flag_spec_F77='-L$libdir'
14001
hardcode_direct_F77=yes
14002
hardcode_minus_L_F77=yes
14003
hardcode_shlibpath_var_F77=no
14007
case $host_vendor in
14009
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010
hardcode_direct_F77=yes # is this really true???
14013
## LD is ld it makes a PLAMLIB
14014
## CC just makes a GrossModule.
14015
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016
reload_cmds_F77='$CC -r -o $output$reload_objs'
14017
hardcode_direct_F77=no
14020
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14024
runpath_var='LD_RUN_PATH'
14025
hardcode_shlibpath_var_F77=no
14029
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030
hardcode_shlibpath_var_F77=no
14031
export_dynamic_flag_spec_F77='-Bexport'
14035
if test -d /usr/nec; then
14036
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037
hardcode_shlibpath_var_F77=no
14038
runpath_var=LD_RUN_PATH
14039
hardcode_runpath_var=yes
14045
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14046
hardcode_direct_F77=yes
14047
hardcode_minus_L_F77=no
14048
hardcode_shlibpath_var_F77=no
14049
hardcode_runpath_var=yes
14050
runpath_var=LD_RUN_PATH
14053
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14054
no_undefined_flag_F77='${wl}-z ${wl}text'
14055
if test "$GCC" = yes; then
14056
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14058
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060
runpath_var='LD_RUN_PATH'
14061
hardcode_shlibpath_var_F77=no
14065
no_undefined_flag_F77=' -z text'
14066
# $CC -shared without GNU ld will not create a library from C++
14067
# object files and a static libstdc++, better avoid it by now
14068
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14069
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14070
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14071
hardcode_libdir_flag_spec_F77=
14072
hardcode_shlibpath_var_F77=no
14073
runpath_var='LD_RUN_PATH'
14077
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14078
hardcode_libdir_flag_spec_F77='-L$libdir'
14079
hardcode_shlibpath_var_F77=no
14088
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14089
echo "${ECHO_T}$ld_shlibs_F77" >&6
14090
test "$ld_shlibs_F77" = no && can_build_shared=no
14092
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14093
if test "$GCC" = yes; then
14094
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14098
# Do we need to explicitly link libc?
14100
case "x$archive_cmds_need_lc_F77" in
14102
# Assume -lc should be added
14103
archive_cmds_need_lc_F77=yes
14105
if test "$enable_shared" = yes && test "$GCC" = yes; then
14106
case $archive_cmds_F77 in
14108
# FIXME: we may have to deal with multi-command sequences.
14111
# Test whether the compiler implicitly links with -lc since on some
14112
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14113
# to ld, don't add -lc before -lgcc.
14114
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14115
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14117
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14119
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120
(eval $ac_compile) 2>&5
14122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123
(exit $ac_status); } 2>conftest.err; then
14126
libobjs=conftest.$ac_objext
14128
wl=$lt_prog_compiler_wl_F77
14134
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14135
allow_undefined_flag_F77=
14136
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14137
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140
(exit $ac_status); }
14142
archive_cmds_need_lc_F77=no
14144
archive_cmds_need_lc_F77=yes
14146
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14148
cat conftest.err 1>&5
14151
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14152
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14159
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14160
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14161
library_names_spec=
14162
libname_spec='lib$name'
14166
postuninstall_cmds=
14170
shlibpath_overrides_runpath=unknown
14172
dynamic_linker="$host_os ld.so"
14173
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14174
if test "$GCC" = yes; then
14175
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14176
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14177
# if the path contains ";" then we assume it to be the separator
14178
# otherwise default to the standard path separator (i.e. ":") - it is
14179
# assumed that no part of a normal pathname contains ";" but that should
14180
# okay in the real world where ";" in dirpaths is itself problematic.
14181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14183
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14186
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14188
need_lib_prefix=unknown
14189
hardcode_into_libs=no
14191
# when you set need_version to no, make sure it does not cause -set_version
14192
# flags to be left without arguments
14193
need_version=unknown
14198
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199
shlibpath_var=LIBPATH
14201
# AIX 3 has no versioning support, so we append a major version to the name.
14202
soname_spec='${libname}${release}${shared_ext}$major'
14209
hardcode_into_libs=yes
14210
if test "$host_cpu" = ia64; then
14211
# AIX 5 supports IA64
14212
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213
shlibpath_var=LD_LIBRARY_PATH
14215
# With GCC up to 2.95.x, collect2 would create an import file
14216
# for dependence libraries. The import file would start with
14217
# the line `#! .'. This would cause the generated library to
14218
# depend on `.', always an invalid library. This was fixed in
14219
# development snapshots of GCC prior to 3.0.
14221
aix4 | aix4.[01] | aix4.[01].*)
14222
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14224
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227
can_build_shared=no
14231
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232
# soname into executable. Probably we can add versioning support to
14233
# collect2, so additional links can be useful in future.
14234
if test "$aix_use_runtimelinking" = yes; then
14235
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236
# instead of lib<name>.a to let people know that these are not
14237
# typical AIX shared libraries.
14238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240
# We preserve .a as extension for shared libraries through AIX4.2
14241
# and later when we are not doing run time linking.
14242
library_names_spec='${libname}${release}.a $libname.a'
14243
soname_spec='${libname}${release}${shared_ext}$major'
14245
shlibpath_var=LIBPATH
14250
library_names_spec='$libname.ixlibrary $libname.a'
14251
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14252
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'
14256
library_names_spec='${libname}${shared_ext}'
14257
dynamic_linker="$host_os ld.so"
14258
shlibpath_var=LIBRARY_PATH
14264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265
soname_spec='${libname}${release}${shared_ext}$major'
14266
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14267
shlibpath_var=LD_LIBRARY_PATH
14268
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14269
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14270
# the default ld.so.conf also contains /usr/contrib/lib and
14271
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14272
# libtool to hard-code these into programs
14275
cygwin* | mingw* | pw32*)
14276
version_type=windows
14281
case $GCC,$host_os in
14282
yes,cygwin* | yes,mingw* | yes,pw32*)
14283
library_names_spec='$libname.dll.a'
14284
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14285
postinstall_cmds='base_file=`basename \${file}`~
14286
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14287
dldir=$destdir/`dirname \$dlpath`~
14288
test -d \$dldir || mkdir -p \$dldir~
14289
$install_prog $dir/$dlname \$dldir/$dlname'
14290
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14291
dlpath=$dir/\$dldll~
14293
shlibpath_overrides_runpath=yes
14297
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14298
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14302
# MinGW DLLs use traditional 'lib' prefix
14303
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14304
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14306
# It is most probably a Windows format PATH printed by
14307
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14308
# path with ; separators, and with drive letters. We can handle the
14309
# drive letters (cygwin fileutils understands them), so leave them,
14310
# especially as we might pass files found there to a mingw objdump,
14311
# which wouldn't understand a cygwinified path. Ahh.
14312
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14314
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14318
# pw32 DLLs use 'pw' prefix rather than 'lib'
14319
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328
dynamic_linker='Win32 ld.exe'
14329
# FIXME: first we should search . and the directory the executable is in
14333
darwin* | rhapsody*)
14334
dynamic_linker="$host_os dyld"
14335
version_type=darwin
14338
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14339
soname_spec='${libname}${release}${major}$shared_ext'
14340
shlibpath_overrides_runpath=yes
14341
shlibpath_var=DYLD_LIBRARY_PATH
14342
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14343
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14344
if test "$GCC" = yes; then
14345
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"`
14347
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14349
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14357
soname_spec='${libname}${release}${shared_ext}$major'
14358
shlibpath_var=LD_LIBRARY_PATH
14369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14370
soname_spec='${libname}${release}${shared_ext}$major'
14371
shlibpath_var=LD_LIBRARY_PATH
14372
shlibpath_overrides_runpath=no
14373
hardcode_into_libs=yes
14374
dynamic_linker='GNU ld.so'
14377
freebsd* | dragonfly*)
14378
# DragonFly does not have aout. When/if they implement a new
14379
# versioning mechanism, adjust this.
14380
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14381
version_type=freebsd-$objformat
14382
case $version_type in
14384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14389
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14393
shlibpath_var=LD_LIBRARY_PATH
14396
shlibpath_overrides_runpath=yes
14398
freebsd3.[01]* | freebsdelf3.[01]*)
14399
shlibpath_overrides_runpath=yes
14400
hardcode_into_libs=yes
14403
shlibpath_overrides_runpath=no
14404
hardcode_into_libs=yes
14413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414
soname_spec='${libname}${release}${shared_ext}$major'
14415
shlibpath_var=LD_LIBRARY_PATH
14416
hardcode_into_libs=yes
14419
hpux9* | hpux10* | hpux11*)
14420
# Give a soname corresponding to the major version so that dld.sl refuses to
14421
# link against other versions.
14425
case "$host_cpu" in
14428
hardcode_into_libs=yes
14429
dynamic_linker="$host_os dld.so"
14430
shlibpath_var=LD_LIBRARY_PATH
14431
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433
soname_spec='${libname}${release}${shared_ext}$major'
14434
if test "X$HPUX_IA64_MODE" = X32; then
14435
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14437
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14439
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443
hardcode_into_libs=yes
14444
dynamic_linker="$host_os dld.sl"
14445
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14446
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448
soname_spec='${libname}${release}${shared_ext}$major'
14449
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14450
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454
dynamic_linker="$host_os dld.sl"
14455
shlibpath_var=SHLIB_PATH
14456
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458
soname_spec='${libname}${release}${shared_ext}$major'
14461
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14462
postinstall_cmds='chmod 555 $lib'
14465
irix5* | irix6* | nonstopux*)
14467
nonstopux*) version_type=nonstopux ;;
14469
if test "$lt_cv_prog_gnu_ld" = yes; then
14477
soname_spec='${libname}${release}${shared_ext}$major'
14478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14480
irix5* | nonstopux*)
14481
libsuff= shlibsuff=
14484
case $LD in # libtool.m4 will add one of these switches to LD
14485
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14486
libsuff= shlibsuff= libmagic=32-bit;;
14487
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14488
libsuff=32 shlibsuff=N32 libmagic=N32;;
14489
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14490
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14491
*) libsuff= shlibsuff= libmagic=never-match;;
14495
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14496
shlibpath_overrides_runpath=no
14497
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14498
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14499
hardcode_into_libs=yes
14502
# No shared lib support for Linux oldld, aout, or coff.
14503
linux*oldld* | linux*aout* | linux*coff*)
14507
# This must be Linux ELF.
14512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513
soname_spec='${libname}${release}${shared_ext}$major'
14514
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14515
shlibpath_var=LD_LIBRARY_PATH
14516
shlibpath_overrides_runpath=no
14517
# This implies no fast_install, which is unacceptable.
14518
# Some rework will be needed to allow for fast_install
14519
# before this can be enabled.
14520
hardcode_into_libs=yes
14522
# Append ld.so.conf contents to the search path
14523
if test -f /etc/ld.so.conf; then
14524
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14525
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14528
# We used to test for /lib/ld.so.1 and disable shared libraries on
14529
# powerpc, because MkLinux only supported shared libraries with the
14530
# GNU dynamic linker. Since this was broken with cross compilers,
14531
# most powerpc-linux boxes support dynamic linking these days and
14532
# people can always --disable-shared, the test was removed, and we
14533
# assume the GNU/Linux dynamic linker is in use.
14534
dynamic_linker='GNU/Linux ld.so'
14541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14542
soname_spec='${libname}${release}${shared_ext}$major'
14543
shlibpath_var=LD_LIBRARY_PATH
14544
shlibpath_overrides_runpath=no
14545
hardcode_into_libs=yes
14546
dynamic_linker='GNU ld.so'
14553
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14555
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14556
dynamic_linker='NetBSD (a.out) ld.so'
14558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559
soname_spec='${libname}${release}${shared_ext}$major'
14560
dynamic_linker='NetBSD ld.elf_so'
14562
shlibpath_var=LD_LIBRARY_PATH
14563
shlibpath_overrides_runpath=yes
14564
hardcode_into_libs=yes
14569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570
shlibpath_var=LD_LIBRARY_PATH
14571
shlibpath_overrides_runpath=yes
14578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579
soname_spec='${libname}${release}${shared_ext}$major'
14580
shlibpath_var=LD_LIBRARY_PATH
14581
shlibpath_overrides_runpath=yes
14588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14589
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14590
shlibpath_var=LD_LIBRARY_PATH
14591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14593
openbsd2.[89] | openbsd2.[89].*)
14594
shlibpath_overrides_runpath=no
14597
shlibpath_overrides_runpath=yes
14601
shlibpath_overrides_runpath=yes
14606
libname_spec='$name'
14609
library_names_spec='$libname${shared_ext} $libname.a'
14610
dynamic_linker='OS/2 ld.exe'
14611
shlibpath_var=LIBPATH
14614
osf3* | osf4* | osf5*)
14618
soname_spec='${libname}${release}${shared_ext}$major'
14619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620
shlibpath_var=LD_LIBRARY_PATH
14621
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14622
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14627
soname_spec='${libname}${release}${shared_ext}$major'
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629
shlibpath_var=LD_LIBRARY_PATH
14636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637
soname_spec='${libname}${release}${shared_ext}$major'
14638
shlibpath_var=LD_LIBRARY_PATH
14639
shlibpath_overrides_runpath=yes
14640
hardcode_into_libs=yes
14641
# ldd complains unless libraries are executable
14642
postinstall_cmds='chmod +x $lib'
14647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14648
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14649
shlibpath_var=LD_LIBRARY_PATH
14650
shlibpath_overrides_runpath=yes
14651
if test "$with_gnu_ld" = yes; then
14657
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660
soname_spec='${libname}${release}${shared_ext}$major'
14661
shlibpath_var=LD_LIBRARY_PATH
14662
case $host_vendor in
14664
shlibpath_overrides_runpath=no
14666
export_dynamic_flag_spec='${wl}-Blargedynsym'
14667
runpath_var=LD_RUN_PATH
14675
shlibpath_overrides_runpath=no
14676
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14682
if test -d /usr/nec ;then
14684
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14685
soname_spec='$libname${shared_ext}.$major'
14686
shlibpath_var=LD_LIBRARY_PATH
14692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693
soname_spec='${libname}${release}${shared_ext}$major'
14694
shlibpath_var=LD_LIBRARY_PATH
14701
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14702
echo "${ECHO_T}$dynamic_linker" >&6
14703
test "$dynamic_linker" = no && can_build_shared=no
14705
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14706
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14707
hardcode_action_F77=
14708
if test -n "$hardcode_libdir_flag_spec_F77" || \
14709
test -n "$runpath_var_F77" || \
14710
test "X$hardcode_automatic_F77" = "Xyes" ; then
14712
# We can hardcode non-existant directories.
14713
if test "$hardcode_direct_F77" != no &&
14714
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14715
# have to relink, otherwise we might link with an installed library
14716
# when we should be linking with a yet-to-be-installed one
14717
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14718
test "$hardcode_minus_L_F77" != no; then
14719
# Linking always hardcodes the temporary library directory.
14720
hardcode_action_F77=relink
14722
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14723
hardcode_action_F77=immediate
14726
# We cannot hardcode anything, or else we can only hardcode existing
14728
hardcode_action_F77=unsupported
14730
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14731
echo "${ECHO_T}$hardcode_action_F77" >&6
14733
if test "$hardcode_action_F77" = relink; then
14734
# Fast installation is not supported
14735
enable_fast_install=no
14736
elif test "$shlibpath_overrides_runpath" = yes ||
14737
test "$enable_shared" = no; then
14738
# Fast installation is not necessary
14739
enable_fast_install=needless
14744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14747
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14748
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14749
echo "$as_me:$LINENO: result: yes" >&5
14750
echo "${ECHO_T}yes" >&6
14752
# FIXME - insert some real tests, host_os isn't really good enough
14755
if test -n "$STRIP" ; then
14756
striplib="$STRIP -x"
14757
echo "$as_me:$LINENO: result: yes" >&5
14758
echo "${ECHO_T}yes" >&6
14760
echo "$as_me:$LINENO: result: no" >&5
14761
echo "${ECHO_T}no" >&6
14765
echo "$as_me:$LINENO: result: no" >&5
14766
echo "${ECHO_T}no" >&6
14773
# The else clause should only fire when bootstrapping the
14774
# libtool distribution, otherwise you forgot to ship ltmain.sh
14775
# with your package, and you will get complaints that there are
14776
# no rules to generate ltmain.sh.
14777
if test -f "$ltmain"; then
14778
# See if we are running on zsh, and set the options which allow our commands through
14779
# without removal of \ escapes.
14780
if test -n "${ZSH_VERSION+set}" ; then
14781
setopt NO_GLOB_SUBST
14783
# Now quote all the things that may contain metacharacters while being
14784
# careful not to overquote the AC_SUBSTed values. We take copies of the
14785
# variables and quote the copies for generation of the libtool script.
14786
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14788
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14789
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14790
deplibs_check_method reload_flag reload_cmds need_locks \
14791
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14792
lt_cv_sys_global_symbol_to_c_name_address \
14793
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14794
old_postinstall_cmds old_postuninstall_cmds \
14798
lt_prog_compiler_wl_F77 \
14799
lt_prog_compiler_pic_F77 \
14800
lt_prog_compiler_static_F77 \
14801
lt_prog_compiler_no_builtin_flag_F77 \
14802
export_dynamic_flag_spec_F77 \
14803
thread_safe_flag_spec_F77 \
14804
whole_archive_flag_spec_F77 \
14805
enable_shared_with_static_runtimes_F77 \
14806
old_archive_cmds_F77 \
14807
old_archive_from_new_cmds_F77 \
14808
predep_objects_F77 \
14809
postdep_objects_F77 \
14812
compiler_lib_search_path_F77 \
14814
archive_expsym_cmds_F77 \
14815
postinstall_cmds_F77 \
14816
postuninstall_cmds_F77 \
14817
old_archive_from_expsyms_cmds_F77 \
14818
allow_undefined_flag_F77 \
14819
no_undefined_flag_F77 \
14820
export_symbols_cmds_F77 \
14821
hardcode_libdir_flag_spec_F77 \
14822
hardcode_libdir_flag_spec_ld_F77 \
14823
hardcode_libdir_separator_F77 \
14824
hardcode_automatic_F77 \
14826
module_expsym_cmds_F77 \
14827
lt_cv_prog_compiler_c_o_F77 \
14828
exclude_expsyms_F77 \
14829
include_expsyms_F77; do
14832
old_archive_cmds_F77 | \
14833
old_archive_from_new_cmds_F77 | \
14834
archive_cmds_F77 | \
14835
archive_expsym_cmds_F77 | \
14836
module_cmds_F77 | \
14837
module_expsym_cmds_F77 | \
14838
old_archive_from_expsyms_cmds_F77 | \
14839
export_symbols_cmds_F77 | \
14840
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14841
postinstall_cmds | postuninstall_cmds | \
14842
old_postinstall_cmds | old_postuninstall_cmds | \
14843
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14844
# Double-quote double-evaled strings.
14845
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14848
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14854
*'\$0 --fallback-echo"')
14855
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14861
cat <<__EOF__ >> "$cfgfile"
14862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14866
# Shell to use when invoking shell scripts.
14869
# Whether or not to build shared libraries.
14870
build_libtool_libs=$enable_shared
14872
# Whether or not to build static libraries.
14873
build_old_libs=$enable_static
14875
# Whether or not to add -lc for building shared libraries.
14876
build_libtool_need_lc=$archive_cmds_need_lc_F77
14878
# Whether or not to disallow shared libs when runtime libs are static
14879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14881
# Whether or not to optimize for fast installation.
14882
fast_install=$enable_fast_install
14885
host_alias=$host_alias
14889
# The build system.
14890
build_alias=$build_alias
14894
# An echo program that does not interpret backslashes.
14899
AR_FLAGS=$lt_AR_FLAGS
14904
# A language-specific compiler.
14905
CC=$lt_compiler_F77
14907
# Is the compiler the GNU C compiler?
14913
# The linker used to build libraries.
14916
# Whether we need hard or soft links.
14919
# A BSD-compatible nm program.
14922
# A symbol stripping program
14925
# Used to examine libraries when file_magic_cmd begins "file"
14926
MAGIC_CMD=$MAGIC_CMD
14928
# Used on cygwin: DLL creation program.
14931
# Used on cygwin: object dumper.
14934
# Used on cygwin: assembler.
14937
# The name of the directory that contains temporary libtool files.
14940
# How to create reloadable object files.
14941
reload_flag=$lt_reload_flag
14942
reload_cmds=$lt_reload_cmds
14944
# How to pass a linker flag through the compiler.
14945
wl=$lt_lt_prog_compiler_wl_F77
14947
# Object file suffix (normally "o").
14948
objext="$ac_objext"
14950
# Old archive suffix (normally "a").
14953
# Shared library suffix (normally ".so").
14954
shrext_cmds='$shrext_cmds'
14956
# Executable file suffix (normally "").
14959
# Additional compiler flags for building library objects.
14960
pic_flag=$lt_lt_prog_compiler_pic_F77
14963
# What is the maximum length of a command?
14964
max_cmd_len=$lt_cv_sys_max_cmd_len
14966
# Does compiler simultaneously support -c and -o options?
14967
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14969
# Must we lock files when doing compilation ?
14970
need_locks=$lt_need_locks
14972
# Do we need the lib prefix for modules?
14973
need_lib_prefix=$need_lib_prefix
14975
# Do we need a version for libraries?
14976
need_version=$need_version
14978
# Whether dlopen is supported.
14979
dlopen_support=$enable_dlopen
14981
# Whether dlopen of programs is supported.
14982
dlopen_self=$enable_dlopen_self
14984
# Whether dlopen of statically linked programs is supported.
14985
dlopen_self_static=$enable_dlopen_self_static
14987
# Compiler flag to prevent dynamic linking.
14988
link_static_flag=$lt_lt_prog_compiler_static_F77
14990
# Compiler flag to turn off builtin functions.
14991
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14993
# Compiler flag to allow reflexive dlopens.
14994
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14996
# Compiler flag to generate shared objects directly from archives.
14997
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14999
# Compiler flag to generate thread-safe objects.
15000
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15002
# Library versioning type.
15003
version_type=$version_type
15005
# Format of library name prefix.
15006
libname_spec=$lt_libname_spec
15008
# List of archive names. First name is the real one, the rest are links.
15009
# The last name is the one that the linker finds with -lNAME.
15010
library_names_spec=$lt_library_names_spec
15012
# The coded name of the library, if different from the real name.
15013
soname_spec=$lt_soname_spec
15015
# Commands used to build and install an old-style archive.
15017
old_archive_cmds=$lt_old_archive_cmds_F77
15018
old_postinstall_cmds=$lt_old_postinstall_cmds
15019
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15021
# Create an old-style archive from a shared archive.
15022
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15024
# Create a temporary old-style archive to link instead of a shared archive.
15025
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15027
# Commands used to build and install a shared archive.
15028
archive_cmds=$lt_archive_cmds_F77
15029
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15030
postinstall_cmds=$lt_postinstall_cmds
15031
postuninstall_cmds=$lt_postuninstall_cmds
15033
# Commands used to build a loadable module (assumed same as above if empty)
15034
module_cmds=$lt_module_cmds_F77
15035
module_expsym_cmds=$lt_module_expsym_cmds_F77
15037
# Commands to strip libraries.
15038
old_striplib=$lt_old_striplib
15039
striplib=$lt_striplib
15041
# Dependencies to place before the objects being linked to create a
15043
predep_objects=$lt_predep_objects_F77
15045
# Dependencies to place after the objects being linked to create a
15047
postdep_objects=$lt_postdep_objects_F77
15049
# Dependencies to place before the objects being linked to create a
15051
predeps=$lt_predeps_F77
15053
# Dependencies to place after the objects being linked to create a
15055
postdeps=$lt_postdeps_F77
15057
# The library search path used internally by the compiler when linking
15058
# a shared library.
15059
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15061
# Method to check whether dependent libraries are shared objects.
15062
deplibs_check_method=$lt_deplibs_check_method
15064
# Command to use when deplibs_check_method == file_magic.
15065
file_magic_cmd=$lt_file_magic_cmd
15067
# Flag that allows shared libraries with undefined symbols to be built.
15068
allow_undefined_flag=$lt_allow_undefined_flag_F77
15070
# Flag that forces no undefined symbols.
15071
no_undefined_flag=$lt_no_undefined_flag_F77
15073
# Commands used to finish a libtool library installation in a directory.
15074
finish_cmds=$lt_finish_cmds
15076
# Same as above, but a single script fragment to be evaled but not shown.
15077
finish_eval=$lt_finish_eval
15079
# Take the output of nm and produce a listing of raw symbols and C names.
15080
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15082
# Transform the output of nm in a proper C declaration
15083
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15085
# Transform the output of nm in a C name address pair
15086
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15088
# This is the shared library runtime path variable.
15089
runpath_var=$runpath_var
15091
# This is the shared library path variable.
15092
shlibpath_var=$shlibpath_var
15094
# Is shlibpath searched before the hard-coded library search path?
15095
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15097
# How to hardcode a shared library path into an executable.
15098
hardcode_action=$hardcode_action_F77
15100
# Whether we should hardcode library paths into libraries.
15101
hardcode_into_libs=$hardcode_into_libs
15103
# Flag to hardcode \$libdir into a binary during linking.
15104
# This must work even if \$libdir does not exist.
15105
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15107
# If ld is used when linking, flag to hardcode \$libdir into
15108
# a binary during linking. This must work even if \$libdir does
15110
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15112
# Whether we need a single -rpath flag with a separated argument.
15113
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15115
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116
# resulting binary.
15117
hardcode_direct=$hardcode_direct_F77
15119
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120
# resulting binary.
15121
hardcode_minus_L=$hardcode_minus_L_F77
15123
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124
# the resulting binary.
15125
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15127
# Set to yes if building a shared library automatically hardcodes DIR into the library
15128
# and all subsequent libraries and executables linked against it.
15129
hardcode_automatic=$hardcode_automatic_F77
15131
# Variables whose values should be saved in libtool wrapper scripts and
15132
# restored at relink time.
15133
variables_saved_for_relink="$variables_saved_for_relink"
15135
# Whether libtool must link a program against all its dependency libraries.
15136
link_all_deplibs=$link_all_deplibs_F77
15138
# Compile-time system search path for libraries
15139
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15141
# Run-time system search path for libraries
15142
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15144
# Fix the shell variable \$srcfile for the compiler.
15145
fix_srcfile_path="$fix_srcfile_path_F77"
15147
# Set to yes if exported symbols are required.
15148
always_export_symbols=$always_export_symbols_F77
15150
# The commands to list exported symbols.
15151
export_symbols_cmds=$lt_export_symbols_cmds_F77
15153
# The commands to extract the exported symbol list from a shared archive.
15154
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15156
# Symbols that should not be listed in the preloaded symbols.
15157
exclude_expsyms=$lt_exclude_expsyms_F77
15159
# Symbols that must always be exported.
15160
include_expsyms=$lt_include_expsyms_F77
15162
# ### END LIBTOOL TAG CONFIG: $tagname
15168
# If there is no Makefile yet, we rely on a make rule to execute
15169
# `config.status --recheck' to rerun these tests and create the
15170
# libtool script then.
15171
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15172
if test -f "$ltmain_in"; then
15173
test -f Makefile && make "$ltmain"
15179
ac_cpp='$CPP $CPPFLAGS'
15180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15196
# Source file extension for Java test sources.
15199
# Object file extension for compiled Java test sources.
15203
# Code to be used in simple compile tests
15204
lt_simple_compile_test_code="class foo {}\n"
15206
# Code to be used in simple link tests
15207
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15209
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15211
# If no C compiler was specified, use CC.
15214
# Allow CC to be a program name with arguments.
15218
# Allow CC to be a program name with arguments.
15224
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15225
archive_cmds_need_lc_GCJ=no
15228
## There is no encapsulation within the following macros, do not change
15229
## the running order or otherwise move them around unless you know exactly
15230
## what you are doing...
15232
lt_prog_compiler_no_builtin_flag_GCJ=
15234
if test "$GCC" = yes; then
15235
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15238
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15239
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15240
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15241
echo $ECHO_N "(cached) $ECHO_C" >&6
15243
lt_cv_prog_compiler_rtti_exceptions=no
15244
ac_outfile=conftest.$ac_objext
15245
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15246
lt_compiler_flag="-fno-rtti -fno-exceptions"
15247
# Insert the option either (1) after the last *FLAGS variable, or
15248
# (2) before a word containing "conftest.", or (3) at the end.
15249
# Note that $ac_compile itself does not contain backslashes and begins
15250
# with a dollar sign (not a hyphen), so the echo should work correctly.
15251
# The option is referenced via a variable to avoid confusing sed.
15252
lt_compile=`echo "$ac_compile" | $SED \
15253
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15254
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15255
-e 's:$: $lt_compiler_flag:'`
15256
(eval echo "\"\$as_me:15256: $lt_compile\"" >&5)
15257
(eval "$lt_compile" 2>conftest.err)
15259
cat conftest.err >&5
15260
echo "$as_me:15260: \$? = $ac_status" >&5
15261
if (exit $ac_status) && test -s "$ac_outfile"; then
15262
# The compiler can only warn and ignore the option if not recognized
15263
# So say no if there are warnings
15264
if test ! -s conftest.err; then
15265
lt_cv_prog_compiler_rtti_exceptions=yes
15271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15272
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15274
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15275
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15282
lt_prog_compiler_wl_GCJ=
15283
lt_prog_compiler_pic_GCJ=
15284
lt_prog_compiler_static_GCJ=
15286
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15287
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15289
if test "$GCC" = yes; then
15290
lt_prog_compiler_wl_GCJ='-Wl,'
15291
lt_prog_compiler_static_GCJ='-static'
15295
# All AIX code is PIC.
15296
if test "$host_cpu" = ia64; then
15297
# AIX 5 now supports IA64 processor
15298
lt_prog_compiler_static_GCJ='-Bstatic'
15303
# FIXME: we need at least 68020 code to build shared libraries, but
15304
# adding the `-m68020' flag to GCC prevents building anything better,
15306
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15309
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15310
# PIC is the default for these OSes.
15313
mingw* | pw32* | os2*)
15314
# This hack is so that the source file can tell whether it is being
15315
# built for inclusion in a dll (and should export symbols for example).
15316
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15319
darwin* | rhapsody*)
15320
# PIC is the default on this platform
15321
# Common symbols not allowed in MH_DYLIB files
15322
lt_prog_compiler_pic_GCJ='-fno-common'
15326
# Just because we use GCC doesn't mean we suddenly get shared libraries
15327
# on systems that don't support them.
15328
lt_prog_compiler_can_build_shared_GCJ=no
15333
if test -d /usr/nec; then
15334
lt_prog_compiler_pic_GCJ=-Kconform_pic
15339
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15340
# not for PA HP-UX.
15341
case "$host_cpu" in
15346
lt_prog_compiler_pic_GCJ='-fPIC'
15352
lt_prog_compiler_pic_GCJ='-fPIC'
15356
# PORTME Check for flag to pass linker flags through the system compiler.
15359
lt_prog_compiler_wl_GCJ='-Wl,'
15360
if test "$host_cpu" = ia64; then
15361
# AIX 5 now supports IA64 processor
15362
lt_prog_compiler_static_GCJ='-Bstatic'
15364
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15368
# PIC is the default on this platform
15369
# Common symbols not allowed in MH_DYLIB files
15370
case "$cc_basename" in
15372
lt_prog_compiler_pic_GCJ='-qnocommon'
15373
lt_prog_compiler_wl_GCJ='-Wl,'
15378
mingw* | pw32* | os2*)
15379
# This hack is so that the source file can tell whether it is being
15380
# built for inclusion in a dll (and should export symbols for example).
15381
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15384
hpux9* | hpux10* | hpux11*)
15385
lt_prog_compiler_wl_GCJ='-Wl,'
15386
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15387
# not for PA HP-UX.
15388
case "$host_cpu" in
15393
lt_prog_compiler_pic_GCJ='+Z'
15396
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15397
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15400
irix5* | irix6* | nonstopux*)
15401
lt_prog_compiler_wl_GCJ='-Wl,'
15402
# PIC (with -KPIC) is the default.
15403
lt_prog_compiler_static_GCJ='-non_shared'
15407
lt_prog_compiler_pic_GCJ='-KPIC'
15408
lt_prog_compiler_static_GCJ='-Bstatic'
15412
case $cc_basename in
15414
lt_prog_compiler_wl_GCJ='-Wl,'
15415
lt_prog_compiler_pic_GCJ='-KPIC'
15416
lt_prog_compiler_static_GCJ='-static'
15418
pgcc | pgf77 | pgf90)
15419
# Portland Group compilers (*not* the Pentium gcc compiler,
15420
# which looks to be a dead project)
15421
lt_prog_compiler_wl_GCJ='-Wl,'
15422
lt_prog_compiler_pic_GCJ='-fpic'
15423
lt_prog_compiler_static_GCJ='-static'
15426
lt_prog_compiler_wl_GCJ='-Wl,'
15427
# All Alpha code is PIC.
15428
lt_prog_compiler_static_GCJ='-non_shared'
15433
osf3* | osf4* | osf5*)
15434
lt_prog_compiler_wl_GCJ='-Wl,'
15435
# All OSF/1 code is PIC.
15436
lt_prog_compiler_static_GCJ='-non_shared'
15440
lt_prog_compiler_pic_GCJ='-Kpic'
15441
lt_prog_compiler_static_GCJ='-dn'
15445
lt_prog_compiler_wl_GCJ='-Wl,'
15446
lt_prog_compiler_pic_GCJ='-KPIC'
15447
lt_prog_compiler_static_GCJ='-Bstatic'
15451
lt_prog_compiler_wl_GCJ='-Qoption ld '
15452
lt_prog_compiler_pic_GCJ='-PIC'
15453
lt_prog_compiler_static_GCJ='-Bstatic'
15456
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15457
lt_prog_compiler_wl_GCJ='-Wl,'
15458
lt_prog_compiler_pic_GCJ='-KPIC'
15459
lt_prog_compiler_static_GCJ='-Bstatic'
15463
if test -d /usr/nec ;then
15464
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15465
lt_prog_compiler_static_GCJ='-Bstatic'
15470
lt_prog_compiler_wl_GCJ='-Wl,'
15471
lt_prog_compiler_can_build_shared_GCJ=no
15475
lt_prog_compiler_pic_GCJ='-pic'
15476
lt_prog_compiler_static_GCJ='-Bstatic'
15480
lt_prog_compiler_can_build_shared_GCJ=no
15485
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15486
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15489
# Check to make sure the PIC flag actually works.
15491
if test -n "$lt_prog_compiler_pic_GCJ"; then
15493
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15494
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15495
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15496
echo $ECHO_N "(cached) $ECHO_C" >&6
15498
lt_prog_compiler_pic_works_GCJ=no
15499
ac_outfile=conftest.$ac_objext
15500
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15501
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15502
# Insert the option either (1) after the last *FLAGS variable, or
15503
# (2) before a word containing "conftest.", or (3) at the end.
15504
# Note that $ac_compile itself does not contain backslashes and begins
15505
# with a dollar sign (not a hyphen), so the echo should work correctly.
15506
# The option is referenced via a variable to avoid confusing sed.
15507
lt_compile=`echo "$ac_compile" | $SED \
15508
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15509
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15510
-e 's:$: $lt_compiler_flag:'`
15511
(eval echo "\"\$as_me:15511: $lt_compile\"" >&5)
15512
(eval "$lt_compile" 2>conftest.err)
15514
cat conftest.err >&5
15515
echo "$as_me:15515: \$? = $ac_status" >&5
15516
if (exit $ac_status) && test -s "$ac_outfile"; then
15517
# The compiler can only warn and ignore the option if not recognized
15518
# So say no if there are warnings
15519
if test ! -s conftest.err; then
15520
lt_prog_compiler_pic_works_GCJ=yes
15526
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15527
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15529
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15530
case $lt_prog_compiler_pic_GCJ in
15532
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15535
lt_prog_compiler_pic_GCJ=
15536
lt_prog_compiler_can_build_shared_GCJ=no
15541
# For platforms which do not support PIC, -DPIC is meaningless:
15543
lt_prog_compiler_pic_GCJ=
15546
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15550
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15551
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15552
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15553
echo $ECHO_N "(cached) $ECHO_C" >&6
15555
lt_cv_prog_compiler_c_o_GCJ=no
15556
$rm -r conftest 2>/dev/null
15560
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15562
lt_compiler_flag="-o out/conftest2.$ac_objext"
15563
# Insert the option either (1) after the last *FLAGS variable, or
15564
# (2) before a word containing "conftest.", or (3) at the end.
15565
# Note that $ac_compile itself does not contain backslashes and begins
15566
# with a dollar sign (not a hyphen), so the echo should work correctly.
15567
lt_compile=`echo "$ac_compile" | $SED \
15568
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570
-e 's:$: $lt_compiler_flag:'`
15571
(eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
15572
(eval "$lt_compile" 2>out/conftest.err)
15574
cat out/conftest.err >&5
15575
echo "$as_me:15575: \$? = $ac_status" >&5
15576
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578
# The compiler can only warn and ignore the option if not recognized
15579
# So say no if there are warnings
15580
if test ! -s out/conftest.err; then
15581
lt_cv_prog_compiler_c_o_GCJ=yes
15586
# SGI C++ compiler will create directory out/ii_files/ for
15587
# template instantiation
15588
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15589
$rm out/* && rmdir out
15595
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15596
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15599
hard_links="nottested"
15600
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15601
# do not overwrite the value of need_locks provided by the user
15602
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15603
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15606
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15608
ln conftest.a conftest.b 2>&5 || hard_links=no
15609
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15610
echo "$as_me:$LINENO: result: $hard_links" >&5
15611
echo "${ECHO_T}$hard_links" >&6
15612
if test "$hard_links" = no; then
15613
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15614
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15621
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15622
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15625
allow_undefined_flag_GCJ=
15626
enable_shared_with_static_runtimes_GCJ=no
15628
archive_expsym_cmds_GCJ=
15629
old_archive_From_new_cmds_GCJ=
15630
old_archive_from_expsyms_cmds_GCJ=
15631
export_dynamic_flag_spec_GCJ=
15632
whole_archive_flag_spec_GCJ=
15633
thread_safe_flag_spec_GCJ=
15634
hardcode_libdir_flag_spec_GCJ=
15635
hardcode_libdir_flag_spec_ld_GCJ=
15636
hardcode_libdir_separator_GCJ=
15637
hardcode_direct_GCJ=no
15638
hardcode_minus_L_GCJ=no
15639
hardcode_shlibpath_var_GCJ=unsupported
15640
link_all_deplibs_GCJ=unknown
15641
hardcode_automatic_GCJ=no
15643
module_expsym_cmds_GCJ=
15644
always_export_symbols_GCJ=no
15645
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15646
# include_expsyms should be a list of space-separated symbols to be *always*
15647
# included in the symbol list
15648
include_expsyms_GCJ=
15649
# exclude_expsyms can be an extended regexp of symbols to exclude
15650
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15651
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15652
# as well as any symbol that contains `d'.
15653
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15654
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15655
# platforms (ab)use it in PIC code, but their linkers get confused if
15656
# the symbol is explicitly referenced. Since portable code cannot
15657
# rely on this symbol name, it's probably fine to never include it in
15658
# preloaded symbol tables.
15659
extract_expsyms_cmds=
15662
cygwin* | mingw* | pw32*)
15663
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15664
# When not using gcc, we currently assume that we are using
15665
# Microsoft Visual C++.
15666
if test "$GCC" != yes; then
15676
if test "$with_gnu_ld" = yes; then
15677
# If archive_cmds runs LD, not CC, wlarc should be empty
15680
# See if GNU ld supports shared libraries.
15682
aix3* | aix4* | aix5*)
15683
# On AIX/PPC, the GNU linker is very broken
15684
if test "$host_cpu" != ia64; then
15688
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15689
*** to be unable to reliably create shared libraries on AIX.
15690
*** Therefore, libtool is disabling shared libraries support. If you
15691
*** really care for shared libraries, you may want to modify your PATH
15692
*** so that a non-GNU linker is found, and then restart.
15699
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)'
15700
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15701
hardcode_minus_L_GCJ=yes
15703
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15704
# that the semantics of dynamic libraries on AmigaOS, at least up
15705
# to version 4, is to share data among multiple programs linked
15706
# with the same dynamic library. Since this doesn't match the
15707
# behavior of shared libraries on other platforms, we can't use
15713
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714
allow_undefined_flag_GCJ=unsupported
15715
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15716
# support --undefined. This deserves some investigation. FIXME
15717
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15723
cygwin* | mingw* | pw32*)
15724
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15725
# as there is no search path for DLLs.
15726
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15727
allow_undefined_flag_GCJ=unsupported
15728
always_export_symbols_GCJ=no
15729
enable_shared_with_static_runtimes_GCJ=yes
15730
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15732
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15733
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15734
# If the export-symbols file already is a .def file (1st line
15735
# is EXPORTS), use it as is; otherwise, prepend...
15736
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15737
cp $export_symbols $output_objdir/$soname.def;
15739
echo EXPORTS > $output_objdir/$soname.def;
15740
cat $export_symbols >> $output_objdir/$soname.def;
15742
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15749
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15750
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15753
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15759
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15763
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15764
*** create shared libraries on Solaris systems. Therefore, libtool
15765
*** is disabling shared libraries support. We urge you to upgrade GNU
15766
*** binutils to release 2.9.1 or newer. Another option is to modify
15767
*** your PATH or compiler configuration so that the native linker is
15768
*** used, and then restart.
15771
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15772
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15773
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15780
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15782
hardcode_direct_GCJ=yes
15783
hardcode_shlibpath_var_GCJ=no
15787
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15789
case $CC,$host_cpu in
15790
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15791
tmp_addflag=' -fpic' ;;
15792
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15793
tmp_addflag=' -i_dynamic' ;;
15794
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15795
tmp_addflag=' -i_dynamic -nofor_main' ;;
15796
ifc* | ifort*) # Intel Fortran compiler
15797
tmp_addflag=' -nofor_main' ;;
15799
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800
supports_anon_versioning=no
15801
case `$LD -v 2>/dev/null` in
15802
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15803
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15804
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15805
*\ 2.11.*) ;; # other 2.11 versions
15806
*) supports_anon_versioning=yes ;;
15808
if test $supports_anon_versioning = yes; then
15809
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15810
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15811
$echo "local: *; };" >> $output_objdir/$libname.ver~
15812
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15814
archive_expsym_cmds_GCJ=$archive_cmds_GCJ
15822
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15823
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15831
if test "$ld_shlibs_GCJ" = yes; then
15832
runpath_var=LD_RUN_PATH
15833
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15834
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15835
# ancient GNU ld didn't support --whole-archive et. al.
15836
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15837
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15839
whole_archive_flag_spec_GCJ=
15843
# PORTME fill in a description of your system's linker (not GNU ld)
15846
allow_undefined_flag_GCJ=unsupported
15847
always_export_symbols_GCJ=yes
15848
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'
15849
# Note: this linker hardcodes the directories in LIBPATH if there
15850
# are no directories specified by -L.
15851
hardcode_minus_L_GCJ=yes
15852
if test "$GCC" = yes && test -z "$link_static_flag"; then
15853
# Neither direct hardcoding nor static linking is supported with a
15855
hardcode_direct_GCJ=unsupported
15860
if test "$host_cpu" = ia64; then
15861
# On IA64, the linker does run time linking by default, so we don't
15862
# have to do anything special.
15863
aix_use_runtimelinking=no
15864
exp_sym_flag='-Bexport'
15867
# If we're using GNU nm, then we don't want the "-C" option.
15868
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15869
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15870
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'
15872
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'
15874
aix_use_runtimelinking=no
15876
# Test if we are trying to use run time linking or normal
15877
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878
# need to do runtime linking.
15879
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15880
for ld_flag in $LDFLAGS; do
15881
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882
aix_use_runtimelinking=yes
15888
exp_sym_flag='-bexport'
15889
no_entry_flag='-bnoentry'
15892
# When large executables or shared objects are built, AIX ld can
15893
# have problems creating the table of contents. If linking a library
15894
# or program results in "error TOC overflow" add -mminimal-toc to
15895
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15896
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15898
archive_cmds_GCJ=''
15899
hardcode_direct_GCJ=yes
15900
hardcode_libdir_separator_GCJ=':'
15901
link_all_deplibs_GCJ=yes
15903
if test "$GCC" = yes; then
15904
case $host_os in aix4.[012]|aix4.[012].*)
15905
# We only want to do this on AIX 4.2 and lower, the check
15906
# below for broken collect2 doesn't work under 4.3+
15907
collect2name=`${CC} -print-prog-name=collect2`
15908
if test -f "$collect2name" && \
15909
strings "$collect2name" | grep resolve_lib_name >/dev/null
15911
# We have reworked collect2
15912
hardcode_direct_GCJ=yes
15914
# We have old collect2
15915
hardcode_direct_GCJ=unsupported
15916
# It fails to find uninstalled libraries when the uninstalled
15917
# path is not listed in the libpath. Setting hardcode_minus_L
15918
# to unsupported forces relinking
15919
hardcode_minus_L_GCJ=yes
15920
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15921
hardcode_libdir_separator_GCJ=
15924
shared_flag='-shared'
15925
if test "$aix_use_runtimelinking" = yes; then
15926
shared_flag="$shared_flag "'${wl}-G'
15930
if test "$host_cpu" = ia64; then
15931
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15932
# chokes on -Wl,-G. The following line is correct:
15935
if test "$aix_use_runtimelinking" = yes; then
15936
shared_flag='${wl}-G'
15938
shared_flag='${wl}-bM:SRE'
15943
# It seems that -bexpall does not export symbols beginning with
15944
# underscore (_), so it is better to generate a list of symbols to export.
15945
always_export_symbols_GCJ=yes
15946
if test "$aix_use_runtimelinking" = yes; then
15947
# Warning - without using the other runtime loading flags (-brtl),
15948
# -berok will link without error, but may produce a broken library.
15949
allow_undefined_flag_GCJ='-berok'
15950
# Determine the default libpath from the value encoded in an empty executable.
15951
cat >conftest.$ac_ext <<_ACEOF
15954
cat confdefs.h >>conftest.$ac_ext
15955
cat >>conftest.$ac_ext <<_ACEOF
15956
/* end confdefs.h. */
15966
rm -f conftest.$ac_objext conftest$ac_exeext
15967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968
(eval $ac_link) 2>conftest.er1
15970
grep -v '^ *+' conftest.er1 >conftest.err
15972
cat conftest.err >&5
15973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974
(exit $ac_status); } &&
15975
{ ac_try='test -z "$ac_c_werror_flag"
15976
|| test ! -s conftest.err'
15977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978
(eval $ac_try) 2>&5
15980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981
(exit $ac_status); }; } &&
15982
{ ac_try='test -s conftest$ac_exeext'
15983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984
(eval $ac_try) 2>&5
15986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987
(exit $ac_status); }; }; then
15989
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15991
# Check for a 64-bit object if we didn't find anything.
15992
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; }
15995
echo "$as_me: failed program was:" >&5
15996
sed 's/^/| /' conftest.$ac_ext >&5
15999
rm -f conftest.err conftest.$ac_objext \
16000
conftest$ac_exeext conftest.$ac_ext
16001
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16003
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16004
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"
16006
if test "$host_cpu" = ia64; then
16007
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16008
allow_undefined_flag_GCJ="-z nodefs"
16009
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"
16011
# Determine the default libpath from the value encoded in an empty executable.
16012
cat >conftest.$ac_ext <<_ACEOF
16015
cat confdefs.h >>conftest.$ac_ext
16016
cat >>conftest.$ac_ext <<_ACEOF
16017
/* end confdefs.h. */
16027
rm -f conftest.$ac_objext conftest$ac_exeext
16028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029
(eval $ac_link) 2>conftest.er1
16031
grep -v '^ *+' conftest.er1 >conftest.err
16033
cat conftest.err >&5
16034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035
(exit $ac_status); } &&
16036
{ ac_try='test -z "$ac_c_werror_flag"
16037
|| test ! -s conftest.err'
16038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039
(eval $ac_try) 2>&5
16041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
(exit $ac_status); }; } &&
16043
{ ac_try='test -s conftest$ac_exeext'
16044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045
(eval $ac_try) 2>&5
16047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
(exit $ac_status); }; }; then
16050
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16052
# Check for a 64-bit object if we didn't find anything.
16053
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; }
16056
echo "$as_me: failed program was:" >&5
16057
sed 's/^/| /' conftest.$ac_ext >&5
16060
rm -f conftest.err conftest.$ac_objext \
16061
conftest$ac_exeext conftest.$ac_ext
16062
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16064
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16065
# Warning - without using the other run time loading flags,
16066
# -berok will link without error, but may produce a broken library.
16067
no_undefined_flag_GCJ=' ${wl}-bernotok'
16068
allow_undefined_flag_GCJ=' ${wl}-berok'
16069
# -bexpall does not export symbols beginning with underscore (_)
16070
always_export_symbols_GCJ=yes
16071
# Exported symbols can be pulled into shared objects from archives
16072
whole_archive_flag_spec_GCJ=' '
16073
archive_cmds_need_lc_GCJ=yes
16074
# This is similar to how AIX traditionally builds it's shared libraries.
16075
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'
16081
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)'
16082
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083
hardcode_minus_L_GCJ=yes
16084
# see comment about different semantics on the GNU ld section
16089
export_dynamic_flag_spec_GCJ=-rdynamic
16092
cygwin* | mingw* | pw32*)
16093
# When not using gcc, we currently assume that we are using
16094
# Microsoft Visual C++.
16095
# hardcode_libdir_flag_spec is actually meaningless, as there is
16096
# no search path for DLLs.
16097
hardcode_libdir_flag_spec_GCJ=' '
16098
allow_undefined_flag_GCJ=unsupported
16099
# Tell ltmain to make .lib files, not .a files.
16101
# Tell ltmain to make .dll files, not .so files.
16103
# FIXME: Setting linknames here is a bad hack.
16104
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16105
# The linker will automatically build a .lib file if we build a DLL.
16106
old_archive_From_new_cmds_GCJ='true'
16107
# FIXME: Should let the user specify the lib program.
16108
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16109
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16110
enable_shared_with_static_runtimes_GCJ=yes
16113
darwin* | rhapsody*)
16115
rhapsody* | darwin1.[012])
16116
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16119
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16120
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16122
case ${MACOSX_DEPLOYMENT_TARGET} in
16124
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16127
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16133
archive_cmds_need_lc_GCJ=no
16134
hardcode_direct_GCJ=no
16135
hardcode_automatic_GCJ=yes
16136
hardcode_shlibpath_var_GCJ=unsupported
16137
whole_archive_flag_spec_GCJ=''
16138
link_all_deplibs_GCJ=yes
16139
if test "$GCC" = yes ; then
16140
output_verbose_link_cmd='echo'
16141
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16142
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16143
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16144
archive_expsym_cmds_GCJ='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}'
16145
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16147
case "$cc_basename" in
16149
output_verbose_link_cmd='echo'
16150
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16151
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16152
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16153
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16154
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16164
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16166
hardcode_shlibpath_var_GCJ=no
16173
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16174
# support. Future versions do this automatically, but an explicit c++rt0.o
16175
# does not break anything, and helps significantly (at the cost of a little
16178
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16179
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16180
hardcode_direct_GCJ=yes
16181
hardcode_shlibpath_var_GCJ=no
16184
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16186
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16187
hardcode_direct_GCJ=yes
16188
hardcode_minus_L_GCJ=yes
16189
hardcode_shlibpath_var_GCJ=no
16192
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16193
freebsd* | kfreebsd*-gnu | dragonfly*)
16194
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16195
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16196
hardcode_direct_GCJ=yes
16197
hardcode_shlibpath_var_GCJ=no
16201
if test "$GCC" = yes; then
16202
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'
16204
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'
16206
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16207
hardcode_libdir_separator_GCJ=:
16208
hardcode_direct_GCJ=yes
16210
# hardcode_minus_L: Not really in the search PATH,
16211
# but as the default location of the library.
16212
hardcode_minus_L_GCJ=yes
16213
export_dynamic_flag_spec_GCJ='${wl}-E'
16217
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16218
case "$host_cpu" in
16220
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16227
case "$host_cpu" in
16229
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16232
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16236
if test "$with_gnu_ld" = no; then
16237
case "$host_cpu" in
16239
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16240
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16241
hardcode_libdir_separator_GCJ=:
16242
hardcode_direct_GCJ=no
16243
hardcode_shlibpath_var_GCJ=no
16246
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247
hardcode_direct_GCJ=no
16248
hardcode_shlibpath_var_GCJ=no
16250
# hardcode_minus_L: Not really in the search PATH,
16251
# but as the default location of the library.
16252
hardcode_minus_L_GCJ=yes
16255
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16256
hardcode_libdir_separator_GCJ=:
16257
hardcode_direct_GCJ=yes
16258
export_dynamic_flag_spec_GCJ='${wl}-E'
16260
# hardcode_minus_L: Not really in the search PATH,
16261
# but as the default location of the library.
16262
hardcode_minus_L_GCJ=yes
16268
irix5* | irix6* | nonstopux*)
16269
if test "$GCC" = yes; then
16270
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'
16272
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'
16273
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16275
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16276
hardcode_libdir_separator_GCJ=:
16277
link_all_deplibs_GCJ=yes
16281
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16282
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16284
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16286
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16287
hardcode_direct_GCJ=yes
16288
hardcode_shlibpath_var_GCJ=no
16292
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293
hardcode_direct_GCJ=yes
16294
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16295
hardcode_libdir_separator_GCJ=:
16296
hardcode_shlibpath_var_GCJ=no
16300
hardcode_direct_GCJ=yes
16301
hardcode_shlibpath_var_GCJ=no
16302
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16303
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16304
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16305
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16306
export_dynamic_flag_spec_GCJ='${wl}-E'
16309
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16310
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16311
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16314
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16315
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16322
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323
hardcode_minus_L_GCJ=yes
16324
allow_undefined_flag_GCJ=unsupported
16325
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'
16326
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16330
if test "$GCC" = yes; then
16331
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16332
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'
16334
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16335
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'
16337
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16338
hardcode_libdir_separator_GCJ=:
16341
osf4* | osf5*) # as osf3* with the addition of -msym flag
16342
if test "$GCC" = yes; then
16343
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16344
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'
16345
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16347
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16348
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'
16349
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~
16350
$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'
16352
# Both c and cxx compiler support -rpath directly
16353
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16355
hardcode_libdir_separator_GCJ=:
16359
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360
hardcode_shlibpath_var_GCJ=no
16361
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16362
runpath_var=LD_RUN_PATH
16363
hardcode_runpath_var=yes
16367
no_undefined_flag_GCJ=' -z text'
16368
if test "$GCC" = yes; then
16369
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16371
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16373
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16375
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16377
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16378
hardcode_shlibpath_var_GCJ=no
16380
solaris2.[0-5] | solaris2.[0-5].*) ;;
16381
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16382
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16384
link_all_deplibs_GCJ=yes
16388
if test "x$host_vendor" = xsequent; then
16389
# Use $CC to link under sequent, because it throws in some extra .o
16390
# files that make .init and .fini sections work.
16391
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16393
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16395
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16396
hardcode_direct_GCJ=yes
16397
hardcode_minus_L_GCJ=yes
16398
hardcode_shlibpath_var_GCJ=no
16402
case $host_vendor in
16404
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405
hardcode_direct_GCJ=yes # is this really true???
16408
## LD is ld it makes a PLAMLIB
16409
## CC just makes a GrossModule.
16410
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16411
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16412
hardcode_direct_GCJ=no
16415
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16416
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16419
runpath_var='LD_RUN_PATH'
16420
hardcode_shlibpath_var_GCJ=no
16424
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425
hardcode_shlibpath_var_GCJ=no
16426
export_dynamic_flag_spec_GCJ='-Bexport'
16430
if test -d /usr/nec; then
16431
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432
hardcode_shlibpath_var_GCJ=no
16433
runpath_var=LD_RUN_PATH
16434
hardcode_runpath_var=yes
16440
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16441
hardcode_direct_GCJ=yes
16442
hardcode_minus_L_GCJ=no
16443
hardcode_shlibpath_var_GCJ=no
16444
hardcode_runpath_var=yes
16445
runpath_var=LD_RUN_PATH
16448
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16449
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16450
if test "$GCC" = yes; then
16451
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455
runpath_var='LD_RUN_PATH'
16456
hardcode_shlibpath_var_GCJ=no
16460
no_undefined_flag_GCJ=' -z text'
16461
# $CC -shared without GNU ld will not create a library from C++
16462
# object files and a static libstdc++, better avoid it by now
16463
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16465
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16466
hardcode_libdir_flag_spec_GCJ=
16467
hardcode_shlibpath_var_GCJ=no
16468
runpath_var='LD_RUN_PATH'
16472
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16474
hardcode_shlibpath_var_GCJ=no
16483
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16484
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16485
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16487
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16488
if test "$GCC" = yes; then
16489
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16493
# Do we need to explicitly link libc?
16495
case "x$archive_cmds_need_lc_GCJ" in
16497
# Assume -lc should be added
16498
archive_cmds_need_lc_GCJ=yes
16500
if test "$enable_shared" = yes && test "$GCC" = yes; then
16501
case $archive_cmds_GCJ in
16503
# FIXME: we may have to deal with multi-command sequences.
16506
# Test whether the compiler implicitly links with -lc since on some
16507
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16508
# to ld, don't add -lc before -lgcc.
16509
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16510
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16512
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515
(eval $ac_compile) 2>&5
16517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518
(exit $ac_status); } 2>conftest.err; then
16521
libobjs=conftest.$ac_objext
16523
wl=$lt_prog_compiler_wl_GCJ
16529
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16530
allow_undefined_flag_GCJ=
16531
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16532
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535
(exit $ac_status); }
16537
archive_cmds_need_lc_GCJ=no
16539
archive_cmds_need_lc_GCJ=yes
16541
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16543
cat conftest.err 1>&5
16546
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16547
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16554
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16555
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16556
library_names_spec=
16557
libname_spec='lib$name'
16561
postuninstall_cmds=
16565
shlibpath_overrides_runpath=unknown
16567
dynamic_linker="$host_os ld.so"
16568
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16569
if test "$GCC" = yes; then
16570
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16571
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16572
# if the path contains ";" then we assume it to be the separator
16573
# otherwise default to the standard path separator (i.e. ":") - it is
16574
# assumed that no part of a normal pathname contains ";" but that should
16575
# okay in the real world where ";" in dirpaths is itself problematic.
16576
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16578
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16581
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16583
need_lib_prefix=unknown
16584
hardcode_into_libs=no
16586
# when you set need_version to no, make sure it does not cause -set_version
16587
# flags to be left without arguments
16588
need_version=unknown
16593
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16594
shlibpath_var=LIBPATH
16596
# AIX 3 has no versioning support, so we append a major version to the name.
16597
soname_spec='${libname}${release}${shared_ext}$major'
16604
hardcode_into_libs=yes
16605
if test "$host_cpu" = ia64; then
16606
# AIX 5 supports IA64
16607
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16608
shlibpath_var=LD_LIBRARY_PATH
16610
# With GCC up to 2.95.x, collect2 would create an import file
16611
# for dependence libraries. The import file would start with
16612
# the line `#! .'. This would cause the generated library to
16613
# depend on `.', always an invalid library. This was fixed in
16614
# development snapshots of GCC prior to 3.0.
16616
aix4 | aix4.[01] | aix4.[01].*)
16617
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16619
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16622
can_build_shared=no
16626
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16627
# soname into executable. Probably we can add versioning support to
16628
# collect2, so additional links can be useful in future.
16629
if test "$aix_use_runtimelinking" = yes; then
16630
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16631
# instead of lib<name>.a to let people know that these are not
16632
# typical AIX shared libraries.
16633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635
# We preserve .a as extension for shared libraries through AIX4.2
16636
# and later when we are not doing run time linking.
16637
library_names_spec='${libname}${release}.a $libname.a'
16638
soname_spec='${libname}${release}${shared_ext}$major'
16640
shlibpath_var=LIBPATH
16645
library_names_spec='$libname.ixlibrary $libname.a'
16646
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16647
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'
16651
library_names_spec='${libname}${shared_ext}'
16652
dynamic_linker="$host_os ld.so"
16653
shlibpath_var=LIBRARY_PATH
16659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
soname_spec='${libname}${release}${shared_ext}$major'
16661
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16662
shlibpath_var=LD_LIBRARY_PATH
16663
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16664
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16665
# the default ld.so.conf also contains /usr/contrib/lib and
16666
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16667
# libtool to hard-code these into programs
16670
cygwin* | mingw* | pw32*)
16671
version_type=windows
16676
case $GCC,$host_os in
16677
yes,cygwin* | yes,mingw* | yes,pw32*)
16678
library_names_spec='$libname.dll.a'
16679
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16680
postinstall_cmds='base_file=`basename \${file}`~
16681
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16682
dldir=$destdir/`dirname \$dlpath`~
16683
test -d \$dldir || mkdir -p \$dldir~
16684
$install_prog $dir/$dlname \$dldir/$dlname'
16685
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16686
dlpath=$dir/\$dldll~
16688
shlibpath_overrides_runpath=yes
16692
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16693
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16694
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16697
# MinGW DLLs use traditional 'lib' prefix
16698
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16699
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16700
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16701
# It is most probably a Windows format PATH printed by
16702
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16703
# path with ; separators, and with drive letters. We can handle the
16704
# drive letters (cygwin fileutils understands them), so leave them,
16705
# especially as we might pass files found there to a mingw objdump,
16706
# which wouldn't understand a cygwinified path. Ahh.
16707
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16709
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16713
# pw32 DLLs use 'pw' prefix rather than 'lib'
16714
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16720
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16723
dynamic_linker='Win32 ld.exe'
16724
# FIXME: first we should search . and the directory the executable is in
16728
darwin* | rhapsody*)
16729
dynamic_linker="$host_os dyld"
16730
version_type=darwin
16733
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16734
soname_spec='${libname}${release}${major}$shared_ext'
16735
shlibpath_overrides_runpath=yes
16736
shlibpath_var=DYLD_LIBRARY_PATH
16737
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16738
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16739
if test "$GCC" = yes; then
16740
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"`
16742
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16744
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16752
soname_spec='${libname}${release}${shared_ext}$major'
16753
shlibpath_var=LD_LIBRARY_PATH
16764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765
soname_spec='${libname}${release}${shared_ext}$major'
16766
shlibpath_var=LD_LIBRARY_PATH
16767
shlibpath_overrides_runpath=no
16768
hardcode_into_libs=yes
16769
dynamic_linker='GNU ld.so'
16772
freebsd* | dragonfly*)
16773
# DragonFly does not have aout. When/if they implement a new
16774
# versioning mechanism, adjust this.
16775
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16776
version_type=freebsd-$objformat
16777
case $version_type in
16779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16784
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16788
shlibpath_var=LD_LIBRARY_PATH
16791
shlibpath_overrides_runpath=yes
16793
freebsd3.[01]* | freebsdelf3.[01]*)
16794
shlibpath_overrides_runpath=yes
16795
hardcode_into_libs=yes
16798
shlibpath_overrides_runpath=no
16799
hardcode_into_libs=yes
16808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16809
soname_spec='${libname}${release}${shared_ext}$major'
16810
shlibpath_var=LD_LIBRARY_PATH
16811
hardcode_into_libs=yes
16814
hpux9* | hpux10* | hpux11*)
16815
# Give a soname corresponding to the major version so that dld.sl refuses to
16816
# link against other versions.
16820
case "$host_cpu" in
16823
hardcode_into_libs=yes
16824
dynamic_linker="$host_os dld.so"
16825
shlibpath_var=LD_LIBRARY_PATH
16826
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828
soname_spec='${libname}${release}${shared_ext}$major'
16829
if test "X$HPUX_IA64_MODE" = X32; then
16830
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16832
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16834
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16838
hardcode_into_libs=yes
16839
dynamic_linker="$host_os dld.sl"
16840
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16841
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843
soname_spec='${libname}${release}${shared_ext}$major'
16844
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16845
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16849
dynamic_linker="$host_os dld.sl"
16850
shlibpath_var=SHLIB_PATH
16851
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853
soname_spec='${libname}${release}${shared_ext}$major'
16856
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16857
postinstall_cmds='chmod 555 $lib'
16860
irix5* | irix6* | nonstopux*)
16862
nonstopux*) version_type=nonstopux ;;
16864
if test "$lt_cv_prog_gnu_ld" = yes; then
16872
soname_spec='${libname}${release}${shared_ext}$major'
16873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16875
irix5* | nonstopux*)
16876
libsuff= shlibsuff=
16879
case $LD in # libtool.m4 will add one of these switches to LD
16880
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16881
libsuff= shlibsuff= libmagic=32-bit;;
16882
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16883
libsuff=32 shlibsuff=N32 libmagic=N32;;
16884
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16885
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16886
*) libsuff= shlibsuff= libmagic=never-match;;
16890
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16891
shlibpath_overrides_runpath=no
16892
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16893
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16894
hardcode_into_libs=yes
16897
# No shared lib support for Linux oldld, aout, or coff.
16898
linux*oldld* | linux*aout* | linux*coff*)
16902
# This must be Linux ELF.
16907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908
soname_spec='${libname}${release}${shared_ext}$major'
16909
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16910
shlibpath_var=LD_LIBRARY_PATH
16911
shlibpath_overrides_runpath=no
16912
# This implies no fast_install, which is unacceptable.
16913
# Some rework will be needed to allow for fast_install
16914
# before this can be enabled.
16915
hardcode_into_libs=yes
16917
# Append ld.so.conf contents to the search path
16918
if test -f /etc/ld.so.conf; then
16919
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16920
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16923
# We used to test for /lib/ld.so.1 and disable shared libraries on
16924
# powerpc, because MkLinux only supported shared libraries with the
16925
# GNU dynamic linker. Since this was broken with cross compilers,
16926
# most powerpc-linux boxes support dynamic linking these days and
16927
# people can always --disable-shared, the test was removed, and we
16928
# assume the GNU/Linux dynamic linker is in use.
16929
dynamic_linker='GNU/Linux ld.so'
16936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16937
soname_spec='${libname}${release}${shared_ext}$major'
16938
shlibpath_var=LD_LIBRARY_PATH
16939
shlibpath_overrides_runpath=no
16940
hardcode_into_libs=yes
16941
dynamic_linker='GNU ld.so'
16948
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16951
dynamic_linker='NetBSD (a.out) ld.so'
16953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16954
soname_spec='${libname}${release}${shared_ext}$major'
16955
dynamic_linker='NetBSD ld.elf_so'
16957
shlibpath_var=LD_LIBRARY_PATH
16958
shlibpath_overrides_runpath=yes
16959
hardcode_into_libs=yes
16964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965
shlibpath_var=LD_LIBRARY_PATH
16966
shlibpath_overrides_runpath=yes
16973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974
soname_spec='${libname}${release}${shared_ext}$major'
16975
shlibpath_var=LD_LIBRARY_PATH
16976
shlibpath_overrides_runpath=yes
16983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16984
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16985
shlibpath_var=LD_LIBRARY_PATH
16986
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16988
openbsd2.[89] | openbsd2.[89].*)
16989
shlibpath_overrides_runpath=no
16992
shlibpath_overrides_runpath=yes
16996
shlibpath_overrides_runpath=yes
17001
libname_spec='$name'
17004
library_names_spec='$libname${shared_ext} $libname.a'
17005
dynamic_linker='OS/2 ld.exe'
17006
shlibpath_var=LIBPATH
17009
osf3* | osf4* | osf5*)
17013
soname_spec='${libname}${release}${shared_ext}$major'
17014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015
shlibpath_var=LD_LIBRARY_PATH
17016
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17017
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17022
soname_spec='${libname}${release}${shared_ext}$major'
17023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024
shlibpath_var=LD_LIBRARY_PATH
17031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032
soname_spec='${libname}${release}${shared_ext}$major'
17033
shlibpath_var=LD_LIBRARY_PATH
17034
shlibpath_overrides_runpath=yes
17035
hardcode_into_libs=yes
17036
# ldd complains unless libraries are executable
17037
postinstall_cmds='chmod +x $lib'
17042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17043
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17044
shlibpath_var=LD_LIBRARY_PATH
17045
shlibpath_overrides_runpath=yes
17046
if test "$with_gnu_ld" = yes; then
17052
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055
soname_spec='${libname}${release}${shared_ext}$major'
17056
shlibpath_var=LD_LIBRARY_PATH
17057
case $host_vendor in
17059
shlibpath_overrides_runpath=no
17061
export_dynamic_flag_spec='${wl}-Blargedynsym'
17062
runpath_var=LD_RUN_PATH
17070
shlibpath_overrides_runpath=no
17071
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17077
if test -d /usr/nec ;then
17079
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17080
soname_spec='$libname${shared_ext}.$major'
17081
shlibpath_var=LD_LIBRARY_PATH
17087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088
soname_spec='${libname}${release}${shared_ext}$major'
17089
shlibpath_var=LD_LIBRARY_PATH
17096
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17097
echo "${ECHO_T}$dynamic_linker" >&6
17098
test "$dynamic_linker" = no && can_build_shared=no
17100
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17101
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17102
hardcode_action_GCJ=
17103
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17104
test -n "$runpath_var_GCJ" || \
17105
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17107
# We can hardcode non-existant directories.
17108
if test "$hardcode_direct_GCJ" != no &&
17109
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17110
# have to relink, otherwise we might link with an installed library
17111
# when we should be linking with a yet-to-be-installed one
17112
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17113
test "$hardcode_minus_L_GCJ" != no; then
17114
# Linking always hardcodes the temporary library directory.
17115
hardcode_action_GCJ=relink
17117
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17118
hardcode_action_GCJ=immediate
17121
# We cannot hardcode anything, or else we can only hardcode existing
17123
hardcode_action_GCJ=unsupported
17125
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17126
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17128
if test "$hardcode_action_GCJ" = relink; then
17129
# Fast installation is not supported
17130
enable_fast_install=no
17131
elif test "$shlibpath_overrides_runpath" = yes ||
17132
test "$enable_shared" = no; then
17133
# Fast installation is not necessary
17134
enable_fast_install=needless
17139
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17140
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17141
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17142
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17143
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17144
echo "$as_me:$LINENO: result: yes" >&5
17145
echo "${ECHO_T}yes" >&6
17147
# FIXME - insert some real tests, host_os isn't really good enough
17150
if test -n "$STRIP" ; then
17151
striplib="$STRIP -x"
17152
echo "$as_me:$LINENO: result: yes" >&5
17153
echo "${ECHO_T}yes" >&6
17155
echo "$as_me:$LINENO: result: no" >&5
17156
echo "${ECHO_T}no" >&6
17160
echo "$as_me:$LINENO: result: no" >&5
17161
echo "${ECHO_T}no" >&6
17166
if test "x$enable_dlopen" != xyes; then
17167
enable_dlopen=unknown
17168
enable_dlopen_self=unknown
17169
enable_dlopen_self_static=unknown
17176
lt_cv_dlopen="load_add_on"
17178
lt_cv_dlopen_self=yes
17182
lt_cv_dlopen="LoadLibrary"
17187
lt_cv_dlopen="dlopen"
17192
# if libdl is installed we need to link against it
17193
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17194
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17195
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17196
echo $ECHO_N "(cached) $ECHO_C" >&6
17198
ac_check_lib_save_LIBS=$LIBS
17200
cat >conftest.$ac_ext <<_ACEOF
17203
cat confdefs.h >>conftest.$ac_ext
17204
cat >>conftest.$ac_ext <<_ACEOF
17205
/* end confdefs.h. */
17207
/* Override any gcc2 internal prototype to avoid an error. */
17211
/* We use char because int might match the return type of a gcc2
17212
builtin and then its argument prototype would still apply. */
17222
rm -f conftest.$ac_objext conftest$ac_exeext
17223
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224
(eval $ac_link) 2>conftest.er1
17226
grep -v '^ *+' conftest.er1 >conftest.err
17228
cat conftest.err >&5
17229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230
(exit $ac_status); } &&
17231
{ ac_try='test -z "$ac_c_werror_flag"
17232
|| test ! -s conftest.err'
17233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234
(eval $ac_try) 2>&5
17236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237
(exit $ac_status); }; } &&
17238
{ ac_try='test -s conftest$ac_exeext'
17239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240
(eval $ac_try) 2>&5
17242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243
(exit $ac_status); }; }; then
17244
ac_cv_lib_dl_dlopen=yes
17246
echo "$as_me: failed program was:" >&5
17247
sed 's/^/| /' conftest.$ac_ext >&5
17249
ac_cv_lib_dl_dlopen=no
17251
rm -f conftest.err conftest.$ac_objext \
17252
conftest$ac_exeext conftest.$ac_ext
17253
LIBS=$ac_check_lib_save_LIBS
17255
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17256
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17257
if test $ac_cv_lib_dl_dlopen = yes; then
17258
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17261
lt_cv_dlopen="dyld"
17263
lt_cv_dlopen_self=yes
17270
echo "$as_me:$LINENO: checking for shl_load" >&5
17271
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17272
if test "${ac_cv_func_shl_load+set}" = set; then
17273
echo $ECHO_N "(cached) $ECHO_C" >&6
17275
cat >conftest.$ac_ext <<_ACEOF
17278
cat confdefs.h >>conftest.$ac_ext
17279
cat >>conftest.$ac_ext <<_ACEOF
17280
/* end confdefs.h. */
17281
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17282
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283
#define shl_load innocuous_shl_load
17285
/* System header to define __stub macros and hopefully few prototypes,
17286
which can conflict with char shl_load (); below.
17287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288
<limits.h> exists even on freestanding compilers. */
17291
# include <limits.h>
17293
# include <assert.h>
17298
/* Override any gcc2 internal prototype to avoid an error. */
17303
/* We use char because int might match the return type of a gcc2
17304
builtin and then its argument prototype would still apply. */
17306
/* The GNU C library defines this for functions which it implements
17307
to always fail with ENOSYS. Some functions are actually named
17308
something starting with __ and the normal name is an alias. */
17309
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17312
char (*f) () = shl_load;
17321
return f != shl_load;
17326
rm -f conftest.$ac_objext conftest$ac_exeext
17327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328
(eval $ac_link) 2>conftest.er1
17330
grep -v '^ *+' conftest.er1 >conftest.err
17332
cat conftest.err >&5
17333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334
(exit $ac_status); } &&
17335
{ ac_try='test -z "$ac_c_werror_flag"
17336
|| test ! -s conftest.err'
17337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338
(eval $ac_try) 2>&5
17340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341
(exit $ac_status); }; } &&
17342
{ ac_try='test -s conftest$ac_exeext'
17343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344
(eval $ac_try) 2>&5
17346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
(exit $ac_status); }; }; then
17348
ac_cv_func_shl_load=yes
17350
echo "$as_me: failed program was:" >&5
17351
sed 's/^/| /' conftest.$ac_ext >&5
17353
ac_cv_func_shl_load=no
17355
rm -f conftest.err conftest.$ac_objext \
17356
conftest$ac_exeext conftest.$ac_ext
17358
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17359
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17360
if test $ac_cv_func_shl_load = yes; then
17361
lt_cv_dlopen="shl_load"
17363
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17364
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17365
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17366
echo $ECHO_N "(cached) $ECHO_C" >&6
17368
ac_check_lib_save_LIBS=$LIBS
17370
cat >conftest.$ac_ext <<_ACEOF
17373
cat confdefs.h >>conftest.$ac_ext
17374
cat >>conftest.$ac_ext <<_ACEOF
17375
/* end confdefs.h. */
17377
/* Override any gcc2 internal prototype to avoid an error. */
17381
/* We use char because int might match the return type of a gcc2
17382
builtin and then its argument prototype would still apply. */
17392
rm -f conftest.$ac_objext conftest$ac_exeext
17393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394
(eval $ac_link) 2>conftest.er1
17396
grep -v '^ *+' conftest.er1 >conftest.err
17398
cat conftest.err >&5
17399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400
(exit $ac_status); } &&
17401
{ ac_try='test -z "$ac_c_werror_flag"
17402
|| test ! -s conftest.err'
17403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404
(eval $ac_try) 2>&5
17406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407
(exit $ac_status); }; } &&
17408
{ ac_try='test -s conftest$ac_exeext'
17409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410
(eval $ac_try) 2>&5
17412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413
(exit $ac_status); }; }; then
17414
ac_cv_lib_dld_shl_load=yes
17416
echo "$as_me: failed program was:" >&5
17417
sed 's/^/| /' conftest.$ac_ext >&5
17419
ac_cv_lib_dld_shl_load=no
17421
rm -f conftest.err conftest.$ac_objext \
17422
conftest$ac_exeext conftest.$ac_ext
17423
LIBS=$ac_check_lib_save_LIBS
17425
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17426
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17427
if test $ac_cv_lib_dld_shl_load = yes; then
17428
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17430
echo "$as_me:$LINENO: checking for dlopen" >&5
17431
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17432
if test "${ac_cv_func_dlopen+set}" = set; then
17433
echo $ECHO_N "(cached) $ECHO_C" >&6
17435
cat >conftest.$ac_ext <<_ACEOF
17438
cat confdefs.h >>conftest.$ac_ext
17439
cat >>conftest.$ac_ext <<_ACEOF
17440
/* end confdefs.h. */
17441
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17442
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443
#define dlopen innocuous_dlopen
17445
/* System header to define __stub macros and hopefully few prototypes,
17446
which can conflict with char dlopen (); below.
17447
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448
<limits.h> exists even on freestanding compilers. */
17451
# include <limits.h>
17453
# include <assert.h>
17458
/* Override any gcc2 internal prototype to avoid an error. */
17463
/* We use char because int might match the return type of a gcc2
17464
builtin and then its argument prototype would still apply. */
17466
/* The GNU C library defines this for functions which it implements
17467
to always fail with ENOSYS. Some functions are actually named
17468
something starting with __ and the normal name is an alias. */
17469
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17472
char (*f) () = dlopen;
17481
return f != dlopen;
17486
rm -f conftest.$ac_objext conftest$ac_exeext
17487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488
(eval $ac_link) 2>conftest.er1
17490
grep -v '^ *+' conftest.er1 >conftest.err
17492
cat conftest.err >&5
17493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494
(exit $ac_status); } &&
17495
{ ac_try='test -z "$ac_c_werror_flag"
17496
|| test ! -s conftest.err'
17497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498
(eval $ac_try) 2>&5
17500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501
(exit $ac_status); }; } &&
17502
{ ac_try='test -s conftest$ac_exeext'
17503
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504
(eval $ac_try) 2>&5
17506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507
(exit $ac_status); }; }; then
17508
ac_cv_func_dlopen=yes
17510
echo "$as_me: failed program was:" >&5
17511
sed 's/^/| /' conftest.$ac_ext >&5
17513
ac_cv_func_dlopen=no
17515
rm -f conftest.err conftest.$ac_objext \
17516
conftest$ac_exeext conftest.$ac_ext
17518
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17519
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17520
if test $ac_cv_func_dlopen = yes; then
17521
lt_cv_dlopen="dlopen"
17523
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17524
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17525
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17526
echo $ECHO_N "(cached) $ECHO_C" >&6
17528
ac_check_lib_save_LIBS=$LIBS
17530
cat >conftest.$ac_ext <<_ACEOF
17533
cat confdefs.h >>conftest.$ac_ext
17534
cat >>conftest.$ac_ext <<_ACEOF
17535
/* end confdefs.h. */
17537
/* Override any gcc2 internal prototype to avoid an error. */
17541
/* We use char because int might match the return type of a gcc2
17542
builtin and then its argument prototype would still apply. */
17552
rm -f conftest.$ac_objext conftest$ac_exeext
17553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554
(eval $ac_link) 2>conftest.er1
17556
grep -v '^ *+' conftest.er1 >conftest.err
17558
cat conftest.err >&5
17559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560
(exit $ac_status); } &&
17561
{ ac_try='test -z "$ac_c_werror_flag"
17562
|| test ! -s conftest.err'
17563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564
(eval $ac_try) 2>&5
17566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
(exit $ac_status); }; } &&
17568
{ ac_try='test -s conftest$ac_exeext'
17569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570
(eval $ac_try) 2>&5
17572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573
(exit $ac_status); }; }; then
17574
ac_cv_lib_dl_dlopen=yes
17576
echo "$as_me: failed program was:" >&5
17577
sed 's/^/| /' conftest.$ac_ext >&5
17579
ac_cv_lib_dl_dlopen=no
17581
rm -f conftest.err conftest.$ac_objext \
17582
conftest$ac_exeext conftest.$ac_ext
17583
LIBS=$ac_check_lib_save_LIBS
17585
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17586
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17587
if test $ac_cv_lib_dl_dlopen = yes; then
17588
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17590
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17591
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17592
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17593
echo $ECHO_N "(cached) $ECHO_C" >&6
17595
ac_check_lib_save_LIBS=$LIBS
17596
LIBS="-lsvld $LIBS"
17597
cat >conftest.$ac_ext <<_ACEOF
17600
cat confdefs.h >>conftest.$ac_ext
17601
cat >>conftest.$ac_ext <<_ACEOF
17602
/* end confdefs.h. */
17604
/* Override any gcc2 internal prototype to avoid an error. */
17608
/* We use char because int might match the return type of a gcc2
17609
builtin and then its argument prototype would still apply. */
17619
rm -f conftest.$ac_objext conftest$ac_exeext
17620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17621
(eval $ac_link) 2>conftest.er1
17623
grep -v '^ *+' conftest.er1 >conftest.err
17625
cat conftest.err >&5
17626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627
(exit $ac_status); } &&
17628
{ ac_try='test -z "$ac_c_werror_flag"
17629
|| test ! -s conftest.err'
17630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631
(eval $ac_try) 2>&5
17633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
(exit $ac_status); }; } &&
17635
{ ac_try='test -s conftest$ac_exeext'
17636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
(eval $ac_try) 2>&5
17639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
(exit $ac_status); }; }; then
17641
ac_cv_lib_svld_dlopen=yes
17643
echo "$as_me: failed program was:" >&5
17644
sed 's/^/| /' conftest.$ac_ext >&5
17646
ac_cv_lib_svld_dlopen=no
17648
rm -f conftest.err conftest.$ac_objext \
17649
conftest$ac_exeext conftest.$ac_ext
17650
LIBS=$ac_check_lib_save_LIBS
17652
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17653
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17654
if test $ac_cv_lib_svld_dlopen = yes; then
17655
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17657
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17658
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17659
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17660
echo $ECHO_N "(cached) $ECHO_C" >&6
17662
ac_check_lib_save_LIBS=$LIBS
17664
cat >conftest.$ac_ext <<_ACEOF
17667
cat confdefs.h >>conftest.$ac_ext
17668
cat >>conftest.$ac_ext <<_ACEOF
17669
/* end confdefs.h. */
17671
/* Override any gcc2 internal prototype to avoid an error. */
17675
/* We use char because int might match the return type of a gcc2
17676
builtin and then its argument prototype would still apply. */
17686
rm -f conftest.$ac_objext conftest$ac_exeext
17687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688
(eval $ac_link) 2>conftest.er1
17690
grep -v '^ *+' conftest.er1 >conftest.err
17692
cat conftest.err >&5
17693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694
(exit $ac_status); } &&
17695
{ ac_try='test -z "$ac_c_werror_flag"
17696
|| test ! -s conftest.err'
17697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698
(eval $ac_try) 2>&5
17700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701
(exit $ac_status); }; } &&
17702
{ ac_try='test -s conftest$ac_exeext'
17703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704
(eval $ac_try) 2>&5
17706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707
(exit $ac_status); }; }; then
17708
ac_cv_lib_dld_dld_link=yes
17710
echo "$as_me: failed program was:" >&5
17711
sed 's/^/| /' conftest.$ac_ext >&5
17713
ac_cv_lib_dld_dld_link=no
17715
rm -f conftest.err conftest.$ac_objext \
17716
conftest$ac_exeext conftest.$ac_ext
17717
LIBS=$ac_check_lib_save_LIBS
17719
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17720
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17721
if test $ac_cv_lib_dld_dld_link = yes; then
17722
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17743
if test "x$lt_cv_dlopen" != xno; then
17749
case $lt_cv_dlopen in
17751
save_CPPFLAGS="$CPPFLAGS"
17752
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17754
save_LDFLAGS="$LDFLAGS"
17755
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17758
LIBS="$lt_cv_dlopen_libs $LIBS"
17760
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17761
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17762
if test "${lt_cv_dlopen_self+set}" = set; then
17763
echo $ECHO_N "(cached) $ECHO_C" >&6
17765
if test "$cross_compiling" = yes; then :
17766
lt_cv_dlopen_self=cross
17768
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17769
lt_status=$lt_dlunknown
17770
cat > conftest.$ac_ext <<EOF
17771
#line 17771 "configure"
17772
#include "confdefs.h"
17781
# define LT_DLGLOBAL RTLD_GLOBAL
17784
# define LT_DLGLOBAL DL_GLOBAL
17786
# define LT_DLGLOBAL 0
17790
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17791
find out it does not work in some platform. */
17792
#ifndef LT_DLLAZY_OR_NOW
17794
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17797
# define LT_DLLAZY_OR_NOW DL_LAZY
17800
# define LT_DLLAZY_OR_NOW RTLD_NOW
17803
# define LT_DLLAZY_OR_NOW DL_NOW
17805
# define LT_DLLAZY_OR_NOW 0
17813
extern "C" void exit (int);
17816
void fnord() { int i=42;}
17819
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17820
int status = $lt_dlunknown;
17824
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17825
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17826
/* dlclose (self); */
17832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17833
(eval $ac_link) 2>&5
17835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17837
(./conftest; exit; ) 2>/dev/null
17839
case x$lt_status in
17840
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17841
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17842
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17845
# compilation failed
17846
lt_cv_dlopen_self=no
17853
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17854
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17856
if test "x$lt_cv_dlopen_self" = xyes; then
17857
LDFLAGS="$LDFLAGS $link_static_flag"
17858
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17859
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17860
if test "${lt_cv_dlopen_self_static+set}" = set; then
17861
echo $ECHO_N "(cached) $ECHO_C" >&6
17863
if test "$cross_compiling" = yes; then :
17864
lt_cv_dlopen_self_static=cross
17866
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17867
lt_status=$lt_dlunknown
17868
cat > conftest.$ac_ext <<EOF
17869
#line 17869 "configure"
17870
#include "confdefs.h"
17879
# define LT_DLGLOBAL RTLD_GLOBAL
17882
# define LT_DLGLOBAL DL_GLOBAL
17884
# define LT_DLGLOBAL 0
17888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17889
find out it does not work in some platform. */
17890
#ifndef LT_DLLAZY_OR_NOW
17892
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17895
# define LT_DLLAZY_OR_NOW DL_LAZY
17898
# define LT_DLLAZY_OR_NOW RTLD_NOW
17901
# define LT_DLLAZY_OR_NOW DL_NOW
17903
# define LT_DLLAZY_OR_NOW 0
17911
extern "C" void exit (int);
17914
void fnord() { int i=42;}
17917
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17918
int status = $lt_dlunknown;
17922
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17923
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17924
/* dlclose (self); */
17930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931
(eval $ac_link) 2>&5
17933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17935
(./conftest; exit; ) 2>/dev/null
17937
case x$lt_status in
17938
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17939
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17940
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17943
# compilation failed
17944
lt_cv_dlopen_self_static=no
17951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17952
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17955
CPPFLAGS="$save_CPPFLAGS"
17956
LDFLAGS="$save_LDFLAGS"
17961
case $lt_cv_dlopen_self in
17962
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17963
*) enable_dlopen_self=unknown ;;
17966
case $lt_cv_dlopen_self_static in
17967
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17968
*) enable_dlopen_self_static=unknown ;;
17973
# The else clause should only fire when bootstrapping the
17974
# libtool distribution, otherwise you forgot to ship ltmain.sh
17975
# with your package, and you will get complaints that there are
17976
# no rules to generate ltmain.sh.
17977
if test -f "$ltmain"; then
17978
# See if we are running on zsh, and set the options which allow our commands through
17979
# without removal of \ escapes.
17980
if test -n "${ZSH_VERSION+set}" ; then
17981
setopt NO_GLOB_SUBST
17983
# Now quote all the things that may contain metacharacters while being
17984
# careful not to overquote the AC_SUBSTed values. We take copies of the
17985
# variables and quote the copies for generation of the libtool script.
17986
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17988
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17989
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17990
deplibs_check_method reload_flag reload_cmds need_locks \
17991
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17992
lt_cv_sys_global_symbol_to_c_name_address \
17993
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17994
old_postinstall_cmds old_postuninstall_cmds \
17998
lt_prog_compiler_wl_GCJ \
17999
lt_prog_compiler_pic_GCJ \
18000
lt_prog_compiler_static_GCJ \
18001
lt_prog_compiler_no_builtin_flag_GCJ \
18002
export_dynamic_flag_spec_GCJ \
18003
thread_safe_flag_spec_GCJ \
18004
whole_archive_flag_spec_GCJ \
18005
enable_shared_with_static_runtimes_GCJ \
18006
old_archive_cmds_GCJ \
18007
old_archive_from_new_cmds_GCJ \
18008
predep_objects_GCJ \
18009
postdep_objects_GCJ \
18012
compiler_lib_search_path_GCJ \
18014
archive_expsym_cmds_GCJ \
18015
postinstall_cmds_GCJ \
18016
postuninstall_cmds_GCJ \
18017
old_archive_from_expsyms_cmds_GCJ \
18018
allow_undefined_flag_GCJ \
18019
no_undefined_flag_GCJ \
18020
export_symbols_cmds_GCJ \
18021
hardcode_libdir_flag_spec_GCJ \
18022
hardcode_libdir_flag_spec_ld_GCJ \
18023
hardcode_libdir_separator_GCJ \
18024
hardcode_automatic_GCJ \
18026
module_expsym_cmds_GCJ \
18027
lt_cv_prog_compiler_c_o_GCJ \
18028
exclude_expsyms_GCJ \
18029
include_expsyms_GCJ; do
18032
old_archive_cmds_GCJ | \
18033
old_archive_from_new_cmds_GCJ | \
18034
archive_cmds_GCJ | \
18035
archive_expsym_cmds_GCJ | \
18036
module_cmds_GCJ | \
18037
module_expsym_cmds_GCJ | \
18038
old_archive_from_expsyms_cmds_GCJ | \
18039
export_symbols_cmds_GCJ | \
18040
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18041
postinstall_cmds | postuninstall_cmds | \
18042
old_postinstall_cmds | old_postuninstall_cmds | \
18043
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18044
# Double-quote double-evaled strings.
18045
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18048
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18054
*'\$0 --fallback-echo"')
18055
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18061
cat <<__EOF__ >> "$cfgfile"
18062
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18064
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
# Shell to use when invoking shell scripts.
18069
# Whether or not to build shared libraries.
18070
build_libtool_libs=$enable_shared
18072
# Whether or not to build static libraries.
18073
build_old_libs=$enable_static
18075
# Whether or not to add -lc for building shared libraries.
18076
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18078
# Whether or not to disallow shared libs when runtime libs are static
18079
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18081
# Whether or not to optimize for fast installation.
18082
fast_install=$enable_fast_install
18085
host_alias=$host_alias
18089
# The build system.
18090
build_alias=$build_alias
18094
# An echo program that does not interpret backslashes.
18099
AR_FLAGS=$lt_AR_FLAGS
18104
# A language-specific compiler.
18105
CC=$lt_compiler_GCJ
18107
# Is the compiler the GNU C compiler?
18113
# The linker used to build libraries.
18116
# Whether we need hard or soft links.
18119
# A BSD-compatible nm program.
18122
# A symbol stripping program
18125
# Used to examine libraries when file_magic_cmd begins "file"
18126
MAGIC_CMD=$MAGIC_CMD
18128
# Used on cygwin: DLL creation program.
18131
# Used on cygwin: object dumper.
18134
# Used on cygwin: assembler.
18137
# The name of the directory that contains temporary libtool files.
18140
# How to create reloadable object files.
18141
reload_flag=$lt_reload_flag
18142
reload_cmds=$lt_reload_cmds
18144
# How to pass a linker flag through the compiler.
18145
wl=$lt_lt_prog_compiler_wl_GCJ
18147
# Object file suffix (normally "o").
18148
objext="$ac_objext"
18150
# Old archive suffix (normally "a").
18153
# Shared library suffix (normally ".so").
18154
shrext_cmds='$shrext_cmds'
18156
# Executable file suffix (normally "").
18159
# Additional compiler flags for building library objects.
18160
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18163
# What is the maximum length of a command?
18164
max_cmd_len=$lt_cv_sys_max_cmd_len
18166
# Does compiler simultaneously support -c and -o options?
18167
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18169
# Must we lock files when doing compilation ?
18170
need_locks=$lt_need_locks
18172
# Do we need the lib prefix for modules?
18173
need_lib_prefix=$need_lib_prefix
18175
# Do we need a version for libraries?
18176
need_version=$need_version
18178
# Whether dlopen is supported.
18179
dlopen_support=$enable_dlopen
18181
# Whether dlopen of programs is supported.
18182
dlopen_self=$enable_dlopen_self
18184
# Whether dlopen of statically linked programs is supported.
18185
dlopen_self_static=$enable_dlopen_self_static
18187
# Compiler flag to prevent dynamic linking.
18188
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18190
# Compiler flag to turn off builtin functions.
18191
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18193
# Compiler flag to allow reflexive dlopens.
18194
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18196
# Compiler flag to generate shared objects directly from archives.
18197
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18199
# Compiler flag to generate thread-safe objects.
18200
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18202
# Library versioning type.
18203
version_type=$version_type
18205
# Format of library name prefix.
18206
libname_spec=$lt_libname_spec
18208
# List of archive names. First name is the real one, the rest are links.
18209
# The last name is the one that the linker finds with -lNAME.
18210
library_names_spec=$lt_library_names_spec
18212
# The coded name of the library, if different from the real name.
18213
soname_spec=$lt_soname_spec
18215
# Commands used to build and install an old-style archive.
18217
old_archive_cmds=$lt_old_archive_cmds_GCJ
18218
old_postinstall_cmds=$lt_old_postinstall_cmds
18219
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18221
# Create an old-style archive from a shared archive.
18222
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18224
# Create a temporary old-style archive to link instead of a shared archive.
18225
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18227
# Commands used to build and install a shared archive.
18228
archive_cmds=$lt_archive_cmds_GCJ
18229
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18230
postinstall_cmds=$lt_postinstall_cmds
18231
postuninstall_cmds=$lt_postuninstall_cmds
18233
# Commands used to build a loadable module (assumed same as above if empty)
18234
module_cmds=$lt_module_cmds_GCJ
18235
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18237
# Commands to strip libraries.
18238
old_striplib=$lt_old_striplib
18239
striplib=$lt_striplib
18241
# Dependencies to place before the objects being linked to create a
18243
predep_objects=$lt_predep_objects_GCJ
18245
# Dependencies to place after the objects being linked to create a
18247
postdep_objects=$lt_postdep_objects_GCJ
18249
# Dependencies to place before the objects being linked to create a
18251
predeps=$lt_predeps_GCJ
18253
# Dependencies to place after the objects being linked to create a
18255
postdeps=$lt_postdeps_GCJ
18257
# The library search path used internally by the compiler when linking
18258
# a shared library.
18259
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18261
# Method to check whether dependent libraries are shared objects.
18262
deplibs_check_method=$lt_deplibs_check_method
18264
# Command to use when deplibs_check_method == file_magic.
18265
file_magic_cmd=$lt_file_magic_cmd
18267
# Flag that allows shared libraries with undefined symbols to be built.
18268
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18270
# Flag that forces no undefined symbols.
18271
no_undefined_flag=$lt_no_undefined_flag_GCJ
18273
# Commands used to finish a libtool library installation in a directory.
18274
finish_cmds=$lt_finish_cmds
18276
# Same as above, but a single script fragment to be evaled but not shown.
18277
finish_eval=$lt_finish_eval
18279
# Take the output of nm and produce a listing of raw symbols and C names.
18280
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18282
# Transform the output of nm in a proper C declaration
18283
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18285
# Transform the output of nm in a C name address pair
18286
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18288
# This is the shared library runtime path variable.
18289
runpath_var=$runpath_var
18291
# This is the shared library path variable.
18292
shlibpath_var=$shlibpath_var
18294
# Is shlibpath searched before the hard-coded library search path?
18295
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18297
# How to hardcode a shared library path into an executable.
18298
hardcode_action=$hardcode_action_GCJ
18300
# Whether we should hardcode library paths into libraries.
18301
hardcode_into_libs=$hardcode_into_libs
18303
# Flag to hardcode \$libdir into a binary during linking.
18304
# This must work even if \$libdir does not exist.
18305
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18307
# If ld is used when linking, flag to hardcode \$libdir into
18308
# a binary during linking. This must work even if \$libdir does
18310
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18312
# Whether we need a single -rpath flag with a separated argument.
18313
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18315
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18316
# resulting binary.
18317
hardcode_direct=$hardcode_direct_GCJ
18319
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18320
# resulting binary.
18321
hardcode_minus_L=$hardcode_minus_L_GCJ
18323
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18324
# the resulting binary.
18325
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18327
# Set to yes if building a shared library automatically hardcodes DIR into the library
18328
# and all subsequent libraries and executables linked against it.
18329
hardcode_automatic=$hardcode_automatic_GCJ
18331
# Variables whose values should be saved in libtool wrapper scripts and
18332
# restored at relink time.
18333
variables_saved_for_relink="$variables_saved_for_relink"
18335
# Whether libtool must link a program against all its dependency libraries.
18336
link_all_deplibs=$link_all_deplibs_GCJ
18338
# Compile-time system search path for libraries
18339
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18341
# Run-time system search path for libraries
18342
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18344
# Fix the shell variable \$srcfile for the compiler.
18345
fix_srcfile_path="$fix_srcfile_path_GCJ"
18347
# Set to yes if exported symbols are required.
18348
always_export_symbols=$always_export_symbols_GCJ
18350
# The commands to list exported symbols.
18351
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18353
# The commands to extract the exported symbol list from a shared archive.
18354
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356
# Symbols that should not be listed in the preloaded symbols.
18357
exclude_expsyms=$lt_exclude_expsyms_GCJ
18359
# Symbols that must always be exported.
18360
include_expsyms=$lt_include_expsyms_GCJ
18362
# ### END LIBTOOL TAG CONFIG: $tagname
18368
# If there is no Makefile yet, we rely on a make rule to execute
18369
# `config.status --recheck' to rerun these tests and create the
18370
# libtool script then.
18371
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18372
if test -f "$ltmain_in"; then
18373
test -f Makefile && make "$ltmain"
18379
ac_cpp='$CPP $CPPFLAGS'
18380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395
# Source file extension for RC test sources.
18398
# Object file extension for compiled RC test sources.
18402
# Code to be used in simple compile tests
18403
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18405
# Code to be used in simple link tests
18406
lt_simple_link_test_code="$lt_simple_compile_test_code"
18408
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18410
# If no C compiler was specified, use CC.
18413
# Allow CC to be a program name with arguments.
18417
# Allow CC to be a program name with arguments.
18422
lt_cv_prog_compiler_c_o_RC=yes
18424
# The else clause should only fire when bootstrapping the
18425
# libtool distribution, otherwise you forgot to ship ltmain.sh
18426
# with your package, and you will get complaints that there are
18427
# no rules to generate ltmain.sh.
18428
if test -f "$ltmain"; then
18429
# See if we are running on zsh, and set the options which allow our commands through
18430
# without removal of \ escapes.
18431
if test -n "${ZSH_VERSION+set}" ; then
18432
setopt NO_GLOB_SUBST
18434
# Now quote all the things that may contain metacharacters while being
18435
# careful not to overquote the AC_SUBSTed values. We take copies of the
18436
# variables and quote the copies for generation of the libtool script.
18437
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18439
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18440
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18441
deplibs_check_method reload_flag reload_cmds need_locks \
18442
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18443
lt_cv_sys_global_symbol_to_c_name_address \
18444
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18445
old_postinstall_cmds old_postuninstall_cmds \
18449
lt_prog_compiler_wl_RC \
18450
lt_prog_compiler_pic_RC \
18451
lt_prog_compiler_static_RC \
18452
lt_prog_compiler_no_builtin_flag_RC \
18453
export_dynamic_flag_spec_RC \
18454
thread_safe_flag_spec_RC \
18455
whole_archive_flag_spec_RC \
18456
enable_shared_with_static_runtimes_RC \
18457
old_archive_cmds_RC \
18458
old_archive_from_new_cmds_RC \
18459
predep_objects_RC \
18460
postdep_objects_RC \
18463
compiler_lib_search_path_RC \
18465
archive_expsym_cmds_RC \
18466
postinstall_cmds_RC \
18467
postuninstall_cmds_RC \
18468
old_archive_from_expsyms_cmds_RC \
18469
allow_undefined_flag_RC \
18470
no_undefined_flag_RC \
18471
export_symbols_cmds_RC \
18472
hardcode_libdir_flag_spec_RC \
18473
hardcode_libdir_flag_spec_ld_RC \
18474
hardcode_libdir_separator_RC \
18475
hardcode_automatic_RC \
18477
module_expsym_cmds_RC \
18478
lt_cv_prog_compiler_c_o_RC \
18479
exclude_expsyms_RC \
18480
include_expsyms_RC; do
18483
old_archive_cmds_RC | \
18484
old_archive_from_new_cmds_RC | \
18485
archive_cmds_RC | \
18486
archive_expsym_cmds_RC | \
18488
module_expsym_cmds_RC | \
18489
old_archive_from_expsyms_cmds_RC | \
18490
export_symbols_cmds_RC | \
18491
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492
postinstall_cmds | postuninstall_cmds | \
18493
old_postinstall_cmds | old_postuninstall_cmds | \
18494
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495
# Double-quote double-evaled strings.
18496
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18499
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18505
*'\$0 --fallback-echo"')
18506
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18512
cat <<__EOF__ >> "$cfgfile"
18513
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18515
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18517
# Shell to use when invoking shell scripts.
18520
# Whether or not to build shared libraries.
18521
build_libtool_libs=$enable_shared
18523
# Whether or not to build static libraries.
18524
build_old_libs=$enable_static
18526
# Whether or not to add -lc for building shared libraries.
18527
build_libtool_need_lc=$archive_cmds_need_lc_RC
18529
# Whether or not to disallow shared libs when runtime libs are static
18530
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18532
# Whether or not to optimize for fast installation.
18533
fast_install=$enable_fast_install
18536
host_alias=$host_alias
18540
# The build system.
18541
build_alias=$build_alias
18545
# An echo program that does not interpret backslashes.
18550
AR_FLAGS=$lt_AR_FLAGS
18555
# A language-specific compiler.
18558
# Is the compiler the GNU C compiler?
18564
# The linker used to build libraries.
18567
# Whether we need hard or soft links.
18570
# A BSD-compatible nm program.
18573
# A symbol stripping program
18576
# Used to examine libraries when file_magic_cmd begins "file"
18577
MAGIC_CMD=$MAGIC_CMD
18579
# Used on cygwin: DLL creation program.
18582
# Used on cygwin: object dumper.
18585
# Used on cygwin: assembler.
18588
# The name of the directory that contains temporary libtool files.
18591
# How to create reloadable object files.
18592
reload_flag=$lt_reload_flag
18593
reload_cmds=$lt_reload_cmds
18595
# How to pass a linker flag through the compiler.
18596
wl=$lt_lt_prog_compiler_wl_RC
18598
# Object file suffix (normally "o").
18599
objext="$ac_objext"
18601
# Old archive suffix (normally "a").
18604
# Shared library suffix (normally ".so").
18605
shrext_cmds='$shrext_cmds'
18607
# Executable file suffix (normally "").
18610
# Additional compiler flags for building library objects.
18611
pic_flag=$lt_lt_prog_compiler_pic_RC
18614
# What is the maximum length of a command?
18615
max_cmd_len=$lt_cv_sys_max_cmd_len
18617
# Does compiler simultaneously support -c and -o options?
18618
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18620
# Must we lock files when doing compilation ?
18621
need_locks=$lt_need_locks
18623
# Do we need the lib prefix for modules?
18624
need_lib_prefix=$need_lib_prefix
18626
# Do we need a version for libraries?
18627
need_version=$need_version
18629
# Whether dlopen is supported.
18630
dlopen_support=$enable_dlopen
18632
# Whether dlopen of programs is supported.
18633
dlopen_self=$enable_dlopen_self
18635
# Whether dlopen of statically linked programs is supported.
18636
dlopen_self_static=$enable_dlopen_self_static
18638
# Compiler flag to prevent dynamic linking.
18639
link_static_flag=$lt_lt_prog_compiler_static_RC
18641
# Compiler flag to turn off builtin functions.
18642
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18644
# Compiler flag to allow reflexive dlopens.
18645
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18647
# Compiler flag to generate shared objects directly from archives.
18648
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18650
# Compiler flag to generate thread-safe objects.
18651
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18653
# Library versioning type.
18654
version_type=$version_type
18656
# Format of library name prefix.
18657
libname_spec=$lt_libname_spec
18659
# List of archive names. First name is the real one, the rest are links.
18660
# The last name is the one that the linker finds with -lNAME.
18661
library_names_spec=$lt_library_names_spec
18663
# The coded name of the library, if different from the real name.
18664
soname_spec=$lt_soname_spec
18666
# Commands used to build and install an old-style archive.
18668
old_archive_cmds=$lt_old_archive_cmds_RC
18669
old_postinstall_cmds=$lt_old_postinstall_cmds
18670
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18672
# Create an old-style archive from a shared archive.
18673
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18675
# Create a temporary old-style archive to link instead of a shared archive.
18676
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18678
# Commands used to build and install a shared archive.
18679
archive_cmds=$lt_archive_cmds_RC
18680
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18681
postinstall_cmds=$lt_postinstall_cmds
18682
postuninstall_cmds=$lt_postuninstall_cmds
18684
# Commands used to build a loadable module (assumed same as above if empty)
18685
module_cmds=$lt_module_cmds_RC
18686
module_expsym_cmds=$lt_module_expsym_cmds_RC
18688
# Commands to strip libraries.
18689
old_striplib=$lt_old_striplib
18690
striplib=$lt_striplib
18692
# Dependencies to place before the objects being linked to create a
18694
predep_objects=$lt_predep_objects_RC
18696
# Dependencies to place after the objects being linked to create a
18698
postdep_objects=$lt_postdep_objects_RC
18700
# Dependencies to place before the objects being linked to create a
18702
predeps=$lt_predeps_RC
18704
# Dependencies to place after the objects being linked to create a
18706
postdeps=$lt_postdeps_RC
18708
# The library search path used internally by the compiler when linking
18709
# a shared library.
18710
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18712
# Method to check whether dependent libraries are shared objects.
18713
deplibs_check_method=$lt_deplibs_check_method
18715
# Command to use when deplibs_check_method == file_magic.
18716
file_magic_cmd=$lt_file_magic_cmd
18718
# Flag that allows shared libraries with undefined symbols to be built.
18719
allow_undefined_flag=$lt_allow_undefined_flag_RC
18721
# Flag that forces no undefined symbols.
18722
no_undefined_flag=$lt_no_undefined_flag_RC
18724
# Commands used to finish a libtool library installation in a directory.
18725
finish_cmds=$lt_finish_cmds
18727
# Same as above, but a single script fragment to be evaled but not shown.
18728
finish_eval=$lt_finish_eval
18730
# Take the output of nm and produce a listing of raw symbols and C names.
18731
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18733
# Transform the output of nm in a proper C declaration
18734
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18736
# Transform the output of nm in a C name address pair
18737
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18739
# This is the shared library runtime path variable.
18740
runpath_var=$runpath_var
18742
# This is the shared library path variable.
18743
shlibpath_var=$shlibpath_var
18745
# Is shlibpath searched before the hard-coded library search path?
18746
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18748
# How to hardcode a shared library path into an executable.
18749
hardcode_action=$hardcode_action_RC
18751
# Whether we should hardcode library paths into libraries.
18752
hardcode_into_libs=$hardcode_into_libs
18754
# Flag to hardcode \$libdir into a binary during linking.
18755
# This must work even if \$libdir does not exist.
18756
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18758
# If ld is used when linking, flag to hardcode \$libdir into
18759
# a binary during linking. This must work even if \$libdir does
18761
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18763
# Whether we need a single -rpath flag with a separated argument.
18764
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18766
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18767
# resulting binary.
18768
hardcode_direct=$hardcode_direct_RC
18770
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18771
# resulting binary.
18772
hardcode_minus_L=$hardcode_minus_L_RC
18774
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18775
# the resulting binary.
18776
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18778
# Set to yes if building a shared library automatically hardcodes DIR into the library
18779
# and all subsequent libraries and executables linked against it.
18780
hardcode_automatic=$hardcode_automatic_RC
18782
# Variables whose values should be saved in libtool wrapper scripts and
18783
# restored at relink time.
18784
variables_saved_for_relink="$variables_saved_for_relink"
18786
# Whether libtool must link a program against all its dependency libraries.
18787
link_all_deplibs=$link_all_deplibs_RC
18789
# Compile-time system search path for libraries
18790
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18792
# Run-time system search path for libraries
18793
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18795
# Fix the shell variable \$srcfile for the compiler.
18796
fix_srcfile_path="$fix_srcfile_path_RC"
18798
# Set to yes if exported symbols are required.
18799
always_export_symbols=$always_export_symbols_RC
18801
# The commands to list exported symbols.
18802
export_symbols_cmds=$lt_export_symbols_cmds_RC
18804
# The commands to extract the exported symbol list from a shared archive.
18805
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18807
# Symbols that should not be listed in the preloaded symbols.
18808
exclude_expsyms=$lt_exclude_expsyms_RC
18810
# Symbols that must always be exported.
18811
include_expsyms=$lt_include_expsyms_RC
18813
# ### END LIBTOOL TAG CONFIG: $tagname
18819
# If there is no Makefile yet, we rely on a make rule to execute
18820
# `config.status --recheck' to rerun these tests and create the
18821
# libtool script then.
18822
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18823
if test -f "$ltmain_in"; then
18824
test -f Makefile && make "$ltmain"
18830
ac_cpp='$CPP $CPPFLAGS'
18831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18840
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18841
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18842
{ (exit 1); exit 1; }; }
18846
# Append the new tag name to the list of available tags.
18847
if test -n "$tagname" ; then
18848
available_tags="$available_tags $tagname"
18854
# Now substitute the updated list of available tags.
18855
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18856
mv "${ofile}T" "$ofile"
18860
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18861
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18862
{ (exit 1); exit 1; }; }