Codebase list faad2 / 29d81bf0-f61c-4608-bba9-843014048dc8/upstream
Import upstream version 2.10.0+git20210727.2.a65ecab Debian Janitor 1 year, 10 months ago
10 changed file(s) with 930 addition(s) and 548 deletion(s). Raw diff Collapse all Expand all
233233 ETAGS = @ETAGS@
234234 EXEEXT = @EXEEXT@
235235 FGREP = @FGREP@
236 FILECMD = @FILECMD@
236237 GREP = @GREP@
237238 GTK_CONFIG = @GTK_CONFIG@
238239 INSTALL = @INSTALL@
2121
2222 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2323 #
24 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
24 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
25 # Foundation, Inc.
2526 # Written by Gordon Matzigkeit, 1996
2627 #
2728 # This file is free software; the Free Software Foundation gives
5253 # along with this program. If not, see <http://www.gnu.org/licenses/>.
5354 ])
5455
55 # serial 58 LT_INIT
56 # serial 59 LT_INIT
5657
5758
5859 # LT_PREREQ(VERSION)
202203 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
203204 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
204205 m4_require([_LT_CMD_RELOAD])dnl
206 m4_require([_LT_DECL_FILECMD])dnl
205207 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
206208 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
207209 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
240242 ofile=libtool
241243 can_build_shared=yes
242244
243 # All known linkers require a '.a' archive for static linking (except MSVC,
244 # which needs '.lib').
245 # All known linkers require a '.a' archive for static linking (except MSVC and
246 # ICC, which need '.lib').
245247 libext=a
246248
247249 with_gnu_ld=$lt_cv_prog_gnu_ld
792794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
793795 # text mode, it properly converts lines to CR/LF. This bash problem
794796 # is reportedly fixed, but why not run on old versions too?
795 sed '$q' "$ltmain" >> "$cfgfile" \
797 $SED '$q' "$ltmain" >> "$cfgfile" \
796798 || (rm -f "$cfgfile"; exit 1)
797799
798800 mv -f "$cfgfile" "$ofile" ||
10541056 _LT_EOF
10551057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
10561058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1057 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1058 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1059 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1060 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
10591061 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
10601062 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
10611063 cat > conftest.c << _LT_EOF
10791081 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10801082 darwin1.*)
10811083 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1082 darwin*) # darwin 5.x on
1083 # if running on 10.5 or later, the deployment target defaults
1084 # to the OS version, if on x86, and 10.4, the deployment
1085 # target defaults to 10.4. Don't you love it?
1086 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1087 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*)
1088 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1089 10.[[012]][[,.]]*)
1090 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1091 10.*|11.*)
1092 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1084 darwin*)
1085 case $MACOSX_DEPLOYMENT_TARGET,$host in
1086 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1087 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1088 *)
1089 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10931090 esac
10941091 ;;
10951092 esac
11381135 output_verbose_link_cmd=func_echo_all
11391136 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11401137 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1141 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1142 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1138 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1139 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11431140 m4_if([$1], [CXX],
11441141 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
11451142 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1146 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1143 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11471144 fi
11481145 ],[])
11491146 else
12571254 # _LT_WITH_SYSROOT
12581255 # ----------------
12591256 AC_DEFUN([_LT_WITH_SYSROOT],
1260 [AC_MSG_CHECKING([for sysroot])
1257 [m4_require([_LT_DECL_SED])dnl
1258 AC_MSG_CHECKING([for sysroot])
12611259 AC_ARG_WITH([sysroot],
12621260 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
12631261 [Search for dependent libraries within DIR (or the compiler's sysroot
12741272 fi
12751273 ;; #(
12761274 /*)
1277 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1275 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12781276 ;; #(
12791277 no|'')
12801278 ;; #(
13041302 # options accordingly.
13051303 echo 'int i;' > conftest.$ac_ext
13061304 if AC_TRY_EVAL(ac_compile); then
1307 case `/usr/bin/file conftest.$ac_objext` in
1305 case `$FILECMD conftest.$ac_objext` in
13081306 *ELF-32*)
13091307 HPUX_IA64_MODE=32
13101308 ;;
13211319 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13221320 if AC_TRY_EVAL(ac_compile); then
13231321 if test yes = "$lt_cv_prog_gnu_ld"; then
1324 case `/usr/bin/file conftest.$ac_objext` in
1322 case `$FILECMD conftest.$ac_objext` in
13251323 *32-bit*)
13261324 LD="${LD-ld} -melf32bsmip"
13271325 ;;
13331331 ;;
13341332 esac
13351333 else
1336 case `/usr/bin/file conftest.$ac_objext` in
1334 case `$FILECMD conftest.$ac_objext` in
13371335 *32-bit*)
13381336 LD="${LD-ld} -32"
13391337 ;;
13551353 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13561354 if AC_TRY_EVAL(ac_compile); then
13571355 emul=elf
1358 case `/usr/bin/file conftest.$ac_objext` in
1356 case `$FILECMD conftest.$ac_objext` in
13591357 *32-bit*)
13601358 emul="${emul}32"
13611359 ;;
13631361 emul="${emul}64"
13641362 ;;
13651363 esac
1366 case `/usr/bin/file conftest.$ac_objext` in
1364 case `$FILECMD conftest.$ac_objext` in
13671365 *MSB*)
13681366 emul="${emul}btsmip"
13691367 ;;
13711369 emul="${emul}ltsmip"
13721370 ;;
13731371 esac
1374 case `/usr/bin/file conftest.$ac_objext` in
1372 case `$FILECMD conftest.$ac_objext` in
13751373 *N32*)
13761374 emul="${emul}n32"
13771375 ;;
13911389 # not appear in the list.
13921390 echo 'int i;' > conftest.$ac_ext
13931391 if AC_TRY_EVAL(ac_compile); then
1394 case `/usr/bin/file conftest.o` in
1392 case `$FILECMD conftest.o` in
13951393 *32-bit*)
13961394 case $host in
13971395 x86_64-*kfreebsd*-gnu)
13981396 LD="${LD-ld} -m elf_i386_fbsd"
13991397 ;;
14001398 x86_64-*linux*)
1401 case `/usr/bin/file conftest.o` in
1399 case `$FILECMD conftest.o` in
14021400 *x86-64*)
14031401 LD="${LD-ld} -m elf32_x86_64"
14041402 ;;
14661464 # options accordingly.
14671465 echo 'int i;' > conftest.$ac_ext
14681466 if AC_TRY_EVAL(ac_compile); then
1469 case `/usr/bin/file conftest.o` in
1467 case `$FILECMD conftest.o` in
14701468 *64-bit*)
14711469 case $lt_cv_prog_gnu_ld in
14721470 yes*)
15051503 m4_defun([_LT_PROG_AR],
15061504 [AC_CHECK_TOOLS(AR, [ar], false)
15071505 : ${AR=ar}
1508 : ${AR_FLAGS=cr}
15091506 _LT_DECL([], [AR], [1], [The archiver])
1510 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1507
1508 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1509 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1510 # higher priority because thats what people were doing historically (setting
1511 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1512 # variable obsoleted/removed.
1513
1514 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1515 lt_ar_flags=$AR_FLAGS
1516 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1517
1518 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1519 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1520 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1521 [Flags to create an archive])
15111522
15121523 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
15131524 [lt_cv_ar_at_file=no
17261737 lt_cv_sys_max_cmd_len=8192;
17271738 ;;
17281739
1729 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1740 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
17301741 # This has been around since 386BSD, at least. Likely further.
17311742 if test -x /sbin/sysctl; then
17321743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17691780 sysv5* | sco5v6* | sysv4.2uw2*)
17701781 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
17711782 if test -n "$kargmax"; then
1772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1783 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
17731784 else
17741785 lt_cv_sys_max_cmd_len=32768
17751786 fi
22192230 striplib=
22202231 old_striplib=
22212232 AC_MSG_CHECKING([whether stripping libraries is possible])
2222 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2223 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2224 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2225 AC_MSG_RESULT([yes])
2233 if test -z "$STRIP"; then
2234 AC_MSG_RESULT([no])
22262235 else
2227 # FIXME - insert some real tests, host_os isn't really good enough
2228 case $host_os in
2229 darwin*)
2230 if test -n "$STRIP"; then
2236 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2237 old_striplib="$STRIP --strip-debug"
2238 striplib="$STRIP --strip-unneeded"
2239 AC_MSG_RESULT([yes])
2240 else
2241 case $host_os in
2242 darwin*)
2243 # FIXME - insert some real tests, host_os isn't really good enough
22312244 striplib="$STRIP -x"
22322245 old_striplib="$STRIP -S"
22332246 AC_MSG_RESULT([yes])
2234 else
2247 ;;
2248 freebsd*)
2249 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2250 old_striplib="$STRIP --strip-debug"
2251 striplib="$STRIP --strip-unneeded"
2252 AC_MSG_RESULT([yes])
2253 else
2254 AC_MSG_RESULT([no])
2255 fi
2256 ;;
2257 *)
22352258 AC_MSG_RESULT([no])
2236 fi
2237 ;;
2238 *)
2239 AC_MSG_RESULT([no])
2240 ;;
2241 esac
2259 ;;
2260 esac
2261 fi
22422262 fi
22432263 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
22442264 _LT_DECL([], [striplib], [1])
25612581 case $host_os in
25622582 cygwin*)
25632583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2564 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2584 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25652585 m4_if([$1], [],[
25662586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
25672587 ;;
25712591 ;;
25722592 pw32*)
25732593 # pw32 DLLs use 'pw' prefix rather than 'lib'
2574 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2594 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25752595 ;;
25762596 esac
25772597 dynamic_linker='Win32 ld.exe'
25782598 ;;
25792599
2580 *,cl*)
2581 # Native MSVC
2600 *,cl* | *,icl*)
2601 # Native MSVC or ICC
25822602 libname_spec='$name'
25832603 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25842604 library_names_spec='$libname.dll.lib'
25972617 done
25982618 IFS=$lt_save_ifs
25992619 # Convert to MSYS style.
2600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
26012621 ;;
26022622 cygwin*)
26032623 # Convert to unix form, then to dos form, then back to unix form
26342654 ;;
26352655
26362656 *)
2637 # Assume MSVC wrapper
2657 # Assume MSVC and ICC wrapper
26382658 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
26392659 dynamic_linker='Win32 ld.exe'
26402660 ;;
26672687 shlibpath_var=LD_LIBRARY_PATH
26682688 ;;
26692689
2670 freebsd* | dragonfly*)
2690 freebsd* | dragonfly* | midnightbsd*)
26712691 # DragonFly does not have aout. When/if they implement a new
26722692 # versioning mechanism, adjust this.
26732693 if test -x /usr/bin/objformat; then
34783498
34793499 bsdi[[45]]*)
34803500 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3481 lt_cv_file_magic_cmd='/usr/bin/file -L'
3501 lt_cv_file_magic_cmd='$FILECMD -L'
34823502 lt_cv_file_magic_test_file=/shlib/libc.so
34833503 ;;
34843504
35123532 lt_cv_deplibs_check_method=pass_all
35133533 ;;
35143534
3515 freebsd* | dragonfly*)
3535 freebsd* | dragonfly* | midnightbsd*)
35163536 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
35173537 case $host_cpu in
35183538 i*86 )
35193539 # Not sure whether the presence of OpenBSD here was a mistake.
35203540 # Let's accept both of them until this is cleared up.
35213541 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3522 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_cmd=$FILECMD
35233543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35243544 ;;
35253545 esac
35333553 ;;
35343554
35353555 hpux10.20* | hpux11*)
3536 lt_cv_file_magic_cmd=/usr/bin/file
3556 lt_cv_file_magic_cmd=$FILECMD
35373557 case $host_cpu in
35383558 ia64*)
35393559 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
35803600
35813601 newos6*)
35823602 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3583 lt_cv_file_magic_cmd=/usr/bin/file
3603 lt_cv_file_magic_cmd=$FILECMD
35843604 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35853605 ;;
35863606
37073727 mingw*) lt_bad_file=conftest.nm/nofile ;;
37083728 *) lt_bad_file=/dev/null ;;
37093729 esac
3710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3730 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
37113731 *$lt_bad_file* | *'Invalid file or object type'*)
37123732 lt_cv_path_NM="$tmp_nm -B"
37133733 break 2
37143734 ;;
37153735 *)
3716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3736 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
37173737 */dev/null*)
37183738 lt_cv_path_NM="$tmp_nm -p"
37193739 break 2
37393759 # Let the user override the test.
37403760 else
37413761 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3742 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3762 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
37433763 *COFF*)
37443764 DUMPBIN="$DUMPBIN -symbols -headers"
37453765 ;;
39793999
39804000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
39814001 # Gets list of data symbols to import.
3982 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
4002 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
39834003 # Adjust the below global symbol transforms to fixup imported variables.
39844004 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
39854005 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
39974017 # Transform an extracted symbol line into a proper C declaration.
39984018 # Some systems (esp. on ia64) link data and code symbols differently,
39994019 # so use this general approach.
4000 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4020 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
40014021 $lt_cdecl_hook\
40024022 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
40034023 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
40044024
40054025 # Transform an extracted symbol line into symbol name and symbol address
4006 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4026 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
40074027 $lt_c_name_hook\
40084028 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
40094029 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
40104030
40114031 # Transform an extracted symbol line into symbol name with lib prefix and
40124032 # symbol address.
4013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4033 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
40144034 $lt_c_name_lib_hook\
40154035 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
40164036 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
40344054 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
40354055 # Fake it for dumpbin and say T for any non-static function,
40364056 # D for any global variable and I for any imported variable.
4037 # Also find C++ and __fastcall symbols from MSVC++,
4057 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
40384058 # which start with @ or ?.
40394059 lt_cv_sys_global_symbol_pipe="$AWK ['"\
40404060 " {last_section=section; section=\$ 3};"\
40524072 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
40534073 " ' prfx=^$ac_symprfx]"
40544074 else
4055 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4075 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
40564076 fi
4057 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4077 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
40584078
40594079 # Check to see that the pipe works correctly.
40604080 pipe_works=no
43424362 ;;
43434363 esac
43444364 ;;
4345 freebsd* | dragonfly*)
4365 freebsd* | dragonfly* | midnightbsd*)
43464366 # FreeBSD uses GNU C++
43474367 ;;
43484368 hpux9* | hpux10* | hpux11*)
44254445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
44264446 ;;
44274447 *)
4428 case `$CC -V 2>&1 | sed 5q` in
4448 case `$CC -V 2>&1 | $SED 5q` in
44294449 *Sun\ C*)
44304450 # Sun C++ 5.9
44314451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47674787 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
47684788 ;;
47694789 *)
4770 case `$CC -V 2>&1 | sed 5q` in
4790 case `$CC -V 2>&1 | $SED 5q` in
47714791 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
47724792 # Sun Fortran 8.3 passes all unrecognized flags to the linker
47734793 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
49504970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
49514971 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49524972 else
4953 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4973 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49544974 fi
49554975 ;;
49564976 pw32*)
49584978 ;;
49594979 cygwin* | mingw* | cegcc*)
49604980 case $cc_basename in
4961 cl*)
4981 cl* | icl*)
49624982 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
49634983 ;;
49644984 *)
50185038
50195039 case $host_os in
50205040 cygwin* | mingw* | pw32* | cegcc*)
5021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5041 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
50225042 # When not using gcc, we currently assume that we are using
5023 # Microsoft Visual C++.
5043 # Microsoft Visual C++ or Intel C++ Compiler.
50245044 if test yes != "$GCC"; then
50255045 with_gnu_ld=no
50265046 fi
50275047 ;;
50285048 interix*)
5029 # we just hope/assume this is gcc and not c89 (= MSVC++)
5049 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
50305050 with_gnu_ld=yes
50315051 ;;
50325052 openbsd* | bitrig*)
50815101 _LT_TAGVAR(whole_archive_flag_spec, $1)=
50825102 fi
50835103 supports_anon_versioning=no
5084 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5104 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
50855105 *GNU\ gold*) supports_anon_versioning=yes ;;
50865106 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
50875107 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
51935213 emximp -o $lib $output_objdir/$libname.def'
51945214 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
51955215 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5216 _LT_TAGVAR(file_list_spec, $1)='@'
51965217 ;;
51975218
51985219 interix[[3-9]]*)
52075228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
52085229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
52095230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5210 _LT_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'
5231 _LT_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'
52115232 ;;
52125233
52135234 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
52505271 _LT_TAGVAR(compiler_needs_object, $1)=yes
52515272 ;;
52525273 esac
5253 case `$CC -V 2>&1 | sed 5q` in
5274 case `$CC -V 2>&1 | $SED 5q` in
52545275 *Sun\ C*) # Sun C 5.9
52555276 _LT_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; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
52565277 _LT_TAGVAR(compiler_needs_object, $1)=yes
52625283
52635284 if test yes = "$supports_anon_versioning"; then
52645285 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5286 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52665287 echo "local: *; };" >> $output_objdir/$libname.ver~
52675288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
52685289 fi
52695290
52705291 case $cc_basename in
52715292 tcc*)
5293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
52725294 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
52735295 ;;
52745296 xlf* | bgf* | bgxlf* | mpixlf*)
52785300 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
52795301 if test yes = "$supports_anon_versioning"; then
52805302 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5303 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52825304 echo "local: *; };" >> $output_objdir/$libname.ver~
52835305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
52845306 fi
54105432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
54115433 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
54125434 else
5413 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5435 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
54145436 fi
54155437 aix_use_runtimelinking=no
54165438
55935615
55945616 cygwin* | mingw* | pw32* | cegcc*)
55955617 # When not using gcc, we currently assume that we are using
5596 # Microsoft Visual C++.
5618 # Microsoft Visual C++ or Intel C++ Compiler.
55975619 # hardcode_libdir_flag_spec is actually meaningless, as there is
55985620 # no search path for DLLs.
55995621 case $cc_basename in
5600 cl*)
5601 # Native MSVC
5622 cl* | icl*)
5623 # Native MSVC or ICC
56025624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
56035625 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56045626 _LT_TAGVAR(always_export_symbols, $1)=yes
56395661 fi'
56405662 ;;
56415663 *)
5642 # Assume MSVC wrapper
5664 # Assume MSVC and ICC wrapper
56435665 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
56445666 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56455667 # Tell ltmain to make .lib files, not .a files.
56875709 ;;
56885710
56895711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5690 freebsd* | dragonfly*)
5712 freebsd* | dragonfly* | midnightbsd*)
56915713 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
56925714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
56935715 _LT_TAGVAR(hardcode_direct, $1)=yes
58285850 # Fabrice Bellard et al's Tiny C Compiler
58295851 _LT_TAGVAR(ld_shlibs, $1)=yes
58305852 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
58315854 ;;
58325855 esac
58335856 ;;
58995922 emximp -o $lib $output_objdir/$libname.def'
59005923 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
59015924 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5925 _LT_TAGVAR(file_list_spec, $1)='@'
59025926 ;;
59035927
59045928 osf3*)
66656689
66666690 cygwin* | mingw* | pw32* | cegcc*)
66676691 case $GXX,$cc_basename in
6668 ,cl* | no,cl*)
6669 # Native MSVC
6692 ,cl* | no,cl* | ,icl* | no,icl*)
6693 # Native MSVC or ICC
66706694 # hardcode_libdir_flag_spec is actually meaningless, as there is
66716695 # no search path for DLLs.
66726696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
67646788 emximp -o $lib $output_objdir/$libname.def'
67656789 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
67666790 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6791 _LT_TAGVAR(file_list_spec, $1)='@'
67676792 ;;
67686793
67696794 dgux*)
67946819 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67956820 ;;
67966821
6797 freebsd* | dragonfly*)
6822 freebsd* | dragonfly* | midnightbsd*)
67986823 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
67996824 # conventions
68006825 _LT_TAGVAR(ld_shlibs, $1)=yes
69316956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
69326957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
69336958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6934 _LT_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'
6959 _LT_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'
69356960 ;;
69366961 irix5* | irix6*)
69376962 case $cc_basename in
70717096 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
70727097 if test yes = "$supports_anon_versioning"; then
70737098 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7099 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
70757100 echo "local: *; };" >> $output_objdir/$libname.ver~
70767101 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
70777102 fi
70787103 ;;
70797104 *)
7080 case `$CC -V 2>&1 | sed 5q` in
7105 case `$CC -V 2>&1 | $SED 5q` in
70817106 *Sun\ C*)
70827107 # Sun C++ 5.9
70837108 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
82148239 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
82158240 AC_SUBST([DLLTOOL])
82168241 ])
8242
8243 # _LT_DECL_FILECMD
8244 # ----------------
8245 # Check for a file(cmd) program that can be used to detect file type and magic
8246 m4_defun([_LT_DECL_FILECMD],
8247 [AC_CHECK_TOOL([FILECMD], [file], [:])
8248 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8249 ])# _LD_DECL_FILECMD
82178250
82188251 # _LT_DECL_SED
82198252 # ------------
83948427
83958428 # Helper functions for option handling. -*- Autoconf -*-
83968429 #
8397 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8398 # Foundation, Inc.
8430 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
8431 # Software Foundation, Inc.
83998432 # Written by Gary V. Vaughan, 2004
84008433 #
84018434 # This file is free software; the Free Software Foundation gives
88268859
88278860 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
88288861 #
8829 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
8862 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
88308863 # Foundation, Inc.
88318864 # Written by Gary V. Vaughan, 2004
88328865 #
89518984
89528985 # ltversion.m4 -- version numbers -*- Autoconf -*-
89538986 #
8954 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
8987 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
8988 # Inc.
89558989 # Written by Scott James Remnant, 2004
89568990 #
89578991 # This file is free software; the Free Software Foundation gives
89608994
89618995 # @configure_input@
89628996
8963 # serial 4179 ltversion.m4
8997 # serial 4245 ltversion.m4
89648998 # This file is part of GNU Libtool
89658999
8966 m4_define([LT_PACKAGE_VERSION], [2.4.6])
8967 m4_define([LT_PACKAGE_REVISION], [2.4.6])
9000 m4_define([LT_PACKAGE_VERSION], [2.4.7])
9001 m4_define([LT_PACKAGE_REVISION], [2.4.7])
89689002
89699003 AC_DEFUN([LTVERSION_VERSION],
8970 [macro_version='2.4.6'
8971 macro_revision='2.4.6'
9004 [macro_version='2.4.7'
9005 macro_revision='2.4.7'
89729006 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
89739007 _LT_DECL(, macro_revision, 0)
89749008 ])
89759009
89769010 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
89779011 #
8978 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
8979 # Foundation, Inc.
9012 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
9013 # Software Foundation, Inc.
89809014 # Written by Scott James Remnant, 2004.
89819015 #
89829016 # This file is free software; the Free Software Foundation gives
688688 AR
689689 DLLTOOL
690690 OBJDUMP
691 FILECMD
691692 LN_S
692693 NM
693694 ac_ct_DUMPBIN
36383639
36393640
36403641
3641 macro_version='2.4.6'
3642 macro_revision='2.4.6'
3642 macro_version='2.4.7'
3643 macro_revision='2.4.7'
36433644
36443645
36453646
55165517 mingw*) lt_bad_file=conftest.nm/nofile ;;
55175518 *) lt_bad_file=/dev/null ;;
55185519 esac
5519 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5520 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
55205521 *$lt_bad_file* | *'Invalid file or object type'*)
55215522 lt_cv_path_NM="$tmp_nm -B"
55225523 break 2
55235524 ;;
55245525 *)
5525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5526 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
55265527 */dev/null*)
55275528 lt_cv_path_NM="$tmp_nm -p"
55285529 break 2
56605661 fi
56615662 fi
56625663
5663 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5664 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
56645665 *COFF*)
56655666 DUMPBIN="$DUMPBIN -symbols -headers"
56665667 ;;
57645765 lt_cv_sys_max_cmd_len=8192;
57655766 ;;
57665767
5767 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5768 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
57685769 # This has been around since 386BSD, at least. Likely further.
57695770 if test -x /sbin/sysctl; then
57705771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
58075808 sysv5* | sco5v6* | sysv4.2uw2*)
58085809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
58095810 if test -n "$kargmax"; then
5810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5811 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
58115812 else
58125813 lt_cv_sys_max_cmd_len=32768
58135814 fi
60136014
60146015
60156016 if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6018 set dummy ${ac_tool_prefix}file; ac_word=$2
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 printf %s "checking for $ac_word... " >&6; }
6021 if test ${ac_cv_prog_FILECMD+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else $as_nop
6025 if test -n "$FILECMD"; then
6026 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031 IFS=$as_save_IFS
6032 case $as_dir in #(((
6033 '') as_dir=./ ;;
6034 */) ;;
6035 *) as_dir=$as_dir/ ;;
6036 esac
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 FILECMD=$ac_cv_prog_FILECMD
6050 if test -n "$FILECMD"; then
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6052 printf "%s\n" "$FILECMD" >&6; }
6053 else
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 printf "%s\n" "no" >&6; }
6056 fi
6057
6058
6059 fi
6060 if test -z "$ac_cv_prog_FILECMD"; then
6061 ac_ct_FILECMD=$FILECMD
6062 # Extract the first word of "file", so it can be a program name with args.
6063 set dummy file; ac_word=$2
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 printf %s "checking for $ac_word... " >&6; }
6066 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6067 then :
6068 printf %s "(cached) " >&6
6069 else $as_nop
6070 if test -n "$ac_ct_FILECMD"; then
6071 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 case $as_dir in #(((
6078 '') as_dir=./ ;;
6079 */) ;;
6080 *) as_dir=$as_dir/ ;;
6081 esac
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_ac_ct_FILECMD="file"
6085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6095 if test -n "$ac_ct_FILECMD"; then
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6097 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6098 else
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 printf "%s\n" "no" >&6; }
6101 fi
6102
6103 if test "x$ac_ct_FILECMD" = x; then
6104 FILECMD=":"
6105 else
6106 case $cross_compiling:$ac_tool_warned in
6107 yes:)
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6111 esac
6112 FILECMD=$ac_ct_FILECMD
6113 fi
6114 else
6115 FILECMD="$ac_cv_prog_FILECMD"
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124 if test -n "$ac_tool_prefix"; then
60166125 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
60176126 set dummy ${ac_tool_prefix}objdump; ac_word=$2
60186127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61556264
61566265 bsdi[45]*)
61576266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6158 lt_cv_file_magic_cmd='/usr/bin/file -L'
6267 lt_cv_file_magic_cmd='$FILECMD -L'
61596268 lt_cv_file_magic_test_file=/shlib/libc.so
61606269 ;;
61616270
61896298 lt_cv_deplibs_check_method=pass_all
61906299 ;;
61916300
6192 freebsd* | dragonfly*)
6301 freebsd* | dragonfly* | midnightbsd*)
61936302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
61946303 case $host_cpu in
61956304 i*86 )
61966305 # Not sure whether the presence of OpenBSD here was a mistake.
61976306 # Let's accept both of them until this is cleared up.
61986307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6199 lt_cv_file_magic_cmd=/usr/bin/file
6308 lt_cv_file_magic_cmd=$FILECMD
62006309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
62016310 ;;
62026311 esac
62106319 ;;
62116320
62126321 hpux10.20* | hpux11*)
6213 lt_cv_file_magic_cmd=/usr/bin/file
6322 lt_cv_file_magic_cmd=$FILECMD
62146323 case $host_cpu in
62156324 ia64*)
62166325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
62576366
62586367 newos6*)
62596368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6260 lt_cv_file_magic_cmd=/usr/bin/file
6369 lt_cv_file_magic_cmd=$FILECMD
62616370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
62626371 ;;
62636372
66316740 fi
66326741
66336742 : ${AR=ar}
6634 : ${AR_FLAGS=cr}
6635
6636
6637
6638
6639
6743
6744
6745
6746
6747
6748
6749 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6750 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6751 # higher priority because thats what people were doing historically (setting
6752 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6753 # variable obsoleted/removed.
6754
6755 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6756 lt_ar_flags=$AR_FLAGS
6757
6758
6759
6760
6761
6762
6763 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6764 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
66406765
66416766
66426767
70547179
70557180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
70567181 # Gets list of data symbols to import.
7057 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7182 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
70587183 # Adjust the below global symbol transforms to fixup imported variables.
70597184 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
70607185 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
70727197 # Transform an extracted symbol line into a proper C declaration.
70737198 # Some systems (esp. on ia64) link data and code symbols differently,
70747199 # so use this general approach.
7075 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7200 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
70767201 $lt_cdecl_hook\
70777202 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
70787203 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
70797204
70807205 # Transform an extracted symbol line into symbol name and symbol address
7081 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7206 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
70827207 $lt_c_name_hook\
70837208 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
70847209 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
70857210
70867211 # Transform an extracted symbol line into symbol name with lib prefix and
70877212 # symbol address.
7088 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
70897214 $lt_c_name_lib_hook\
70907215 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
70917216 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
71097234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
71107235 # Fake it for dumpbin and say T for any non-static function,
71117236 # D for any global variable and I for any imported variable.
7112 # Also find C++ and __fastcall symbols from MSVC++,
7237 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
71137238 # which start with @ or ?.
71147239 lt_cv_sys_global_symbol_pipe="$AWK '"\
71157240 " {last_section=section; section=\$ 3};"\
71277252 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
71287253 " ' prfx=^$ac_symprfx"
71297254 else
7130 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7255 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
71317256 fi
7132 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7257 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
71337258
71347259 # Check to see that the pipe works correctly.
71357260 pipe_works=no
73297454 fi
73307455 ;; #(
73317456 /*)
7332 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7457 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
73337458 ;; #(
73347459 no|'')
73357460 ;; #(
74547579 ac_status=$?
74557580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74567581 test $ac_status = 0; }; then
7457 case `/usr/bin/file conftest.$ac_objext` in
7582 case `$FILECMD conftest.$ac_objext` in
74587583 *ELF-32*)
74597584 HPUX_IA64_MODE=32
74607585 ;;
74757600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74767601 test $ac_status = 0; }; then
74777602 if test yes = "$lt_cv_prog_gnu_ld"; then
7478 case `/usr/bin/file conftest.$ac_objext` in
7603 case `$FILECMD conftest.$ac_objext` in
74797604 *32-bit*)
74807605 LD="${LD-ld} -melf32bsmip"
74817606 ;;
74877612 ;;
74887613 esac
74897614 else
7490 case `/usr/bin/file conftest.$ac_objext` in
7615 case `$FILECMD conftest.$ac_objext` in
74917616 *32-bit*)
74927617 LD="${LD-ld} -32"
74937618 ;;
75137638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75147639 test $ac_status = 0; }; then
75157640 emul=elf
7516 case `/usr/bin/file conftest.$ac_objext` in
7641 case `$FILECMD conftest.$ac_objext` in
75177642 *32-bit*)
75187643 emul="${emul}32"
75197644 ;;
75217646 emul="${emul}64"
75227647 ;;
75237648 esac
7524 case `/usr/bin/file conftest.$ac_objext` in
7649 case `$FILECMD conftest.$ac_objext` in
75257650 *MSB*)
75267651 emul="${emul}btsmip"
75277652 ;;
75297654 emul="${emul}ltsmip"
75307655 ;;
75317656 esac
7532 case `/usr/bin/file conftest.$ac_objext` in
7657 case `$FILECMD conftest.$ac_objext` in
75337658 *N32*)
75347659 emul="${emul}n32"
75357660 ;;
75537678 ac_status=$?
75547679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75557680 test $ac_status = 0; }; then
7556 case `/usr/bin/file conftest.o` in
7681 case `$FILECMD conftest.o` in
75577682 *32-bit*)
75587683 case $host in
75597684 x86_64-*kfreebsd*-gnu)
75607685 LD="${LD-ld} -m elf_i386_fbsd"
75617686 ;;
75627687 x86_64-*linux*)
7563 case `/usr/bin/file conftest.o` in
7688 case `$FILECMD conftest.o` in
75647689 *x86-64*)
75657690 LD="${LD-ld} -m elf32_x86_64"
75667691 ;;
76687793 ac_status=$?
76697794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76707795 test $ac_status = 0; }; then
7671 case `/usr/bin/file conftest.o` in
7796 case `$FILECMD conftest.o` in
76727797 *64-bit*)
76737798 case $lt_cv_prog_gnu_ld in
76747799 yes*)
84518576 _LT_EOF
84528577 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
84538578 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8454 echo "$AR cr libconftest.a conftest.o" >&5
8455 $AR cr libconftest.a conftest.o 2>&5
8579 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8580 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
84568581 echo "$RANLIB libconftest.a" >&5
84578582 $RANLIB libconftest.a 2>&5
84588583 cat > conftest.c << _LT_EOF
84798604 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
84808605 darwin1.*)
84818606 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8482 darwin*) # darwin 5.x on
8483 # if running on 10.5 or later, the deployment target defaults
8484 # to the OS version, if on x86, and 10.4, the deployment
8485 # target defaults to 10.4. Don't you love it?
8486 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8487 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8488 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8489 10.[012][,.]*)
8490 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8491 10.*|11.*)
8492 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8607 darwin*)
8608 case $MACOSX_DEPLOYMENT_TARGET,$host in
8609 10.[012],*|,*powerpc*-darwin[5-8]*)
8610 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8611 *)
8612 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
84938613 esac
84948614 ;;
84958615 esac
88778997 ofile=libtool
88788998 can_build_shared=yes
88798999
8880 # All known linkers require a '.a' archive for static linking (except MSVC,
8881 # which needs '.lib').
9000 # All known linkers require a '.a' archive for static linking (except MSVC and
9001 # ICC, which need '.lib').
88829002 libext=a
88839003
88849004 with_gnu_ld=$lt_cv_prog_gnu_ld
93929512 lt_prog_compiler_static='-qstaticlink'
93939513 ;;
93949514 *)
9395 case `$CC -V 2>&1 | sed 5q` in
9515 case `$CC -V 2>&1 | $SED 5q` in
93969516 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
93979517 # Sun Fortran 8.3 passes all unrecognized flags to the linker
93989518 lt_prog_compiler_pic='-KPIC'
98159935
98169936 case $host_os in
98179937 cygwin* | mingw* | pw32* | cegcc*)
9818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9938 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
98199939 # When not using gcc, we currently assume that we are using
9820 # Microsoft Visual C++.
9940 # Microsoft Visual C++ or Intel C++ Compiler.
98219941 if test yes != "$GCC"; then
98229942 with_gnu_ld=no
98239943 fi
98249944 ;;
98259945 interix*)
9826 # we just hope/assume this is gcc and not c89 (= MSVC++)
9946 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
98279947 with_gnu_ld=yes
98289948 ;;
98299949 openbsd* | bitrig*)
98789998 whole_archive_flag_spec=
98799999 fi
988010000 supports_anon_versioning=no
9881 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10001 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
988210002 *GNU\ gold*) supports_anon_versioning=yes ;;
988310003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
988410004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
999010110 emximp -o $lib $output_objdir/$libname.def'
999110111 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
999210112 enable_shared_with_static_runtimes=yes
10113 file_list_spec='@'
999310114 ;;
999410115
999510116 interix[3-9]*)
1000410125 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1000510126 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1000610127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10007 archive_expsym_cmds='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'
10128 archive_expsym_cmds='$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'
1000810129 ;;
1000910130
1001010131 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1004710168 compiler_needs_object=yes
1004810169 ;;
1004910170 esac
10050 case `$CC -V 2>&1 | sed 5q` in
10171 case `$CC -V 2>&1 | $SED 5q` in
1005110172 *Sun\ C*) # Sun C 5.9
1005210173 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1005310174 compiler_needs_object=yes
1005910180
1006010181 if test yes = "$supports_anon_versioning"; then
1006110182 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10183 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1006310184 echo "local: *; };" >> $output_objdir/$libname.ver~
1006410185 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1006510186 fi
1006610187
1006710188 case $cc_basename in
1006810189 tcc*)
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1006910191 export_dynamic_flag_spec='-rdynamic'
1007010192 ;;
1007110193 xlf* | bgf* | bgxlf* | mpixlf*)
1007510197 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1007610198 if test yes = "$supports_anon_versioning"; then
1007710199 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10200 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1007910201 echo "local: *; };" >> $output_objdir/$libname.ver~
1008010202 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1008110203 fi
1020710329 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1020810330 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1020910331 else
10210 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10332 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1021110333 fi
1021210334 aix_use_runtimelinking=no
1021310335
1047810600
1047910601 cygwin* | mingw* | pw32* | cegcc*)
1048010602 # When not using gcc, we currently assume that we are using
10481 # Microsoft Visual C++.
10603 # Microsoft Visual C++ or Intel C++ Compiler.
1048210604 # hardcode_libdir_flag_spec is actually meaningless, as there is
1048310605 # no search path for DLLs.
1048410606 case $cc_basename in
10485 cl*)
10486 # Native MSVC
10607 cl* | icl*)
10608 # Native MSVC or ICC
1048710609 hardcode_libdir_flag_spec=' '
1048810610 allow_undefined_flag=unsupported
1048910611 always_export_symbols=yes
1052410646 fi'
1052510647 ;;
1052610648 *)
10527 # Assume MSVC wrapper
10649 # Assume MSVC and ICC wrapper
1052810650 hardcode_libdir_flag_spec=' '
1052910651 allow_undefined_flag=unsupported
1053010652 # Tell ltmain to make .lib files, not .a files.
1056510687 output_verbose_link_cmd=func_echo_all
1056610688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1056710689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10568 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10569 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10690 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10691 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1057010692
1057110693 else
1057210694 ld_shlibs=no
1060010722 ;;
1060110723
1060210724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10603 freebsd* | dragonfly*)
10725 freebsd* | dragonfly* | midnightbsd*)
1060410726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1060510727 hardcode_libdir_flag_spec='-R$libdir'
1060610728 hardcode_direct=yes
1078110903 # Fabrice Bellard et al's Tiny C Compiler
1078210904 ld_shlibs=yes
1078310905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1078410907 ;;
1078510908 esac
1078610909 ;;
1085210975 emximp -o $lib $output_objdir/$libname.def'
1085310976 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1085410977 enable_shared_with_static_runtimes=yes
10978 file_list_spec='@'
1085510979 ;;
1085610980
1085710981 osf3*)
1154411668 case $host_os in
1154511669 cygwin*)
1154611670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11547 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11671 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1154811672
1154911673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1155011674 ;;
1155411678 ;;
1155511679 pw32*)
1155611680 # pw32 DLLs use 'pw' prefix rather than 'lib'
11557 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11681 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1155811682 ;;
1155911683 esac
1156011684 dynamic_linker='Win32 ld.exe'
1156111685 ;;
1156211686
11563 *,cl*)
11564 # Native MSVC
11687 *,cl* | *,icl*)
11688 # Native MSVC or ICC
1156511689 libname_spec='$name'
1156611690 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1156711691 library_names_spec='$libname.dll.lib'
1158011704 done
1158111705 IFS=$lt_save_ifs
1158211706 # Convert to MSYS style.
11583 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1158411708 ;;
1158511709 cygwin*)
1158611710 # Convert to unix form, then to dos form, then back to unix form
1161711741 ;;
1161811742
1161911743 *)
11620 # Assume MSVC wrapper
11744 # Assume MSVC and ICC wrapper
1162111745 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1162211746 dynamic_linker='Win32 ld.exe'
1162311747 ;;
1165011774 shlibpath_var=LD_LIBRARY_PATH
1165111775 ;;
1165211776
11653 freebsd* | dragonfly*)
11777 freebsd* | dragonfly* | midnightbsd*)
1165411778 # DragonFly does not have aout. When/if they implement a new
1165511779 # versioning mechanism, adjust this.
1165611780 if test -x /usr/bin/objformat; then
1281512939 old_striplib=
1281612940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1281712941 printf %s "checking whether stripping libraries is possible... " >&6; }
12818 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942 if test -z "$STRIP"; then
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 printf "%s\n" "no" >&6; }
12945 else
12946 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12947 old_striplib="$STRIP --strip-debug"
12948 striplib="$STRIP --strip-unneeded"
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1282212950 printf "%s\n" "yes" >&6; }
12823 else
12824 # FIXME - insert some real tests, host_os isn't really good enough
12825 case $host_os in
12826 darwin*)
12827 if test -n "$STRIP"; then
12951 else
12952 case $host_os in
12953 darwin*)
12954 # FIXME - insert some real tests, host_os isn't really good enough
1282812955 striplib="$STRIP -x"
1282912956 old_striplib="$STRIP -S"
1283012957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1283112958 printf "%s\n" "yes" >&6; }
12832 else
12959 ;;
12960 freebsd*)
12961 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12962 old_striplib="$STRIP --strip-debug"
12963 striplib="$STRIP --strip-unneeded"
12964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12965 printf "%s\n" "yes" >&6; }
12966 else
12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 printf "%s\n" "no" >&6; }
12969 fi
12970 ;;
12971 *)
1283312972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1283412973 printf "%s\n" "no" >&6; }
12835 fi
12836 ;;
12837 *)
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 printf "%s\n" "no" >&6; }
12840 ;;
12841 esac
12974 ;;
12975 esac
12976 fi
1284212977 fi
1284312978
1284412979
1520015335
1520115336 cygwin* | mingw* | pw32* | cegcc*)
1520215337 case $GXX,$cc_basename in
15203 ,cl* | no,cl*)
15204 # Native MSVC
15338 ,cl* | no,cl* | ,icl* | no,icl*)
15339 # Native MSVC or ICC
1520515340 # hardcode_libdir_flag_spec is actually meaningless, as there is
1520615341 # no search path for DLLs.
1520715342 hardcode_libdir_flag_spec_CXX=' '
1529215427 output_verbose_link_cmd=func_echo_all
1529315428 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1529415429 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15295 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15296 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15430 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15431 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1529715432 if test yes != "$lt_cv_apple_cc_single_mod"; then
1529815433 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15299 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15434 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1530015435 fi
1530115436
1530215437 else
1533115466 emximp -o $lib $output_objdir/$libname.def'
1533215467 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1533315468 enable_shared_with_static_runtimes_CXX=yes
15469 file_list_spec_CXX='@'
1533415470 ;;
1533515471
1533615472 dgux*)
1536115497 archive_cmds_need_lc_CXX=no
1536215498 ;;
1536315499
15364 freebsd* | dragonfly*)
15500 freebsd* | dragonfly* | midnightbsd*)
1536515501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1536615502 # conventions
1536715503 ld_shlibs_CXX=yes
1549815634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1549915635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1550015636 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15501 archive_expsym_cmds_CXX='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'
15637 archive_expsym_cmds_CXX='$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'
1550215638 ;;
1550315639 irix5* | irix6*)
1550415640 case $cc_basename in
1563815774 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1563915775 if test yes = "$supports_anon_versioning"; then
1564015776 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15777 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1564215778 echo "local: *; };" >> $output_objdir/$libname.ver~
1564315779 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1564415780 fi
1564515781 ;;
1564615782 *)
15647 case `$CC -V 2>&1 | sed 5q` in
15783 case `$CC -V 2>&1 | $SED 5q` in
1564815784 *Sun\ C*)
1564915785 # Sun C++ 5.9
1565015786 no_undefined_flag_CXX=' -zdefs'
1630116437 ;;
1630216438 esac
1630316439 ;;
16304 freebsd* | dragonfly*)
16440 freebsd* | dragonfly* | midnightbsd*)
1630516441 # FreeBSD uses GNU C++
1630616442 ;;
1630716443 hpux9* | hpux10* | hpux11*)
1638416520 lt_prog_compiler_static_CXX='-qstaticlink'
1638516521 ;;
1638616522 *)
16387 case `$CC -V 2>&1 | sed 5q` in
16523 case `$CC -V 2>&1 | $SED 5q` in
1638816524 *Sun\ C*)
1638916525 # Sun C++ 5.9
1639016526 lt_prog_compiler_pic_CXX='-KPIC'
1677116907 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1677216908 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1677316909 else
16774 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16910 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1677516911 fi
1677616912 ;;
1677716913 pw32*)
1677916915 ;;
1678016916 cygwin* | mingw* | cegcc*)
1678116917 case $cc_basename in
16782 cl*)
16918 cl* | icl*)
1678316919 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1678416920 ;;
1678516921 *)
1713017266 case $host_os in
1713117267 cygwin*)
1713217268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17133 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17269 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1713417270
1713517271 ;;
1713617272 mingw* | cegcc*)
1713917275 ;;
1714017276 pw32*)
1714117277 # pw32 DLLs use 'pw' prefix rather than 'lib'
17142 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17278 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1714317279 ;;
1714417280 esac
1714517281 dynamic_linker='Win32 ld.exe'
1714617282 ;;
1714717283
17148 *,cl*)
17149 # Native MSVC
17284 *,cl* | *,icl*)
17285 # Native MSVC or ICC
1715017286 libname_spec='$name'
1715117287 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1715217288 library_names_spec='$libname.dll.lib'
1716517301 done
1716617302 IFS=$lt_save_ifs
1716717303 # Convert to MSYS style.
17168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1716917305 ;;
1717017306 cygwin*)
1717117307 # Convert to unix form, then to dos form, then back to unix form
1720217338 ;;
1720317339
1720417340 *)
17205 # Assume MSVC wrapper
17341 # Assume MSVC and ICC wrapper
1720617342 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1720717343 dynamic_linker='Win32 ld.exe'
1720817344 ;;
1723417370 shlibpath_var=LD_LIBRARY_PATH
1723517371 ;;
1723617372
17237 freebsd* | dragonfly*)
17373 freebsd* | dragonfly* | midnightbsd*)
1723817374 # DragonFly does not have aout. When/if they implement a new
1723917375 # versioning mechanism, adjust this.
1724017376 if test -x /usr/bin/objformat; then
1958319719 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1958419720 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1958519721 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19722 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1958619723 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1958719724 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1958819725 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1959119728 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1959219729 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1959319730 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19731 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1959419732 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1959519733 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1959619734 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1976519903 lt_SP2NL \
1976619904 lt_NL2SP \
1976719905 reload_flag \
19906 FILECMD \
1976819907 OBJDUMP \
1976919908 deplibs_check_method \
1977019909 file_magic_cmd \
1977319912 DLLTOOL \
1977419913 sharedlib_from_linklib_cmd \
1977519914 AR \
19776 AR_FLAGS \
1977719915 archiver_list_spec \
1977819916 STRIP \
1977919917 RANLIB \
2076720905 # convert \$build files to toolchain format.
2076820906 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
2076920907
20908 # A file(cmd) program that detects file types.
20909 FILECMD=$lt_FILECMD
20910
2077020911 # An object symbol dumper.
2077120912 OBJDUMP=$lt_OBJDUMP
2077220913
2079120932 # The archiver.
2079220933 AR=$lt_AR
2079320934
20935 # Flags to create an archive (by configure).
20936 lt_ar_flags=$lt_ar_flags
20937
2079420938 # Flags to create an archive.
20795 AR_FLAGS=$lt_AR_FLAGS
20939 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
2079620940
2079720941 # How to feed a file listing to the archiver.
2079820942 archiver_list_spec=$lt_archiver_list_spec
2118221326 # if finds mixed CR/LF and LF-only lines. Since sed operates in
2118321327 # text mode, it properly converts lines to CR/LF. This bash problem
2118421328 # is reportedly fixed, but why not run on old versions too?
21185 sed '$q' "$ltmain" >> "$cfgfile" \
21329 $SED '$q' "$ltmain" >> "$cfgfile" \
2118621330 || (rm -f "$cfgfile"; exit 1)
2118721331
2118821332 mv -f "$cfgfile" "$ofile" ||
234234 ETAGS = @ETAGS@
235235 EXEEXT = @EXEEXT@
236236 FGREP = @FGREP@
237 FILECMD = @FILECMD@
237238 GREP = @GREP@
238239 GTK_CONFIG = @GTK_CONFIG@
239240 INSTALL = @INSTALL@
352352 ETAGS = @ETAGS@
353353 EXEEXT = @EXEEXT@
354354 FGREP = @FGREP@
355 FILECMD = @FILECMD@
355356 GREP = @GREP@
356357 GTK_CONFIG = @GTK_CONFIG@
357358 INSTALL = @INSTALL@
0 #! /bin/sh
0 #! /usr/bin/env sh
11 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
2 ## by inline-source v2019-02-19.15
3
4 # libtool (GNU libtool) 2.4.7
55 # Provide generalized library-building support services.
66 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
99 # This is free software; see the source for copying conditions. There is NO
1010 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-15"
34 package_revision=2.4.6
33 VERSION="2.4.7 Debian-2.4.7-4"
34 package_revision=2.4.7
3535
3636
3737 ## ------ ##
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
66 scriptversion=2019-02-19.15; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
7070
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
71 # This is free software. There is NO warranty; not even for
72 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73 #
74 # Copyright (C) 2004-2019, 2021 Bootstrap Authors
75 #
76 # This file is dual licensed under the terms of the MIT license
77 # <https://opensource.org/license/MIT>, and GPL version 2 or later
78 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
79 # these licenses when using or redistributing this software or any of
80 # the files within it. See the URLs above, or the file `LICENSE`
81 # included in the Bootstrap distribution for the full license texts.
82
83 # Please report bugs or propose patches to:
84 # <https://github.com/gnulib-modules/bootstrap/issues>
9485
9586
9687 ## ------ ##
138129 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139130 fi"
140131 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those
133 # in case the environment reset is needed later and the $save_* variant is not
134 # defined (see the code above).
135 LC_ALL=C
136 LANGUAGE=C
137 export LANGUAGE LC_ALL
144138
145139 # Make sure IFS has a sensible default
146140 sp=' '
157151 }
158152 fi
159153
154
155 # func_unset VAR
156 # --------------
157 # Portably unset VAR.
158 # In some shells, an 'unset VAR' statement leaves a non-zero return
159 # status if VAR is already unset, which might be problematic if the
160 # statement is used at the end of a function (thus poisoning its return
161 # value) or when 'set -e' is active (causing even a spurious abort of
162 # the script in this case).
163 func_unset ()
164 {
165 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
166 }
167
168
169 # Make sure CDPATH doesn't cause `cd` commands to output the target dir.
170 func_unset CDPATH
171
172 # Make sure ${,E,F}GREP behave sanely.
173 func_unset GREP_OPTIONS
160174
161175
162176 ## ------------------------- ##
258272 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259273 }
260274
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
275 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
262276 rm -f conftest.sed
263277 SED=$func_path_progs_result
264278 }
294308 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295309 }
296310
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
311 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
298312 GREP=$func_path_progs_result
299313 }
300314
358372 s/^$_G_bs2$_G_dollar/$_G_bs&/
359373 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360374 s/\n//g"
375
376 # require_check_ifs_backslash
377 # ---------------------------
378 # Check if we can use backslash as IFS='\' separator, and set
379 # $check_ifs_backshlash_broken to ':' or 'false'.
380 require_check_ifs_backslash=func_require_check_ifs_backslash
381 func_require_check_ifs_backslash ()
382 {
383 _G_save_IFS=$IFS
384 IFS='\'
385 _G_check_ifs_backshlash='a\\b'
386 for _G_i in $_G_check_ifs_backshlash
387 do
388 case $_G_i in
389 a)
390 check_ifs_backshlash_broken=false
391 ;;
392 '')
393 break
394 ;;
395 *)
396 check_ifs_backshlash_broken=:
397 break
398 ;;
399 esac
400 done
401 IFS=$_G_save_IFS
402 require_check_ifs_backslash=:
403 }
361404
362405
363406 ## ----------------- ##
579622 {
580623 $debug_cmd
581624
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
625 func_quote_arg pretty "$2"
626 eval "$1+=\\ \$func_quote_arg_result"
584627 }'
585628 else
586629 func_append_quoted ()
587630 {
588631 $debug_cmd
589632
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
633 func_quote_arg pretty "$2"
634 eval "$1=\$$1\\ \$func_quote_arg_result"
592635 }
593636 fi
594637
10901133 }
10911134
10921135
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1136 # func_quote_portable EVAL ARG
1137 # ----------------------------
1138 # Internal function to portably implement func_quote_arg. Note that we still
1139 # keep attention to performance here so we as much as possible try to avoid
1140 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1141 func_quote_portable ()
11031142 {
11041143 $debug_cmd
11051144
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1145 $require_check_ifs_backslash
1146
1147 func_quote_portable_result=$2
1148
1149 # one-time-loop (easy break)
1150 while true
1151 do
1152 if $1; then
1153 func_quote_portable_result=`$ECHO "$2" | $SED \
1154 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1155 break
1156 fi
1157
1158 # Quote for eval.
1159 case $func_quote_portable_result in
1160 *[\\\`\"\$]*)
1161 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string
1162 # contains the shell wildcard characters.
1163 case $check_ifs_backshlash_broken$func_quote_portable_result in
1164 :*|*[\[\*\?]*)
1165 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1166 | $SED "$sed_quote_subst"`
1167 break
1168 ;;
1169 esac
1170
1171 func_quote_portable_old_IFS=$IFS
1172 for _G_char in '\' '`' '"' '$'
1173 do
1174 # STATE($1) PREV($2) SEPARATOR($3)
1175 set start "" ""
1176 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1177 IFS=$_G_char
1178 for _G_part in $func_quote_portable_result
1179 do
1180 case $1 in
1181 quote)
1182 func_append func_quote_portable_result "$3$2"
1183 set quote "$_G_part" "\\$_G_char"
1184 ;;
1185 start)
1186 set first "" ""
1187 func_quote_portable_result=
1188 ;;
1189 first)
1190 set quote "$_G_part" ""
1191 ;;
1192 esac
1193 done
1194 done
1195 IFS=$func_quote_portable_old_IFS
1196 ;;
1197 *) ;;
1198 esac
1199 break
1200 done
1201
1202 func_quote_portable_unquoted_result=$func_quote_portable_result
1203 case $func_quote_portable_result in
1204 # double-quote args containing shell metacharacters to delay
1205 # word splitting, command substitution and variable expansion
1206 # for a subsequent eval.
1207 # many bourne shells cannot handle close brackets correctly
1208 # in scan sets, so we specify it separately.
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 func_quote_portable_result=\"$func_quote_portable_result\"
1211 ;;
1212 esac
1213 }
1214
1215
1216 # func_quotefast_eval ARG
1217 # -----------------------
1218 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1219 # but optimized for speed. Result is stored in $func_quotefast_eval.
1220 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1221 printf -v _GL_test_printf_tilde %q '~'
1222 if test '\~' = "$_GL_test_printf_tilde"; then
1223 func_quotefast_eval ()
1224 {
1225 printf -v func_quotefast_eval_result %q "$1"
1226 }
1227 else
1228 # Broken older Bash implementations. Make those faster too if possible.
1229 func_quotefast_eval ()
1230 {
11091231 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1232 '~'*)
1233 func_quote_portable false "$1"
1234 func_quotefast_eval_result=$func_quote_portable_result
11291235 ;;
11301236 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1237 printf -v func_quotefast_eval_result %q "$1"
1238 ;;
11331239 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1240 }
1241 fi
1242 else
1243 func_quotefast_eval ()
1244 {
1245 func_quote_portable false "$1"
1246 func_quotefast_eval_result=$func_quote_portable_result
1247 }
1248 fi
1249
1250
1251 # func_quote_arg MODEs ARG
1252 # ------------------------
1253 # Quote one ARG to be evaled later. MODEs argument may contain zero or more
1254 # specifiers listed below separated by ',' character. This function returns two
1255 # values:
1256 # i) func_quote_arg_result
1257 # double-quoted (when needed), suitable for a subsequent eval
1258 # ii) func_quote_arg_unquoted_result
1259 # has all characters that are still active within double
1260 # quotes backslashified. Available only if 'unquoted' is specified.
1261 #
1262 # Available modes:
1263 # ----------------
1264 # 'eval' (default)
1265 # - escape shell special characters
1266 # 'expand'
1267 # - the same as 'eval'; but do not quote variable references
1268 # 'pretty'
1269 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1270 # be used later in func_quote to get output like: 'echo "a b"' instead
1271 # of 'echo a\ b'. This is slower than default on some shells.
1272 # 'unquoted'
1273 # - produce also $func_quote_arg_unquoted_result which does not contain
1274 # wrapping double-quotes.
1275 #
1276 # Examples for 'func_quote_arg pretty,unquoted string':
1277 #
1278 # string | *_result | *_unquoted_result
1279 # ------------+-----------------------+-------------------
1280 # " | \" | \"
1281 # a b | "a b" | a b
1282 # "a b" | "\"a b\"" | \"a b\"
1283 # * | "*" | *
1284 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1285 #
1286 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1287 #
1288 # string | *_result | *_unquoted_result
1289 # --------------+---------------------+--------------------
1290 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1291 func_quote_arg ()
1292 {
1293 _G_quote_expand=false
1294 case ,$1, in
1295 *,expand,*)
1296 _G_quote_expand=:
1297 ;;
1298 esac
1299
1300 case ,$1, in
1301 *,pretty,*|*,expand,*|*,unquoted,*)
1302 func_quote_portable $_G_quote_expand "$2"
1303 func_quote_arg_result=$func_quote_portable_result
1304 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1305 ;;
1306 *)
1307 # Faster quote-for-eval for some shells.
1308 func_quotefast_eval "$2"
1309 func_quote_arg_result=$func_quotefast_eval_result
1310 ;;
1311 esac
1312 }
1313
1314
1315 # func_quote MODEs ARGs...
1316 # ------------------------
1317 # Quote all ARGs to be evaled later and join them into single command. See
1318 # func_quote_arg's description for more info.
1319 func_quote ()
1320 {
1321 $debug_cmd
1322 _G_func_quote_mode=$1 ; shift
1323 func_quote_result=
1324 while test 0 -lt $#; do
1325 func_quote_arg "$_G_func_quote_mode" "$1"
1326 if test -n "$func_quote_result"; then
1327 func_append func_quote_result " $func_quote_arg_result"
11371328 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1329 func_append func_quote_result "$func_quote_arg_result"
11391330 fi
11401331 shift
11411332 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
11721333 }
11731334
11741335
12141375 _G_cmd=$1
12151376 _G_fail_exp=${2-':'}
12161377
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1378 func_quote_arg pretty,expand "$_G_cmd"
1379 eval "func_notquiet $func_quote_arg_result"
12191380
12201381 $opt_dry_run || {
12211382 eval "$_G_cmd"
12401401 _G_fail_exp=${2-':'}
12411402
12421403 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1404 func_quote_arg expand,pretty "$_G_cmd"
1405 eval "func_echo $func_quote_arg_result"
12451406 }
12461407
12471408 $opt_dry_run || {
13681529 # End:
13691530 #! /bin/sh
13701531
1371 # Set a version string for this script.
1372 scriptversion=2015-10-07.11; # UTC
1373
13741532 # A portable, pluggable option parser for Bourne shell.
13751533 # Written by Gary V. Vaughan, 2010
13761534
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1535 # This is free software. There is NO warranty; not even for
1536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1537 #
1538 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539 #
1540 # This file is dual licensed under the terms of the MIT license
1541 # <https://opensource.org/license/MIT>, and GPL version 2 or later
1542 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1543 # these licenses when using or redistributing this software or any of
1544 # the files within it. See the URLs above, or the file `LICENSE`
1545 # included in the Bootstrap distribution for the full license texts.
1546
1547 # Please report bugs or propose patches to:
1548 # <https://github.com/gnulib-modules/bootstrap/issues>
1549
1550 # Set a version string for this script.
1551 scriptversion=2019-02-19.15; # UTC
13951552
13961553
13971554 ## ------ ##
14141571 #
14151572 # In order for the '--version' option to work, you will need to have a
14161573 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1574 # starting with '# Written by ' and ending with '# Copyright'.
14181575 #
14191576 # For '-h' and '--help' to work, you will also need a one line
14201577 # description of your script's purpose in a comment directly above the
14261583 # to display verbose messages only when your user has specified
14271584 # '--verbose'.
14281585 #
1429 # After sourcing this file, you can plug processing for additional
1586 # After sourcing this file, you can plug in processing for additional
14301587 # options by amending the variables from the 'Configuration' section
14311588 # below, and following the instructions in the 'Option parsing'
14321589 # section further down.
14751632 ## ------------------------- ##
14761633
14771634 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1635 # in the main code. A hook is just a list of function names that can be
1636 # run in order later on.
14801637
14811638 # func_hookable FUNC_NAME
14821639 # -----------------------
15091666
15101667 # func_remove_hook FUNC_NAME HOOK_FUNC
15111668 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1669 # Remove HOOK_FUNC from the list of hook functions to be called by
1670 # FUNC_NAME.
15131671 func_remove_hook ()
15141672 {
15151673 $debug_cmd
15161674
15171675 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1676 }
1677
1678
1679 # func_propagate_result FUNC_NAME_A FUNC_NAME_B
1680 # ---------------------------------------------
1681 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to
1682 # *_result variable of FUNC_NAME_B.
1683 func_propagate_result ()
1684 {
1685 $debug_cmd
1686
1687 func_propagate_result_result=:
1688 if eval "test \"\${${1}_result+set}\" = set"
1689 then
1690 eval "${2}_result=\$${1}_result"
1691 else
1692 func_propagate_result_result=false
1693 fi
15181694 }
15191695
15201696
15211697 # func_run_hooks FUNC_NAME [ARG]...
15221698 # ---------------------------------
15231699 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1700 # It's assumed that the list of hook functions contains nothing more
15251701 # than a whitespace-delimited list of legal shell function names, and
15261702 # no effort is wasted trying to catch shell meta-characters or preserve
15271703 # whitespace.
15331709
15341710 case " $hookable_fns " in
15351711 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1712 *) func_fatal_error "'$1' does not support hook functions." ;;
15371713 esac
15381714
15391715 eval _G_hook_fns=\$$1_hooks; shift
15401716
15411717 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1718 func_unset "${_G_hook}_result"
1719 eval $_G_hook '${1+"$@"}'
1720 func_propagate_result $_G_hook func_run_hooks
1721 if $func_propagate_result_result; then
1722 eval set dummy "$func_run_hooks_result"; shift
15481723 fi
15491724 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
15521725 }
15531726
15541727
15581731 ## --------------- ##
15591732
15601733 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1734 # full positional parameter list from your hook function. You may remove
1735 # or edit any options that you action, and then pass back the remaining
1736 # unprocessed options in '<hooked_function_name>_result', escaped
1737 # suitably for 'eval'.
1738 #
1739 # The '<hooked_function_name>_result' variable is automatically unset
1740 # before your hook gets called; for best performance, only set the
1741 # *_result variable when necessary (i.e. don't call the 'func_quote'
1742 # function unnecessarily because it can be an expensive operation on some
1743 # machines).
15691744 #
15701745 # Like this:
15711746 #
15771752 # usage_message=$usage_message'
15781753 # -s, --silent don'\''t print informational messages
15791754 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1755 # # No change in '$@' (ignored completely by this hook). Leave
1756 # # my_options_prep_result variable intact.
15851757 # }
15861758 # func_add_hook func_options_prep my_options_prep
15871759 #
15921764 #
15931765 # args_changed=false
15941766 #
1595 # # Note that for efficiency, we parse as many options as we can
1767 # # Note that, for efficiency, we parse as many options as we can
15961768 # # recognise in a loop before passing the remainder back to the
15971769 # # caller on the first unrecognised argument we encounter.
15981770 # while test $# -gt 0; do
16091781 # args_changed=:
16101782 # ;;
16111783 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1784 # # is added back to "$@" in case we need it later,
1785 # # if $args_changed was set to 'true'.
16141786 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
16151787 # esac
16161788 # done
16171789 #
1790 # # Only call 'func_quote' here if we processed at least one argument.
16181791 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1792 # func_quote eval ${1+"$@"}
1793 # my_silent_option_result=$func_quote_result
16211794 # fi
1622 #
1623 # $args_changed
16241795 # }
16251796 # func_add_hook func_parse_options my_silent_option
16261797 #
16311802 #
16321803 # $opt_silent && $opt_verbose && func_fatal_help "\
16331804 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
16361805 # }
16371806 # func_add_hook func_validate_options my_option_validation
16381807 #
16481817 {
16491818 $debug_cmd
16501819
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1820 func_run_hooks func_options ${1+"$@"}
1821 func_propagate_result func_run_hooks func_options_finish
16581822 }
16591823
16601824
16671831 {
16681832 $debug_cmd
16691833
1670 _G_rc_options=false
1834 _G_options_quoted=false
16711835
16721836 for my_func in options_prep parse_options validate_options options_finish
16731837 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1838 func_unset func_${my_func}_result
1839 func_unset func_run_hooks_result
1840 eval func_$my_func '${1+"$@"}'
1841 func_propagate_result func_$my_func func_options
1842 if $func_propagate_result_result; then
1843 eval set dummy "$func_options_result"; shift
1844 _G_options_quoted=:
16781845 fi
16791846 done
16801847
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1848 $_G_options_quoted || {
1849 # As we (func_options) are top-level options-parser function and
1850 # nobody quoted "$@" for us yet, we need to do it explicitly for
1851 # caller.
1852 func_quote eval ${1+"$@"}
1853 func_options_result=$func_quote_result
1854 }
16921855 }
16931856
16941857
16981861 # Note that when calling hook functions, we pass through the list of
16991862 # positional parameters. If a hook function modifies that list, and
17001863 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1864 # modified list must be put in 'func_run_hooks_result' before returning.
17031865 func_hookable func_options_prep
17041866 func_options_prep ()
17051867 {
17091871 opt_verbose=false
17101872 opt_warning_types=
17111873
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1874 func_run_hooks func_options_prep ${1+"$@"}
1875 func_propagate_result func_run_hooks func_options_prep
17201876 }
17211877
17221878
17281884 {
17291885 $debug_cmd
17301886
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1887 _G_parse_options_requote=false
17341888 # this just eases exit handling
17351889 while test $# -gt 0; do
17361890 # Defer to hook functions for initial option parsing, so they
17371891 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1892 func_run_hooks func_parse_options ${1+"$@"}
1893 func_propagate_result func_run_hooks func_parse_options
1894 if $func_propagate_result_result; then
1895 eval set dummy "$func_parse_options_result"; shift
1896 # Even though we may have changed "$@", we passed the "$@" array
1897 # down into the hook and it quoted it for us (because we are in
1898 # this if-branch). No need to quote it again.
1899 _G_parse_options_requote=false
17411900 fi
17421901
17431902 # Break out of the loop if we already parsed every option.
17441903 test $# -gt 0 || break
17451904
1905 # We expect that one of the options parsed in this function matches
1906 # and thus we remove _G_opt from "$@" and need to re-quote.
17461907 _G_match_parse_options=:
17471908 _G_opt=$1
17481909 shift
17491910 case $_G_opt in
17501911 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1912 func_echo "enabling shell trace mode" >&2
17521913 $debug_cmd
17531914 ;;
17541915
17591920
17601921 --warnings|--warning|-W)
17611922 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1923 _G_parse_options_requote=:
17631924 break
17641925 fi
17651926 case " $warning_categories $1" in
18141975 shift
18151976 ;;
18161977
1817 --) _G_rc_parse_options=: ; break ;;
1978 --) _G_parse_options_requote=: ; break ;;
18181979 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
18191980 *) set dummy "$_G_opt" ${1+"$@"}; shift
18201981 _G_match_parse_options=false
18221983 ;;
18231984 esac
18241985
1825 $_G_match_parse_options && _G_rc_parse_options=:
1986 if $_G_match_parse_options; then
1987 _G_parse_options_requote=:
1988 fi
18261989 done
18271990
1828
1829 if $_G_rc_parse_options; then
1991 if $_G_parse_options_requote; then
18301992 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1993 func_quote eval ${1+"$@"}
1994 func_parse_options_result=$func_quote_result
18331995 fi
1834
1835 $_G_rc_parse_options
18361996 }
18371997
18381998
18452005 {
18462006 $debug_cmd
18472007
1848 _G_rc_validate_options=false
1849
18502008 # Display all warnings if -W was not given.
18512009 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
18522010
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
2011 func_run_hooks func_validate_options ${1+"$@"}
2012 func_propagate_result func_run_hooks func_validate_options
18582013
18592014 # Bail if the options were screwed!
18602015 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
18632016 }
18642017
18652018
19152068
19162069 # func_split_equals STRING
19172070 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
2071 # Set func_split_equals_lhs and func_split_equals_rhs shell variables
2072 # after splitting STRING at the '=' sign.
19202073 test -z "$_G_HAVE_XSI_OPS" \
19212074 && (eval 'x=a/b/c;
19222075 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
19312084
19322085 func_split_equals_lhs=${1%%=*}
19332086 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
2087 if test "x$func_split_equals_lhs" = "x$1"; then
2088 func_split_equals_rhs=
2089 fi
19362090 }'
19372091 else
19382092 # ...otherwise fall back to using expr, which is often a shell builtin.
19422096
19432097 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
19442098 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
2099 test "x$func_split_equals_lhs=" = "x$1" \
19462100 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
19472101 }
19482102 fi #func_split_equals
19682122 {
19692123 $debug_cmd
19702124
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2125 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
19722126 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
19732127 }
19742128 fi #func_split_short_opt
20102164 # func_version
20112165 # ------------
20122166 # Echo version message to standard output and exit.
2167 # The version message is extracted from the calling file's header
2168 # comments, with leading '# ' stripped:
2169 # 1. First display the progname and version
2170 # 2. Followed by the header comment line matching /^# Written by /
2171 # 3. Then a blank line followed by the first following line matching
2172 # /^# Copyright /
2173 # 4. Immediately followed by any lines between the previous matches,
2174 # except lines preceding the intervening completely blank line.
2175 # For example, see the header comments of this file.
20132176 func_version ()
20142177 {
20152178 $debug_cmd
20162179
20172180 printf '%s\n' "$progname $scriptversion"
20182181 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2182 /^# Written by /!b
2183 s|^# ||; p; n
2184
2185 :fwd2blnk
2186 /./ {
2187 n
2188 b fwd2blnk
20252189 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2190 p; n
2191
2192 :holdwrnt
2193 s|^# ||
2194 s|^# *$||
2195 /^Copyright /!{
2196 /./H
2197 n
2198 b holdwrnt
20322199 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2200
2201 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2202 G
2203 s|\(\n\)\n*|\1|g
2204 p; q' < "$progpath"
20382205
20392206 exit $?
20402207 }
20442211 # mode: shell-script
20452212 # sh-indentation: 2
20462213 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
20482215 # time-stamp-time-zone: "UTC"
20492216 # End:
20502217
20512218 # Set a version string.
2052 scriptversion='(GNU libtool) 2.4.6'
2219 scriptversion='(GNU libtool) 2.4.7'
20532220
20542221
20552222 # func_echo ARG...
21402307 compiler: $LTCC
21412308 compiler flags: $LTCFLAGS
21422309 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-15
2310 version: $progname $scriptversion Debian-2.4.7-4
21442311 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
21452312 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
21462313
21962363 # a configuration failure hint, and exit.
21972364 func_fatal_configuration ()
21982365 {
2199 func__fatal_error ${1+"$@"} \
2366 func_fatal_error ${1+"$@"} \
22002367 "See the $PACKAGE documentation for more information." \
22012368 "Fatal configuration error."
22022369 }
23412508
23422509 nonopt=
23432510 preserve_args=
2511
2512 _G_rc_lt_options_prep=:
23442513
23452514 _G_rc_lt_options_prep=:
23462515
23742543
23752544 if $_G_rc_lt_options_prep; then
23762545 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
2546 func_quote eval ${1+"$@"}
2547 libtool_options_prep_result=$func_quote_result
23792548 fi
2380
2381 $_G_rc_lt_options_prep
23822549 }
23832550 func_add_hook func_options_prep libtool_options_prep
23842551
24812648
24822649 if $_G_rc_lt_parse_options; then
24832650 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
2651 func_quote eval ${1+"$@"}
2652 libtool_parse_options_result=$func_quote_result
24862653 fi
2487
2488 $_G_rc_lt_parse_options
24892654 }
24902655 func_add_hook func_parse_options libtool_parse_options
24912656
25422707 }
25432708
25442709 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2710 func_quote eval ${1+"$@"}
2711 libtool_validate_options_result=$func_quote_result
25472712 }
25482713 func_add_hook func_validate_options libtool_validate_options
25492714
35093674 esac
35103675 done
35113676
3512 func_quote_for_eval "$libobj"
3513 test "X$libobj" != "X$func_quote_for_eval_result" \
3677 func_quote_arg pretty "$libobj"
3678 test "X$libobj" != "X$func_quote_arg_result" \
35143679 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
35153680 && func_warning "libobj name '$libobj' may not contain shell special characters."
35163681 func_dirname_and_basename "$obj" "/" ""
35833748
35843749 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
35853750 srcfile=$func_to_tool_file_result
3586 func_quote_for_eval "$srcfile"
3587 qsrcfile=$func_quote_for_eval_result
3751 func_quote_arg pretty "$srcfile"
3752 qsrcfile=$func_quote_arg_result
35883753
35893754 # Only build a PIC object if we are building libtool libraries.
35903755 if test yes = "$build_libtool_libs"; then
37393904 -prefer-non-pic try to build non-PIC objects only
37403905 -shared do not build a '.o' file suitable for static linking
37413906 -static only build a '.o' file suitable for static linking
3742 -Wc,FLAG pass FLAG directly to the compiler
3907 -Wc,FLAG
3908 -Xcompiler FLAG pass FLAG directly to the compiler
37433909
37443910 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
37453911 from the given SOURCEFILE.
38454011 -weak LIBNAME declare that the target provides the LIBNAME interface
38464012 -Wc,FLAG
38474013 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4014 -Wa,FLAG
4015 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
38484016 -Wl,FLAG
38494017 -Xlinker FLAG pass linker-specific FLAG directly to the linker
38504018 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
41874355 case $nonopt in *shtool*) :;; *) false;; esac
41884356 then
41894357 # Aesthetically quote it.
4190 func_quote_for_eval "$nonopt"
4191 install_prog="$func_quote_for_eval_result "
4358 func_quote_arg pretty "$nonopt"
4359 install_prog="$func_quote_arg_result "
41924360 arg=$1
41934361 shift
41944362 else
41984366
41994367 # The real first argument should be the name of the installation program.
42004368 # Aesthetically quote it.
4201 func_quote_for_eval "$arg"
4202 func_append install_prog "$func_quote_for_eval_result"
4369 func_quote_arg pretty "$arg"
4370 func_append install_prog "$func_quote_arg_result"
42034371 install_shared_prog=$install_prog
42044372 case " $install_prog " in
42054373 *[\\\ /]cp\ *) install_cp=: ;;
42564424 esac
42574425
42584426 # Aesthetically quote the argument.
4259 func_quote_for_eval "$arg"
4260 func_append install_prog " $func_quote_for_eval_result"
4427 func_quote_arg pretty "$arg"
4428 func_append install_prog " $func_quote_arg_result"
42614429 if test -n "$arg2"; then
4262 func_quote_for_eval "$arg2"
4430 func_quote_arg pretty "$arg2"
42634431 fi
4264 func_append install_shared_prog " $func_quote_for_eval_result"
4432 func_append install_shared_prog " $func_quote_arg_result"
42654433 done
42664434
42674435 test -z "$install_prog" && \
42724440
42734441 if test -n "$install_override_mode" && $no_mode; then
42744442 if $install_cp; then :; else
4275 func_quote_for_eval "$install_override_mode"
4276 func_append install_shared_prog " -m $func_quote_for_eval_result"
4443 func_quote_arg pretty "$install_override_mode"
4444 func_append install_shared_prog " -m $func_quote_arg_result"
42774445 fi
42784446 fi
42794447
45694737 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
45704738
45714739 $opt_quiet || {
4572 func_quote_for_expand "$relink_command"
4573 eval "func_echo $func_quote_for_expand_result"
4740 func_quote_arg expand,pretty "$relink_command"
4741 eval "func_echo $func_quote_arg_result"
45744742 }
45754743 if eval "$relink_command"; then :
45764744 else
53495517 if test \"\$libtool_execute_magic\" != \"$magic\"; then
53505518 file=\"\$0\""
53515519
5352 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5520 func_quote_arg pretty "$ECHO"
5521 qECHO=$func_quote_arg_result
53535522 $ECHO "\
53545523
53555524 # A function that is used when there is no print builtin or printf.
53595528 \$1
53605529 _LTECHO_EOF'
53615530 }
5362 ECHO=\"$qECHO\"
5531 ECHO=$qECHO
53635532 fi
53645533
53655534 # Very basic option parsing. These options are (a) specific to
67026871 while test "$#" -gt 0; do
67036872 arg=$1
67046873 shift
6705 func_quote_for_eval "$arg"
6706 qarg=$func_quote_for_eval_unquoted_result
6707 func_append libtool_args " $func_quote_for_eval_result"
6874 func_quote_arg pretty,unquoted "$arg"
6875 qarg=$func_quote_arg_unquoted_result
6876 func_append libtool_args " $func_quote_arg_result"
67086877
67096878 # If the previous option needs an argument, assign it.
67106879 if test -n "$prev"; then
69407109 prev=
69417110 continue
69427111 ;;
7112 xassembler)
7113 func_append compiler_flags " -Xassembler $qarg"
7114 prev=
7115 func_append compile_command " -Xassembler $qarg"
7116 func_append finalize_command " -Xassembler $qarg"
7117 continue
7118 ;;
69437119 xcclinker)
69447120 func_append linker_flags " $qarg"
69457121 func_append compiler_flags " $qarg"
71107286 # These systems don't actually have a C library (as such)
71117287 test X-lc = "X$arg" && continue
71127288 ;;
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7289 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71147290 # Do not include libc due to us having libc/libc_r.
71157291 test X-lc = "X$arg" && continue
71167292 ;;
71307306 esac
71317307 elif test X-lc_r = "X$arg"; then
71327308 case $host in
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7309 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71347310 # Do not include libc_r directly, use -pthread flag.
71357311 continue
71367312 ;;
71607336 prev=xcompiler
71617337 continue
71627338 ;;
7163
7164 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7339 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199.
7340 -pthread)
7341 case $host in
7342 *solaris2*) ;;
7343 *)
7344 case "$new_inherited_linker_flags " in
7345 *" $arg "*) ;;
7346 * ) func_append new_inherited_linker_flags " $arg" ;;
7347 esac
7348 ;;
7349 esac
7350 continue
7351 ;;
7352 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
71657353 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
71667354 func_append compiler_flags " $arg"
71677355 func_append compile_command " $arg"
73027490 save_ifs=$IFS; IFS=,
73037491 for flag in $args; do
73047492 IFS=$save_ifs
7305 func_quote_for_eval "$flag"
7306 func_append arg " $func_quote_for_eval_result"
7307 func_append compiler_flags " $func_quote_for_eval_result"
7493 func_quote_arg pretty "$flag"
7494 func_append arg " $func_quote_arg_result"
7495 func_append compiler_flags " $func_quote_arg_result"
73087496 done
73097497 IFS=$save_ifs
73107498 func_stripname ' ' '' "$arg"
73187506 save_ifs=$IFS; IFS=,
73197507 for flag in $args; do
73207508 IFS=$save_ifs
7321 func_quote_for_eval "$flag"
7322 func_append arg " $wl$func_quote_for_eval_result"
7323 func_append compiler_flags " $wl$func_quote_for_eval_result"
7324 func_append linker_flags " $func_quote_for_eval_result"
7509 func_quote_arg pretty "$flag"
7510 func_append arg " $wl$func_quote_arg_result"
7511 func_append compiler_flags " $wl$func_quote_arg_result"
7512 func_append linker_flags " $func_quote_arg_result"
73257513 done
73267514 IFS=$save_ifs
73277515 func_stripname ' ' '' "$arg"
73287516 arg=$func_stripname_result
73297517 ;;
73307518
7519 -Xassembler)
7520 prev=xassembler
7521 continue
7522 ;;
7523
73317524 -Xcompiler)
73327525 prev=xcompiler
73337526 continue
73457538
73467539 # -msg_* for osf cc
73477540 -msg_*)
7348 func_quote_for_eval "$arg"
7349 arg=$func_quote_for_eval_result
7541 func_quote_arg pretty "$arg"
7542 arg=$func_quote_arg_result
73507543 ;;
73517544
73527545 # Flags to be passed through unchanged, with rationale:
73697562 # -fuse-ld=* Linker select flags for GCC
73707563 # -static-* direct GCC to link specific libraries statically
73717564 # -fcilkplus Cilk Plus language extension features for C/C++
7565 # -Wa,* Pass flags directly to the assembler
73727566 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
73737567 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
73747568 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
7376 func_quote_for_eval "$arg"
7377 arg=$func_quote_for_eval_result
7569 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7570 func_quote_arg pretty "$arg"
7571 arg=$func_quote_arg_result
73787572 func_append compile_command " $arg"
73797573 func_append finalize_command " $arg"
73807574 func_append compiler_flags " $arg"
73957589 continue
73967590 else
73977591 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7592 func_quote_arg pretty "$arg"
7593 arg=$func_quote_arg_result
74007594 fi
74017595 ;;
74027596
74037597 # Some other compiler flag.
74047598 -* | +*)
7405 func_quote_for_eval "$arg"
7406 arg=$func_quote_for_eval_result
7599 func_quote_arg pretty "$arg"
7600 arg=$func_quote_arg_result
74077601 ;;
74087602
74097603 *.$objext)
75237717 *)
75247718 # Unknown arguments in both finalize_command and compile_command need
75257719 # to be aesthetically quoted because they are evaled later.
7526 func_quote_for_eval "$arg"
7527 arg=$func_quote_for_eval_result
7720 func_quote_arg pretty "$arg"
7721 arg=$func_quote_arg_result
75287722 ;;
75297723 esac # arg
75307724
87328926 test CXX = "$tagname" && {
87338927 case $host_os in
87348928 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8929 case `$CC -V 2>&1 | $SED 5q` in
87368930 *Sun\ C*) # Sun C++ 5.9
87378931 func_suncc_cstd_abi
87388932
89059099 #
89069100 case $version_type in
89079101 # correct linux to gnu/linux during the next big refactor
8908 darwin|freebsd-elf|linux|osf|windows|none)
9102 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
89099103 func_arith $number_major + $number_minor
89109104 current=$func_arith_result
89119105 age=$number_minor
89999193 versuffix=.$current.$revision
90009194 ;;
90019195
9002 freebsd-elf)
9196 freebsd-elf | midnightbsd-elf)
90039197 func_arith $current - $age
90049198 major=.$func_arith_result
90059199 versuffix=$major.$age.$revision
92259419 *-*-netbsd*)
92269420 # Don't link with libc until the a.out ld.so is fixed.
92279421 ;;
9228 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9422 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
92299423 # Do not include libc due to us having libc/libc_r.
92309424 ;;
92319425 *-*-sco3.2v5* | *-*-sco5v6*)
1003610230 for cmd in $concat_cmds; do
1003710231 IFS=$save_ifs
1003810232 $opt_quiet || {
10039 func_quote_for_expand "$cmd"
10040 eval "func_echo $func_quote_for_expand_result"
10233 func_quote_arg expand,pretty "$cmd"
10234 eval "func_echo $func_quote_arg_result"
1004110235 }
1004210236 $opt_dry_run || eval "$cmd" || {
1004310237 lt_exit=$?
1013010324 eval cmd=\"$cmd\"
1013110325 IFS=$save_ifs
1013210326 $opt_quiet || {
10133 func_quote_for_expand "$cmd"
10134 eval "func_echo $func_quote_for_expand_result"
10327 func_quote_arg expand,pretty "$cmd"
10328 eval "func_echo $func_quote_arg_result"
1013510329 }
1013610330 $opt_dry_run || eval "$cmd" || {
1013710331 lt_exit=$?
1060510799 elif eval var_value=\$$var; test -z "$var_value"; then
1060610800 relink_command="$var=; export $var; $relink_command"
1060710801 else
10608 func_quote_for_eval "$var_value"
10609 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10802 func_quote_arg pretty "$var_value"
10803 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
1061010804 fi
1061110805 done
10612 relink_command="(cd `pwd`; $relink_command)"
10613 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10806 func_quote eval cd "`pwd`"
10807 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10808 relink_command=$func_quote_arg_unquoted_result
1061410809 fi
1061510810
1061610811 # Only actually do things if not in dry run mode.
1085011045 elif eval var_value=\$$var; test -z "$var_value"; then
1085111046 relink_command="$var=; export $var; $relink_command"
1085211047 else
10853 func_quote_for_eval "$var_value"
10854 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11048 func_quote_arg pretty,unquoted "$var_value"
11049 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
1085511050 fi
1085611051 done
1085711052 # Quote the link command for shipping.
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11053 func_quote eval cd "`pwd`"
11054 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11055 func_quote_arg pretty,unquoted "$relink_command"
11056 relink_command=$func_quote_arg_unquoted_result
1086011057 if test yes = "$hardcode_automatic"; then
1086111058 relink_command=
1086211059 fi
208208 ETAGS = @ETAGS@
209209 EXEEXT = @EXEEXT@
210210 FGREP = @FGREP@
211 FILECMD = @FILECMD@
211212 GREP = @GREP@
212213 GTK_CONFIG = @GTK_CONFIG@
213214 INSTALL = @INSTALL@
248248 ETAGS = @ETAGS@
249249 EXEEXT = @EXEEXT@
250250 FGREP = @FGREP@
251 FILECMD = @FILECMD@
251252 GREP = @GREP@
252253 GTK_CONFIG = @GTK_CONFIG@
253254 INSTALL = @INSTALL@
209209 ETAGS = @ETAGS@
210210 EXEEXT = @EXEEXT@
211211 FGREP = @FGREP@
212 FILECMD = @FILECMD@
212213 GREP = @GREP@
213214 GTK_CONFIG = @GTK_CONFIG@
214215 INSTALL = @INSTALL@
233233 ETAGS = @ETAGS@
234234 EXEEXT = @EXEEXT@
235235 FGREP = @FGREP@
236 FILECMD = @FILECMD@
236237 GREP = @GREP@
237238 GTK_CONFIG = @GTK_CONFIG@
238239 INSTALL = @INSTALL@