1256
1793
])# AC_LIBTOOL_DLOPEN_SELF
1258
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1259
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1260
# Sed substitution that helps us do robust quoting. It backslashifies
1261
# metacharacters that are still active within double-quoted strings.
1262
Xsed='sed -e s/^X//'
1263
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1265
# Same as above, but do not quote variable references.
1266
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1268
# Sed substitution to delay expansion of an escaped shell variable in a
1269
# double_quote_subst'ed string.
1270
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1276
default_ofile=libtool
1277
can_build_shared=yes
1279
# All known linkers require a `.a' archive for static linking (except M$VC,
1280
# which needs '.lib').
1282
ltmain="$ac_aux_dir/ltmain.sh"
1283
ofile="$default_ofile"
1284
with_gnu_ld="$lt_cv_prog_gnu_ld"
1285
need_locks="$enable_libtool_lock"
1288
old_CFLAGS="$CFLAGS"
1290
# Set sane defaults for various variables
1291
test -z "$AR" && AR=ar
1292
test -z "$AR_FLAGS" && AR_FLAGS=cru
1293
test -z "$AS" && AS=as
1294
test -z "$CC" && CC=cc
1295
test -z "$DLLTOOL" && DLLTOOL=dlltool
1296
test -z "$LD" && LD=ld
1297
test -z "$LN_S" && LN_S="ln -s"
1298
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1299
test -z "$NM" && NM=nm
1300
test -z "$OBJDUMP" && OBJDUMP=objdump
1301
test -z "$RANLIB" && RANLIB=:
1302
test -z "$STRIP" && STRIP=:
1303
test -z "$ac_objext" && ac_objext=o
1305
if test x"$host" != x"$build"; then
1306
ac_tool_prefix=${host_alias}-
1313
# AIX sometimes has problems with the GCC collect2 program. For some
1314
# reason, if we set the COLLECT_NAMES environment variable, the problems
1315
# vanish in a puff of smoke.
1316
if test "X${COLLECT_NAMES+set}" != Xset; then
1318
export COLLECT_NAMES
1323
# Determine commands to create old-style static archives.
1324
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1325
old_postinstall_cmds='chmod 644 $oldlib'
1326
old_postuninstall_cmds=
1328
if test -n "$RANLIB"; then
1331
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1334
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1337
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1340
# Allow CC to be a program name with arguments.
1344
AC_MSG_CHECKING([for objdir])
1345
rm -f .libs 2>/dev/null
1346
mkdir .libs 2>/dev/null
1347
if test -d .libs; then
1350
# MS-DOS does not allow filenames that begin with a dot.
1353
rmdir .libs 2>/dev/null
1354
AC_MSG_RESULT($objdir)
1358
[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
1359
pic_mode="$withval", pic_mode=default)
1360
test -z "$pic_mode" && pic_mode=default
1362
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1363
# in isolation, and that seeing it set (from the cache) indicates that
1364
# the associated values are set (in the cache) correctly too.
1365
AC_MSG_CHECKING([for $compiler option to produce PIC])
1366
AC_CACHE_VAL(lt_cv_prog_cc_pic,
1367
[ lt_cv_prog_cc_pic=
1368
lt_cv_prog_cc_shlib=
1370
lt_cv_prog_cc_static=
1371
lt_cv_prog_cc_no_builtin=
1372
lt_cv_prog_cc_can_build_shared=$can_build_shared
1374
if test "$GCC" = yes; then
1375
lt_cv_prog_cc_wl='-Wl,'
1376
lt_cv_prog_cc_static='-static'
1380
# Below there is a dirty hack to force normal static linking with -ldl
1381
# The problem is because libdl dynamically linked with both libc and
1382
# libC (AIX C++ library), which obviously doesn't included in libraries
1383
# list by gcc. This cause undefined symbols with -static flags.
1384
# This hack allows C programs to be linked with "-static -ldl", but
1385
# not sure about C++ programs.
1386
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1389
# FIXME: we need at least 68020 code to build shared libraries, but
1390
# adding the `-m68020' flag to GCC prevents building anything better,
1392
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1394
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
1395
# PIC is the default for these OSes.
1397
darwin* | rhapsody*)
1398
# PIC is the default on this platform
1399
# Common symbols not allowed in MH_DYLIB files
1400
lt_cv_prog_cc_pic='-fno-common'
1402
cygwin* | mingw* | pw32* | os2*)
1403
# This hack is so that the source file can tell whether it is being
1404
# built for inclusion in a dll (and should export symbols for example).
1405
lt_cv_prog_cc_pic='-DDLL_EXPORT'
1408
if test -d /usr/nec; then
1409
lt_cv_prog_cc_pic=-Kconform_pic
1413
lt_cv_prog_cc_pic='-fPIC'
1417
# PORTME Check for PIC flags for the system compiler.
1419
aix3* | aix4* | aix5*)
1420
lt_cv_prog_cc_wl='-Wl,'
1421
# All AIX code is PIC.
1422
if test "$host_cpu" = ia64; then
1423
# AIX 5 now supports IA64 processor
1424
lt_cv_prog_cc_static='-Bstatic'
1426
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1430
hpux9* | hpux10* | hpux11*)
1431
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1432
lt_cv_prog_cc_wl='-Wl,'
1433
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1434
lt_cv_prog_cc_pic='+Z'
1438
lt_cv_prog_cc_wl='-Wl,'
1439
lt_cv_prog_cc_static='-non_shared'
1440
# PIC (with -KPIC) is the default.
1443
cygwin* | mingw* | pw32* | os2*)
1444
# This hack is so that the source file can tell whether it is being
1445
# built for inclusion in a dll (and should export symbols for example).
1446
lt_cv_prog_cc_pic='-DDLL_EXPORT'
1450
lt_cv_prog_cc_pic='-KPIC'
1451
lt_cv_prog_cc_static='-Bstatic'
1454
osf3* | osf4* | osf5*)
1455
# All OSF/1 code is PIC.
1456
lt_cv_prog_cc_wl='-Wl,'
1457
lt_cv_prog_cc_static='-non_shared'
1461
lt_cv_prog_cc_pic='-Kpic'
1462
lt_cv_prog_cc_static='-dn'
1463
lt_cv_prog_cc_shlib='-belf'
1467
lt_cv_prog_cc_pic='-KPIC'
1468
lt_cv_prog_cc_static='-Bstatic'
1469
lt_cv_prog_cc_wl='-Wl,'
1473
lt_cv_prog_cc_pic='-PIC'
1474
lt_cv_prog_cc_static='-Bstatic'
1475
lt_cv_prog_cc_wl='-Qoption ld '
1478
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1479
lt_cv_prog_cc_pic='-KPIC'
1480
lt_cv_prog_cc_static='-Bstatic'
1481
if test "x$host_vendor" = xsni; then
1482
lt_cv_prog_cc_wl='-LD'
1484
lt_cv_prog_cc_wl='-Wl,'
1489
lt_cv_prog_cc_pic='-pic'
1490
lt_cv_prog_cc_static='-Bstatic'
1494
if test -d /usr/nec ;then
1495
lt_cv_prog_cc_pic='-Kconform_pic'
1496
lt_cv_prog_cc_static='-Bstatic'
1501
lt_cv_prog_cc_can_build_shared=no
1506
if test -z "$lt_cv_prog_cc_pic"; then
1507
AC_MSG_RESULT([none])
1509
AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1511
# Check to make sure the pic_flag actually works.
1512
AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1513
AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1514
save_CFLAGS="$CFLAGS"
1515
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1516
AC_TRY_COMPILE([], [], [dnl
1518
hpux9* | hpux10* | hpux11*)
1519
# On HP-UX, both CC and GCC only warn that PIC is supported... then
1520
# they create non-PIC objects. So, if there were any warnings, we
1521
# assume that PIC is not supported.
1522
if test -s conftest.err; then
1523
lt_cv_prog_cc_pic_works=no
1525
lt_cv_prog_cc_pic_works=yes
1529
lt_cv_prog_cc_pic_works=yes
1533
lt_cv_prog_cc_pic_works=no
1535
CFLAGS="$save_CFLAGS"
1538
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1540
lt_cv_prog_cc_can_build_shared=no
1542
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1545
AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1548
# Check for any special shared library compilation flags.
1549
if test -n "$lt_cv_prog_cc_shlib"; then
1550
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1551
if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
1553
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1554
lt_cv_prog_cc_can_build_shared=no
1558
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1559
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1560
lt_cv_prog_cc_static_works=no
1561
save_LDFLAGS="$LDFLAGS"
1562
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1563
AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1564
LDFLAGS="$save_LDFLAGS"
1567
# Belt *and* braces to stop my trousers falling down:
1568
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1569
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1571
pic_flag="$lt_cv_prog_cc_pic"
1572
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1573
wl="$lt_cv_prog_cc_wl"
1574
link_static_flag="$lt_cv_prog_cc_static"
1575
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1576
can_build_shared="$lt_cv_prog_cc_can_build_shared"
1579
# Check to see if options -o and -c are simultaneously supported by compiler
1580
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1581
AC_CACHE_VAL([lt_cv_compiler_c_o], [
1582
$rm -r conftest 2>/dev/null
1585
echo "int some_variable = 0;" > conftest.$ac_ext
1587
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1588
# that will create temporary files in the current directory regardless of
1589
# the output directory. Thus, making CWD read-only will cause this test
1590
# to fail, enabling locking or at least warning the user not to do parallel
1593
save_CFLAGS="$CFLAGS"
1594
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1596
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1597
# The compiler can only warn and ignore the option if not recognized
1598
# So say no if there are warnings
1599
if test -s out/conftest.err; then
1600
lt_cv_compiler_c_o=no
1602
lt_cv_compiler_c_o=yes
1605
# Append any errors to the config.log.
1606
cat out/conftest.err 1>&AC_FD_CC
1607
lt_cv_compiler_c_o=no
1609
CFLAGS="$save_CFLAGS"
1615
$rm -r conftest 2>/dev/null
1617
compiler_c_o=$lt_cv_compiler_c_o
1618
AC_MSG_RESULT([$compiler_c_o])
1620
if test x"$compiler_c_o" = x"yes"; then
1621
# Check to see if we can write to a .lo
1622
AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
1623
AC_CACHE_VAL([lt_cv_compiler_o_lo], [
1624
lt_cv_compiler_o_lo=no
1625
save_CFLAGS="$CFLAGS"
1626
CFLAGS="$CFLAGS -c -o conftest.lo"
1627
save_objext="$ac_objext"
1629
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1630
# The compiler can only warn and ignore the option if not recognized
1631
# So say no if there are warnings
1632
if test -s conftest.err; then
1633
lt_cv_compiler_o_lo=no
1635
lt_cv_compiler_o_lo=yes
1638
ac_objext="$save_objext"
1639
CFLAGS="$save_CFLAGS"
1641
compiler_o_lo=$lt_cv_compiler_o_lo
1642
AC_MSG_RESULT([$compiler_o_lo])
1796
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1797
# ---------------------------------
1798
# Check to see if options -c and -o are simultaneously supported by compiler
1799
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1800
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1801
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1802
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1803
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1804
$rm -r conftest 2>/dev/null
1808
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1810
lt_compiler_flag="-o out/conftest2.$ac_objext"
1811
# Insert the option either (1) after the last *FLAGS variable, or
1812
# (2) before a word containing "conftest.", or (3) at the end.
1813
# Note that $ac_compile itself does not contain backslashes and begins
1814
# with a dollar sign (not a hyphen), so the echo should work correctly.
1815
lt_compile=`echo "$ac_compile" | $SED \
1816
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1817
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1818
-e 's:$: $lt_compiler_flag:'`
1819
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1820
(eval "$lt_compile" 2>out/conftest.err)
1822
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1823
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1824
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1826
# The compiler can only warn and ignore the option if not recognized
1827
# So say no if there are warnings
1828
if test ! -s out/conftest.err; then
1829
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1834
# SGI C++ compiler will create directory out/ii_files/ for
1835
# template instantiation
1836
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1837
$rm out/* && rmdir out
1842
])# AC_LIBTOOL_PROG_CC_C_O
1845
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1846
# -----------------------------------------
1647
1847
# Check to see if we can do hard links to lock some files if needed
1848
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1849
[AC_REQUIRE([_LT_AC_LOCK])dnl
1648
1851
hard_links="nottested"
1649
if test "$compiler_c_o" = no && test "$need_locks" != no; then
1852
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1650
1853
# do not overwrite the value of need_locks provided by the user
1651
1854
AC_MSG_CHECKING([if we can lock with hard links])
1657
1860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1658
1861
AC_MSG_RESULT([$hard_links])
1659
1862
if test "$hard_links" = no; then
1660
AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
1863
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1661
1864
need_locks=warn
1667
if test "$GCC" = yes; then
1668
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1669
AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
1670
echo "int some_variable = 0;" > conftest.$ac_ext
1671
save_CFLAGS="$CFLAGS"
1672
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
1673
compiler_rtti_exceptions=no
1674
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1675
# The compiler can only warn and ignore the option if not recognized
1676
# So say no if there are warnings
1677
if test -s conftest.err; then
1678
compiler_rtti_exceptions=no
1680
compiler_rtti_exceptions=yes
1683
CFLAGS="$save_CFLAGS"
1684
AC_MSG_RESULT([$compiler_rtti_exceptions])
1686
if test "$compiler_rtti_exceptions" = "yes"; then
1687
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
1689
no_builtin_flag=' -fno-builtin'
1693
# See if the linker supports building shared libraries.
1694
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
1696
allow_undefined_flag=
1698
need_lib_prefix=unknown
1699
need_version=unknown
1700
# when you set need_version to no, make sure it does not cause -set_version
1701
# flags to be left without arguments
1703
archive_expsym_cmds=
1704
old_archive_from_new_cmds=
1705
old_archive_from_expsyms_cmds=
1706
export_dynamic_flag_spec=
1707
whole_archive_flag_spec=
1708
thread_safe_flag_spec=
1709
hardcode_into_libs=no
1710
hardcode_libdir_flag_spec=
1711
hardcode_libdir_separator=
1714
hardcode_shlibpath_var=unsupported
1716
link_all_deplibs=unknown
1717
always_export_symbols=no
1718
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
1719
# include_expsyms should be a list of space-separated symbols to be *always*
1720
# included in the symbol list
1722
# exclude_expsyms can be an egrep regular expression of symbols to exclude
1723
# it will be wrapped by ` (' and `)$', so one must not match beginning or
1724
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1725
# as well as any symbol that contains `d'.
1726
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1727
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1728
# platforms (ab)use it in PIC code, but their linkers get confused if
1729
# the symbol is explicitly referenced. Since portable code cannot
1730
# rely on this symbol name, it's probably fine to never include it in
1731
# preloaded symbol tables.
1732
extract_expsyms_cmds=
1735
cygwin* | mingw* | pw32*)
1736
# FIXME: the MSVC++ port hasn't been tested in a loooong time
1737
# When not using gcc, we currently assume that we are using
1738
# Microsoft Visual C++.
1739
if test "$GCC" != yes; then
1749
if test "$with_gnu_ld" = yes; then
1750
# If archive_cmds runs LD, not CC, wlarc should be empty
1753
# See if GNU ld supports shared libraries.
1755
aix3* | aix4* | aix5*)
1756
# On AIX, the GNU linker is very broken
1757
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
1761
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1762
*** to be unable to reliably create shared libraries on AIX.
1763
*** Therefore, libtool is disabling shared libraries support. If you
1764
*** really care for shared libraries, you may want to modify your PATH
1765
*** so that a non-GNU linker is found, and then restart.
1771
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1772
hardcode_libdir_flag_spec='-L$libdir'
1773
hardcode_minus_L=yes
1775
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1776
# that the semantics of dynamic libraries on AmigaOS, at least up
1777
# to version 4, is to share data among multiple programs linked
1778
# with the same dynamic library. Since this doesn't match the
1779
# behavior of shared libraries on other platforms, we can use
1785
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1786
allow_undefined_flag=unsupported
1787
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1788
# support --undefined. This deserves some investigation. FIXME
1789
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1795
cygwin* | mingw* | pw32*)
1796
# hardcode_libdir_flag_spec is actually meaningless, as there is
1797
# no search path for DLLs.
1798
hardcode_libdir_flag_spec='-L$libdir'
1799
allow_undefined_flag=unsupported
1800
always_export_symbols=yes
1802
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
1803
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
1804
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
1805
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
1806
else $CC -o impgen impgen.c ; fi)~
1807
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
1809
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
1811
# cygwin and mingw dlls have different entry points and sets of symbols
1813
# FIXME: what about values for MSVC?
1814
dll_entry=__cygwin_dll_entry@12
1815
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
1819
dll_entry=_DllMainCRTStartup@12
1820
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
1824
# mingw and cygwin differ, and it's simplest to just exclude the union
1825
# of the two symbol sets.
1826
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
1828
# recent cygwin and mingw systems supply a stub DllMain which the user
1829
# can override, but on older systems we have to supply one (in ltdll.c)
1830
if test "x$lt_cv_need_dllmain" = "xyes"; then
1831
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
1832
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
1833
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
1839
# Extract the symbol export list from an `--export-all' def file,
1840
# then regenerate the def file from the symbol export list, so that
1841
# the compiled dll only exports the symbol export list.
1842
# Be careful not to strip the DATA tag left be newer dlltools.
1843
export_symbols_cmds="$ltdll_cmds"'
1844
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
1845
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
1847
# If the export-symbols file already is a .def file (1st line
1848
# is EXPORTS), use it as is.
1849
# If DATA tags from a recent dlltool are present, honour them!
1850
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
1851
cp $export_symbols $output_objdir/$soname-def;
1853
echo EXPORTS > $output_objdir/$soname-def;
1855
cat $export_symbols | while read symbol; do
1858
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
1859
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
1861
_lt_hint=`expr 1 + \$_lt_hint`;
1865
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1866
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
1867
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1868
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
1869
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
1873
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1874
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1877
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1878
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1883
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1887
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1888
*** create shared libraries on Solaris systems. Therefore, libtool
1889
*** is disabling shared libraries support. We urge you to upgrade GNU
1890
*** binutils to release 2.9.1 or newer. Another option is to modify
1891
*** your PATH or compiler configuration so that the native linker is
1892
*** used, and then restart.
1895
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1896
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1897
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1904
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1907
hardcode_shlibpath_var=no
1911
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1912
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1913
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1920
if test "$ld_shlibs" = yes; then
1921
runpath_var=LD_RUN_PATH
1922
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1923
export_dynamic_flag_spec='${wl}--export-dynamic'
1925
cygwin* | mingw* | pw32*)
1926
# dlltool doesn't understand --whole-archive et. al.
1927
whole_archive_flag_spec=
1930
# ancient GNU ld didn't support --whole-archive et. al.
1931
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
1932
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1934
whole_archive_flag_spec=
1869
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1874
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1875
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1876
[rm -f .libs 2>/dev/null
1877
mkdir .libs 2>/dev/null
1878
if test -d .libs; then
1940
# PORTME fill in a description of your system's linker (not GNU ld)
1943
allow_undefined_flag=unsupported
1944
always_export_symbols=yes
1945
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1946
# Note: this linker hardcodes the directories in LIBPATH if there
1947
# are no directories specified by -L.
1948
hardcode_minus_L=yes
1949
if test "$GCC" = yes && test -z "$link_static_flag"; then
1950
# Neither direct hardcoding nor static linking is supported with a
1952
hardcode_direct=unsupported
1957
if test "$host_cpu" = ia64; then
1958
# On IA64, the linker does run time linking by default, so we don't
1959
# have to do anything special.
1960
aix_use_runtimelinking=no
1961
exp_sym_flag='-Bexport'
1964
aix_use_runtimelinking=no
1966
# Test if we are trying to use run time linking or normal
1967
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
1968
# need to do runtime linking.
1969
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1970
for ld_flag in $LDFLAGS; do
1971
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1972
aix_use_runtimelinking=yes
1978
exp_sym_flag='-bexport'
1979
no_entry_flag='-bnoentry'
1982
# When large executables or shared objects are built, AIX ld can
1983
# have problems creating the table of contents. If linking a library
1984
# or program results in "error TOC overflow" add -mminimal-toc to
1985
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1986
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1990
hardcode_libdir_separator=':'
1991
if test "$GCC" = yes; then
1992
case $host_os in aix4.[[012]]|aix4.[[012]].*)
1993
collect2name=`${CC} -print-prog-name=collect2`
1994
if test -f "$collect2name" && \
1995
strings "$collect2name" | grep resolve_lib_name >/dev/null
1997
# We have reworked collect2
2000
# We have old collect2
2001
hardcode_direct=unsupported
2002
# It fails to find uninstalled libraries when the uninstalled
2003
# path is not listed in the libpath. Setting hardcode_minus_L
2004
# to unsupported forces relinking
2005
hardcode_minus_L=yes
2006
hardcode_libdir_flag_spec='-L$libdir'
2007
hardcode_libdir_separator=
2011
shared_flag='-shared'
2014
if test "$host_cpu" = ia64; then
2015
shared_flag='${wl}-G'
2017
if test "$aix_use_runtimelinking" = yes; then
2018
shared_flag='${wl}-G'
2020
shared_flag='${wl}-bM:SRE'
2025
# It seems that -bexpall can do strange things, so it is better to
2026
# generate a list of symbols to export.
2027
always_export_symbols=yes
2028
if test "$aix_use_runtimelinking" = yes; then
2029
# Warning - without using the other runtime loading flags (-brtl),
2030
# -berok will link without error, but may produce a broken library.
2031
allow_undefined_flag='-berok'
2032
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
2033
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2035
if test "$host_cpu" = ia64; then
2036
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
2037
allow_undefined_flag="-z nodefs"
2038
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2040
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
2041
# Warning - without using the other run time loading flags,
2042
# -berok will link without error, but may produce a broken library.
2043
allow_undefined_flag='${wl}-berok'
2044
# This is a bit strange, but is similar to how AIX traditionally builds
2045
# it's shared libraries.
2046
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
2052
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2053
hardcode_libdir_flag_spec='-L$libdir'
2054
hardcode_minus_L=yes
2055
# see comment about different semantics on the GNU ld section
2059
cygwin* | mingw* | pw32*)
2060
# When not using gcc, we currently assume that we are using
2061
# Microsoft Visual C++.
2062
# hardcode_libdir_flag_spec is actually meaningless, as there is
2063
# no search path for DLLs.
2064
hardcode_libdir_flag_spec=' '
2065
allow_undefined_flag=unsupported
2066
# Tell ltmain to make .lib files, not .a files.
2068
# FIXME: Setting linknames here is a bad hack.
2069
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2070
# The linker will automatically build a .lib file if we build a DLL.
2071
old_archive_from_new_cmds='true'
2072
# FIXME: Should let the user specify the lib program.
2073
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
2074
fix_srcfile_path='`cygpath -w "$srcfile"`'
2077
darwin* | rhapsody*)
2079
rhapsody* | darwin1.[[012]])
2080
allow_undefined_flag='-undefined suppress'
2083
allow_undefined_flag='-flat_namespace -undefined suppress'
2086
# FIXME: Relying on posixy $() will cause problems for
2087
# cross-compilation, but unfortunately the echo tests do not
2088
# yet detect zsh echo's removal of \ escapes.
2089
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
2090
# We need to add '_' to the symbols in $export_symbols first
2091
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
2093
hardcode_shlibpath_var=no
2094
whole_archive_flag_spec='-all_load $convenience'
2101
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
2102
# support. Future versions do this automatically, but an explicit c++rt0.o
2103
# does not break anything, and helps significantly (at the cost of a little
2106
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
2107
hardcode_libdir_flag_spec='-R$libdir'
2109
hardcode_shlibpath_var=no
2112
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
2114
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2116
hardcode_minus_L=yes
2117
hardcode_shlibpath_var=no
2120
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2122
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2123
hardcode_libdir_flag_spec='-R$libdir'
2125
hardcode_shlibpath_var=no
2128
hpux9* | hpux10* | hpux11*)
2130
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
2131
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
2133
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
2134
hardcode_libdir_separator=:
2136
hardcode_minus_L=yes # Not in the search PATH, but as the default
2137
# location of the library.
2138
export_dynamic_flag_spec='${wl}-E'
2142
if test "$GCC" = yes; then
2143
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2145
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2147
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2148
hardcode_libdir_separator=:
2149
link_all_deplibs=yes
2153
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2154
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
2156
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
2158
hardcode_libdir_flag_spec='-R$libdir'
2160
hardcode_shlibpath_var=no
2164
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2166
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2167
hardcode_libdir_separator=:
2168
hardcode_shlibpath_var=no
2173
hardcode_shlibpath_var=no
2174
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2175
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2176
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2177
export_dynamic_flag_spec='${wl}-E'
2180
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2181
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2182
hardcode_libdir_flag_spec='-R$libdir'
2185
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2186
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2193
hardcode_libdir_flag_spec='-L$libdir'
2194
hardcode_minus_L=yes
2195
allow_undefined_flag=unsupported
2196
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
2197
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2201
if test "$GCC" = yes; then
2202
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2203
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2205
allow_undefined_flag=' -expect_unresolved \*'
2206
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2208
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2209
hardcode_libdir_separator=:
2212
osf4* | osf5*) # as osf3* with the addition of -msym flag
2213
if test "$GCC" = yes; then
2214
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2215
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2216
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2218
allow_undefined_flag=' -expect_unresolved \*'
2219
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2220
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2221
$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'
2223
#Both c and cxx compiler support -rpath directly
2224
hardcode_libdir_flag_spec='-rpath $libdir'
2226
hardcode_libdir_separator=:
2230
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2231
hardcode_shlibpath_var=no
2232
runpath_var=LD_RUN_PATH
2233
hardcode_runpath_var=yes
2234
export_dynamic_flag_spec='${wl}-Bexport'
2238
# gcc --version < 3.0 without binutils cannot create self contained
2239
# shared libraries reliably, requiring libgcc.a to resolve some of
2240
# the object symbols generated in some cases. Libraries that use
2241
# assert need libgcc.a to resolve __eprintf, for example. Linking
2242
# a copy of libgcc.a into every shared library to guarantee resolving
2243
# such symbols causes other problems: According to Tim Van Holder
2244
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2245
# (to the application) exception stack for one thing.
2246
no_undefined_flag=' -z defs'
2247
if test "$GCC" = yes; then
2248
case `$CC --version 2>/dev/null` in
2252
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2253
*** create self contained shared libraries on Solaris systems, without
2254
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
2255
*** -no-undefined support, which will at least allow you to build shared
2256
*** libraries. However, you may find that when you link such libraries
2257
*** into an application without using GCC, you have to manually add
2258
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
2259
*** upgrade to a newer version of GCC. Another option is to rebuild your
2260
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2267
# $CC -shared without GNU ld will not create a library from C++
2268
# object files and a static libstdc++, better avoid it by now
2269
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2270
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2271
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2272
hardcode_libdir_flag_spec='-R$libdir'
2273
hardcode_shlibpath_var=no
2275
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2276
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
2277
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2279
link_all_deplibs=yes
2283
if test "x$host_vendor" = xsequent; then
2284
# Use $CC to link under sequent, because it throws in some extra .o
2285
# files that make .init and .fini sections work.
2286
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2288
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2290
hardcode_libdir_flag_spec='-L$libdir'
2292
hardcode_minus_L=yes
2293
hardcode_shlibpath_var=no
2297
if test "x$host_vendor" = xsno; then
2298
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
2299
hardcode_direct=yes # is this really true???
2301
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2302
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2304
runpath_var='LD_RUN_PATH'
2305
hardcode_shlibpath_var=no
2309
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2310
hardcode_shlibpath_var=no
2311
export_dynamic_flag_spec='-Bexport'
2315
no_undefined_flag=' -z text'
2316
# $CC -shared without GNU ld will not create a library from C++
2317
# object files and a static libstdc++, better avoid it by now
2318
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2319
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2320
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2321
hardcode_libdir_flag_spec=
2322
hardcode_shlibpath_var=no
2323
runpath_var='LD_RUN_PATH'
2327
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2328
hardcode_libdir_flag_spec='-L$libdir'
2329
hardcode_shlibpath_var=no
2333
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2334
hardcode_libdir_flag_spec='-L$libdir'
2335
hardcode_shlibpath_var=no
2339
if test -d /usr/nec; then
2340
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2341
hardcode_shlibpath_var=no
2342
runpath_var=LD_RUN_PATH
2343
hardcode_runpath_var=yes
2349
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2352
hardcode_shlibpath_var=no
2353
hardcode_runpath_var=yes
2354
runpath_var=LD_RUN_PATH
2357
sysv5uw7* | unixware7*)
2358
no_undefined_flag='${wl}-z ${wl}text'
2359
if test "$GCC" = yes; then
2360
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2362
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2364
runpath_var='LD_RUN_PATH'
2365
hardcode_shlibpath_var=no
1881
# MS-DOS does not allow filenames that begin with a dot.
2373
AC_MSG_RESULT([$ld_shlibs])
2374
test "$ld_shlibs" = no && can_build_shared=no
1884
rmdir .libs 2>/dev/null])
1885
objdir=$lt_cv_objdir
1886
])# AC_LIBTOOL_OBJDIR
1889
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1890
# ----------------------------------------------
2376
1891
# Check hardcoding attributes.
2377
AC_MSG_CHECKING([how to hardcode library paths into programs])
2379
if test -n "$hardcode_libdir_flag_spec" || \
2380
test -n "$runpath_var"; then
1892
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1893
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1894
_LT_AC_TAGVAR(hardcode_action, $1)=
1895
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1896
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1897
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2382
1899
# We can hardcode non-existant directories.
2383
if test "$hardcode_direct" != no &&
1900
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2384
1901
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2385
1902
# have to relink, otherwise we might link with an installed library
2386
1903
# when we should be linking with a yet-to-be-installed one
2387
## test "$hardcode_shlibpath_var" != no &&
2388
test "$hardcode_minus_L" != no; then
1904
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1905
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2389
1906
# Linking always hardcodes the temporary library directory.
2390
hardcode_action=relink
1907
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2392
1909
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2393
hardcode_action=immediate
1910
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2396
1913
# We cannot hardcode anything, or else we can only hardcode existing
2398
hardcode_action=unsupported
2400
AC_MSG_RESULT([$hardcode_action])
1915
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1917
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1919
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1920
# Fast installation is not supported
1921
enable_fast_install=no
1922
elif test "$shlibpath_overrides_runpath" = yes ||
1923
test "$enable_shared" = no; then
1924
# Fast installation is not necessary
1925
enable_fast_install=needless
1927
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1930
# AC_LIBTOOL_SYS_LIB_STRIP
1931
# ------------------------
1932
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2404
1935
AC_MSG_CHECKING([whether stripping libraries is possible])
2405
1936
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2782
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2783
soname_spec='${libname}${release}.so$major'
2784
shlibpath_var=LD_LIBRARY_PATH
2791
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2792
soname_spec='${libname}${release}.so$major'
2793
shlibpath_var=LD_LIBRARY_PATH
2797
2483
if test -d /usr/nec ;then
2798
2484
version_type=linux
2799
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
2800
soname_spec='$libname.so.$major'
2485
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2486
soname_spec='$libname${shared_ext}.$major'
2801
2487
shlibpath_var=LD_LIBRARY_PATH
2493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2494
soname_spec='${libname}${release}${shared_ext}$major'
2495
shlibpath_var=LD_LIBRARY_PATH
2806
2499
dynamic_linker=no
2809
2502
AC_MSG_RESULT([$dynamic_linker])
2810
2503
test "$dynamic_linker" = no && can_build_shared=no
2812
# Report the final consequences.
2504
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2509
AC_DEFUN([_LT_AC_TAGCONFIG],
2510
[AC_ARG_WITH([tags],
2511
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2512
[include additional configurations @<:@automatic@:>@])],
2513
[tagnames="$withval"])
2515
if test -f "$ltmain" && test -n "$tagnames"; then
2516
if test ! -f "${ofile}"; then
2517
AC_MSG_WARN([output file `$ofile' does not exist])
2520
if test -z "$LTCC"; then
2521
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2522
if test -z "$LTCC"; then
2523
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2525
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2529
# Extract list of available tagged configurations in $ofile.
2530
# Note that this assumes the entire list is on one line.
2531
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2533
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2534
for tagname in $tagnames; do
2536
# Check whether tagname contains only valid characters
2537
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2539
*) AC_MSG_ERROR([invalid tag name: $tagname])
2543
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2545
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2548
# Update the list of available tags.
2549
if test -n "$tagname"; then
2550
echo appending configuration tag \"$tagname\" to $ofile
2554
if test -n "$CXX" && test "X$CXX" != "Xno"; then
2555
AC_LIBTOOL_LANG_CXX_CONFIG
2562
if test -n "$F77" && test "X$F77" != "Xno"; then
2563
AC_LIBTOOL_LANG_F77_CONFIG
2570
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2571
AC_LIBTOOL_LANG_GCJ_CONFIG
2578
AC_LIBTOOL_LANG_RC_CONFIG
2582
AC_MSG_ERROR([Unsupported tag name: $tagname])
2586
# Append the new tag name to the list of available tags.
2587
if test -n "$tagname" ; then
2588
available_tags="$available_tags $tagname"
2594
# Now substitute the updated list of available tags.
2595
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2596
mv "${ofile}T" "$ofile"
2600
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2603
])# _LT_AC_TAGCONFIG
2608
# enable checks for dlopen support
2609
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2610
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2611
])# AC_LIBTOOL_DLOPEN
2614
# AC_LIBTOOL_WIN32_DLL
2615
# --------------------
2616
# declare package support for building win32 dll's
2617
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2618
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2619
])# AC_LIBTOOL_WIN32_DLL
2622
# AC_ENABLE_SHARED([DEFAULT])
2623
# ---------------------------
2624
# implement the --enable-shared flag
2625
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2626
AC_DEFUN([AC_ENABLE_SHARED],
2627
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2628
AC_ARG_ENABLE([shared],
2629
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2630
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2631
[p=${PACKAGE-default}
2633
yes) enable_shared=yes ;;
2634
no) enable_shared=no ;;
2637
# Look at the argument we got. We use all the common list separators.
2638
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2639
for pkg in $enableval; do
2641
if test "X$pkg" = "X$p"; then
2648
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2649
])# AC_ENABLE_SHARED
2654
#- set the default shared flag to --disable-shared
2655
AC_DEFUN([AC_DISABLE_SHARED],
2656
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2657
AC_ENABLE_SHARED(no)
2658
])# AC_DISABLE_SHARED
2661
# AC_ENABLE_STATIC([DEFAULT])
2662
# ---------------------------
2663
# implement the --enable-static flag
2664
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2665
AC_DEFUN([AC_ENABLE_STATIC],
2666
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2667
AC_ARG_ENABLE([static],
2668
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2669
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2670
[p=${PACKAGE-default}
2672
yes) enable_static=yes ;;
2673
no) enable_static=no ;;
2676
# Look at the argument we got. We use all the common list separators.
2677
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2678
for pkg in $enableval; do
2680
if test "X$pkg" = "X$p"; then
2687
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2688
])# AC_ENABLE_STATIC
2693
# set the default static flag to --disable-static
2694
AC_DEFUN([AC_DISABLE_STATIC],
2695
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2696
AC_ENABLE_STATIC(no)
2697
])# AC_DISABLE_STATIC
2700
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2701
# ---------------------------------
2702
# implement the --enable-fast-install flag
2703
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2704
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2705
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2706
AC_ARG_ENABLE([fast-install],
2707
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2708
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2709
[p=${PACKAGE-default}
2711
yes) enable_fast_install=yes ;;
2712
no) enable_fast_install=no ;;
2714
enable_fast_install=no
2715
# Look at the argument we got. We use all the common list separators.
2716
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2717
for pkg in $enableval; do
2719
if test "X$pkg" = "X$p"; then
2720
enable_fast_install=yes
2726
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2727
])# AC_ENABLE_FAST_INSTALL
2730
# AC_DISABLE_FAST_INSTALL
2731
# -----------------------
2732
# set the default to --disable-fast-install
2733
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2734
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2735
AC_ENABLE_FAST_INSTALL(no)
2736
])# AC_DISABLE_FAST_INSTALL
2739
# AC_LIBTOOL_PICMODE([MODE])
2740
# --------------------------
2741
# implement the --with-pic flag
2742
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2743
AC_DEFUN([AC_LIBTOOL_PICMODE],
2744
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2745
pic_mode=ifelse($#,1,$1,default)
2746
])# AC_LIBTOOL_PICMODE
2751
# This is predefined starting with Autoconf 2.54, so this conditional
2752
# definition can be removed once we require Autoconf 2.54 or later.
2753
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2754
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2755
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2756
then ac_cv_prog_egrep='grep -E'
2757
else ac_cv_prog_egrep='egrep'
2759
EGREP=$ac_cv_prog_egrep
2764
# AC_PATH_TOOL_PREFIX
2765
# -------------------
2766
# find a file program which can recognise shared library
2767
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2768
[AC_REQUIRE([AC_PROG_EGREP])dnl
2769
AC_MSG_CHECKING([for $1])
2770
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2772
[[\\/*] | ?:[\\/]*])
2773
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2776
lt_save_MAGIC_CMD="$MAGIC_CMD"
2777
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2778
dnl $ac_dummy forces splitting on constant user-supplied paths.
2779
dnl POSIX.2 word splitting is done only on the output of word expansions,
2780
dnl not every word. This closes a longstanding sh security hole.
2781
ac_dummy="ifelse([$2], , $PATH, [$2])"
2782
for ac_dir in $ac_dummy; do
2784
test -z "$ac_dir" && ac_dir=.
2785
if test -f $ac_dir/$1; then
2786
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2787
if test -n "$file_magic_test_file"; then
2788
case $deplibs_check_method in
2790
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2791
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2792
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2793
$EGREP "$file_magic_regex" > /dev/null; then
2798
*** Warning: the command libtool uses to detect shared libraries,
2799
*** $file_magic_cmd, produces output that libtool cannot recognize.
2800
*** The result is that libtool may fail to recognize shared libraries
2801
*** as such. This will affect the creation of libtool libraries that
2802
*** depend on shared libraries, but programs linked with such libtool
2803
*** libraries will work regardless of this problem. Nevertheless, you
2804
*** may want to report the problem to your system manager and/or to
2805
*** bug-libtool@gnu.org
2815
MAGIC_CMD="$lt_save_MAGIC_CMD"
2818
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2819
if test -n "$MAGIC_CMD"; then
2820
AC_MSG_RESULT($MAGIC_CMD)
2824
])# AC_PATH_TOOL_PREFIX
2829
# find a file program which can recognise a shared library
2830
AC_DEFUN([AC_PATH_MAGIC],
2831
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2832
if test -z "$lt_cv_path_MAGIC_CMD"; then
2833
if test -n "$ac_tool_prefix"; then
2834
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2844
# find the pathname to the GNU or non-GNU linker
2845
AC_DEFUN([AC_PROG_LD],
2846
[AC_ARG_WITH([gnu-ld],
2847
[AC_HELP_STRING([--with-gnu-ld],
2848
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2849
[test "$withval" = no || with_gnu_ld=yes],
2851
AC_REQUIRE([LT_AC_PROG_SED])dnl
2852
AC_REQUIRE([AC_PROG_CC])dnl
2853
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2854
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2856
if test "$GCC" = yes; then
2857
# Check if gcc -print-prog-name=ld gives a path.
2858
AC_MSG_CHECKING([for ld used by $CC])
2861
# gcc leaves a trailing carriage return which upsets mingw
2862
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2864
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2867
# Accept absolute paths.
2868
[[\\/]]* | ?:[[\\/]]*)
2869
re_direlt='/[[^/]][[^/]]*/\.\./'
2870
# Canonicalize the pathname of ld
2871
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2872
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2873
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2875
test -z "$LD" && LD="$ac_prog"
2878
# If it fails, then pretend we aren't using GCC.
2882
# If it is relative, then search for the first ld in PATH.
2886
elif test "$with_gnu_ld" = yes; then
2887
AC_MSG_CHECKING([for GNU ld])
2889
AC_MSG_CHECKING([for non-GNU ld])
2891
AC_CACHE_VAL(lt_cv_path_LD,
2892
[if test -z "$LD"; then
2893
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2894
for ac_dir in $PATH; do
2896
test -z "$ac_dir" && ac_dir=.
2897
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2898
lt_cv_path_LD="$ac_dir/$ac_prog"
2899
# Check to see if the program is GNU ld. I'd rather use --version,
2900
# but apparently some GNU ld's only accept -v.
2901
# Break only if it was the GNU/non-GNU ld that we prefer.
2902
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2903
*GNU* | *'with BFD'*)
2904
test "$with_gnu_ld" != no && break
2907
test "$with_gnu_ld" != yes && break
2914
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2917
if test -n "$LD"; then
2922
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2929
AC_DEFUN([AC_PROG_LD_GNU],
2930
[AC_REQUIRE([AC_PROG_EGREP])dnl
2931
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2932
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2933
case `$LD -v 2>&1 </dev/null` in
2934
*GNU* | *'with BFD'*)
2935
lt_cv_prog_gnu_ld=yes
2938
lt_cv_prog_gnu_ld=no
2941
with_gnu_ld=$lt_cv_prog_gnu_ld
2945
# AC_PROG_LD_RELOAD_FLAG
2946
# ----------------------
2947
# find reload flag for linker
2948
# -- PORTME Some linkers may need a different reload flag.
2949
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2950
[AC_CACHE_CHECK([for $LD option to reload object files],
2951
lt_cv_ld_reload_flag,
2952
[lt_cv_ld_reload_flag='-r'])
2953
reload_flag=$lt_cv_ld_reload_flag
2954
case $reload_flag in
2956
*) reload_flag=" $reload_flag" ;;
2958
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2959
])# AC_PROG_LD_RELOAD_FLAG
2962
# AC_DEPLIBS_CHECK_METHOD
2963
# -----------------------
2964
# how to check for library dependencies
2965
# -- PORTME fill in with the dynamic library characteristics
2966
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2967
[AC_CACHE_CHECK([how to recognise dependent libraries],
2968
lt_cv_deplibs_check_method,
2969
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2970
lt_cv_file_magic_test_file=
2971
lt_cv_deplibs_check_method='unknown'
2972
# Need to set the preceding variable on all platforms that support
2973
# interlibrary dependencies.
2974
# 'none' -- dependencies not supported.
2975
# `unknown' -- same as none, but documents that we really don't know.
2976
# 'pass_all' -- all dependencies passed with no checks.
2977
# 'test_compile' -- check by making test program.
2978
# 'file_magic [[regex]]' -- check by looking for files in library path
2979
# which responds to the $file_magic_cmd with a given extended regex.
2980
# If you have `file' or equivalent on your system and you're not sure
2981
# whether `pass_all' will *always* work, you probably want this one.
2985
lt_cv_deplibs_check_method=pass_all
2989
lt_cv_deplibs_check_method=pass_all
2993
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2994
lt_cv_file_magic_cmd='/usr/bin/file -L'
2995
lt_cv_file_magic_test_file=/shlib/libc.so
2999
# win32_libid is a shell function defined in ltmain.sh
3000
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3001
lt_cv_file_magic_cmd='win32_libid'
3005
# Base MSYS/MinGW do not provide the 'file' command needed by
3006
# win32_libid shell function, so use a weaker test based on 'objdump'.
3007
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3008
lt_cv_file_magic_cmd='$OBJDUMP -f'
3011
darwin* | rhapsody*)
3012
lt_cv_deplibs_check_method=pass_all
3015
freebsd* | kfreebsd*-gnu)
3016
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3019
# Not sure whether the presence of OpenBSD here was a mistake.
3020
# Let's accept both of them until this is cleared up.
3021
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3022
lt_cv_file_magic_cmd=/usr/bin/file
3023
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3027
lt_cv_deplibs_check_method=pass_all
3032
lt_cv_deplibs_check_method=pass_all
3035
hpux10.20* | hpux11*)
3036
lt_cv_file_magic_cmd=/usr/bin/file
3039
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3040
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3043
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3044
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3047
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3048
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3053
irix5* | irix6* | nonstopux*)
3055
*-32|*"-32 ") libmagic=32-bit;;
3056
*-n32|*"-n32 ") libmagic=N32;;
3057
*-64|*"-64 ") libmagic=64-bit;;
3058
*) libmagic=never-match;;
3060
lt_cv_deplibs_check_method=pass_all
3063
# This must be Linux ELF.
3065
lt_cv_deplibs_check_method=pass_all
3068
netbsd* | knetbsd*-gnu)
3069
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3070
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3072
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3077
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3078
lt_cv_file_magic_cmd=/usr/bin/file
3079
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3083
lt_cv_deplibs_check_method=unknown
3087
lt_cv_file_magic_cmd=/usr/bin/file
3088
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3089
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3092
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3096
osf3* | osf4* | osf5*)
3097
lt_cv_deplibs_check_method=pass_all
3101
lt_cv_deplibs_check_method=pass_all
3105
lt_cv_deplibs_check_method=pass_all
3108
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3109
case $host_vendor in
3111
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3112
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3115
lt_cv_deplibs_check_method=pass_all
3118
lt_cv_file_magic_cmd='/bin/file'
3119
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3122
lt_cv_file_magic_cmd='/bin/file'
3123
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3124
lt_cv_file_magic_test_file=/lib/libc.so
3127
lt_cv_deplibs_check_method=pass_all
3132
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3133
lt_cv_deplibs_check_method=pass_all
3137
file_magic_cmd=$lt_cv_file_magic_cmd
3138
deplibs_check_method=$lt_cv_deplibs_check_method
3139
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3140
])# AC_DEPLIBS_CHECK_METHOD
3145
# find the pathname to a BSD-compatible name lister
3146
AC_DEFUN([AC_PROG_NM],
3147
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3148
[if test -n "$NM"; then
3149
# Let the user override the test.
3152
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3153
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3155
test -z "$ac_dir" && ac_dir=.
3156
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3157
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3158
# Check to see if the nm accepts a BSD-compat flag.
3159
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3160
# nm: unknown option "B" ignored
3161
# Tru64's nm complains that /dev/null is an invalid object file
3162
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3163
*/dev/null* | *'Invalid file or object type'*)
3164
lt_cv_path_NM="$tmp_nm -B"
3168
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3170
lt_cv_path_NM="$tmp_nm -p"
3174
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3175
continue # so that we can try to find one that supports BSD flags
3182
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3190
# check for math library
3191
AC_DEFUN([AC_CHECK_LIBM],
3192
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3195
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3196
# These system don't have libm, or don't need it
3199
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3200
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3203
AC_CHECK_LIB(m, cos, LIBM="-lm")
3209
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3210
# -----------------------------------
3211
# sets LIBLTDL to the link flags for the libltdl convenience library and
3212
# LTDLINCL to the include flags for the libltdl header and adds
3213
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3214
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3215
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3216
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3217
# '${top_srcdir}/' (note the single quotes!). If your package is not
3218
# flat and you're not using automake, define top_builddir and
3219
# top_srcdir appropriately in the Makefiles.
3220
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3221
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3222
case $enable_ltdl_convenience in
3223
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3224
"") enable_ltdl_convenience=yes
3225
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3227
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3228
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3229
# For backwards non-gettext consistent compatibility...
3231
])# AC_LIBLTDL_CONVENIENCE
3234
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3235
# -----------------------------------
3236
# sets LIBLTDL to the link flags for the libltdl installable library and
3237
# LTDLINCL to the include flags for the libltdl header and adds
3238
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3239
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3240
# DIRECTORY is not provided and an installed libltdl is not found, it is
3241
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3242
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3243
# quotes!). If your package is not flat and you're not using automake,
3244
# define top_builddir and top_srcdir appropriately in the Makefiles.
3245
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3246
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3247
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3248
AC_CHECK_LIB(ltdl, lt_dlinit,
3249
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3250
[if test x"$enable_ltdl_install" = xno; then
3251
AC_MSG_WARN([libltdl not installed, but installation disabled])
3253
enable_ltdl_install=yes
3256
if test x"$enable_ltdl_install" = x"yes"; then
3257
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3258
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3259
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3261
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3265
# For backwards non-gettext consistent compatibility...
3267
])# AC_LIBLTDL_INSTALLABLE
3272
# enable support for C++ libraries
3273
AC_DEFUN([AC_LIBTOOL_CXX],
3274
[AC_REQUIRE([_LT_AC_LANG_CXX])
3280
AC_DEFUN([_LT_AC_LANG_CXX],
3281
[AC_REQUIRE([AC_PROG_CXX])
3282
AC_REQUIRE([AC_PROG_CXXCPP])
3283
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3289
# enable support for Fortran 77 libraries
3290
AC_DEFUN([AC_LIBTOOL_F77],
3291
[AC_REQUIRE([_LT_AC_LANG_F77])
3297
AC_DEFUN([_LT_AC_LANG_F77],
3298
[AC_REQUIRE([AC_PROG_F77])
3299
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3305
# enable support for GCJ libraries
3306
AC_DEFUN([AC_LIBTOOL_GCJ],
3307
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3313
AC_DEFUN([_LT_AC_LANG_GCJ],
3314
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3315
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3316
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3317
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3318
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3319
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3320
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3326
# enable support for Windows resource files
3327
AC_DEFUN([AC_LIBTOOL_RC],
3328
[AC_REQUIRE([LT_AC_PROG_RC])
3329
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3333
# AC_LIBTOOL_LANG_C_CONFIG
3334
# ------------------------
3335
# Ensure that the configuration vars for the C compiler are
3336
# suitably defined. Those variables are subsequently used by
3337
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3338
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3339
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3343
# Source file extension for C test sources.
3346
# Object file extension for compiled C test sources.
3348
_LT_AC_TAGVAR(objext, $1)=$objext
3350
# Code to be used in simple compile tests
3351
lt_simple_compile_test_code="int some_variable = 0;\n"
3353
# Code to be used in simple link tests
3354
lt_simple_link_test_code='int main(){return(0);}\n'
3359
# Check for any special shared library compilation flags.
3361
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3362
if test "$GCC" = no; then
3365
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3369
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3370
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3371
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3373
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3374
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3380
# Check to make sure the static flag actually works.
3382
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3383
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3384
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3386
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3389
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3390
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3391
AC_LIBTOOL_PROG_CC_C_O($1)
3392
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3393
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3394
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3395
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3396
AC_LIBTOOL_SYS_LIB_STRIP
3397
AC_LIBTOOL_DLOPEN_SELF($1)
3399
# Report which librarie types wil actually be built
2813
3400
AC_MSG_CHECKING([if libtool supports shared libraries])
2814
3401
AC_MSG_RESULT([$can_build_shared])
2832
3419
test "$enable_shared" = yes && enable_static=no
2836
AC_MSG_RESULT([$enable_shared])
2838
AC_MSG_CHECKING([whether to build static libraries])
2839
# Make sure either enable_shared or enable_static is yes.
2840
test "$enable_shared" = yes || enable_static=yes
2841
AC_MSG_RESULT([$enable_static])
2843
if test "$hardcode_action" = relink; then
2844
# Fast installation is not supported
2845
enable_fast_install=no
2846
elif test "$shlibpath_overrides_runpath" = yes ||
2847
test "$enable_shared" = no; then
2848
# Fast installation is not necessary
2849
enable_fast_install=needless
2852
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2853
if test "$GCC" = yes; then
2854
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2857
AC_LIBTOOL_DLOPEN_SELF
2859
if test "$enable_shared" = yes && test "$GCC" = yes; then
2860
case $archive_cmds in
2862
# FIXME: we may have to deal with multi-command sequences.
2865
# Test whether the compiler implicitly links with -lc since on some
2866
# systems, -lgcc has to come before -lc. If gcc already passes -lc
2867
# to ld, don't add -lc before -lgcc.
2868
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2869
AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
2871
echo 'static int dummy;' > conftest.$ac_ext
2873
if AC_TRY_EVAL(ac_compile); then
2876
libobjs=conftest.$ac_objext
2878
wl=$lt_cv_prog_cc_wl
2884
save_allow_undefined_flag=$allow_undefined_flag
2885
allow_undefined_flag=
2886
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
2888
lt_cv_archive_cmds_need_lc=no
2890
lt_cv_archive_cmds_need_lc=yes
2892
allow_undefined_flag=$save_allow_undefined_flag
2894
cat conftest.err 1>&5
2896
AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
2900
need_lc=${lt_cv_archive_cmds_need_lc-yes}
2902
# The second clause should only fire when bootstrapping the
3422
darwin* | rhapsody*)
3423
if test "$GCC" = yes; then
3424
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3426
rhapsody* | darwin1.[[012]])
3427
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3430
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3431
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3433
case ${MACOSX_DEPLOYMENT_TARGET} in
3435
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3438
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3444
output_verbose_link_cmd='echo'
3445
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3446
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3447
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3448
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3449
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3450
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3451
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3452
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3453
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3454
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3456
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3460
AC_MSG_RESULT([$enable_shared])
3462
AC_MSG_CHECKING([whether to build static libraries])
3463
# Make sure either enable_shared or enable_static is yes.
3464
test "$enable_shared" = yes || enable_static=yes
3465
AC_MSG_RESULT([$enable_static])
3467
AC_LIBTOOL_CONFIG($1)
3471
])# AC_LIBTOOL_LANG_C_CONFIG
3474
# AC_LIBTOOL_LANG_CXX_CONFIG
3475
# --------------------------
3476
# Ensure that the configuration vars for the C compiler are
3477
# suitably defined. Those variables are subsequently used by
3478
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3479
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3480
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3482
AC_REQUIRE([AC_PROG_CXX])
3483
AC_REQUIRE([AC_PROG_CXXCPP])
3485
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3486
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3487
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3488
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3489
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3490
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3491
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3492
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3493
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3494
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3495
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3496
_LT_AC_TAGVAR(module_cmds, $1)=
3497
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3498
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3499
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3500
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3501
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3502
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3504
# Dependencies to place before and after the object being linked:
3505
_LT_AC_TAGVAR(predep_objects, $1)=
3506
_LT_AC_TAGVAR(postdep_objects, $1)=
3507
_LT_AC_TAGVAR(predeps, $1)=
3508
_LT_AC_TAGVAR(postdeps, $1)=
3509
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3511
# Source file extension for C++ test sources.
3514
# Object file extension for compiled C++ test sources.
3516
_LT_AC_TAGVAR(objext, $1)=$objext
3518
# Code to be used in simple compile tests
3519
lt_simple_compile_test_code="int some_variable = 0;\n"
3521
# Code to be used in simple link tests
3522
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3524
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3527
# Allow CC to be a program name with arguments.
3532
lt_save_with_gnu_ld=$with_gnu_ld
3533
lt_save_path_LD=$lt_cv_path_LD
3534
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3535
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3537
unset lt_cv_prog_gnu_ld
3539
if test -n "${lt_cv_path_LDCXX+set}"; then
3540
lt_cv_path_LD=$lt_cv_path_LDCXX
3544
test -z "${LDCXX+set}" || LD=$LDCXX
3547
_LT_AC_TAGVAR(compiler, $1)=$CC
3548
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3550
# We don't want -fno-exception wen compiling C++ code, so set the
3551
# no_builtin_flag separately
3552
if test "$GXX" = yes; then
3553
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3555
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3558
if test "$GXX" = yes; then
3559
# Set up default GNU C++ configuration
3563
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3564
# archiving commands below assume that GNU ld is being used.
3565
if test "$with_gnu_ld" = yes; then
3566
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3567
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3569
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3570
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3572
# If archive_cmds runs LD, not CC, wlarc should be empty
3573
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3574
# investigate it a little bit more. (MM)
3577
# ancient GNU ld didn't support --whole-archive et. al.
3578
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3579
grep 'no-whole-archive' > /dev/null; then
3580
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3582
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3588
# A generic and very simple default shared library creation
3589
# command for GNU C++ for the case where it uses the native
3590
# linker, instead of GNU ld. If possible, this setting should
3591
# overridden to take advantage of the native linker features on
3592
# the platform it is being used on.
3593
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3596
# Commands to make compiler produce verbose output that lists
3597
# what "hidden" libraries, object files and flags are used when
3598
# linking a shared library.
3599
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3607
# PORTME: fill in a description of your system's C++ link characteristics
3608
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3609
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3612
# FIXME: insert proper C++ library support
3613
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3616
if test "$host_cpu" = ia64; then
3617
# On IA64, the linker does run time linking by default, so we don't
3618
# have to do anything special.
3619
aix_use_runtimelinking=no
3620
exp_sym_flag='-Bexport'
3623
aix_use_runtimelinking=no
3625
# Test if we are trying to use run time linking or normal
3626
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3627
# need to do runtime linking.
3628
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3629
for ld_flag in $LDFLAGS; do
3632
aix_use_runtimelinking=yes
3639
exp_sym_flag='-bexport'
3640
no_entry_flag='-bnoentry'
3643
# When large executables or shared objects are built, AIX ld can
3644
# have problems creating the table of contents. If linking a library
3645
# or program results in "error TOC overflow" add -mminimal-toc to
3646
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3647
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3649
_LT_AC_TAGVAR(archive_cmds, $1)=''
3650
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3651
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3652
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3654
if test "$GXX" = yes; then
3655
case $host_os in aix4.[012]|aix4.[012].*)
3656
# We only want to do this on AIX 4.2 and lower, the check
3657
# below for broken collect2 doesn't work under 4.3+
3658
collect2name=`${CC} -print-prog-name=collect2`
3659
if test -f "$collect2name" && \
3660
strings "$collect2name" | grep resolve_lib_name >/dev/null
3662
# We have reworked collect2
3663
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3665
# We have old collect2
3666
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3667
# It fails to find uninstalled libraries when the uninstalled
3668
# path is not listed in the libpath. Setting hardcode_minus_L
3669
# to unsupported forces relinking
3670
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3671
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3672
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3675
shared_flag='-shared'
3678
if test "$host_cpu" = ia64; then
3679
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3680
# chokes on -Wl,-G. The following line is correct:
3683
if test "$aix_use_runtimelinking" = yes; then
3684
shared_flag='${wl}-G'
3686
shared_flag='${wl}-bM:SRE'
3691
# It seems that -bexpall does not export symbols beginning with
3692
# underscore (_), so it is better to generate a list of symbols to export.
3693
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3694
if test "$aix_use_runtimelinking" = yes; then
3695
# Warning - without using the other runtime loading flags (-brtl),
3696
# -berok will link without error, but may produce a broken library.
3697
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3698
# Determine the default libpath from the value encoded in an empty executable.
3699
_LT_AC_SYS_LIBPATH_AIX
3700
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3702
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3704
if test "$host_cpu" = ia64; then
3705
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3706
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3707
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
3709
# Determine the default libpath from the value encoded in an empty executable.
3710
_LT_AC_SYS_LIBPATH_AIX
3711
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3712
# Warning - without using the other run time loading flags,
3713
# -berok will link without error, but may produce a broken library.
3714
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3715
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3716
# -bexpall does not export symbols beginning with underscore (_)
3717
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3718
# Exported symbols can be pulled into shared objects from archives
3719
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3720
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3721
# This is similar to how AIX traditionally builds it's shared libraries.
3722
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
3727
case $cc_basename in
3729
# FIXME: insert proper C++ library support
3730
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3735
cygwin* | mingw* | pw32*)
3736
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3737
# as there is no search path for DLLs.
3738
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3739
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3740
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3741
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3743
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3744
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3745
# If the export-symbols file already is a .def file (1st line
3746
# is EXPORTS), use it as is; otherwise, prepend...
3747
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3748
cp $export_symbols $output_objdir/$soname.def;
3750
echo EXPORTS > $output_objdir/$soname.def;
3751
cat $export_symbols >> $output_objdir/$soname.def;
3753
$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'
3755
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3759
darwin* | rhapsody*)
3760
if test "$GXX" = yes; then
3761
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3763
rhapsody* | darwin1.[[012]])
3764
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3767
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3768
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3770
case ${MACOSX_DEPLOYMENT_TARGET} in
3772
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3775
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3781
lt_int_apple_cc_single_mod=no
3782
output_verbose_link_cmd='echo'
3783
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3784
lt_int_apple_cc_single_mod=yes
3786
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3787
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3789
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3791
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3793
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3794
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3795
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
3797
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3799
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
3800
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3801
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3802
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3803
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3804
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3806
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3811
case $cc_basename in
3813
# FIXME: insert proper C++ library support
3814
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3817
# Green Hills C++ Compiler
3818
# FIXME: insert proper C++ library support
3819
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3822
# FIXME: insert proper C++ library support
3823
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3828
# C++ shared libraries reported to be fairly broken before switch to ELF
3829
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3832
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3834
freebsd* | kfreebsd*-gnu)
3835
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3837
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3842
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3843
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3844
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3845
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3846
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3847
# but as the default
3848
# location of the library.
3850
case $cc_basename in
3852
# FIXME: insert proper C++ library support
3853
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3856
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3857
# Commands to make compiler produce verbose output that lists
3858
# what "hidden" libraries, object files and flags are used when
3859
# linking a shared library.
3861
# There doesn't appear to be a way to prevent this compiler from
3862
# explicitly linking system object files so we need to strip them
3863
# from the output so that they don't get included in the library
3865
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3868
if test "$GXX" = yes; then
3869
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3871
# FIXME: insert proper C++ library support
3872
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3878
if test $with_gnu_ld = no; then
3881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3882
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3883
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3886
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3890
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3891
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3897
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3898
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3901
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3902
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3903
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3904
# but as the default
3905
# location of the library.
3908
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3909
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3910
# but as the default
3911
# location of the library.
3915
case $cc_basename in
3917
# FIXME: insert proper C++ library support
3918
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3923
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3926
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3929
# Commands to make compiler produce verbose output that lists
3930
# what "hidden" libraries, object files and flags are used when
3931
# linking a shared library.
3933
# There doesn't appear to be a way to prevent this compiler from
3934
# explicitly linking system object files so we need to strip them
3935
# from the output so that they don't get included in the library
3937
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'
3940
if test "$GXX" = yes; then
3941
if test $with_gnu_ld = no; then
3944
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3947
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3952
# FIXME: insert proper C++ library support
3953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3959
case $cc_basename in
3962
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3964
# Archives containing C++ object files must be created using
3965
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3966
# necessary to make sure instantiated templates are included
3968
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3971
if test "$GXX" = yes; then
3972
if test "$with_gnu_ld" = no; then
3973
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3975
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
3978
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3982
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3985
case $cc_basename in
3987
# Kuck and Associates, Inc. (KAI) C++ Compiler
3989
# KCC will only create a shared library if the output file
3990
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3991
# to its proper name (with version) after linking.
3992
_LT_AC_TAGVAR(archive_cmds, $1)='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'
3993
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
3994
# Commands to make compiler produce verbose output that lists
3995
# what "hidden" libraries, object files and flags are used when
3996
# linking a shared library.
3998
# There doesn't appear to be a way to prevent this compiler from
3999
# explicitly linking system object files so we need to strip them
4000
# from the output so that they don't get included in the library
4002
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'
4004
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4005
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4007
# Archives containing C++ object files must be created using
4008
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4009
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4014
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4015
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4016
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4018
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4019
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4023
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4024
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4026
runpath_var=LD_RUN_PATH
4027
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4028
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4030
# Commands to make compiler produce verbose output that lists
4031
# what "hidden" libraries, object files and flags are used when
4032
# linking a shared library.
4034
# There doesn't appear to be a way to prevent this compiler from
4035
# explicitly linking system object files so we need to strip them
4036
# from the output so that they don't get included in the library
4038
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'
4043
# FIXME: insert proper C++ library support
4044
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4047
# FIXME: insert proper C++ library support
4048
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4051
case $cc_basename in
4053
# FIXME: insert proper C++ library support
4054
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4057
# FIXME: insert proper C++ library support
4058
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4062
netbsd* | knetbsd*-gnu)
4063
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4064
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4066
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4067
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4068
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4070
# Workaround some broken pre-1.5 toolchains
4071
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4074
case $cc_basename in
4076
# Kuck and Associates, Inc. (KAI) C++ Compiler
4078
# KCC will only create a shared library if the output file
4079
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4080
# to its proper name (with version) after linking.
4081
_LT_AC_TAGVAR(archive_cmds, $1)='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'
4083
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4084
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4086
# Archives containing C++ object files must be created using
4087
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4088
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4092
# Rational C++ 2.4.1
4093
# FIXME: insert proper C++ library support
4094
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4097
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4098
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
4100
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4101
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4103
# Commands to make compiler produce verbose output that lists
4104
# what "hidden" libraries, object files and flags are used when
4105
# linking a shared library.
4107
# There doesn't appear to be a way to prevent this compiler from
4108
# explicitly linking system object files so we need to strip them
4109
# from the output so that they don't get included in the library
4111
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'
4114
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4115
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4116
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
4118
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4119
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4121
# Commands to make compiler produce verbose output that lists
4122
# what "hidden" libraries, object files and flags are used when
4123
# linking a shared library.
4124
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4127
# FIXME: insert proper C++ library support
4128
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4134
case $cc_basename in
4136
# Kuck and Associates, Inc. (KAI) C++ Compiler
4138
# KCC will only create a shared library if the output file
4139
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4140
# to its proper name (with version) after linking.
4141
_LT_AC_TAGVAR(archive_cmds, $1)='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'
4143
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4144
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4146
# Archives containing C++ object files must be created using
4147
# the KAI C++ compiler.
4148
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4151
# Rational C++ 2.4.1
4152
# FIXME: insert proper C++ library support
4153
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4156
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4157
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
4158
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4159
echo "-hidden">> $lib.exp~
4160
$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~
4163
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4164
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4166
# Commands to make compiler produce verbose output that lists
4167
# what "hidden" libraries, object files and flags are used when
4168
# linking a shared library.
4170
# There doesn't appear to be a way to prevent this compiler from
4171
# explicitly linking system object files so we need to strip them
4172
# from the output so that they don't get included in the library
4174
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'
4177
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4178
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4179
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
4181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4182
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4184
# Commands to make compiler produce verbose output that lists
4185
# what "hidden" libraries, object files and flags are used when
4186
# linking a shared library.
4187
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4190
# FIXME: insert proper C++ library support
4191
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4197
# FIXME: insert proper C++ library support
4198
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4201
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4202
case $cc_basename in
4204
# FIXME: insert proper C++ library support
4205
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4208
# FIXME: insert proper C++ library support
4209
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4214
case $cc_basename in
4217
# FIXME: insert proper C++ library support
4218
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4222
# FIXME: insert proper C++ library support
4223
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4226
# FIXME: insert proper C++ library support
4227
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4232
case $cc_basename in
4234
# Sun C++ 4.2, 5.x and Centerline C++
4235
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4236
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4237
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4238
$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'
4240
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4241
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4243
solaris2.[0-5] | solaris2.[0-5].*) ;;
4245
# The C++ compiler is used as linker so we must use $wl
4246
# flag to pass the commands to the underlying system
4248
# Supported since Solaris 2.6 (maybe 2.5.1?)
4249
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4252
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4254
# Commands to make compiler produce verbose output that lists
4255
# what "hidden" libraries, object files and flags are used when
4256
# linking a shared library.
4258
# There doesn't appear to be a way to prevent this compiler from
4259
# explicitly linking system object files so we need to strip them
4260
# from the output so that they don't get included in the library
4262
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'
4264
# Archives containing C++ object files must be created using
4265
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4266
# necessary to make sure instantiated templates are included
4268
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4271
# Green Hills C++ Compiler
4272
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4274
# The C++ compiler must be used to create the archive.
4275
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4278
# GNU C++ compiler with Solaris linker
4279
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4280
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4281
if $CC --version | grep -v '^2\.7' > /dev/null; then
4282
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4283
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4284
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4286
# Commands to make compiler produce verbose output that lists
4287
# what "hidden" libraries, object files and flags are used when
4288
# linking a shared library.
4289
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4291
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4293
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4294
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4295
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4297
# Commands to make compiler produce verbose output that lists
4298
# what "hidden" libraries, object files and flags are used when
4299
# linking a shared library.
4300
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4303
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4308
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4309
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4312
case $cc_basename in
4314
# NonStop-UX NCC 3.20
4315
# FIXME: insert proper C++ library support
4316
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4319
# FIXME: insert proper C++ library support
4320
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4325
# FIXME: insert proper C++ library support
4326
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4329
# FIXME: insert proper C++ library support
4330
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4333
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4334
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4336
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4337
_LT_AC_TAGVAR(LD, $1)="$LD"
4339
AC_LIBTOOL_POSTDEP_PREDEP($1)
4340
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4341
AC_LIBTOOL_PROG_CC_C_O($1)
4342
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4343
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4344
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4345
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4346
AC_LIBTOOL_SYS_LIB_STRIP
4347
AC_LIBTOOL_DLOPEN_SELF($1)
4349
AC_LIBTOOL_CONFIG($1)
4356
with_gnu_ldcxx=$with_gnu_ld
4357
with_gnu_ld=$lt_save_with_gnu_ld
4358
lt_cv_path_LDCXX=$lt_cv_path_LD
4359
lt_cv_path_LD=$lt_save_path_LD
4360
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4361
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4362
])# AC_LIBTOOL_LANG_CXX_CONFIG
4364
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4365
# ------------------------
4366
# Figure out "hidden" library dependencies from verbose
4367
# compiler output when linking a shared library.
4368
# Parse the compiler output and extract the necessary
4369
# objects, libraries and library flags.
4370
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4371
dnl we can't use the lt_simple_compile_test_code here,
4372
dnl because it contains code intended for an executable,
4373
dnl not a library. It's possible we should let each
4374
dnl tag define a new lt_????_link_test_code variable,
4375
dnl but it's only used here...
4376
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4378
void foo (void) { a = 0; }
4380
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4384
Foo (void) { a = 0; }
4389
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4397
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4400
public void bar (void) {
4406
dnl Parse the compiler output and extract the necessary
4407
dnl objects, libraries and library flags.
4408
if AC_TRY_EVAL(ac_compile); then
4409
# Parse the compiler output and extract the necessary
4410
# objects, libraries and library flags.
4412
# Sentinel used to keep track of whether or not we are before
4413
# the conftest object file.
4414
pre_test_object_deps_done=no
4416
# The `*' in the case matches for architectures that use `case' in
4417
# $output_verbose_cmd can trigger glob expansion during the loop
4418
# eval without this substitution.
4419
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4421
for p in `eval $output_verbose_link_cmd`; do
4425
# Some compilers place space between "-{L,R}" and the path.
4428
|| test $p = "-R"; then
4435
if test "$pre_test_object_deps_done" = no; then
4438
# Internal compiler library paths should come after those
4439
# provided the user. The postdeps already come after the
4440
# user supplied libs so there is no need to process them.
4441
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4442
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4444
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4447
# The "-l" case would never come before the object being
4448
# linked, so don't bother handling this case.
4451
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4452
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4454
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4460
# This assumes that the test object file only shows up
4461
# once in the compiler output.
4462
if test "$p" = "conftest.$objext"; then
4463
pre_test_object_deps_done=yes
4467
if test "$pre_test_object_deps_done" = no; then
4468
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4469
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4471
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4474
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4475
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4477
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4482
*) ;; # Ignore the rest.
4490
echo "libtool.m4: error: problem compiling $1 test program"
4493
$rm -f confest.$objext
4495
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4496
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4498
])# AC_LIBTOOL_POSTDEP_PREDEP
4500
# AC_LIBTOOL_LANG_F77_CONFIG
4501
# ------------------------
4502
# Ensure that the configuration vars for the C compiler are
4503
# suitably defined. Those variables are subsequently used by
4504
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4505
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4506
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4507
[AC_REQUIRE([AC_PROG_F77])
4508
AC_LANG_PUSH(Fortran 77)
4510
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4511
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4512
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4514
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4515
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4516
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4517
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4518
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4519
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4520
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4521
_LT_AC_TAGVAR(module_cmds, $1)=
4522
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4523
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4524
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4525
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4526
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4527
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4529
# Source file extension for f77 test sources.
4532
# Object file extension for compiled f77 test sources.
4534
_LT_AC_TAGVAR(objext, $1)=$objext
4536
# Code to be used in simple compile tests
4537
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4539
# Code to be used in simple link tests
4540
lt_simple_link_test_code=" program t\n end\n"
4542
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4545
# Allow CC to be a program name with arguments.
4549
_LT_AC_TAGVAR(compiler, $1)=$CC
4550
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4552
AC_MSG_CHECKING([if libtool supports shared libraries])
4553
AC_MSG_RESULT([$can_build_shared])
4555
AC_MSG_CHECKING([whether to build shared libraries])
4556
test "$can_build_shared" = "no" && enable_shared=no
4558
# On AIX, shared libraries and static libraries use the same namespace, and
4559
# are all built from PIC.
4562
test "$enable_shared" = yes && enable_static=no
4563
if test -n "$RANLIB"; then
4564
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4565
postinstall_cmds='$RANLIB $lib'
4569
test "$enable_shared" = yes && enable_static=no
4572
AC_MSG_RESULT([$enable_shared])
4574
AC_MSG_CHECKING([whether to build static libraries])
4575
# Make sure either enable_shared or enable_static is yes.
4576
test "$enable_shared" = yes || enable_static=yes
4577
AC_MSG_RESULT([$enable_static])
4579
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4581
_LT_AC_TAGVAR(GCC, $1)="$G77"
4582
_LT_AC_TAGVAR(LD, $1)="$LD"
4584
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4585
AC_LIBTOOL_PROG_CC_C_O($1)
4586
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4587
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4588
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4589
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4590
AC_LIBTOOL_SYS_LIB_STRIP
4593
AC_LIBTOOL_CONFIG($1)
4597
])# AC_LIBTOOL_LANG_F77_CONFIG
4600
# AC_LIBTOOL_LANG_GCJ_CONFIG
4601
# --------------------------
4602
# Ensure that the configuration vars for the C compiler are
4603
# suitably defined. Those variables are subsequently used by
4604
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4605
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4606
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4609
# Source file extension for Java test sources.
4612
# Object file extension for compiled Java test sources.
4614
_LT_AC_TAGVAR(objext, $1)=$objext
4616
# Code to be used in simple compile tests
4617
lt_simple_compile_test_code="class foo {}\n"
4619
# Code to be used in simple link tests
4620
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4622
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4625
# Allow CC to be a program name with arguments.
4629
_LT_AC_TAGVAR(compiler, $1)=$CC
4631
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4632
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4634
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4635
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4636
AC_LIBTOOL_PROG_CC_C_O($1)
4637
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4638
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4639
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4640
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4641
AC_LIBTOOL_SYS_LIB_STRIP
4642
AC_LIBTOOL_DLOPEN_SELF($1)
4644
AC_LIBTOOL_CONFIG($1)
4648
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4651
# AC_LIBTOOL_LANG_RC_CONFIG
4652
# --------------------------
4653
# Ensure that the configuration vars for the Windows resource compiler are
4654
# suitably defined. Those variables are subsequently used by
4655
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4656
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4657
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4660
# Source file extension for RC test sources.
4663
# Object file extension for compiled RC test sources.
4665
_LT_AC_TAGVAR(objext, $1)=$objext
4667
# Code to be used in simple compile tests
4668
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4670
# Code to be used in simple link tests
4671
lt_simple_link_test_code="$lt_simple_compile_test_code"
4673
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4676
# Allow CC to be a program name with arguments.
4680
_LT_AC_TAGVAR(compiler, $1)=$CC
4681
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4683
AC_LIBTOOL_CONFIG($1)
4687
])# AC_LIBTOOL_LANG_RC_CONFIG
4690
# AC_LIBTOOL_CONFIG([TAGNAME])
4691
# ----------------------------
4692
# If TAGNAME is not passed, then create an initial libtool script
4693
# with a default configuration from the untagged config vars. Otherwise
4694
# add code to config.status for appending the configuration named by
4695
# TAGNAME from the matching tagged config vars.
4696
AC_DEFUN([AC_LIBTOOL_CONFIG],
4697
[# The else clause should only fire when bootstrapping the
2903
4698
# libtool distribution, otherwise you forgot to ship ltmain.sh
2904
4699
# with your package, and you will get complaints that there are
2905
4700
# no rules to generate ltmain.sh.
2906
4701
if test -f "$ltmain"; then
2909
# If there is no Makefile yet, we rely on a make rule to execute
2910
# `config.status --recheck' to rerun these tests and create the
2911
# libtool script then.
2912
test -f Makefile && make "$ltmain"
2915
if test -f "$ltmain"; then
2916
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
2919
echo creating $ofile
4702
# See if we are running on zsh, and set the options which allow our commands through
4703
# without removal of \ escapes.
4704
if test -n "${ZSH_VERSION+set}" ; then
4705
setopt NO_GLOB_SUBST
2921
4707
# Now quote all the things that may contain metacharacters while being
2922
4708
# careful not to overquote the AC_SUBSTed values. We take copies of the
2923
4709
# variables and quote the copies for generation of the libtool script.
2924
for var in echo old_CC old_CFLAGS \
2925
AR AR_FLAGS AS CC LD LN_S NM SHELL \
2926
reload_flag reload_cmds wl \
2927
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2928
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
2929
library_names_spec soname_spec \
2930
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
2931
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
2932
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
2933
old_striplib striplib file_magic_cmd export_symbols_cmds \
2934
deplibs_check_method allow_undefined_flag no_undefined_flag \
2935
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
2936
global_symbol_to_c_name_address \
2937
hardcode_libdir_flag_spec hardcode_libdir_separator \
4710
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4712
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4713
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4714
deplibs_check_method reload_flag reload_cmds need_locks \
4715
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4716
lt_cv_sys_global_symbol_to_c_name_address \
2938
4717
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2939
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4718
old_postinstall_cmds old_postuninstall_cmds \
4719
_LT_AC_TAGVAR(compiler, $1) \
4720
_LT_AC_TAGVAR(CC, $1) \
4721
_LT_AC_TAGVAR(LD, $1) \
4722
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4723
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4724
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4725
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4726
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4727
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4728
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4729
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4730
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4731
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4732
_LT_AC_TAGVAR(predep_objects, $1) \
4733
_LT_AC_TAGVAR(postdep_objects, $1) \
4734
_LT_AC_TAGVAR(predeps, $1) \
4735
_LT_AC_TAGVAR(postdeps, $1) \
4736
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4737
_LT_AC_TAGVAR(archive_cmds, $1) \
4738
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4739
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4740
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4741
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4742
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4743
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4744
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4745
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4746
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4747
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4748
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4749
_LT_AC_TAGVAR(module_cmds, $1) \
4750
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4751
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4752
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4753
_LT_AC_TAGVAR(include_expsyms, $1); do
2942
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4756
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4757
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4758
_LT_AC_TAGVAR(archive_cmds, $1) | \
4759
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4760
_LT_AC_TAGVAR(module_cmds, $1) | \
4761
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4762
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4763
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4764
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4765
postinstall_cmds | postuninstall_cmds | \
2943
4766
old_postinstall_cmds | old_postuninstall_cmds | \
2944
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
2945
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
2946
postinstall_cmds | postuninstall_cmds | \
2947
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4767
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2948
4768
# Double-quote double-evaled strings.
2949
4769
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3262
cygwin* | mingw* | pw32* | os2*)
3263
cat <<'EOF' >> "${ofile}T"
3264
# This is a source program that is used to create dlls on Windows
3265
# Don't remove nor modify the starting and closing comments
5153
# We use sed instead of cat because bash on DJGPP gets confused if
5154
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5155
# text mode, it properly converts lines to CR/LF. This bash problem
5156
# is reportedly fixed, but why not run on old versions too?
5157
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5159
mv -f "$cfgfile" "$ofile" || \
5160
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5164
# If there is no Makefile yet, we rely on a make rule to execute
5165
# `config.status --recheck' to rerun these tests and create the
5166
# libtool script then.
5167
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5168
if test -f "$ltmain_in"; then
5169
test -f Makefile && make "$ltmain"
5172
])# AC_LIBTOOL_CONFIG
5175
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5176
# -------------------------------------------
5177
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5178
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5180
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5182
if test "$GCC" = yes; then
5183
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5185
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5186
lt_cv_prog_compiler_rtti_exceptions,
5187
[-fno-rtti -fno-exceptions], [],
5188
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5190
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5193
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5194
# ---------------------------------
5195
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5196
[AC_REQUIRE([AC_CANONICAL_HOST])
5197
AC_REQUIRE([AC_PROG_NM])
5198
AC_REQUIRE([AC_OBJEXT])
5199
# Check for command to grab the raw symbol name followed by C symbol from nm.
5200
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5201
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5203
# These are sane defaults that work on at least a few old systems.
5204
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5206
# Character class describing NM global symbol codes.
5207
symcode='[[BCDEGRST]]'
5209
# Regexp to match symbols that can be accessed directly from C.
5210
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5212
# Transform the above into a raw symbol and a C symbol.
5213
symxfrm='\1 \2\3 \3'
5215
# Transform an extracted symbol line into a proper C declaration
5216
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5218
# Transform an extracted symbol line into symbol name and symbol address
5219
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5221
# Define system-specific variables.
5226
cygwin* | mingw* | pw32*)
5227
symcode='[[ABCDGISTW]]'
5229
hpux*) # Its linker distinguishes data from code symbols
5230
if test "$host_cpu" = ia64; then
5231
symcode='[[ABCDEGRST]]'
5233
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5234
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5237
symcode='[[BCDEGRST]]'
5240
symcode='[[BCDEGQRST]]'
5246
symcode='[[DFNSTU]]'
5250
# Handle CRLF in mingw tool chain
5254
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5258
# If we're using GNU nm, then use its standard symbol codes.
5259
case `$NM -V 2>&1` in
5260
*GNU* | *'with BFD'*)
5261
symcode='[[ABCDGIRSTW]]' ;;
5264
# Try without a prefix undercore, then with it.
5265
for ac_symprfx in "" "_"; do
5267
# Write the raw and C identifiers.
5268
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5270
# Check to see that the pipe works correctly.
5274
cat > conftest.$ac_ext <<EOF
5279
void nm_test_func(){}
5283
int main(){nm_test_var='a';nm_test_func();return(0);}
5286
if AC_TRY_EVAL(ac_compile); then
5287
# Now try to grab the symbols.
5289
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5290
# Try sorting and uniquifying the output.
5291
if sort "$nlist" | uniq > "$nlist"T; then
5292
mv -f "$nlist"T "$nlist"
5297
# Make sure that we snagged all the symbols we need.
5298
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5299
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5300
cat <<EOF > conftest.$ac_ext
5306
# Now generate the symbol file.
5307
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5309
cat <<EOF >> conftest.$ac_ext
5310
#if defined (__STDC__) && __STDC__
5311
# define lt_ptr_t void *
5313
# define lt_ptr_t char *
5317
/* The mapping between symbol names and symbols. */
5322
lt_preloaded_symbols[[]] =
5325
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5326
cat <<\EOF >> conftest.$ac_ext
5334
# Now try linking the two files.
5335
mv conftest.$ac_objext conftstm.$ac_objext
5336
lt_save_LIBS="$LIBS"
5337
lt_save_CFLAGS="$CFLAGS"
5338
LIBS="conftstm.$ac_objext"
5339
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5340
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5343
LIBS="$lt_save_LIBS"
5344
CFLAGS="$lt_save_CFLAGS"
5346
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5349
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5352
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5355
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5356
cat conftest.$ac_ext >&5
5358
rm -f conftest* conftst*
5360
# Do not use the global_symbol_pipe unless it works.
5361
if test "$pipe_works" = yes; then
5364
lt_cv_sys_global_symbol_pipe=
5368
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5369
lt_cv_sys_global_symbol_to_cdecl=
5371
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5372
AC_MSG_RESULT(failed)
5376
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5379
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5380
# ---------------------------------------
5381
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5382
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5383
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5384
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5386
AC_MSG_CHECKING([for $compiler option to produce PIC])
5388
# C++ specific cases for pic, static, wl, etc.
5389
if test "$GXX" = yes; then
5390
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5391
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5395
# All AIX code is PIC.
5396
if test "$host_cpu" = ia64; then
5397
# AIX 5 now supports IA64 processor
5398
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5402
# FIXME: we need at least 68020 code to build shared libraries, but
5403
# adding the `-m68020' flag to GCC prevents building anything better,
5405
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5407
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5408
# PIC is the default for these OSes.
5410
mingw* | os2* | pw32*)
5411
# This hack is so that the source file can tell whether it is being
5412
# built for inclusion in a dll (and should export symbols for example).
5413
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5415
darwin* | rhapsody*)
5416
# PIC is the default on this platform
5417
# Common symbols not allowed in MH_DYLIB files
5418
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5421
# DJGPP does not support shared libraries at all
5422
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5425
if test -d /usr/nec; then
5426
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5430
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5436
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5441
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5447
# All AIX code is PIC.
5448
if test "$host_cpu" = ia64; then
5449
# AIX 5 now supports IA64 processor
5450
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5452
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5456
case $cc_basename in
5458
# Green Hills C++ Compiler
5459
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
5464
case $cc_basename in
5466
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5469
# Green Hills C++ Compiler
5470
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5476
freebsd* | kfreebsd*-gnu)
5477
# FreeBSD uses GNU C++
5479
hpux9* | hpux10* | hpux11*)
5480
case $cc_basename in
5482
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5483
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5484
if test "$host_cpu" != ia64; then
5485
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5489
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5490
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5496
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5504
irix5* | irix6* | nonstopux*)
5505
case $cc_basename in
5507
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5508
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5509
# CC pic flag -KPIC is the default.
5516
case $cc_basename in
5519
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5520
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5524
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5525
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5526
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5530
# Make sure the PIC flag is empty. It appears that all Alpha
5531
# Linux and Compaq Tru64 Unix objects are PIC.
5532
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5533
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5544
case $cc_basename in
5546
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5552
netbsd* | knetbsd*-gnu)
5554
osf3* | osf4* | osf5*)
5555
case $cc_basename in
5557
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5560
# Rational C++ 2.4.1
5561
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5564
# Digital/Compaq C++
5565
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5566
# Make sure the PIC flag is empty. It appears that all Alpha
5567
# Linux and Compaq Tru64 Unix objects are PIC.
5568
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5569
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5578
case $cc_basename in
5580
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5587
case $cc_basename in
5589
# Sun C++ 4.2, 5.x and Centerline C++
5590
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5591
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5592
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5595
# Green Hills C++ Compiler
5596
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5603
case $cc_basename in
5606
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5607
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5611
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5618
case $cc_basename in
5620
# NonStop-UX NCC 3.20
5621
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5638
if test "$GCC" = yes; then
5639
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5640
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5644
# All AIX code is PIC.
5645
if test "$host_cpu" = ia64; then
5646
# AIX 5 now supports IA64 processor
5647
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5652
# FIXME: we need at least 68020 code to build shared libraries, but
5653
# adding the `-m68020' flag to GCC prevents building anything better,
5655
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5658
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5659
# PIC is the default for these OSes.
5662
mingw* | pw32* | os2*)
5663
# This hack is so that the source file can tell whether it is being
5664
# built for inclusion in a dll (and should export symbols for example).
5665
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5668
darwin* | rhapsody*)
5669
# PIC is the default on this platform
5670
# Common symbols not allowed in MH_DYLIB files
5671
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5675
# Just because we use GCC doesn't mean we suddenly get shared libraries
5676
# on systems that don't support them.
5677
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5682
if test -d /usr/nec; then
5683
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5688
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5695
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5701
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5705
# PORTME Check for flag to pass linker flags through the system compiler.
5708
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5709
if test "$host_cpu" = ia64; then
5710
# AIX 5 now supports IA64 processor
5711
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5713
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5717
mingw* | pw32* | os2*)
5718
# This hack is so that the source file can tell whether it is being
5719
# built for inclusion in a dll (and should export symbols for example).
5720
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5723
hpux9* | hpux10* | hpux11*)
5724
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5725
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5732
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5735
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5736
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5739
irix5* | irix6* | nonstopux*)
5740
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5741
# PIC (with -KPIC) is the default.
5742
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5746
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5747
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5753
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5754
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5755
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5758
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5759
# All Alpha code is PIC.
5760
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5765
osf3* | osf4* | osf5*)
5766
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5767
# All OSF/1 code is PIC.
5768
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5772
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5773
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5777
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5778
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5779
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5783
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5784
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5785
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5788
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5789
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5790
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5791
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5795
if test -d /usr/nec ;then
5796
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5797
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5802
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5803
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5807
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5812
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5815
# Check to make sure the PIC flag actually works.
5817
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5818
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5819
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5820
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5821
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5823
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5825
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5826
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5829
# For platforms which do not support PIC, -DPIC is meaningless:
5831
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5834
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5840
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5841
# ------------------------------------
5842
# See if the linker supports building shared libraries.
5843
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5844
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5846
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5849
# If we're using GNU nm, then we don't want the "-C" option.
5850
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5851
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5852
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5854
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5858
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5861
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5864
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5869
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5870
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5871
_LT_AC_TAGVAR(archive_cmds, $1)=
5872
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5873
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5874
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5875
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5876
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5877
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5879
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5880
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5881
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5882
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5883
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5884
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5885
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5886
_LT_AC_TAGVAR(module_cmds, $1)=
5887
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5888
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5889
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5890
# include_expsyms should be a list of space-separated symbols to be *always*
5891
# included in the symbol list
5892
_LT_AC_TAGVAR(include_expsyms, $1)=
5893
# exclude_expsyms can be an extended regexp of symbols to exclude
5894
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5895
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5896
# as well as any symbol that contains `d'.
5897
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5898
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5899
# platforms (ab)use it in PIC code, but their linkers get confused if
5900
# the symbol is explicitly referenced. Since portable code cannot
5901
# rely on this symbol name, it's probably fine to never include it in
5902
# preloaded symbol tables.
5903
extract_expsyms_cmds=
5906
cygwin* | mingw* | pw32*)
5907
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5908
# When not using gcc, we currently assume that we are using
5909
# Microsoft Visual C++.
5910
if test "$GCC" != yes; then
5919
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5920
if test "$with_gnu_ld" = yes; then
5921
# If archive_cmds runs LD, not CC, wlarc should be empty
5924
# See if GNU ld supports shared libraries.
5926
aix3* | aix4* | aix5*)
5927
# On AIX/PPC, the GNU linker is very broken
5928
if test "$host_cpu" != ia64; then
5929
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5932
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5933
*** to be unable to reliably create shared libraries on AIX.
5934
*** Therefore, libtool is disabling shared libraries support. If you
5935
*** really care for shared libraries, you may want to modify your PATH
5936
*** so that a non-GNU linker is found, and then restart.
5943
_LT_AC_TAGVAR(archive_cmds, $1)='$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)'
5944
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5945
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5947
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5948
# that the semantics of dynamic libraries on AmigaOS, at least up
5949
# to version 4, is to share data among multiple programs linked
5950
# with the same dynamic library. Since this doesn't match the
5951
# behavior of shared libraries on other platforms, we can't use
5953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5957
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5958
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5959
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5960
# support --undefined. This deserves some investigation. FIXME
5961
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5963
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5967
cygwin* | mingw* | pw32*)
5968
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5969
# as there is no search path for DLLs.
5970
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5971
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5972
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5973
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5974
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5976
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5977
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5978
# If the export-symbols file already is a .def file (1st line
5979
# is EXPORTS), use it as is; otherwise, prepend...
5980
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5981
cp $export_symbols $output_objdir/$soname.def;
5983
echo EXPORTS > $output_objdir/$soname.def;
5984
cat $export_symbols >> $output_objdir/$soname.def;
5986
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5992
netbsd* | knetbsd*-gnu)
5993
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5994
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5997
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5998
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6003
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6004
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6007
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6008
*** create shared libraries on Solaris systems. Therefore, libtool
6009
*** is disabling shared libraries support. We urge you to upgrade GNU
6010
*** binutils to release 2.9.1 or newer. Another option is to modify
6011
*** your PATH or compiler configuration so that the native linker is
6012
*** used, and then restart.
6015
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6016
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6017
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6019
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6024
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6026
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6027
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6031
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6032
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6033
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6034
supports_anon_versioning=no
6035
case `$LD -v 2>/dev/null` in
6036
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6037
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6038
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6039
*\ 2.11.*) ;; # other 2.11 versions
6040
*) supports_anon_versioning=yes ;;
6042
if test $supports_anon_versioning = yes; then
6043
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6044
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6045
$echo "local: *; };" >> $output_objdir/$libname.ver~
6046
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6048
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6051
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6056
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6057
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6058
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6060
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6065
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6066
runpath_var=LD_RUN_PATH
6067
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6068
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6069
# ancient GNU ld didn't support --whole-archive et. al.
6070
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6071
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6073
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6077
# PORTME fill in a description of your system's linker (not GNU ld)
6080
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6081
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6082
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6083
# Note: this linker hardcodes the directories in LIBPATH if there
6084
# are no directories specified by -L.
6085
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6086
if test "$GCC" = yes && test -z "$link_static_flag"; then
6087
# Neither direct hardcoding nor static linking is supported with a
6089
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6094
if test "$host_cpu" = ia64; then
6095
# On IA64, the linker does run time linking by default, so we don't
6096
# have to do anything special.
6097
aix_use_runtimelinking=no
6098
exp_sym_flag='-Bexport'
6101
# If we're using GNU nm, then we don't want the "-C" option.
6102
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6103
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6104
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6106
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6108
aix_use_runtimelinking=no
6110
# Test if we are trying to use run time linking or normal
6111
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6112
# need to do runtime linking.
6113
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6114
for ld_flag in $LDFLAGS; do
6115
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6116
aix_use_runtimelinking=yes
6122
exp_sym_flag='-bexport'
6123
no_entry_flag='-bnoentry'
6126
# When large executables or shared objects are built, AIX ld can
6127
# have problems creating the table of contents. If linking a library
6128
# or program results in "error TOC overflow" add -mminimal-toc to
6129
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6130
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6132
_LT_AC_TAGVAR(archive_cmds, $1)=''
6133
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6134
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6135
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6137
if test "$GCC" = yes; then
6138
case $host_os in aix4.[012]|aix4.[012].*)
6139
# We only want to do this on AIX 4.2 and lower, the check
6140
# below for broken collect2 doesn't work under 4.3+
6141
collect2name=`${CC} -print-prog-name=collect2`
6142
if test -f "$collect2name" && \
6143
strings "$collect2name" | grep resolve_lib_name >/dev/null
6145
# We have reworked collect2
6146
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6148
# We have old collect2
6149
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6150
# It fails to find uninstalled libraries when the uninstalled
6151
# path is not listed in the libpath. Setting hardcode_minus_L
6152
# to unsupported forces relinking
6153
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6154
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6155
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6158
shared_flag='-shared'
6161
if test "$host_cpu" = ia64; then
6162
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6163
# chokes on -Wl,-G. The following line is correct:
6166
if test "$aix_use_runtimelinking" = yes; then
6167
shared_flag='${wl}-G'
6169
shared_flag='${wl}-bM:SRE'
6174
# It seems that -bexpall does not export symbols beginning with
6175
# underscore (_), so it is better to generate a list of symbols to export.
6176
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6177
if test "$aix_use_runtimelinking" = yes; then
6178
# Warning - without using the other runtime loading flags (-brtl),
6179
# -berok will link without error, but may produce a broken library.
6180
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6181
# Determine the default libpath from the value encoded in an empty executable.
6182
_LT_AC_SYS_LIBPATH_AIX
6183
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6184
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
6186
if test "$host_cpu" = ia64; then
6187
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6188
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6189
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
6191
# Determine the default libpath from the value encoded in an empty executable.
6192
_LT_AC_SYS_LIBPATH_AIX
6193
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6194
# Warning - without using the other run time loading flags,
6195
# -berok will link without error, but may produce a broken library.
6196
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6197
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6198
# -bexpall does not export symbols beginning with underscore (_)
6199
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6200
# Exported symbols can be pulled into shared objects from archives
6201
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6202
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6203
# This is similar to how AIX traditionally builds it's shared libraries.
6204
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
6210
_LT_AC_TAGVAR(archive_cmds, $1)='$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)'
6211
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6212
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6213
# see comment about different semantics on the GNU ld section
6214
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6218
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6221
cygwin* | mingw* | pw32*)
6222
# When not using gcc, we currently assume that we are using
6223
# Microsoft Visual C++.
6224
# hardcode_libdir_flag_spec is actually meaningless, as there is
6225
# no search path for DLLs.
6226
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6227
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6228
# Tell ltmain to make .lib files, not .a files.
6230
# Tell ltmain to make .dll files, not .so files.
6232
# FIXME: Setting linknames here is a bad hack.
6233
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6234
# The linker will automatically build a .lib file if we build a DLL.
6235
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6236
# FIXME: Should let the user specify the lib program.
6237
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6238
fix_srcfile_path='`cygpath -w "$srcfile"`'
6239
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6242
darwin* | rhapsody*)
6243
if test "$GXX" = yes ; then
6244
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6246
rhapsody* | darwin1.[[012]])
6247
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6250
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6251
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6253
case ${MACOSX_DEPLOYMENT_TARGET} in
6255
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6258
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6264
lt_int_apple_cc_single_mod=no
6265
output_verbose_link_cmd='echo'
6266
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6267
lt_int_apple_cc_single_mod=yes
6269
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6270
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6272
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6274
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6275
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6276
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6277
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
6279
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6281
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
6282
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6283
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6284
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6285
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6286
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6288
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6293
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6294
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6295
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6299
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6302
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6303
# support. Future versions do this automatically, but an explicit c++rt0.o
6304
# does not break anything, and helps significantly (at the cost of a little
6307
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6308
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6309
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6310
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6313
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6315
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6316
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6317
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6318
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6321
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6322
freebsd* | kfreebsd*-gnu)
6323
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6324
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6325
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6326
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6330
if test "$GCC" = yes; then
6331
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6333
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6335
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6336
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6337
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6339
# hardcode_minus_L: Not really in the search PATH,
6340
# but as the default location of the library.
6341
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6342
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6346
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6352
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6358
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6361
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6365
if test "$with_gnu_ld" = no; then
6368
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6369
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6370
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6371
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6372
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6375
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6376
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6377
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6379
# hardcode_minus_L: Not really in the search PATH,
6380
# but as the default location of the library.
6381
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6384
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6385
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6386
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6387
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6389
# hardcode_minus_L: Not really in the search PATH,
6390
# but as the default location of the library.
6391
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6397
irix5* | irix6* | nonstopux*)
6398
if test "$GCC" = yes; then
6399
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6401
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6402
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6405
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6406
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6409
netbsd* | knetbsd*-gnu)
6410
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6411
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6413
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6415
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6416
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6417
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6421
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6422
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6423
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6424
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6425
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6429
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6430
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6431
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6432
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6433
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6434
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6437
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6438
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6442
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6443
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6450
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6451
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6452
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6453
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6454
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6458
if test "$GCC" = yes; then
6459
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6460
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6462
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6463
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6465
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6466
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6469
osf4* | osf5*) # as osf3* with the addition of -msym flag
6470
if test "$GCC" = yes; then
6471
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6472
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6473
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6475
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6476
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
6477
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6478
$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'
6480
# Both c and cxx compiler support -rpath directly
6481
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6483
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6487
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6488
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6489
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6490
runpath_var=LD_RUN_PATH
6491
hardcode_runpath_var=yes
6495
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6496
if test "$GCC" = yes; then
6497
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6498
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6499
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6501
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6502
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6503
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6506
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6508
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6509
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6510
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6512
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6516
if test "x$host_vendor" = xsequent; then
6517
# Use $CC to link under sequent, because it throws in some extra .o
6518
# files that make .init and .fini sections work.
6519
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6521
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6523
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6524
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6525
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6526
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6530
case $host_vendor in
6532
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6536
## LD is ld it makes a PLAMLIB
6537
## CC just makes a GrossModule.
6538
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6539
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6540
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6543
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6547
runpath_var='LD_RUN_PATH'
6548
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6552
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6553
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6554
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6558
if test -d /usr/nec; then
6559
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6560
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6561
runpath_var=LD_RUN_PATH
6562
hardcode_runpath_var=yes
6563
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6568
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6569
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6570
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6571
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6572
hardcode_runpath_var=yes
6573
runpath_var=LD_RUN_PATH
6576
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6577
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6578
if test "$GCC" = yes; then
6579
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6581
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6583
runpath_var='LD_RUN_PATH'
6584
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6588
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6589
# $CC -shared without GNU ld will not create a library from C++
6590
# object files and a static libstdc++, better avoid it by now
6591
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6592
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6593
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6594
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6595
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6596
runpath_var='LD_RUN_PATH'
6600
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6601
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6602
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6606
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6611
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6612
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6614
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6615
if test "$GCC" = yes; then
6616
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6620
# Do we need to explicitly link libc?
6622
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6624
# Assume -lc should be added
6625
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6627
if test "$enable_shared" = yes && test "$GCC" = yes; then
6628
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6630
# FIXME: we may have to deal with multi-command sequences.
6633
# Test whether the compiler implicitly links with -lc since on some
6634
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6635
# to ld, don't add -lc before -lgcc.
6636
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6638
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6640
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6643
libobjs=conftest.$ac_objext
6645
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6651
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6652
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6653
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6655
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6657
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6659
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6661
cat conftest.err 1>&5
6664
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6670
])# AC_LIBTOOL_PROG_LD_SHLIBS
6673
# _LT_AC_FILE_LTDLL_C
6674
# -------------------
6675
# Be careful that the start marker always follows a newline.
6676
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
3266
6677
# /* ltdll.c starts here */
3267
6678
# #define WIN32_LEAN_AND_MEAN
3268
6679
# #include <windows.h>
3298
6709
# /* ltdll.c ends here */
3299
# This is a source program that is used to create import libraries
3300
# on Windows for dlls which lack them. Don't remove nor modify the
3301
# starting and closing comments
3302
# /* impgen.c starts here */
3303
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
3305
# This file is part of GNU libtool.
3307
# This program is free software; you can redistribute it and/or modify
3308
# it under the terms of the GNU General Public License as published by
3309
# the Free Software Foundation; either version 2 of the License, or
3310
# (at your option) any later version.
3312
# This program is distributed in the hope that it will be useful,
3313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
3314
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3315
# GNU General Public License for more details.
3317
# You should have received a copy of the GNU General Public License
3318
# along with this program; if not, write to the Free Software
3319
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3322
# #include <stdio.h> /* for printf() */
3323
# #include <unistd.h> /* for open(), lseek(), read() */
3324
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
3325
# #include <string.h> /* for strdup() */
3327
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3329
# #define O_BINARY 0
3332
# static unsigned int
3333
# pe_get16 (fd, offset)
3337
# unsigned char b[2];
3338
# lseek (fd, offset, SEEK_SET);
3340
# return b[0] + (b[1]<<8);
3343
# static unsigned int
3344
# pe_get32 (fd, offset)
3348
# unsigned char b[4];
3349
# lseek (fd, offset, SEEK_SET);
3351
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3354
# static unsigned int
3358
# unsigned char *b = ptr;
3359
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3368
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3369
# unsigned long export_rva, export_size, nsections, secptr, expptr;
3370
# unsigned long name_rvas, nexp;
3371
# unsigned char *expdata, *erva;
3372
# char *filename, *dll_name;
3374
# filename = argv[1];
3376
# dll = open(filename, O_RDONLY|O_BINARY);
3380
# dll_name = filename;
3382
# for (i=0; filename[i]; i++)
3383
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
3384
# dll_name = filename + i +1;
3386
# pe_header_offset = pe_get32 (dll, 0x3c);
3387
# opthdr_ofs = pe_header_offset + 4 + 20;
3388
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
3390
# if (num_entries < 1) /* no exports */
3393
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
3394
# export_size = pe_get32 (dll, opthdr_ofs + 100);
3395
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3396
# secptr = (pe_header_offset + 4 + 20 +
3397
# pe_get16 (dll, pe_header_offset + 4 + 16));
3400
# for (i = 0; i < nsections; i++)
3403
# unsigned long secptr1 = secptr + 40 * i;
3404
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3405
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3406
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3407
# lseek(dll, secptr1, SEEK_SET);
3408
# read(dll, sname, 8);
3409
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
3411
# expptr = fptr + (export_rva - vaddr);
3412
# if (export_rva + export_size > vaddr + vsize)
3413
# export_size = vsize - (export_rva - vaddr);
3418
# expdata = (unsigned char*)malloc(export_size);
3419
# lseek (dll, expptr, SEEK_SET);
3420
# read (dll, expdata, export_size);
3421
# erva = expdata - export_rva;
3423
# nexp = pe_as32 (expdata+24);
3424
# name_rvas = pe_as32 (expdata+32);
3426
# printf ("EXPORTS\n");
3427
# for (i = 0; i<nexp; i++)
3429
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3430
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3435
# /* impgen.c ends here */
3441
# We use sed instead of cat because bash on DJGPP gets confused if
3442
# if finds mixed CR/LF and LF-only lines. Since sed operates in
3443
# text mode, it properly converts lines to CR/LF. This bash problem
3444
# is reportedly fixed, but why not run on old versions too?
3445
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3447
mv -f "${ofile}T" "$ofile" || \
3448
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3452
])# _LT_AC_LTCONFIG_HACK
3454
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3455
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3457
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3458
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3460
# AC_ENABLE_SHARED - implement the --enable-shared flag
3461
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
3462
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3464
AC_DEFUN([AC_ENABLE_SHARED],
3465
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3466
AC_ARG_ENABLE(shared,
3467
changequote(<<, >>)dnl
3468
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3469
changequote([, ])dnl
3470
[p=${PACKAGE-default}
3472
yes) enable_shared=yes ;;
3473
no) enable_shared=no ;;
3476
# Look at the argument we got. We use all the common list separators.
3477
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3478
for pkg in $enableval; do
3479
if test "X$pkg" = "X$p"; then
3486
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3489
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3490
AC_DEFUN([AC_DISABLE_SHARED],
3491
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3492
AC_ENABLE_SHARED(no)])
3494
# AC_ENABLE_STATIC - implement the --enable-static flag
3495
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
3496
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3498
AC_DEFUN([AC_ENABLE_STATIC],
3499
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3500
AC_ARG_ENABLE(static,
3501
changequote(<<, >>)dnl
3502
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3503
changequote([, ])dnl
3504
[p=${PACKAGE-default}
3506
yes) enable_static=yes ;;
3507
no) enable_static=no ;;
3510
# Look at the argument we got. We use all the common list separators.
3511
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3512
for pkg in $enableval; do
3513
if test "X$pkg" = "X$p"; then
3520
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3523
# AC_DISABLE_STATIC - set the default static flag to --disable-static
3524
AC_DEFUN([AC_DISABLE_STATIC],
3525
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3526
AC_ENABLE_STATIC(no)])
3529
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3530
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3531
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3533
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3534
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3535
AC_ARG_ENABLE(fast-install,
3536
changequote(<<, >>)dnl
3537
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3538
changequote([, ])dnl
3539
[p=${PACKAGE-default}
3541
yes) enable_fast_install=yes ;;
3542
no) enable_fast_install=no ;;
3544
enable_fast_install=no
3545
# Look at the argument we got. We use all the common list separators.
3546
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3547
for pkg in $enableval; do
3548
if test "X$pkg" = "X$p"; then
3549
enable_fast_install=yes
3555
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
3558
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3559
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3560
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3561
AC_ENABLE_FAST_INSTALL(no)])
3563
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
3564
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
3565
# Where MODE is either `yes' or `no'. If omitted, it defaults to
3567
AC_DEFUN([AC_LIBTOOL_PICMODE],
3568
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3569
pic_mode=ifelse($#,1,$1,default)])
3572
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3573
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3574
[AC_MSG_CHECKING([for $1])
3575
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3578
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3581
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3584
ac_save_MAGIC_CMD="$MAGIC_CMD"
3585
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3586
dnl $ac_dummy forces splitting on constant user-supplied paths.
3587
dnl POSIX.2 word splitting is done only on the output of word expansions,
3588
dnl not every word. This closes a longstanding sh security hole.
3589
ac_dummy="ifelse([$2], , $PATH, [$2])"
3590
for ac_dir in $ac_dummy; do
3591
test -z "$ac_dir" && ac_dir=.
3592
if test -f $ac_dir/$1; then
3593
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3594
if test -n "$file_magic_test_file"; then
3595
case $deplibs_check_method in
3597
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3598
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3599
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3600
egrep "$file_magic_regex" > /dev/null; then
3605
*** Warning: the command libtool uses to detect shared libraries,
3606
*** $file_magic_cmd, produces output that libtool cannot recognize.
3607
*** The result is that libtool may fail to recognize shared libraries
3608
*** as such. This will affect the creation of libtool libraries that
3609
*** depend on shared libraries, but programs linked with such libtool
3610
*** libraries will work regardless of this problem. Nevertheless, you
3611
*** may want to report the problem to your system manager and/or to
3612
*** bug-libtool@gnu.org
3622
MAGIC_CMD="$ac_save_MAGIC_CMD"
3625
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3626
if test -n "$MAGIC_CMD"; then
3627
AC_MSG_RESULT($MAGIC_CMD)
3634
# AC_PATH_MAGIC - find a file program which can recognise a shared library
3635
AC_DEFUN([AC_PATH_MAGIC],
3636
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
3637
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
3638
if test -z "$lt_cv_path_MAGIC_CMD"; then
3639
if test -n "$ac_tool_prefix"; then
3640
AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
3648
# AC_PROG_LD - find the path to the GNU or non-GNU linker
3649
AC_DEFUN([AC_PROG_LD],
3650
[AC_ARG_WITH(gnu-ld,
3651
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
3652
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3653
AC_REQUIRE([AC_PROG_CC])dnl
3654
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3655
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3656
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3658
if test "$GCC" = yes; then
3659
# Check if gcc -print-prog-name=ld gives a path.
3660
AC_MSG_CHECKING([for ld used by GCC])
3663
# gcc leaves a trailing carriage return which upsets mingw
3664
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3666
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3669
# Accept absolute paths.
3670
[[\\/]]* | [[A-Za-z]]:[[\\/]]*)
3671
re_direlt='/[[^/]][[^/]]*/\.\./'
3672
# Canonicalize the path of ld
3673
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3674
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3675
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3677
test -z "$LD" && LD="$ac_prog"
3680
# If it fails, then pretend we aren't using GCC.
3684
# If it is relative, then search for the first ld in PATH.
3688
elif test "$with_gnu_ld" = yes; then
3689
AC_MSG_CHECKING([for GNU ld])
3691
AC_MSG_CHECKING([for non-GNU ld])
3693
AC_CACHE_VAL(lt_cv_path_LD,
3694
[if test -z "$LD"; then
3695
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3696
for ac_dir in $PATH; do
3697
test -z "$ac_dir" && ac_dir=.
3698
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3699
lt_cv_path_LD="$ac_dir/$ac_prog"
3700
# Check to see if the program is GNU ld. I'd rather use --version,
3701
# but apparently some GNU ld's only accept -v.
3702
# Break only if it was the GNU/non-GNU ld that we prefer.
3703
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3704
test "$with_gnu_ld" != no && break
3706
test "$with_gnu_ld" != yes && break
3712
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3715
if test -n "$LD"; then
3720
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3725
AC_DEFUN([AC_PROG_LD_GNU],
3726
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3727
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3728
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3729
lt_cv_prog_gnu_ld=yes
3731
lt_cv_prog_gnu_ld=no
3733
with_gnu_ld=$lt_cv_prog_gnu_ld
3736
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3737
# -- PORTME Some linkers may need a different reload flag.
3738
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3739
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
3740
[lt_cv_ld_reload_flag='-r'])
3741
reload_flag=$lt_cv_ld_reload_flag
3742
test -n "$reload_flag" && reload_flag=" $reload_flag"
3745
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3746
# -- PORTME fill in with the dynamic library characteristics
3747
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3748
[AC_CACHE_CHECK([how to recognise dependant libraries],
3749
lt_cv_deplibs_check_method,
3750
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3751
lt_cv_file_magic_test_file=
3752
lt_cv_deplibs_check_method='unknown'
3753
# Need to set the preceding variable on all platforms that support
3754
# interlibrary dependencies.
3755
# 'none' -- dependencies not supported.
3756
# `unknown' -- same as none, but documents that we really don't know.
3757
# 'pass_all' -- all dependencies passed with no checks.
3758
# 'test_compile' -- check by making test program.
3759
# 'file_magic [[regex]]' -- check by looking for files in library path
3760
# which responds to the $file_magic_cmd with a given egrep regex.
3761
# If you have `file' or equivalent on your system and you're not sure
3762
# whether `pass_all' will *always* work, you probably want this one.
3766
lt_cv_deplibs_check_method=pass_all
3770
lt_cv_deplibs_check_method=pass_all
3774
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3775
lt_cv_file_magic_cmd='/usr/bin/file -L'
3776
lt_cv_file_magic_test_file=/shlib/libc.so
3779
cygwin* | mingw* | pw32*)
3780
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3781
lt_cv_file_magic_cmd='$OBJDUMP -f'
3784
darwin* | rhapsody*)
3785
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3786
lt_cv_file_magic_cmd='/usr/bin/file -L'
3788
rhapsody* | darwin1.[[012]])
3789
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3792
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3798
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3801
# Not sure whether the presence of OpenBSD here was a mistake.
3802
# Let's accept both of them until this is cleared up.
3803
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3804
lt_cv_file_magic_cmd=/usr/bin/file
3805
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3809
lt_cv_deplibs_check_method=pass_all
3814
lt_cv_deplibs_check_method=pass_all
3818
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3819
lt_cv_file_magic_cmd=/usr/bin/file
3820
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3826
# this will be overridden with pass_all, but let us keep it just in case
3827
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3831
*-32|*"-32 ") libmagic=32-bit;;
3832
*-n32|*"-n32 ") libmagic=N32;;
3833
*-64|*"-64 ") libmagic=64-bit;;
3834
*) libmagic=never-match;;
3836
# this will be overridden with pass_all, but let us keep it just in case
3837
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3840
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3841
lt_cv_deplibs_check_method=pass_all
3844
# This must be Linux ELF.
3847
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | m68* | mips* )
3848
lt_cv_deplibs_check_method=pass_all ;;
3850
# glibc up to 2.1.1 does not perform some relocations on ARM
3851
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3853
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3857
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
3860
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
3865
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3866
lt_cv_file_magic_cmd=/usr/bin/file
3867
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3871
lt_cv_file_magic_cmd=/usr/bin/file
3872
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3874
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3876
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3880
osf3* | osf4* | osf5*)
3881
# this will be overridden with pass_all, but let us keep it just in case
3882
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3883
lt_cv_file_magic_test_file=/shlib/libc.so
3884
lt_cv_deplibs_check_method=pass_all
3888
lt_cv_deplibs_check_method=pass_all
3892
lt_cv_deplibs_check_method=pass_all
3893
lt_cv_file_magic_test_file=/lib/libc.so
3896
sysv5uw[[78]]* | sysv4*uw2*)
3897
lt_cv_deplibs_check_method=pass_all
3900
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3901
case $host_vendor in
3903
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3904
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3907
lt_cv_deplibs_check_method=pass_all
3910
lt_cv_file_magic_cmd='/bin/file'
3911
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3914
lt_cv_file_magic_cmd='/bin/file'
3915
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3916
lt_cv_file_magic_test_file=/lib/libc.so
3922
file_magic_cmd=$lt_cv_file_magic_cmd
3923
deplibs_check_method=$lt_cv_deplibs_check_method
3927
# AC_PROG_NM - find the path to a BSD-compatible name lister
3928
AC_DEFUN([AC_PROG_NM],
3929
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3930
AC_MSG_CHECKING([for BSD-compatible nm])
3931
AC_CACHE_VAL(lt_cv_path_NM,
3932
[if test -n "$NM"; then
3933
# Let the user override the test.
3936
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3937
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3938
test -z "$ac_dir" && ac_dir=.
3939
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3940
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3941
# Check to see if the nm accepts a BSD-compat flag.
3942
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3943
# nm: unknown option "B" ignored
3944
# Tru64's nm complains that /dev/null is an invalid object file
3945
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3946
lt_cv_path_NM="$tmp_nm -B"
3948
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3949
lt_cv_path_NM="$tmp_nm -p"
3952
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3953
continue # so that we can try to find one that supports BSD flags
3958
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3961
AC_MSG_RESULT([$NM])
3964
# AC_CHECK_LIBM - check for math library
3965
AC_DEFUN([AC_CHECK_LIBM],
3966
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3969
*-*-beos* | *-*-cygwin* | *-*-pw32*)
3970
# These system don't have libm
3973
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3974
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
3977
AC_CHECK_LIB(m, main, LIBM="-lm")
3982
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3983
# the libltdl convenience library and INCLTDL to the include flags for
3984
# the libltdl header and adds --enable-ltdl-convenience to the
3985
# configure arguments. Note that LIBLTDL and INCLTDL are not
3986
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3987
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3988
# with '${top_builddir}/' and INCLTDL will be prefixed with
3989
# '${top_srcdir}/' (note the single quotes!). If your package is not
3990
# flat and you're not using automake, define top_builddir and
3991
# top_srcdir appropriately in the Makefiles.
3992
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3993
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3994
case $enable_ltdl_convenience in
3995
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3996
"") enable_ltdl_convenience=yes
3997
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3999
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4000
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4003
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
4004
# the libltdl installable library and INCLTDL to the include flags for
4005
# the libltdl header and adds --enable-ltdl-install to the configure
4006
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
4007
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
4008
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
4009
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
4010
# with '${top_srcdir}/' (note the single quotes!). If your package is
4011
# not flat and you're not using automake, define top_builddir and
4012
# top_srcdir appropriately in the Makefiles.
4013
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4014
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4015
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4016
AC_CHECK_LIB(ltdl, main,
4017
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4018
[if test x"$enable_ltdl_install" = xno; then
4019
AC_MSG_WARN([libltdl not installed, but installation disabled])
4021
enable_ltdl_install=yes
4024
if test x"$enable_ltdl_install" = x"yes"; then
4025
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4026
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4027
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4029
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
6710
])# _LT_AC_FILE_LTDLL_C
6713
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6714
# ---------------------------------
6715
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
4036
6719
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])