1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006 Free Software Foundation, Inc.
4
# 2005 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
19
14
dnl -*- mode: autoconf -*-
293
280
])# AC_LIBTOOL_SETUP
298
AC_DEFUN([_LT_VERSION_CHECK],
299
[AC_MSG_CHECKING([for correct ltmain.sh version])
300
if test "x$ltmain" = "x" ; then
304
*** @<:@Gentoo@:>@ sanity check failed! ***
305
*** \$ltmain is not defined, please check the patch for consistency! ***
308
gentoo_lt_version="1.5.23b"
309
gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
310
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
314
*** @<:@Gentoo@:>@ sanity check failed! ***
315
*** libtool.m4 and ltmain.sh have a version mismatch! ***
316
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
320
libtoolize --copy --force
322
if appropriate, please contact the maintainer of this
323
package (or your distribution) for help.
328
])# _LT_VERSION_CHECK
331
283
# _LT_AC_SYS_COMPILER
332
284
# -------------------
333
285
AC_DEFUN([_LT_AC_SYS_COMPILER],
365
317
# Check for compiler boilerplate output or warnings with
366
318
# the simple compiler test code.
367
319
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
368
[AC_REQUIRE([LT_AC_PROG_SED])dnl
369
ac_outfile=conftest.$ac_objext
370
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
320
[ac_outfile=conftest.$ac_objext
321
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
371
322
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
372
323
_lt_compiler_boilerplate=`cat conftest.err`
379
330
# Check for linker boilerplate output or warnings with
380
331
# the simple link test code.
381
332
AC_DEFUN([_LT_LINKER_BOILERPLATE],
382
[AC_REQUIRE([LT_AC_PROG_SED])dnl
383
ac_outfile=conftest.$ac_objext
384
echo "$lt_simple_link_test_code" >conftest.$ac_ext
333
[ac_outfile=conftest.$ac_objext
334
printf "$lt_simple_link_test_code" >conftest.$ac_ext
385
335
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
386
336
_lt_linker_boilerplate=`cat conftest.err`
397
347
# If we don't find anything, use the default library path according
398
348
# to the aix ld manual.
399
349
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
400
[AC_REQUIRE([LT_AC_PROG_SED])dnl
401
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
403
/Import File Strings/,/^$/ {
409
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
350
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
410
353
# Check for a 64-bit object if we didn't find anything.
411
if test -z "$aix_libpath"; then
412
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
354
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
414
356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
415
357
])# _LT_AC_SYS_LIBPATH_AIX
644
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
645
s390*-*linux*|sparc*-*linux*)
586
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
646
587
# Find out which ABI we are using.
647
588
echo 'int i;' > conftest.$ac_ext
648
589
if AC_TRY_EVAL(ac_compile); then
649
590
case `/usr/bin/file conftest.o` in
652
x86_64-*kfreebsd*-gnu)
653
LD="${LD-ld} -m elf_i386_fbsd"
656
594
LD="${LD-ld} -m elf_i386"
742
677
AC_CACHE_CHECK([$1], [$2],
744
679
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
745
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
680
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
746
681
lt_compiler_flag="$3"
747
682
# Insert the option either (1) after the last *FLAGS variable, or
748
683
# (2) before a word containing "conftest.", or (3) at the end.
783
718
# ------------------------------------------------------------
784
719
# Check whether the given compiler option works
785
720
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
786
[AC_REQUIRE([LT_AC_PROG_SED])dnl
787
AC_CACHE_CHECK([$1], [$2],
721
[AC_CACHE_CHECK([$1], [$2],
789
723
save_LDFLAGS="$LDFLAGS"
790
724
LDFLAGS="$LDFLAGS $3"
791
echo "$lt_simple_link_test_code" > conftest.$ac_ext
725
printf "$lt_simple_link_test_code" > conftest.$ac_ext
792
726
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
793
727
# The linker can only warn and ignore the option if not recognized
794
728
# So say no if there are warnings
1146
1080
# ---------------------------------
1147
1081
# Check to see if options -c and -o are simultaneously supported by compiler
1148
1082
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1149
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1150
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1083
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1151
1084
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1152
1085
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1153
1086
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1328
1259
version_type=none
1329
1260
dynamic_linker="$host_os ld.so"
1330
1261
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1332
1262
if test "$GCC" = yes; then
1334
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1335
*) lt_awk_arg="/^libraries:/" ;;
1337
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1338
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1263
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1264
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1339
1265
# if the path contains ";" then we assume it to be the separator
1340
1266
# otherwise default to the standard path separator (i.e. ":") - it is
1341
1267
# assumed that no part of a normal pathname contains ";" but that should
1342
1268
# okay in the real world where ";" in dirpaths is itself problematic.
1343
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1269
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1345
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1271
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1347
# Ok, now we have the path, separated by spaces, we can step through it
1348
# and add multilib dir if necessary.
1349
lt_tmp_lt_search_path_spec=
1350
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1351
for lt_sys_path in $lt_search_path_spec; do
1352
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1353
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1355
test -d "$lt_sys_path" && \
1356
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1359
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1360
BEGIN {RS=" "; FS="/|\n";} {
1363
for (lt_i = NF; lt_i > 0; lt_i--) {
1364
if ($lt_i != "" && $lt_i != ".") {
1365
if ($lt_i == "..") {
1368
if (lt_count == 0) {
1369
lt_foo="/" $lt_i lt_foo;
1376
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1377
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1379
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1381
1274
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1383
1276
need_lib_prefix=unknown
1384
1277
hardcode_into_libs=no
1536
1429
shlibpath_overrides_runpath=yes
1537
1430
shlibpath_var=DYLD_LIBRARY_PATH
1538
1431
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1540
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1432
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1433
if test "$GCC" = yes; then
1434
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1436
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1541
1438
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1739
1623
# Append ld.so.conf contents to the search path
1740
1624
if test -f /etc/ld.so.conf; then
1741
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1625
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1742
1626
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2413
2304
# how to check for library dependencies
2414
2305
# -- PORTME fill in with the dynamic library characteristics
2415
2306
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2416
[AC_CACHE_CHECK([how to recognize dependent libraries],
2307
[AC_CACHE_CHECK([how to recognise dependent libraries],
2417
2308
lt_cv_deplibs_check_method,
2418
2309
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2419
2310
lt_cv_file_magic_test_file=
2453
2344
mingw* | pw32*)
2454
2345
# Base MSYS/MinGW do not provide the 'file' command needed by
2455
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2456
# unless we find 'file', for example because we are cross-compiling.
2457
if ( file / ) >/dev/null 2>&1; then
2458
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2459
lt_cv_file_magic_cmd='func_win32_libid'
2461
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2462
lt_cv_file_magic_cmd='$OBJDUMP -f'
2346
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2347
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2348
lt_cv_file_magic_cmd='$OBJDUMP -f'
2466
2351
darwin* | rhapsody*)
2932
2813
_LT_AC_TAGVAR(objext, $1)=$objext
2934
2815
# Code to be used in simple compile tests
2935
lt_simple_compile_test_code="int some_variable = 0;"
2816
lt_simple_compile_test_code="int some_variable = 0;\n"
2937
2818
# Code to be used in simple link tests
2938
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2819
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2940
2821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2941
2822
_LT_AC_SYS_COMPILER
3514
3397
# dependencies.
3515
3398
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'
3518
case `$CC -V 2>&1 | sed 5q` in
3521
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3522
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3523
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3524
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3525
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3527
# Not sure whether something based on
3528
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3530
output_verbose_link_cmd='echo'
3532
# Archives containing C++ object files must be created using
3533
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3534
# necessary to make sure instantiated templates are included
3536
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3746
3606
case $host_os in
3747
3607
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3749
# The compiler driver will combine and reorder linker options,
3750
# but understands `-z linker_flag'.
3609
# The C++ compiler is used as linker so we must use $wl
3610
# flag to pass the commands to the underlying system
3611
# linker. We must also pass each convience library through
3612
# to the system linker between allextract/defaultextract.
3613
# The C++ compiler will combine linker options so we
3614
# cannot just pass the convience library names through
3751
3616
# Supported since Solaris 2.6 (maybe 2.5.1?)
3752
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3617
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3755
3620
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4053
3912
_LT_AC_TAGVAR(postdeps,$1)=
4057
case `$CC -V 2>&1 | sed 5q` in
4061
# The more standards-conforming stlport4 library is
4062
# incompatible with the Cstd library. Avoid specifying
4063
# it if it's in CXXFLAGS. Ignore libCrun as
4064
# -library=stlport4 depends on it.
4065
case " $CXX $CXXFLAGS " in
4066
*" -library=stlport4 "*)
4067
solaris_use_stlport4=yes
4070
if test "$solaris_use_stlport4" != yes; then
4071
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4078
3916
case $cc_basename in
4080
# The more standards-conforming stlport4 library is
4081
# incompatible with the Cstd library. Avoid specifying
4082
# it if it's in CXXFLAGS. Ignore libCrun as
4083
# -library=stlport4 depends on it.
4084
case " $CXX $CXXFLAGS " in
4085
*" -library=stlport4 "*)
4086
solaris_use_stlport4=yes
4090
3918
# Adding this requires a known-good setup of shared libraries for
4091
3919
# Sun compiler versions before 5.6, else PIC objects from an old
4092
3920
# archive will be linked into the output, leading to subtle bugs.
4093
if test "$solaris_use_stlport4" != yes; then
4094
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3921
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4141
3967
_LT_AC_TAGVAR(objext, $1)=$objext
4143
3969
# Code to be used in simple compile tests
4144
lt_simple_compile_test_code="\
3970
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4150
3972
# Code to be used in simple link tests
4151
lt_simple_link_test_code="\
3973
lt_simple_link_test_code=" program t\n end\n"
4156
3975
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4157
3976
_LT_AC_SYS_COMPILER
4230
4049
_LT_AC_TAGVAR(objext, $1)=$objext
4232
4051
# Code to be used in simple compile tests
4233
lt_simple_compile_test_code="class foo {}"
4052
lt_simple_compile_test_code="class foo {}\n"
4235
4054
# Code to be used in simple link tests
4236
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4055
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4238
4057
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4239
4058
_LT_AC_SYS_COMPILER
4286
4105
_LT_AC_TAGVAR(objext, $1)=$objext
4288
4107
# Code to be used in simple compile tests
4289
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4108
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4291
4110
# Code to be used in simple link tests
4292
4111
lt_simple_link_test_code="$lt_simple_compile_test_code"
4421
4240
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4422
4241
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4424
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4243
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4425
4244
# Free Software Foundation, Inc.
4427
4246
# This file is part of GNU Libtool:
5056
4874
# like `-m68040'.
5057
4875
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5059
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4877
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5060
4878
# PIC is the default for these OSes.
5062
mingw* | cygwin* | os2* | pw32*)
4880
mingw* | os2* | pw32*)
5063
4881
# This hack is so that the source file can tell whether it is being
5064
4882
# built for inclusion in a dll (and should export symbols for example).
5065
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5066
# (--disable-auto-import) libraries
5067
4883
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5069
4885
darwin* | rhapsody*)
5339
5147
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5342
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5150
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5343
5151
# PIC is the default for these OSes.
5346
mingw* | cygwin* | pw32* | os2*)
5154
mingw* | pw32* | os2*)
5347
5155
# This hack is so that the source file can tell whether it is being
5348
5156
# built for inclusion in a dll (and should export symbols for example).
5349
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5350
# (--disable-auto-import) libraries
5351
5157
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5467
5273
# All Alpha code is PIC.
5468
5274
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5471
case `$CC -V 2>&1 | sed 5q` in
5474
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5475
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5476
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5479
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5480
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5482
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5590
5376
# ------------------------------------
5591
5377
# See if the linker supports building shared libraries.
5592
5378
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5593
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5594
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5379
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5595
5380
ifelse([$1],[CXX],[
5596
5381
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5597
5382
case $host_os in
5608
5393
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5610
5395
cygwin* | mingw*)
5611
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5396
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5398
linux* | k*bsd*-gnu)
5399
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5614
5402
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5747
5535
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5748
5536
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5749
5537
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5750
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5538
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5752
5540
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5753
5541
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5780
5568
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5783
gnu* | linux* | k*bsd*-gnu)
5571
linux* | k*bsd*-gnu)
5784
5572
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5786
5574
case $cc_basename,$host_cpu in
5798
5586
ifc* | ifort*) # Intel Fortran compiler
5799
5587
tmp_addflag=' -nofor_main' ;;
5801
case `$CC -V 2>&1 | sed 5q` in
5802
*Sun\ C*) # Sun C 5.9
5803
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5804
tmp_sharedflag='-G' ;;
5805
*Sun\ F*) # Sun Fortran 8.3
5806
tmp_sharedflag='-G' ;;
5808
tmp_sharedflag='-shared' ;;
5810
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5589
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5812
5591
if test $supports_anon_versioning = yes; then
5813
5592
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5814
5593
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5815
5594
$echo "local: *; };" >> $output_objdir/$libname.ver~
5816
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5595
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5597
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5819
5599
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5603
netbsd* | netbsdelf*-gnu)
5824
5604
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5825
5605
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6065
5845
# The linker will automatically build a .lib file if we build a DLL.
6066
5846
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6067
5847
# FIXME: Should let the user specify the lib program.
6068
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5848
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6069
5849
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6070
5850
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6348
6128
case $host_os in
6349
6129
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6351
# The compiler driver will combine and reorder linker options,
6352
# but understands `-z linker_flag'. GCC discards it without `$wl',
6353
# but is careful enough not to reorder.
6131
# The compiler driver will combine linker options so we
6132
# cannot just pass the convience library names through
6133
# without $wl, iff we do not link with $LD.
6134
# Luckily, gcc supports the same syntax we need for Sun Studio.
6354
6135
# Supported since Solaris 2.6 (maybe 2.5.1?)
6355
if test "$GCC" = yes; then
6356
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6358
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6138
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6140
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6362
6143
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6592
6373
[AC_CHECK_TOOL(RC, windres, no)
6596
# Cheap backport of AS_EXECUTABLE_P and required macros
6597
# from Autoconf 2.59; we should not use $as_executable_p directly.
6601
m4_ifndef([_AS_TEST_PREPARE],
6602
[m4_defun([_AS_TEST_PREPARE],
6603
[if test -x / >/dev/null 2>&1; then
6604
as_executable_p='test -x'
6606
as_executable_p='test -f'
6608
])])# _AS_TEST_PREPARE
6612
# Check whether a file is executable.
6613
m4_ifndef([AS_EXECUTABLE_P],
6614
[m4_defun([AS_EXECUTABLE_P],
6615
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6616
$as_executable_p $1[]dnl
6617
])])# AS_EXECUTABLE_P
6619
6376
# NOTE: This macro has been submitted for inclusion into #
6620
6377
# GNU Autoconf as AC_PROG_SED. When it is available in #
6621
6378
# a released version of Autoconf we should remove this #
6838
6593
])# PKG_CHECK_MODULES
6840
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
6595
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6842
6597
# This file is free software; the Free Software Foundation
6843
6598
# gives unlimited permission to copy and/or distribute it,
6847
6602
# ----------------------------
6848
6603
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6849
6604
# generated from the m4 files accompanying Automake X.Y.
6850
# (This private macro should not be called outside this file.)
6851
AC_DEFUN([AM_AUTOMAKE_VERSION],
6852
[am__api_version='1.10'
6853
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6854
dnl require some minimum version. Point them to the right macro.
6855
m4_if([$1], [1.10], [],
6856
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6859
# _AM_AUTOCONF_VERSION(VERSION)
6860
# -----------------------------
6861
# aclocal traces this macro to find the Autoconf version.
6862
# This is a private macro too. Using m4_define simplifies
6863
# the logic in aclocal, which can simply ignore this definition.
6864
m4_define([_AM_AUTOCONF_VERSION], [])
6605
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6866
6607
# AM_SET_CURRENT_AUTOMAKE_VERSION
6867
6608
# -------------------------------
6868
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6609
# Call AM_AUTOMAKE_VERSION so it can be traced.
6869
6610
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6870
6611
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6871
[AM_AUTOMAKE_VERSION([1.10])dnl
6872
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6612
[AM_AUTOMAKE_VERSION([1.9.6])])
6874
6614
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6927
6667
# AM_CONDITIONAL -*- Autoconf -*-
6929
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6669
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6930
6670
# Free Software Foundation, Inc.
6932
6672
# This file is free software; the Free Software Foundation
6933
6673
# gives unlimited permission to copy and/or distribute it,
6934
6674
# with or without modifications, as long as this notice is preserved.
6938
6678
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6939
6679
# -------------------------------------
6959
6697
Usually this means the macro was only invoked conditionally.]])
6962
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6701
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6963
6702
# Free Software Foundation, Inc.
6965
6704
# This file is free software; the Free Software Foundation
6966
6705
# gives unlimited permission to copy and/or distribute it,
6967
6706
# with or without modifications, as long as this notice is preserved.
6971
6710
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6972
6711
# written in clear, in which case automake, when reading aclocal.m4,
6994
6733
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6995
6734
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6996
6735
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6997
[$1], UPC, [depcc="$UPC" am_compiler_list=],
6998
6736
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6999
6737
[depcc="$$1" am_compiler_list=])
7139
6875
# some people rename them; so instead we look at the file content.
7140
6876
# Grep'ing the first line is not enough: some people post-process
7141
6877
# each Makefile.in and add a new line on top of each file to say so.
7142
# Grep'ing the whole file is not good either: AIX grep has a line
7143
# limit of 2048, but all sed's we know have understand at least 4000.
7144
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6878
# So let's grep whole file.
6879
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7145
6880
dirpart=`AS_DIRNAME("$mf")`
7201
6936
# Do all the work for Automake. -*- Autoconf -*-
7203
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7204
# 2005, 2006 Free Software Foundation, Inc.
6938
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6939
# Free Software Foundation, Inc.
7206
6941
# This file is free software; the Free Software Foundation
7207
6942
# gives unlimited permission to copy and/or distribute it,
7224
6959
# arguments mandatory, and then we can depend on a new Autoconf
7225
6960
# release and drop the old call support.
7226
6961
AC_DEFUN([AM_INIT_AUTOMAKE],
7227
[AC_PREREQ([2.60])dnl
6962
[AC_PREREQ([2.58])dnl
7228
6963
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7229
6964
dnl the ones we care about.
7230
6965
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7231
6966
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7232
6967
AC_REQUIRE([AC_PROG_INSTALL])dnl
7233
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7234
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7235
# is not polluted with repeated "-I."
7236
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7237
# test to see if srcdir already configured
7238
if test -f $srcdir/config.status; then
7239
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6968
# test to see if srcdir already configured
6969
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6970
test -f $srcdir/config.status; then
6971
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7243
6974
# test whether we have cygpath
7257
6988
AC_SUBST([PACKAGE], [$1])dnl
7258
6989
AC_SUBST([VERSION], [$2])],
7259
6990
[_AM_SET_OPTIONS([$1])dnl
7260
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7261
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7262
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7263
6991
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7264
6992
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7413
7137
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7415
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7139
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7416
7140
# Free Software Foundation, Inc.
7418
7142
# This file is free software; the Free Software Foundation
7419
7143
# gives unlimited permission to copy and/or distribute it,
7420
7144
# with or without modifications, as long as this notice is preserved.
7424
7148
# AM_MISSING_PROG(NAME, PROGRAM)
7425
7149
# ------------------------------
7435
7159
# If it does, set am_missing_run to use it, otherwise, to nothing.
7436
7160
AC_DEFUN([AM_MISSING_HAS_RUN],
7437
7161
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7438
AC_REQUIRE_AUX_FILE([missing])dnl
7439
7162
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7440
7163
# Use eval to expand $SHELL
7441
7164
if eval "$MISSING --run true"; then
7449
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7172
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7451
7174
# This file is free software; the Free Software Foundation
7452
7175
# gives unlimited permission to copy and/or distribute it,
7455
7178
# AM_PROG_MKDIR_P
7456
7179
# ---------------
7457
# Check for `mkdir -p'.
7180
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7182
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7183
# created by `make install' are always world readable, even if the
7184
# installer happens to have an overly restrictive umask (e.g. 077).
7185
# This was a mistake. There are at least two reasons why we must not
7187
# - it causes special bits like SGID to be ignored,
7188
# - it may be too restrictive (some setups expect 775 directories).
7190
# Do not use -m 0755 and let people choose whatever they expect by
7193
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7194
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7195
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7196
# concurrently, both version can detect that a/ is missing, but only
7197
# one can create it and the other will error out. Consequently we
7198
# restrict ourselves to GNU make (using the --version option ensures
7458
7200
AC_DEFUN([AM_PROG_MKDIR_P],
7459
[AC_PREREQ([2.60])dnl
7460
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7461
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7462
dnl while keeping a definition of mkdir_p for backward compatibility.
7463
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7464
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7465
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7466
dnl adjustment using top_builddir (which is defined more often than
7468
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7470
[[\\/$]]* | ?:[[\\/]]*) ;;
7471
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7201
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7202
# We used to keeping the `.' as first argument, in order to
7203
# allow $(mkdir_p) to be used without argument. As in
7204
# $(mkdir_p) $(somedir)
7205
# where $(somedir) is conditionally defined. However this is wrong
7207
# 1. if the package is installed by a user who cannot write `.'
7208
# make install will fail,
7209
# 2. the above comment should most certainly read
7210
# $(mkdir_p) $(DESTDIR)$(somedir)
7211
# so it does not work when $(somedir) is undefined and
7212
# $(DESTDIR) is not.
7213
# To support the latter case, we have to write
7214
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7215
# so the `.' trick is pointless.
7216
mkdir_p='mkdir -p --'
7218
# On NextStep and OpenStep, the `mkdir' command does not
7219
# recognize any option. It will interpret all options as
7220
# directories to create, and then abort because `.' already
7222
for d in ./-p ./--version;
7224
test -d $d && rmdir $d
7226
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7227
if test -f "$ac_aux_dir/mkinstalldirs"; then
7228
mkdir_p='$(mkinstalldirs)'
7230
mkdir_p='$(install_sh) -d'
7233
AC_SUBST([mkdir_p])])
7475
7235
# Helper functions for option handling. -*- Autoconf -*-
7763
7523
if test "$cross_compiling" != no; then
7764
7524
AC_CHECK_TOOL([STRIP], [strip], :)
7766
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7526
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7767
7527
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7769
# Copyright (C) 2006 Free Software Foundation, Inc.
7771
# This file is free software; the Free Software Foundation
7772
# gives unlimited permission to copy and/or distribute it,
7773
# with or without modifications, as long as this notice is preserved.
7775
# _AM_SUBST_NOTMAKE(VARIABLE)
7776
# ---------------------------
7777
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7778
# This macro is traced by Automake.
7779
AC_DEFUN([_AM_SUBST_NOTMAKE])
7781
7529
# Check how to create a tarball. -*- Autoconf -*-
7783
7531
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.