rbnacl-libsodium 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/lib/rbnacl/libsodium/version.rb +1 -1
  4. data/vendor/libsodium/ChangeLog +20 -1
  5. data/vendor/libsodium/Makefile.in +39 -27
  6. data/vendor/libsodium/README.markdown +2 -2
  7. data/vendor/libsodium/THANKS +2 -0
  8. data/vendor/libsodium/aclocal.m4 +36 -33
  9. data/vendor/libsodium/autom4te.cache/output.1 +1118 -841
  10. data/vendor/libsodium/autom4te.cache/output.4 +17517 -0
  11. data/vendor/libsodium/autom4te.cache/requests +760 -531
  12. data/vendor/libsodium/autom4te.cache/traces.1 +13 -14
  13. data/vendor/libsodium/autom4te.cache/traces.4 +2951 -0
  14. data/vendor/libsodium/build-aux/compile +1 -1
  15. data/vendor/libsodium/build-aux/config.guess +13 -160
  16. data/vendor/libsodium/build-aux/config.sub +25 -11
  17. data/vendor/libsodium/build-aux/depcomp +1 -1
  18. data/vendor/libsodium/build-aux/install-sh +170 -196
  19. data/vendor/libsodium/build-aux/ltmain.sh +3459 -2026
  20. data/vendor/libsodium/build-aux/missing +1 -1
  21. data/vendor/libsodium/build-aux/test-driver +12 -3
  22. data/vendor/libsodium/builds/msvc/version.h +2 -2
  23. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +1 -4
  24. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +3 -8
  25. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +11 -2
  26. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +11 -2
  27. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +2 -5
  28. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +3 -8
  29. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +11 -2
  30. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +11 -2
  31. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +1 -4
  32. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +3 -8
  33. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +11 -2
  34. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +11 -2
  35. data/vendor/libsodium/builds/msvc/vs2015/libsodium.import.props +52 -0
  36. data/vendor/libsodium/{packaging/nuget/package.xml → builds/msvc/vs2015/libsodium.import.xml} +2 -7
  37. data/vendor/libsodium/builds/msvc/vs2015/libsodium.sln +81 -0
  38. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.props +43 -0
  39. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +352 -0
  40. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +1073 -0
  41. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.xml +15 -0
  42. data/vendor/libsodium/builds/msvc/vs2015/test/test.props +43 -0
  43. data/vendor/libsodium/builds/msvc/vs2015/test/test.runner.bat +78 -0
  44. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj +241 -0
  45. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj.filters +189 -0
  46. data/vendor/libsodium/configure +1117 -840
  47. data/vendor/libsodium/configure.ac +4 -4
  48. data/vendor/libsodium/dist-build/Makefile.am +2 -2
  49. data/vendor/libsodium/dist-build/Makefile.in +19 -7
  50. data/vendor/libsodium/dist-build/android-arm.sh +3 -2
  51. data/vendor/libsodium/dist-build/android-armv7-a.sh +4 -0
  52. data/vendor/libsodium/dist-build/android-build.sh +4 -5
  53. data/vendor/libsodium/dist-build/android-mips32.sh +4 -0
  54. data/vendor/libsodium/dist-build/android-x86.sh +3 -2
  55. data/vendor/libsodium/dist-build/emscripten.sh +4 -5
  56. data/vendor/libsodium/dist-build/ios.sh +56 -25
  57. data/vendor/libsodium/dist-build/osx.sh +20 -0
  58. data/vendor/libsodium/libsodium.vcxproj +1 -0
  59. data/vendor/libsodium/libsodium.vcxproj.filters +3 -0
  60. data/vendor/libsodium/m4/libtool.m4 +1366 -1030
  61. data/vendor/libsodium/m4/ltoptions.m4 +90 -37
  62. data/vendor/libsodium/m4/ltsugar.m4 +4 -3
  63. data/vendor/libsodium/m4/ltversion.m4 +6 -6
  64. data/vendor/libsodium/m4/lt~obsolete.m4 +4 -3
  65. data/vendor/libsodium/msvc-scripts/Makefile.in +17 -5
  66. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  67. data/vendor/libsodium/packaging/nuget/package.config +1 -1
  68. data/vendor/libsodium/src/Makefile.in +17 -5
  69. data/vendor/libsodium/src/libsodium/Makefile.am +7 -2
  70. data/vendor/libsodium/src/libsodium/Makefile.in +83 -55
  71. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.c +5 -0
  72. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c +1 -1
  73. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.c +5 -0
  74. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +1 -1
  75. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.c +5 -0
  76. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c +1 -1
  77. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_seal.c +67 -0
  78. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +8 -1
  79. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.c +5 -0
  80. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.c +5 -0
  81. data/vendor/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.c +12 -6
  82. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +11 -0
  83. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +60 -25
  84. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +12 -12
  85. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c +11 -3
  86. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +1 -1
  87. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +1 -4
  88. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/api.h +1 -0
  89. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +13 -3
  90. data/vendor/libsodium/src/libsodium/include/Makefile.in +18 -6
  91. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha256.h +9 -5
  92. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h +9 -5
  93. data/vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h +6 -2
  94. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +15 -0
  95. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash.h +2 -0
  96. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +1 -1
  97. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +2 -0
  98. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha512.h +2 -0
  99. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth.h +2 -0
  100. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_xsalsa20.h +6 -0
  101. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +6 -6
  102. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +2 -2
  103. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +82 -3
  104. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +85 -33
  105. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +80 -42
  106. data/vendor/libsodium/src/libsodium/sodium/utils.c +16 -13
  107. data/vendor/libsodium/test/Makefile.am +1 -1
  108. data/vendor/libsodium/test/Makefile.in +18 -6
  109. data/vendor/libsodium/test/default/Makefile.am +9 -3
  110. data/vendor/libsodium/test/default/Makefile.in +72 -38
  111. data/vendor/libsodium/test/default/auth.c +8 -0
  112. data/vendor/libsodium/test/default/auth5.c +0 -2
  113. data/vendor/libsodium/test/default/auth7.c +0 -2
  114. data/vendor/libsodium/test/default/box8.c +0 -2
  115. data/vendor/libsodium/test/default/box_easy2.c +1 -1
  116. data/vendor/libsodium/test/default/box_seal.c +43 -0
  117. data/vendor/libsodium/test/default/box_seal.exp +4 -0
  118. data/vendor/libsodium/test/default/cmptest.h +1 -0
  119. data/vendor/libsodium/test/default/generichash2.c +1 -0
  120. data/vendor/libsodium/test/default/hash.c +2 -0
  121. data/vendor/libsodium/test/default/onetimeauth.c +1 -0
  122. data/vendor/libsodium/test/default/onetimeauth7.c +0 -2
  123. data/vendor/libsodium/test/default/pre.js.inc +0 -27
  124. data/vendor/libsodium/test/default/pwhash.c +18 -5
  125. data/vendor/libsodium/test/default/randombytes.c +44 -2
  126. data/vendor/libsodium/test/default/secretbox8.c +0 -2
  127. data/vendor/libsodium/test/default/sodium_utils2.c +5 -1
  128. data/vendor/libsodium/test/default/sodium_utils3.c +1 -1
  129. data/vendor/libsodium/test/default/stream.c +13 -1
  130. data/vendor/libsodium/test/default/stream.exp +1 -0
  131. data/vendor/libsodium/test/default/stream2.c +13 -1
  132. data/vendor/libsodium/test/default/stream2.exp +1 -0
  133. data/vendor/libsodium/test/quirks/quirks.h +26 -0
  134. metadata +23 -12
  135. data/vendor/libsodium/builds/msvc/resource.h +0 -0
  136. data/vendor/libsodium/builds/msvc/resource.rc +0 -0
  137. data/vendor/libsodium/dist-build/android-armv7.sh +0 -3
  138. data/vendor/libsodium/dist-build/android-mips.sh +0 -3
  139. data/vendor/libsodium/packaging/nuget/package.nuspec +0 -95
  140. data/vendor/libsodium/packaging/nuget/package.targets +0 -128
  141. data/vendor/libsodium/test/quirks/windows/windows-quirks.h +0 -18
@@ -1,6 +1,6 @@
1
1
  #! /bin/sh
2
2
  # Guess values for system-dependent variables and create Makefiles.
3
- # Generated by GNU Autoconf 2.69 for libsodium 1.0.2.
3
+ # Generated by GNU Autoconf 2.69 for libsodium 1.0.3.
4
4
  #
5
5
  # Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6
6
  #
@@ -590,8 +590,8 @@ MAKEFLAGS=
590
590
  # Identity of this package.
591
591
  PACKAGE_NAME='libsodium'
592
592
  PACKAGE_TARNAME='libsodium'
593
- PACKAGE_VERSION='1.0.2'
594
- PACKAGE_STRING='libsodium 1.0.2'
593
+ PACKAGE_VERSION='1.0.3'
594
+ PACKAGE_STRING='libsodium 1.0.3'
595
595
  PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596
596
  PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
597
 
@@ -798,6 +798,7 @@ enable_shared
798
798
  enable_static
799
799
  with_pic
800
800
  enable_fast_install
801
+ with_aix_soname
801
802
  with_gnu_ld
802
803
  with_sysroot
803
804
  enable_libtool_lock
@@ -1356,7 +1357,7 @@ if test "$ac_init_help" = "long"; then
1356
1357
  # Omit some internal or obsolete options to make the list less imposing.
1357
1358
  # This message is too long to be a string in the A/UX 3.1 sh.
1358
1359
  cat <<_ACEOF
1359
- \`configure' configures libsodium 1.0.2 to adapt to many kinds of systems.
1360
+ \`configure' configures libsodium 1.0.3 to adapt to many kinds of systems.
1360
1361
 
1361
1362
  Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363
 
@@ -1426,7 +1427,7 @@ fi
1426
1427
 
1427
1428
  if test -n "$ac_init_help"; then
1428
1429
  case $ac_init_help in
1429
- short | recursive ) echo "Configuration of libsodium 1.0.2:";;
1430
+ short | recursive ) echo "Configuration of libsodium 1.0.3:";;
1430
1431
  esac
1431
1432
  cat <<\_ACEOF
1432
1433
 
@@ -1467,9 +1468,12 @@ Optional Packages:
1467
1468
  --with-safecode For maintainers only - please do not use
1468
1469
  --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469
1470
  both]
1471
+ --with-aix-soname=aix|svr4|both
1472
+ shared library versioning (aka "SONAME") variant to
1473
+ provide on AIX, [default=aix].
1470
1474
  --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471
- --with-sysroot=DIR Search for dependent libraries within DIR
1472
- (or the compiler's sysroot if not specified).
1475
+ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476
+ compiler's sysroot if not specified).
1473
1477
 
1474
1478
  Some influential environment variables:
1475
1479
  SAFECODE_HOME
@@ -1554,7 +1558,7 @@ fi
1554
1558
  test -n "$ac_init_help" && exit $ac_status
1555
1559
  if $ac_init_version; then
1556
1560
  cat <<\_ACEOF
1557
- libsodium configure 1.0.2
1561
+ libsodium configure 1.0.3
1558
1562
  generated by GNU Autoconf 2.69
1559
1563
 
1560
1564
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1923,7 +1927,7 @@ cat >config.log <<_ACEOF
1923
1927
  This file contains any messages produced by compilers while
1924
1928
  running configure, to aid debugging if configure makes a mistake.
1925
1929
 
1926
- It was created by libsodium $as_me 1.0.2, which was
1930
+ It was created by libsodium $as_me 1.0.3, which was
1927
1931
  generated by GNU Autoconf 2.69. Invocation command line was
1928
1932
 
1929
1933
  $ $0 $@
@@ -2373,7 +2377,7 @@ IFS=$ac_save_IFS
2373
2377
  case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2374
2378
 
2375
2379
 
2376
- am__api_version='1.14'
2380
+ am__api_version='1.15'
2377
2381
 
2378
2382
  # Find a good install program. We prefer a C program (faster),
2379
2383
  # so one script is as good as another. But avoid the broken or
@@ -2545,8 +2549,8 @@ test "$program_suffix" != NONE &&
2545
2549
  ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546
2550
  program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547
2551
 
2548
- # expand $ac_aux_dir to an absolute path
2549
- am_aux_dir=`cd $ac_aux_dir && pwd`
2552
+ # Expand $ac_aux_dir to an absolute path.
2553
+ am_aux_dir=`cd "$ac_aux_dir" && pwd`
2550
2554
 
2551
2555
  if test x"${MISSING+set}" != xset; then
2552
2556
  case $am_aux_dir in
@@ -2565,7 +2569,7 @@ else
2565
2569
  $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2566
2570
  fi
2567
2571
 
2568
- if test x"${install_sh}" != xset; then
2572
+ if test x"${install_sh+set}" != xset; then
2569
2573
  case $am_aux_dir in
2570
2574
  *\ * | *\ *)
2571
2575
  install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
@@ -2859,7 +2863,7 @@ fi
2859
2863
 
2860
2864
  # Define the identity of the package.
2861
2865
  PACKAGE='libsodium'
2862
- VERSION='1.0.2'
2866
+ VERSION='1.0.3'
2863
2867
 
2864
2868
 
2865
2869
  cat >>confdefs.h <<_ACEOF
@@ -2893,8 +2897,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2893
2897
  # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2894
2898
  mkdir_p='$(MKDIR_P)'
2895
2899
 
2896
- # We need awk for the "check" target. The system "awk" is bad on
2897
- # some platforms.
2900
+ # We need awk for the "check" target (and possibly the TAP driver). The
2901
+ # system "awk" is bad on some platforms.
2898
2902
  # Always define AMTAR for backward compatibility. Yes, it's still used
2899
2903
  # in the wild :-( We should find a proper way to deprecate it ...
2900
2904
  AMTAR='$${TAR-tar}'
@@ -3067,6 +3071,7 @@ END
3067
3071
  as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3068
3072
  fi
3069
3073
  fi
3074
+
3070
3075
  # Check whether --enable-silent-rules was given.
3071
3076
  if test "${enable_silent_rules+set}" = set; then :
3072
3077
  enableval=$enable_silent_rules;
@@ -3154,9 +3159,9 @@ ISODATE=`date +%Y-%m-%d`
3154
3159
 
3155
3160
 
3156
3161
  SODIUM_LIBRARY_VERSION_MAJOR=7
3157
- SODIUM_LIBRARY_VERSION_MINOR=4
3162
+ SODIUM_LIBRARY_VERSION_MINOR=5
3158
3163
  DLL_VERSION=6
3159
- SODIUM_LIBRARY_VERSION=14:0:1
3164
+ SODIUM_LIBRARY_VERSION=15:0:2
3160
3165
  # | | |
3161
3166
  # +------+ | +---+
3162
3167
  # | | |
@@ -6751,8 +6756,8 @@ esac
6751
6756
 
6752
6757
 
6753
6758
 
6754
- macro_version='2.4.2'
6755
- macro_revision='1.3337'
6759
+ macro_version='2.4.4'
6760
+ macro_revision='2.4.4'
6756
6761
 
6757
6762
 
6758
6763
 
@@ -6766,7 +6771,7 @@ macro_revision='1.3337'
6766
6771
 
6767
6772
 
6768
6773
 
6769
- ltmain="$ac_aux_dir/ltmain.sh"
6774
+ ltmain=$ac_aux_dir/ltmain.sh
6770
6775
 
6771
6776
  # Backslashify metacharacters that are still active within
6772
6777
  # double-quoted strings.
@@ -6815,7 +6820,7 @@ func_echo_all ()
6815
6820
  $ECHO ""
6816
6821
  }
6817
6822
 
6818
- case "$ECHO" in
6823
+ case $ECHO in
6819
6824
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6820
6825
  $as_echo "printf" >&6; } ;;
6821
6826
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
@@ -7008,19 +7013,19 @@ test -z "$GREP" && GREP=grep
7008
7013
 
7009
7014
  # Check whether --with-gnu-ld was given.
7010
7015
  if test "${with_gnu_ld+set}" = set; then :
7011
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7016
+ withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7012
7017
  else
7013
7018
  with_gnu_ld=no
7014
7019
  fi
7015
7020
 
7016
7021
  ac_prog=ld
7017
- if test "$GCC" = yes; then
7022
+ if test yes = "$GCC"; then
7018
7023
  # Check if gcc -print-prog-name=ld gives a path.
7019
7024
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7020
7025
  $as_echo_n "checking for ld used by $CC... " >&6; }
7021
7026
  case $host in
7022
7027
  *-*-mingw*)
7023
- # gcc leaves a trailing carriage return which upsets mingw
7028
+ # gcc leaves a trailing carriage return, which upsets mingw
7024
7029
  ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7025
7030
  *)
7026
7031
  ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
@@ -7034,7 +7039,7 @@ $as_echo_n "checking for ld used by $CC... " >&6; }
7034
7039
  while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7035
7040
  ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7036
7041
  done
7037
- test -z "$LD" && LD="$ac_prog"
7042
+ test -z "$LD" && LD=$ac_prog
7038
7043
  ;;
7039
7044
  "")
7040
7045
  # If it fails, then pretend we aren't using GCC.
@@ -7045,7 +7050,7 @@ $as_echo_n "checking for ld used by $CC... " >&6; }
7045
7050
  with_gnu_ld=unknown
7046
7051
  ;;
7047
7052
  esac
7048
- elif test "$with_gnu_ld" = yes; then
7053
+ elif test yes = "$with_gnu_ld"; then
7049
7054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7050
7055
  $as_echo_n "checking for GNU ld... " >&6; }
7051
7056
  else
@@ -7056,32 +7061,32 @@ if ${lt_cv_path_LD+:} false; then :
7056
7061
  $as_echo_n "(cached) " >&6
7057
7062
  else
7058
7063
  if test -z "$LD"; then
7059
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7064
+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7060
7065
  for ac_dir in $PATH; do
7061
- IFS="$lt_save_ifs"
7066
+ IFS=$lt_save_ifs
7062
7067
  test -z "$ac_dir" && ac_dir=.
7063
7068
  if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7064
- lt_cv_path_LD="$ac_dir/$ac_prog"
7069
+ lt_cv_path_LD=$ac_dir/$ac_prog
7065
7070
  # Check to see if the program is GNU ld. I'd rather use --version,
7066
7071
  # but apparently some variants of GNU ld only accept -v.
7067
7072
  # Break only if it was the GNU/non-GNU ld that we prefer.
7068
7073
  case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7069
7074
  *GNU* | *'with BFD'*)
7070
- test "$with_gnu_ld" != no && break
7075
+ test no != "$with_gnu_ld" && break
7071
7076
  ;;
7072
7077
  *)
7073
- test "$with_gnu_ld" != yes && break
7078
+ test yes != "$with_gnu_ld" && break
7074
7079
  ;;
7075
7080
  esac
7076
7081
  fi
7077
7082
  done
7078
- IFS="$lt_save_ifs"
7083
+ IFS=$lt_save_ifs
7079
7084
  else
7080
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
7085
+ lt_cv_path_LD=$LD # Let the user override the test with a path.
7081
7086
  fi
7082
7087
  fi
7083
7088
 
7084
- LD="$lt_cv_path_LD"
7089
+ LD=$lt_cv_path_LD
7085
7090
  if test -n "$LD"; then
7086
7091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7087
7092
  $as_echo "$LD" >&6; }
@@ -7124,33 +7129,38 @@ if ${lt_cv_path_NM+:} false; then :
7124
7129
  else
7125
7130
  if test -n "$NM"; then
7126
7131
  # Let the user override the test.
7127
- lt_cv_path_NM="$NM"
7132
+ lt_cv_path_NM=$NM
7128
7133
  else
7129
- lt_nm_to_check="${ac_tool_prefix}nm"
7134
+ lt_nm_to_check=${ac_tool_prefix}nm
7130
7135
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7131
7136
  lt_nm_to_check="$lt_nm_to_check nm"
7132
7137
  fi
7133
7138
  for lt_tmp_nm in $lt_nm_to_check; do
7134
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7139
+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7135
7140
  for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7136
- IFS="$lt_save_ifs"
7141
+ IFS=$lt_save_ifs
7137
7142
  test -z "$ac_dir" && ac_dir=.
7138
- tmp_nm="$ac_dir/$lt_tmp_nm"
7139
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7143
+ tmp_nm=$ac_dir/$lt_tmp_nm
7144
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7140
7145
  # Check to see if the nm accepts a BSD-compat flag.
7141
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7146
+ # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7142
7147
  # nm: unknown option "B" ignored
7143
7148
  # Tru64's nm complains that /dev/null is an invalid object file
7144
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7145
- */dev/null* | *'Invalid file or object type'*)
7149
+ # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7150
+ case $build_os in
7151
+ mingw*) lt_bad_file=conftest.nm/nofile ;;
7152
+ *) lt_bad_file=/dev/null ;;
7153
+ esac
7154
+ case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7155
+ *$lt_bad_file* | *'Invalid file or object type'*)
7146
7156
  lt_cv_path_NM="$tmp_nm -B"
7147
- break
7157
+ break 2
7148
7158
  ;;
7149
7159
  *)
7150
7160
  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7151
7161
  */dev/null*)
7152
7162
  lt_cv_path_NM="$tmp_nm -p"
7153
- break
7163
+ break 2
7154
7164
  ;;
7155
7165
  *)
7156
7166
  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
@@ -7161,15 +7171,15 @@ else
7161
7171
  esac
7162
7172
  fi
7163
7173
  done
7164
- IFS="$lt_save_ifs"
7174
+ IFS=$lt_save_ifs
7165
7175
  done
7166
7176
  : ${lt_cv_path_NM=no}
7167
7177
  fi
7168
7178
  fi
7169
7179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7170
7180
  $as_echo "$lt_cv_path_NM" >&6; }
7171
- if test "$lt_cv_path_NM" != "no"; then
7172
- NM="$lt_cv_path_NM"
7181
+ if test no != "$lt_cv_path_NM"; then
7182
+ NM=$lt_cv_path_NM
7173
7183
  else
7174
7184
  # Didn't find any BSD compatible name lister, look for dumpbin.
7175
7185
  if test -n "$DUMPBIN"; then :
@@ -7275,9 +7285,9 @@ esac
7275
7285
  fi
7276
7286
  fi
7277
7287
 
7278
- case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7288
+ case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7279
7289
  *COFF*)
7280
- DUMPBIN="$DUMPBIN -symbols"
7290
+ DUMPBIN="$DUMPBIN -symbols -headers"
7281
7291
  ;;
7282
7292
  *)
7283
7293
  DUMPBIN=:
@@ -7285,8 +7295,8 @@ fi
7285
7295
  esac
7286
7296
  fi
7287
7297
 
7288
- if test "$DUMPBIN" != ":"; then
7289
- NM="$DUMPBIN"
7298
+ if test : != "$DUMPBIN"; then
7299
+ NM=$DUMPBIN
7290
7300
  fi
7291
7301
  fi
7292
7302
  test -z "$NM" && NM=nm
@@ -7337,7 +7347,7 @@ if ${lt_cv_sys_max_cmd_len+:} false; then :
7337
7347
  $as_echo_n "(cached) " >&6
7338
7348
  else
7339
7349
  i=0
7340
- teststring="ABCD"
7350
+ teststring=ABCD
7341
7351
 
7342
7352
  case $build_os in
7343
7353
  msdosdjgpp*)
@@ -7377,7 +7387,7 @@ else
7377
7387
  lt_cv_sys_max_cmd_len=8192;
7378
7388
  ;;
7379
7389
 
7380
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7390
+ bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7381
7391
  # This has been around since 386BSD, at least. Likely further.
7382
7392
  if test -x /sbin/sysctl; then
7383
7393
  lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
@@ -7427,22 +7437,23 @@ else
7427
7437
  ;;
7428
7438
  *)
7429
7439
  lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7430
- if test -n "$lt_cv_sys_max_cmd_len"; then
7440
+ if test -n "$lt_cv_sys_max_cmd_len" && \
7441
+ test undefined != "$lt_cv_sys_max_cmd_len"; then
7431
7442
  lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7432
7443
  lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7433
7444
  else
7434
7445
  # Make teststring a little bigger before we do anything with it.
7435
7446
  # a 1K string should be a reasonable start.
7436
- for i in 1 2 3 4 5 6 7 8 ; do
7447
+ for i in 1 2 3 4 5 6 7 8; do
7437
7448
  teststring=$teststring$teststring
7438
7449
  done
7439
7450
  SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7440
7451
  # If test is not a shell built-in, we'll probably end up computing a
7441
7452
  # maximum length that is only half of the actual maximum length, but
7442
7453
  # we can't tell.
7443
- while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7454
+ while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7444
7455
  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7445
- test $i != 17 # 1/2 MB should be enough
7456
+ test 17 != "$i" # 1/2 MB should be enough
7446
7457
  do
7447
7458
  i=`expr $i + 1`
7448
7459
  teststring=$teststring$teststring
@@ -7460,7 +7471,7 @@ else
7460
7471
 
7461
7472
  fi
7462
7473
 
7463
- if test -n $lt_cv_sys_max_cmd_len ; then
7474
+ if test -n "$lt_cv_sys_max_cmd_len"; then
7464
7475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7465
7476
  $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7466
7477
  else
@@ -7478,30 +7489,6 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
7478
7489
  : ${MV="mv -f"}
7479
7490
  : ${RM="rm -f"}
7480
7491
 
7481
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7482
- $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7483
- # Try some XSI features
7484
- xsi_shell=no
7485
- ( _lt_dummy="a/b/c"
7486
- test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7487
- = c,a/b,b/c, \
7488
- && eval 'test $(( 1 + 1 )) -eq 2 \
7489
- && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7490
- && xsi_shell=yes
7491
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7492
- $as_echo "$xsi_shell" >&6; }
7493
-
7494
-
7495
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7496
- $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7497
- lt_shell_append=no
7498
- ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7499
- >/dev/null 2>&1 \
7500
- && lt_shell_append=yes
7501
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7502
- $as_echo "$lt_shell_append" >&6; }
7503
-
7504
-
7505
7492
  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7506
7493
  lt_unset=unset
7507
7494
  else
@@ -7624,13 +7611,13 @@ esac
7624
7611
  reload_cmds='$LD$reload_flag -o $output$reload_objs'
7625
7612
  case $host_os in
7626
7613
  cygwin* | mingw* | pw32* | cegcc*)
7627
- if test "$GCC" != yes; then
7614
+ if test yes != "$GCC"; then
7628
7615
  reload_cmds=false
7629
7616
  fi
7630
7617
  ;;
7631
7618
  darwin*)
7632
- if test "$GCC" = yes; then
7633
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7619
+ if test yes = "$GCC"; then
7620
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7634
7621
  else
7635
7622
  reload_cmds='$LD$reload_flag -o $output$reload_objs'
7636
7623
  fi
@@ -7758,13 +7745,13 @@ lt_cv_deplibs_check_method='unknown'
7758
7745
  # Need to set the preceding variable on all platforms that support
7759
7746
  # interlibrary dependencies.
7760
7747
  # 'none' -- dependencies not supported.
7761
- # `unknown' -- same as none, but documents that we really don't know.
7748
+ # 'unknown' -- same as none, but documents that we really don't know.
7762
7749
  # 'pass_all' -- all dependencies passed with no checks.
7763
7750
  # 'test_compile' -- check by making test program.
7764
7751
  # 'file_magic [[regex]]' -- check by looking for files in library path
7765
- # which responds to the $file_magic_cmd with a given extended regex.
7766
- # If you have `file' or equivalent on your system and you're not sure
7767
- # whether `pass_all' will *always* work, you probably want this one.
7752
+ # that responds to the $file_magic_cmd with a given extended regex.
7753
+ # If you have 'file' or equivalent on your system and you're not sure
7754
+ # whether 'pass_all' will *always* work, you probably want this one.
7768
7755
 
7769
7756
  case $host_os in
7770
7757
  aix[4-9]*)
@@ -7791,8 +7778,7 @@ mingw* | pw32*)
7791
7778
  # Base MSYS/MinGW do not provide the 'file' command needed by
7792
7779
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7793
7780
  # unless we find 'file', for example because we are cross-compiling.
7794
- # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7795
- if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7781
+ if ( file / ) >/dev/null 2>&1; then
7796
7782
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7797
7783
  lt_cv_file_magic_cmd='func_win32_libid'
7798
7784
  else
@@ -7828,10 +7814,6 @@ freebsd* | dragonfly*)
7828
7814
  fi
7829
7815
  ;;
7830
7816
 
7831
- gnu*)
7832
- lt_cv_deplibs_check_method=pass_all
7833
- ;;
7834
-
7835
7817
  haiku*)
7836
7818
  lt_cv_deplibs_check_method=pass_all
7837
7819
  ;;
@@ -7870,7 +7852,7 @@ irix5* | irix6* | nonstopux*)
7870
7852
  ;;
7871
7853
 
7872
7854
  # This must be glibc/ELF.
7873
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
7855
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7874
7856
  lt_cv_deplibs_check_method=pass_all
7875
7857
  ;;
7876
7858
 
@@ -7892,8 +7874,8 @@ newos6*)
7892
7874
  lt_cv_deplibs_check_method=pass_all
7893
7875
  ;;
7894
7876
 
7895
- openbsd*)
7896
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7877
+ openbsd* | bitrig*)
7878
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7897
7879
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7898
7880
  else
7899
7881
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
@@ -7946,6 +7928,9 @@ sysv4 | sysv4.3*)
7946
7928
  tpf*)
7947
7929
  lt_cv_deplibs_check_method=pass_all
7948
7930
  ;;
7931
+ os2*)
7932
+ lt_cv_deplibs_check_method=pass_all
7933
+ ;;
7949
7934
  esac
7950
7935
 
7951
7936
  fi
@@ -8103,8 +8088,8 @@ else
8103
8088
 
8104
8089
  case $host_os in
8105
8090
  cygwin* | mingw* | pw32* | cegcc*)
8106
- # two different shell functions defined in ltmain.sh
8107
- # decide which to use based on capabilities of $DLLTOOL
8091
+ # two different shell functions defined in ltmain.sh;
8092
+ # decide which one to use based on capabilities of $DLLTOOL
8108
8093
  case `$DLLTOOL --help 2>&1` in
8109
8094
  *--identify-strict*)
8110
8095
  lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
@@ -8116,7 +8101,7 @@ cygwin* | mingw* | pw32* | cegcc*)
8116
8101
  ;;
8117
8102
  *)
8118
8103
  # fallback: assume linklib IS sharedlib
8119
- lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8104
+ lt_cv_sharedlib_from_linklib_cmd=$ECHO
8120
8105
  ;;
8121
8106
  esac
8122
8107
 
@@ -8270,7 +8255,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
8270
8255
  ac_status=$?
8271
8256
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272
8257
  test $ac_status = 0; }
8273
- if test "$ac_status" -eq 0; then
8258
+ if test 0 -eq "$ac_status"; then
8274
8259
  # Ensure the archiver fails upon bogus file names.
8275
8260
  rm -f conftest.$ac_objext libconftest.a
8276
8261
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
@@ -8278,7 +8263,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
8278
8263
  ac_status=$?
8279
8264
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280
8265
  test $ac_status = 0; }
8281
- if test "$ac_status" -ne 0; then
8266
+ if test 0 -ne "$ac_status"; then
8282
8267
  lt_cv_ar_at_file=@
8283
8268
  fi
8284
8269
  fi
@@ -8291,7 +8276,7 @@ fi
8291
8276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8292
8277
  $as_echo "$lt_cv_ar_at_file" >&6; }
8293
8278
 
8294
- if test "x$lt_cv_ar_at_file" = xno; then
8279
+ if test no = "$lt_cv_ar_at_file"; then
8295
8280
  archiver_list_spec=
8296
8281
  else
8297
8282
  archiver_list_spec=$lt_cv_ar_at_file
@@ -8508,7 +8493,7 @@ old_postuninstall_cmds=
8508
8493
 
8509
8494
  if test -n "$RANLIB"; then
8510
8495
  case $host_os in
8511
- openbsd*)
8496
+ bitrig* | openbsd*)
8512
8497
  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8513
8498
  ;;
8514
8499
  *)
@@ -8598,7 +8583,7 @@ cygwin* | mingw* | pw32* | cegcc*)
8598
8583
  symcode='[ABCDGISTW]'
8599
8584
  ;;
8600
8585
  hpux*)
8601
- if test "$host_cpu" = ia64; then
8586
+ if test ia64 = "$host_cpu"; then
8602
8587
  symcode='[ABCDEGRST]'
8603
8588
  fi
8604
8589
  ;;
@@ -8631,14 +8616,44 @@ case `$NM -V 2>&1` in
8631
8616
  symcode='[ABCDGIRSTW]' ;;
8632
8617
  esac
8633
8618
 
8619
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8620
+ # Gets list of data symbols to import.
8621
+ lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8622
+ # Adjust the below global symbol transforms to fixup imported variables.
8623
+ lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8624
+ lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8625
+ lt_c_name_lib_hook="\
8626
+ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8627
+ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8628
+ else
8629
+ # Disable hooks by default.
8630
+ lt_cv_sys_global_symbol_to_import=
8631
+ lt_cdecl_hook=
8632
+ lt_c_name_hook=
8633
+ lt_c_name_lib_hook=
8634
+ fi
8635
+
8634
8636
  # Transform an extracted symbol line into a proper C declaration.
8635
8637
  # Some systems (esp. on ia64) link data and code symbols differently,
8636
8638
  # so use this general approach.
8637
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8639
+ lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8640
+ $lt_cdecl_hook\
8641
+ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8642
+ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8638
8643
 
8639
8644
  # Transform an extracted symbol line into symbol name and symbol address
8640
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8641
- lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8645
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8646
+ $lt_c_name_hook\
8647
+ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8648
+ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8649
+
8650
+ # Transform an extracted symbol line into symbol name with lib prefix and
8651
+ # symbol address.
8652
+ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8653
+ $lt_c_name_lib_hook\
8654
+ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8655
+ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8656
+ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8642
8657
 
8643
8658
  # Handle CRLF in mingw tool chain
8644
8659
  opt_cr=
@@ -8656,21 +8671,24 @@ for ac_symprfx in "" "_"; do
8656
8671
 
8657
8672
  # Write the raw and C identifiers.
8658
8673
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8659
- # Fake it for dumpbin and say T for any non-static function
8660
- # and D for any global variable.
8674
+ # Fake it for dumpbin and say T for any non-static function,
8675
+ # D for any global variable and I for any imported variable.
8661
8676
  # Also find C++ and __fastcall symbols from MSVC++,
8662
8677
  # which start with @ or ?.
8663
8678
  lt_cv_sys_global_symbol_pipe="$AWK '"\
8664
8679
  " {last_section=section; section=\$ 3};"\
8665
8680
  " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8666
8681
  " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8682
+ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8683
+ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8684
+ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8667
8685
  " \$ 0!~/External *\|/{next};"\
8668
8686
  " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8669
8687
  " {if(hide[section]) next};"\
8670
- " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8671
- " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8672
- " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8673
- " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8688
+ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8689
+ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8690
+ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8691
+ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8674
8692
  " ' prfx=^$ac_symprfx"
8675
8693
  else
8676
8694
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
@@ -8718,11 +8736,11 @@ _LT_EOF
8718
8736
  if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8719
8737
  cat <<_LT_EOF > conftest.$ac_ext
8720
8738
  /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8721
- #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8722
- /* DATA imports from DLLs on WIN32 con't be const, because runtime
8739
+ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8740
+ /* DATA imports from DLLs on WIN32 can't be const, because runtime
8723
8741
  relocations are performed -- see ld's documentation on pseudo-relocs. */
8724
8742
  # define LT_DLSYM_CONST
8725
- #elif defined(__osf__)
8743
+ #elif defined __osf__
8726
8744
  /* This system does not cope well with relocations in const data. */
8727
8745
  # define LT_DLSYM_CONST
8728
8746
  #else
@@ -8748,7 +8766,7 @@ lt__PROGRAM__LTX_preloaded_symbols[] =
8748
8766
  {
8749
8767
  { "@PROGRAM@", (void *) 0 },
8750
8768
  _LT_EOF
8751
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8769
+ $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8752
8770
  cat <<\_LT_EOF >> conftest.$ac_ext
8753
8771
  {0, (void *) 0}
8754
8772
  };
@@ -8768,13 +8786,13 @@ _LT_EOF
8768
8786
  mv conftest.$ac_objext conftstm.$ac_objext
8769
8787
  lt_globsym_save_LIBS=$LIBS
8770
8788
  lt_globsym_save_CFLAGS=$CFLAGS
8771
- LIBS="conftstm.$ac_objext"
8789
+ LIBS=conftstm.$ac_objext
8772
8790
  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8773
8791
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8774
8792
  (eval $ac_link) 2>&5
8775
8793
  ac_status=$?
8776
8794
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8777
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8795
+ test $ac_status = 0; } && test -s conftest$ac_exeext; then
8778
8796
  pipe_works=yes
8779
8797
  fi
8780
8798
  LIBS=$lt_globsym_save_LIBS
@@ -8795,7 +8813,7 @@ _LT_EOF
8795
8813
  rm -rf conftest* conftst*
8796
8814
 
8797
8815
  # Do not use the global_symbol_pipe unless it works.
8798
- if test "$pipe_works" = yes; then
8816
+ if test yes = "$pipe_works"; then
8799
8817
  break
8800
8818
  else
8801
8819
  lt_cv_sys_global_symbol_pipe=
@@ -8837,6 +8855,16 @@ fi
8837
8855
 
8838
8856
 
8839
8857
 
8858
+
8859
+
8860
+
8861
+
8862
+
8863
+
8864
+
8865
+
8866
+
8867
+
8840
8868
 
8841
8869
 
8842
8870
 
@@ -8860,9 +8888,9 @@ fi
8860
8888
 
8861
8889
 
8862
8890
  lt_sysroot=
8863
- case ${with_sysroot} in #(
8891
+ case $with_sysroot in #(
8864
8892
  yes)
8865
- if test "$GCC" = yes; then
8893
+ if test yes = "$GCC"; then
8866
8894
  lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8867
8895
  fi
8868
8896
  ;; #(
@@ -8872,8 +8900,8 @@ case ${with_sysroot} in #(
8872
8900
  no|'')
8873
8901
  ;; #(
8874
8902
  *)
8875
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8876
- $as_echo "${with_sysroot}" >&6; }
8903
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8904
+ $as_echo "$with_sysroot" >&6; }
8877
8905
  as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8878
8906
  ;;
8879
8907
  esac
@@ -8885,18 +8913,84 @@ $as_echo "${lt_sysroot:-no}" >&6; }
8885
8913
 
8886
8914
 
8887
8915
 
8916
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8917
+ $as_echo_n "checking for a working dd... " >&6; }
8918
+ if ${ac_cv_path_lt_DD+:} false; then :
8919
+ $as_echo_n "(cached) " >&6
8920
+ else
8921
+ printf 0123456789abcdef0123456789abcdef >conftest.i
8922
+ cat conftest.i conftest.i >conftest2.i
8923
+ : ${lt_DD:=$DD}
8924
+ if test -z "$lt_DD"; then
8925
+ ac_path_lt_DD_found=false
8926
+ # Loop through the user's path and test for each of PROGNAME-LIST
8927
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928
+ for as_dir in $PATH
8929
+ do
8930
+ IFS=$as_save_IFS
8931
+ test -z "$as_dir" && as_dir=.
8932
+ for ac_prog in dd; do
8933
+ for ac_exec_ext in '' $ac_executable_extensions; do
8934
+ ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8935
+ as_fn_executable_p "$ac_path_lt_DD" || continue
8936
+ if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8937
+ cmp -s conftest.i conftest.out \
8938
+ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8939
+ fi
8940
+ $ac_path_lt_DD_found && break 3
8941
+ done
8942
+ done
8943
+ done
8944
+ IFS=$as_save_IFS
8945
+ if test -z "$ac_cv_path_lt_DD"; then
8946
+ :
8947
+ fi
8948
+ else
8949
+ ac_cv_path_lt_DD=$lt_DD
8950
+ fi
8951
+
8952
+ rm -f conftest.i conftest2.i conftest.out
8953
+ fi
8954
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8955
+ $as_echo "$ac_cv_path_lt_DD" >&6; }
8956
+
8957
+
8958
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8959
+ $as_echo_n "checking how to truncate binary pipes... " >&6; }
8960
+ if ${lt_cv_truncate_bin+:} false; then :
8961
+ $as_echo_n "(cached) " >&6
8962
+ else
8963
+ printf 0123456789abcdef0123456789abcdef >conftest.i
8964
+ cat conftest.i conftest.i >conftest2.i
8965
+ lt_cv_truncate_bin=
8966
+ if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8967
+ cmp -s conftest.i conftest.out \
8968
+ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8969
+ fi
8970
+ rm -f conftest.i conftest2.i conftest.out
8971
+ test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8972
+ fi
8973
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8974
+ $as_echo "$lt_cv_truncate_bin" >&6; }
8975
+
8976
+
8977
+
8978
+
8979
+
8980
+
8888
8981
  # Check whether --enable-libtool-lock was given.
8889
8982
  if test "${enable_libtool_lock+set}" = set; then :
8890
8983
  enableval=$enable_libtool_lock;
8891
8984
  fi
8892
8985
 
8893
- test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8986
+ test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8894
8987
 
8895
8988
  # Some flags need to be propagated to the compiler or linker for good
8896
8989
  # libtool support.
8897
8990
  case $host in
8898
8991
  ia64-*-hpux*)
8899
- # Find out which ABI we are using.
8992
+ # Find out what ABI is being produced by ac_compile, and set mode
8993
+ # options accordingly.
8900
8994
  echo 'int i;' > conftest.$ac_ext
8901
8995
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8902
8996
  (eval $ac_compile) 2>&5
@@ -8905,24 +8999,25 @@ ia64-*-hpux*)
8905
8999
  test $ac_status = 0; }; then
8906
9000
  case `/usr/bin/file conftest.$ac_objext` in
8907
9001
  *ELF-32*)
8908
- HPUX_IA64_MODE="32"
9002
+ HPUX_IA64_MODE=32
8909
9003
  ;;
8910
9004
  *ELF-64*)
8911
- HPUX_IA64_MODE="64"
9005
+ HPUX_IA64_MODE=64
8912
9006
  ;;
8913
9007
  esac
8914
9008
  fi
8915
9009
  rm -rf conftest*
8916
9010
  ;;
8917
9011
  *-*-irix6*)
8918
- # Find out which ABI we are using.
9012
+ # Find out what ABI is being produced by ac_compile, and set linker
9013
+ # options accordingly.
8919
9014
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8920
9015
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8921
9016
  (eval $ac_compile) 2>&5
8922
9017
  ac_status=$?
8923
9018
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8924
9019
  test $ac_status = 0; }; then
8925
- if test "$lt_cv_prog_gnu_ld" = yes; then
9020
+ if test yes = "$lt_cv_prog_gnu_ld"; then
8926
9021
  case `/usr/bin/file conftest.$ac_objext` in
8927
9022
  *32-bit*)
8928
9023
  LD="${LD-ld} -melf32bsmip"
@@ -8951,9 +9046,50 @@ ia64-*-hpux*)
8951
9046
  rm -rf conftest*
8952
9047
  ;;
8953
9048
 
8954
- x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9049
+ mips64*-*linux*)
9050
+ # Find out what ABI is being produced by ac_compile, and set linker
9051
+ # options accordingly.
9052
+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9053
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9054
+ (eval $ac_compile) 2>&5
9055
+ ac_status=$?
9056
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9057
+ test $ac_status = 0; }; then
9058
+ emul=elf
9059
+ case `/usr/bin/file conftest.$ac_objext` in
9060
+ *32-bit*)
9061
+ emul="${emul}32"
9062
+ ;;
9063
+ *64-bit*)
9064
+ emul="${emul}64"
9065
+ ;;
9066
+ esac
9067
+ case `/usr/bin/file conftest.$ac_objext` in
9068
+ *MSB*)
9069
+ emul="${emul}btsmip"
9070
+ ;;
9071
+ *LSB*)
9072
+ emul="${emul}ltsmip"
9073
+ ;;
9074
+ esac
9075
+ case `/usr/bin/file conftest.$ac_objext` in
9076
+ *N32*)
9077
+ emul="${emul}n32"
9078
+ ;;
9079
+ esac
9080
+ LD="${LD-ld} -m $emul"
9081
+ fi
9082
+ rm -rf conftest*
9083
+ ;;
9084
+
9085
+ x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8955
9086
  s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8956
- # Find out which ABI we are using.
9087
+ # Find out what ABI is being produced by ac_compile, and set linker
9088
+ # options accordingly. Note that the listed cases only cover the
9089
+ # situations where additional linker options are needed (such as when
9090
+ # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9091
+ # vice versa); the common cases where no linker options are needed do
9092
+ # not appear in the list.
8957
9093
  echo 'int i;' > conftest.$ac_ext
8958
9094
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8959
9095
  (eval $ac_compile) 2>&5
@@ -8967,9 +9103,19 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8967
9103
  LD="${LD-ld} -m elf_i386_fbsd"
8968
9104
  ;;
8969
9105
  x86_64-*linux*)
8970
- LD="${LD-ld} -m elf_i386"
9106
+ case `/usr/bin/file conftest.o` in
9107
+ *x86-64*)
9108
+ LD="${LD-ld} -m elf32_x86_64"
9109
+ ;;
9110
+ *)
9111
+ LD="${LD-ld} -m elf_i386"
9112
+ ;;
9113
+ esac
9114
+ ;;
9115
+ powerpc64le-*linux*)
9116
+ LD="${LD-ld} -m elf32lppclinux"
8971
9117
  ;;
8972
- ppc64-*linux*|powerpc64-*linux*)
9118
+ powerpc64-*linux*)
8973
9119
  LD="${LD-ld} -m elf32ppclinux"
8974
9120
  ;;
8975
9121
  s390x-*linux*)
@@ -8988,7 +9134,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8988
9134
  x86_64-*linux*)
8989
9135
  LD="${LD-ld} -m elf_x86_64"
8990
9136
  ;;
8991
- ppc*-*linux*|powerpc*-*linux*)
9137
+ powerpcle-*linux*)
9138
+ LD="${LD-ld} -m elf64lppc"
9139
+ ;;
9140
+ powerpc-*linux*)
8992
9141
  LD="${LD-ld} -m elf64ppc"
8993
9142
  ;;
8994
9143
  s390*-*linux*|s390*-*tpf*)
@@ -9006,7 +9155,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9006
9155
 
9007
9156
  *-*-sco3.2v5*)
9008
9157
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9009
- SAVE_CFLAGS="$CFLAGS"
9158
+ SAVE_CFLAGS=$CFLAGS
9010
9159
  CFLAGS="$CFLAGS -belf"
9011
9160
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9012
9161
  $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
@@ -9046,13 +9195,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
9046
9195
  fi
9047
9196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9048
9197
  $as_echo "$lt_cv_cc_needs_belf" >&6; }
9049
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9198
+ if test yes != "$lt_cv_cc_needs_belf"; then
9050
9199
  # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9051
- CFLAGS="$SAVE_CFLAGS"
9200
+ CFLAGS=$SAVE_CFLAGS
9052
9201
  fi
9053
9202
  ;;
9054
9203
  *-*solaris*)
9055
- # Find out which ABI we are using.
9204
+ # Find out what ABI is being produced by ac_compile, and set linker
9205
+ # options accordingly.
9056
9206
  echo 'int i;' > conftest.$ac_ext
9057
9207
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9058
9208
  (eval $ac_compile) 2>&5
@@ -9064,7 +9214,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
9064
9214
  case $lt_cv_prog_gnu_ld in
9065
9215
  yes*)
9066
9216
  case $host in
9067
- i?86-*-solaris*)
9217
+ i?86-*-solaris*|x86_64-*-solaris*)
9068
9218
  LD="${LD-ld} -m elf_x86_64"
9069
9219
  ;;
9070
9220
  sparc*-*-solaris*)
@@ -9073,7 +9223,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
9073
9223
  esac
9074
9224
  # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9075
9225
  if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9076
- LD="${LD-ld}_sol2"
9226
+ LD=${LD-ld}_sol2
9077
9227
  fi
9078
9228
  ;;
9079
9229
  *)
@@ -9089,7 +9239,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
9089
9239
  ;;
9090
9240
  esac
9091
9241
 
9092
- need_locks="$enable_libtool_lock"
9242
+ need_locks=$enable_libtool_lock
9093
9243
 
9094
9244
  if test -n "$ac_tool_prefix"; then
9095
9245
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
@@ -9200,7 +9350,7 @@ else
9200
9350
  fi
9201
9351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9202
9352
  $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9203
- if test "x$lt_cv_path_mainfest_tool" != xyes; then
9353
+ if test yes != "$lt_cv_path_mainfest_tool"; then
9204
9354
  MANIFEST_TOOL=:
9205
9355
  fi
9206
9356
 
@@ -9703,7 +9853,7 @@ if ${lt_cv_apple_cc_single_mod+:} false; then :
9703
9853
  $as_echo_n "(cached) " >&6
9704
9854
  else
9705
9855
  lt_cv_apple_cc_single_mod=no
9706
- if test -z "${LT_MULTI_MODULE}"; then
9856
+ if test -z "$LT_MULTI_MODULE"; then
9707
9857
  # By default we will add the -single_module flag. You can override
9708
9858
  # by either setting the environment variable LT_MULTI_MODULE
9709
9859
  # non-empty at configure time, or by adding -multi_module to the
@@ -9721,7 +9871,7 @@ else
9721
9871
  cat conftest.err >&5
9722
9872
  # Otherwise, if the output was created with a 0 exit code from
9723
9873
  # the compiler, it worked.
9724
- elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9874
+ elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9725
9875
  lt_cv_apple_cc_single_mod=yes
9726
9876
  else
9727
9877
  cat conftest.err >&5
@@ -9760,7 +9910,7 @@ else
9760
9910
  fi
9761
9911
  rm -f core conftest.err conftest.$ac_objext \
9762
9912
  conftest$ac_exeext conftest.$ac_ext
9763
- LDFLAGS="$save_LDFLAGS"
9913
+ LDFLAGS=$save_LDFLAGS
9764
9914
 
9765
9915
  fi
9766
9916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
@@ -9789,7 +9939,7 @@ _LT_EOF
9789
9939
  _lt_result=$?
9790
9940
  if test -s conftest.err && $GREP force_load conftest.err; then
9791
9941
  cat conftest.err >&5
9792
- elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9942
+ elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9793
9943
  lt_cv_ld_force_load=yes
9794
9944
  else
9795
9945
  cat conftest.err >&5
@@ -9802,32 +9952,32 @@ fi
9802
9952
  $as_echo "$lt_cv_ld_force_load" >&6; }
9803
9953
  case $host_os in
9804
9954
  rhapsody* | darwin1.[012])
9805
- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9955
+ _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9806
9956
  darwin1.*)
9807
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9957
+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9808
9958
  darwin*) # darwin 5.x on
9809
9959
  # if running on 10.5 or later, the deployment target defaults
9810
9960
  # to the OS version, if on x86, and 10.4, the deployment
9811
9961
  # target defaults to 10.4. Don't you love it?
9812
9962
  case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9813
9963
  10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9814
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9815
- 10.[012]*)
9816
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9964
+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9965
+ 10.[012][,.]*)
9966
+ _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9817
9967
  10.*)
9818
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9968
+ _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9819
9969
  esac
9820
9970
  ;;
9821
9971
  esac
9822
- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9972
+ if test yes = "$lt_cv_apple_cc_single_mod"; then
9823
9973
  _lt_dar_single_mod='$single_module'
9824
9974
  fi
9825
- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9826
- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9975
+ if test yes = "$lt_cv_ld_exported_symbols_list"; then
9976
+ _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9827
9977
  else
9828
- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9978
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9829
9979
  fi
9830
- if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9980
+ if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9831
9981
  _lt_dsymutil='~$DSYMUTIL $lib || :'
9832
9982
  else
9833
9983
  _lt_dsymutil=
@@ -9871,14 +10021,14 @@ if test "${enable_shared+set}" = set; then :
9871
10021
  *)
9872
10022
  enable_shared=no
9873
10023
  # Look at the argument we got. We use all the common list separators.
9874
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10024
+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9875
10025
  for pkg in $enableval; do
9876
- IFS="$lt_save_ifs"
10026
+ IFS=$lt_save_ifs
9877
10027
  if test "X$pkg" = "X$p"; then
9878
10028
  enable_shared=yes
9879
10029
  fi
9880
10030
  done
9881
- IFS="$lt_save_ifs"
10031
+ IFS=$lt_save_ifs
9882
10032
  ;;
9883
10033
  esac
9884
10034
  else
@@ -9902,14 +10052,14 @@ if test "${enable_static+set}" = set; then :
9902
10052
  *)
9903
10053
  enable_static=no
9904
10054
  # Look at the argument we got. We use all the common list separators.
9905
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10055
+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9906
10056
  for pkg in $enableval; do
9907
- IFS="$lt_save_ifs"
10057
+ IFS=$lt_save_ifs
9908
10058
  if test "X$pkg" = "X$p"; then
9909
10059
  enable_static=yes
9910
10060
  fi
9911
10061
  done
9912
- IFS="$lt_save_ifs"
10062
+ IFS=$lt_save_ifs
9913
10063
  ;;
9914
10064
  esac
9915
10065
  else
@@ -9933,14 +10083,14 @@ if test "${with_pic+set}" = set; then :
9933
10083
  *)
9934
10084
  pic_mode=default
9935
10085
  # Look at the argument we got. We use all the common list separators.
9936
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10086
+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9937
10087
  for lt_pkg in $withval; do
9938
- IFS="$lt_save_ifs"
10088
+ IFS=$lt_save_ifs
9939
10089
  if test "X$lt_pkg" = "X$lt_p"; then
9940
10090
  pic_mode=yes
9941
10091
  fi
9942
10092
  done
9943
- IFS="$lt_save_ifs"
10093
+ IFS=$lt_save_ifs
9944
10094
  ;;
9945
10095
  esac
9946
10096
  else
@@ -9948,8 +10098,6 @@ else
9948
10098
  fi
9949
10099
 
9950
10100
 
9951
- test -z "$pic_mode" && pic_mode=default
9952
-
9953
10101
 
9954
10102
 
9955
10103
 
@@ -9965,14 +10113,14 @@ if test "${enable_fast_install+set}" = set; then :
9965
10113
  *)
9966
10114
  enable_fast_install=no
9967
10115
  # Look at the argument we got. We use all the common list separators.
9968
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10116
+ lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9969
10117
  for pkg in $enableval; do
9970
- IFS="$lt_save_ifs"
10118
+ IFS=$lt_save_ifs
9971
10119
  if test "X$pkg" = "X$p"; then
9972
10120
  enable_fast_install=yes
9973
10121
  fi
9974
10122
  done
9975
- IFS="$lt_save_ifs"
10123
+ IFS=$lt_save_ifs
9976
10124
  ;;
9977
10125
  esac
9978
10126
  else
@@ -9986,11 +10134,63 @@ fi
9986
10134
 
9987
10135
 
9988
10136
 
10137
+ shared_archive_member_spec=
10138
+ case $host,$enable_shared in
10139
+ power*-*-aix[5-9]*,yes)
10140
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10141
+ $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10142
+
10143
+ # Check whether --with-aix-soname was given.
10144
+ if test "${with_aix_soname+set}" = set; then :
10145
+ withval=$with_aix_soname; case $withval in
10146
+ aix|svr4|both)
10147
+ ;;
10148
+ *)
10149
+ as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10150
+ ;;
10151
+ esac
10152
+ lt_cv_with_aix_soname=$with_aix_soname
10153
+ else
10154
+ if ${lt_cv_with_aix_soname+:} false; then :
10155
+ $as_echo_n "(cached) " >&6
10156
+ else
10157
+ lt_cv_with_aix_soname=aix
10158
+ fi
10159
+
10160
+ with_aix_soname=$lt_cv_with_aix_soname
10161
+ fi
10162
+
10163
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10164
+ $as_echo "$with_aix_soname" >&6; }
10165
+ if test aix != "$with_aix_soname"; then
10166
+ # For the AIX way of multilib, we name the shared archive member
10167
+ # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10168
+ # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10169
+ # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10170
+ # the AIX toolchain works better with OBJECT_MODE set (default 32).
10171
+ if test 64 = "${OBJECT_MODE-32}"; then
10172
+ shared_archive_member_spec=shr_64
10173
+ else
10174
+ shared_archive_member_spec=shr
10175
+ fi
10176
+ fi
10177
+ ;;
10178
+ *)
10179
+ with_aix_soname=aix
10180
+ ;;
10181
+ esac
10182
+
10183
+
10184
+
10185
+
10186
+
10187
+
10188
+
9989
10189
 
9990
10190
 
9991
10191
 
9992
10192
  # This can be used to rebuild libtool when needed
9993
- LIBTOOL_DEPS="$ltmain"
10193
+ LIBTOOL_DEPS=$ltmain
9994
10194
 
9995
10195
  # Always use our own libtool.
9996
10196
  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -10039,7 +10239,7 @@ test -z "$LN_S" && LN_S="ln -s"
10039
10239
 
10040
10240
 
10041
10241
 
10042
- if test -n "${ZSH_VERSION+set}" ; then
10242
+ if test -n "${ZSH_VERSION+set}"; then
10043
10243
  setopt NO_GLOB_SUBST
10044
10244
  fi
10045
10245
 
@@ -10078,7 +10278,7 @@ aix3*)
10078
10278
  # AIX sometimes has problems with the GCC collect2 program. For some
10079
10279
  # reason, if we set the COLLECT_NAMES environment variable, the problems
10080
10280
  # vanish in a puff of smoke.
10081
- if test "X${COLLECT_NAMES+set}" != Xset; then
10281
+ if test set != "${COLLECT_NAMES+set}"; then
10082
10282
  COLLECT_NAMES=
10083
10283
  export COLLECT_NAMES
10084
10284
  fi
@@ -10089,14 +10289,14 @@ esac
10089
10289
  ofile=libtool
10090
10290
  can_build_shared=yes
10091
10291
 
10092
- # All known linkers require a `.a' archive for static linking (except MSVC,
10292
+ # All known linkers require a '.a' archive for static linking (except MSVC,
10093
10293
  # which needs '.lib').
10094
10294
  libext=a
10095
10295
 
10096
- with_gnu_ld="$lt_cv_prog_gnu_ld"
10296
+ with_gnu_ld=$lt_cv_prog_gnu_ld
10097
10297
 
10098
- old_CC="$CC"
10099
- old_CFLAGS="$CFLAGS"
10298
+ old_CC=$CC
10299
+ old_CFLAGS=$CFLAGS
10100
10300
 
10101
10301
  # Set sane defaults for various variables
10102
10302
  test -z "$CC" && CC=cc
@@ -10128,22 +10328,22 @@ if ${lt_cv_path_MAGIC_CMD+:} false; then :
10128
10328
  else
10129
10329
  case $MAGIC_CMD in
10130
10330
  [\\/*] | ?:[\\/]*)
10131
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10331
+ lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10132
10332
  ;;
10133
10333
  *)
10134
- lt_save_MAGIC_CMD="$MAGIC_CMD"
10135
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10334
+ lt_save_MAGIC_CMD=$MAGIC_CMD
10335
+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10136
10336
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10137
10337
  for ac_dir in $ac_dummy; do
10138
- IFS="$lt_save_ifs"
10338
+ IFS=$lt_save_ifs
10139
10339
  test -z "$ac_dir" && ac_dir=.
10140
- if test -f $ac_dir/${ac_tool_prefix}file; then
10141
- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10340
+ if test -f "$ac_dir/${ac_tool_prefix}file"; then
10341
+ lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10142
10342
  if test -n "$file_magic_test_file"; then
10143
10343
  case $deplibs_check_method in
10144
10344
  "file_magic "*)
10145
10345
  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10146
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10346
+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10147
10347
  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10148
10348
  $EGREP "$file_magic_regex" > /dev/null; then
10149
10349
  :
@@ -10166,13 +10366,13 @@ _LT_EOF
10166
10366
  break
10167
10367
  fi
10168
10368
  done
10169
- IFS="$lt_save_ifs"
10170
- MAGIC_CMD="$lt_save_MAGIC_CMD"
10369
+ IFS=$lt_save_ifs
10370
+ MAGIC_CMD=$lt_save_MAGIC_CMD
10171
10371
  ;;
10172
10372
  esac
10173
10373
  fi
10174
10374
 
10175
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10375
+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10176
10376
  if test -n "$MAGIC_CMD"; then
10177
10377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10178
10378
  $as_echo "$MAGIC_CMD" >&6; }
@@ -10194,22 +10394,22 @@ if ${lt_cv_path_MAGIC_CMD+:} false; then :
10194
10394
  else
10195
10395
  case $MAGIC_CMD in
10196
10396
  [\\/*] | ?:[\\/]*)
10197
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10397
+ lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10198
10398
  ;;
10199
10399
  *)
10200
- lt_save_MAGIC_CMD="$MAGIC_CMD"
10201
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10400
+ lt_save_MAGIC_CMD=$MAGIC_CMD
10401
+ lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10202
10402
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10203
10403
  for ac_dir in $ac_dummy; do
10204
- IFS="$lt_save_ifs"
10404
+ IFS=$lt_save_ifs
10205
10405
  test -z "$ac_dir" && ac_dir=.
10206
- if test -f $ac_dir/file; then
10207
- lt_cv_path_MAGIC_CMD="$ac_dir/file"
10406
+ if test -f "$ac_dir/file"; then
10407
+ lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10208
10408
  if test -n "$file_magic_test_file"; then
10209
10409
  case $deplibs_check_method in
10210
10410
  "file_magic "*)
10211
10411
  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10212
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10412
+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10213
10413
  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10214
10414
  $EGREP "$file_magic_regex" > /dev/null; then
10215
10415
  :
@@ -10232,13 +10432,13 @@ _LT_EOF
10232
10432
  break
10233
10433
  fi
10234
10434
  done
10235
- IFS="$lt_save_ifs"
10236
- MAGIC_CMD="$lt_save_MAGIC_CMD"
10435
+ IFS=$lt_save_ifs
10436
+ MAGIC_CMD=$lt_save_MAGIC_CMD
10237
10437
  ;;
10238
10438
  esac
10239
10439
  fi
10240
10440
 
10241
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10441
+ MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10242
10442
  if test -n "$MAGIC_CMD"; then
10243
10443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10244
10444
  $as_echo "$MAGIC_CMD" >&6; }
@@ -10259,7 +10459,7 @@ esac
10259
10459
 
10260
10460
  # Use C for the default configuration in the libtool script
10261
10461
 
10262
- lt_save_CC="$CC"
10462
+ lt_save_CC=$CC
10263
10463
  ac_ext=c
10264
10464
  ac_cpp='$CPP $CPPFLAGS'
10265
10465
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -10321,7 +10521,7 @@ if test -n "$compiler"; then
10321
10521
 
10322
10522
  lt_prog_compiler_no_builtin_flag=
10323
10523
 
10324
- if test "$GCC" = yes; then
10524
+ if test yes = "$GCC"; then
10325
10525
  case $cc_basename in
10326
10526
  nvcc*)
10327
10527
  lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
@@ -10337,7 +10537,7 @@ else
10337
10537
  lt_cv_prog_compiler_rtti_exceptions=no
10338
10538
  ac_outfile=conftest.$ac_objext
10339
10539
  echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340
- lt_compiler_flag="-fno-rtti -fno-exceptions"
10540
+ lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10341
10541
  # Insert the option either (1) after the last *FLAGS variable, or
10342
10542
  # (2) before a word containing "conftest.", or (3) at the end.
10343
10543
  # Note that $ac_compile itself does not contain backslashes and begins
@@ -10367,7 +10567,7 @@ fi
10367
10567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10368
10568
  $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10369
10569
 
10370
- if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10570
+ if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10371
10571
  lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10372
10572
  else
10373
10573
  :
@@ -10385,17 +10585,18 @@ lt_prog_compiler_pic=
10385
10585
  lt_prog_compiler_static=
10386
10586
 
10387
10587
 
10388
- if test "$GCC" = yes; then
10588
+ if test yes = "$GCC"; then
10389
10589
  lt_prog_compiler_wl='-Wl,'
10390
10590
  lt_prog_compiler_static='-static'
10391
10591
 
10392
10592
  case $host_os in
10393
10593
  aix*)
10394
10594
  # All AIX code is PIC.
10395
- if test "$host_cpu" = ia64; then
10595
+ if test ia64 = "$host_cpu"; then
10396
10596
  # AIX 5 now supports IA64 processor
10397
10597
  lt_prog_compiler_static='-Bstatic'
10398
10598
  fi
10599
+ lt_prog_compiler_pic='-fPIC'
10399
10600
  ;;
10400
10601
 
10401
10602
  amigaos*)
@@ -10406,8 +10607,8 @@ lt_prog_compiler_static=
10406
10607
  ;;
10407
10608
  m68k)
10408
10609
  # FIXME: we need at least 68020 code to build shared libraries, but
10409
- # adding the `-m68020' flag to GCC prevents building anything better,
10410
- # like `-m68040'.
10610
+ # adding the '-m68020' flag to GCC prevents building anything better,
10611
+ # like '-m68040'.
10411
10612
  lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10412
10613
  ;;
10413
10614
  esac
@@ -10423,6 +10624,11 @@ lt_prog_compiler_static=
10423
10624
  # Although the cygwin gcc ignores -fPIC, still need this for old-style
10424
10625
  # (--disable-auto-import) libraries
10425
10626
  lt_prog_compiler_pic='-DDLL_EXPORT'
10627
+ case $host_os in
10628
+ os2*)
10629
+ lt_prog_compiler_static='$wl-static'
10630
+ ;;
10631
+ esac
10426
10632
  ;;
10427
10633
 
10428
10634
  darwin* | rhapsody*)
@@ -10493,7 +10699,7 @@ lt_prog_compiler_static=
10493
10699
  case $host_os in
10494
10700
  aix*)
10495
10701
  lt_prog_compiler_wl='-Wl,'
10496
- if test "$host_cpu" = ia64; then
10702
+ if test ia64 = "$host_cpu"; then
10497
10703
  # AIX 5 now supports IA64 processor
10498
10704
  lt_prog_compiler_static='-Bstatic'
10499
10705
  else
@@ -10501,10 +10707,29 @@ lt_prog_compiler_static=
10501
10707
  fi
10502
10708
  ;;
10503
10709
 
10710
+ darwin* | rhapsody*)
10711
+ # PIC is the default on this platform
10712
+ # Common symbols not allowed in MH_DYLIB files
10713
+ lt_prog_compiler_pic='-fno-common'
10714
+ case $cc_basename in
10715
+ nagfor*)
10716
+ # NAG Fortran compiler
10717
+ lt_prog_compiler_wl='-Wl,-Wl,,'
10718
+ lt_prog_compiler_pic='-PIC'
10719
+ lt_prog_compiler_static='-Bstatic'
10720
+ ;;
10721
+ esac
10722
+ ;;
10723
+
10504
10724
  mingw* | cygwin* | pw32* | os2* | cegcc*)
10505
10725
  # This hack is so that the source file can tell whether it is being
10506
10726
  # built for inclusion in a dll (and should export symbols for example).
10507
10727
  lt_prog_compiler_pic='-DDLL_EXPORT'
10728
+ case $host_os in
10729
+ os2*)
10730
+ lt_prog_compiler_static='$wl-static'
10731
+ ;;
10732
+ esac
10508
10733
  ;;
10509
10734
 
10510
10735
  hpux9* | hpux10* | hpux11*)
@@ -10520,7 +10745,7 @@ lt_prog_compiler_static=
10520
10745
  ;;
10521
10746
  esac
10522
10747
  # Is there a better lt_prog_compiler_static that works with the bundled CC?
10523
- lt_prog_compiler_static='${wl}-a ${wl}archive'
10748
+ lt_prog_compiler_static='$wl-a ${wl}archive'
10524
10749
  ;;
10525
10750
 
10526
10751
  irix5* | irix6* | nonstopux*)
@@ -10529,9 +10754,9 @@ lt_prog_compiler_static=
10529
10754
  lt_prog_compiler_static='-non_shared'
10530
10755
  ;;
10531
10756
 
10532
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
10757
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10533
10758
  case $cc_basename in
10534
- # old Intel for x86_64 which still supported -KPIC.
10759
+ # old Intel for x86_64, which still supported -KPIC.
10535
10760
  ecc*)
10536
10761
  lt_prog_compiler_wl='-Wl,'
10537
10762
  lt_prog_compiler_pic='-KPIC'
@@ -10556,6 +10781,12 @@ lt_prog_compiler_static=
10556
10781
  lt_prog_compiler_pic='-PIC'
10557
10782
  lt_prog_compiler_static='-Bstatic'
10558
10783
  ;;
10784
+ tcc*)
10785
+ # Fabrice Bellard et al's Tiny C Compiler
10786
+ lt_prog_compiler_wl='-Wl,'
10787
+ lt_prog_compiler_pic='-fPIC'
10788
+ lt_prog_compiler_static='-static'
10789
+ ;;
10559
10790
  pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10560
10791
  # Portland Group compilers (*not* the Pentium gcc compiler,
10561
10792
  # which looks to be a dead project)
@@ -10653,7 +10884,7 @@ lt_prog_compiler_static=
10653
10884
  ;;
10654
10885
 
10655
10886
  sysv4*MP*)
10656
- if test -d /usr/nec ;then
10887
+ if test -d /usr/nec; then
10657
10888
  lt_prog_compiler_pic='-Kconform_pic'
10658
10889
  lt_prog_compiler_static='-Bstatic'
10659
10890
  fi
@@ -10682,7 +10913,7 @@ lt_prog_compiler_static=
10682
10913
  fi
10683
10914
 
10684
10915
  case $host_os in
10685
- # For platforms which do not support PIC, -DPIC is meaningless:
10916
+ # For platforms that do not support PIC, -DPIC is meaningless:
10686
10917
  *djgpp*)
10687
10918
  lt_prog_compiler_pic=
10688
10919
  ;;
@@ -10714,7 +10945,7 @@ else
10714
10945
  lt_cv_prog_compiler_pic_works=no
10715
10946
  ac_outfile=conftest.$ac_objext
10716
10947
  echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10717
- lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10948
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10718
10949
  # Insert the option either (1) after the last *FLAGS variable, or
10719
10950
  # (2) before a word containing "conftest.", or (3) at the end.
10720
10951
  # Note that $ac_compile itself does not contain backslashes and begins
@@ -10744,7 +10975,7 @@ fi
10744
10975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10745
10976
  $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10746
10977
 
10747
- if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10978
+ if test yes = "$lt_cv_prog_compiler_pic_works"; then
10748
10979
  case $lt_prog_compiler_pic in
10749
10980
  "" | " "*) ;;
10750
10981
  *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
@@ -10776,7 +11007,7 @@ if ${lt_cv_prog_compiler_static_works+:} false; then :
10776
11007
  $as_echo_n "(cached) " >&6
10777
11008
  else
10778
11009
  lt_cv_prog_compiler_static_works=no
10779
- save_LDFLAGS="$LDFLAGS"
11010
+ save_LDFLAGS=$LDFLAGS
10780
11011
  LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10781
11012
  echo "$lt_simple_link_test_code" > conftest.$ac_ext
10782
11013
  if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
@@ -10795,13 +11026,13 @@ else
10795
11026
  fi
10796
11027
  fi
10797
11028
  $RM -r conftest*
10798
- LDFLAGS="$save_LDFLAGS"
11029
+ LDFLAGS=$save_LDFLAGS
10799
11030
 
10800
11031
  fi
10801
11032
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10802
11033
  $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10803
11034
 
10804
- if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11035
+ if test yes = "$lt_cv_prog_compiler_static_works"; then
10805
11036
  :
10806
11037
  else
10807
11038
  lt_prog_compiler_static=
@@ -10921,8 +11152,8 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10921
11152
 
10922
11153
 
10923
11154
 
10924
- hard_links="nottested"
10925
- if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11155
+ hard_links=nottested
11156
+ if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10926
11157
  # do not overwrite the value of need_locks provided by the user
10927
11158
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10928
11159
  $as_echo_n "checking if we can lock with hard links... " >&6; }
@@ -10934,9 +11165,9 @@ $as_echo_n "checking if we can lock with hard links... " >&6; }
10934
11165
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10935
11166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10936
11167
  $as_echo "$hard_links" >&6; }
10937
- if test "$hard_links" = no; then
10938
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10939
- $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11168
+ if test no = "$hard_links"; then
11169
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11170
+ $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10940
11171
  need_locks=warn
10941
11172
  fi
10942
11173
  else
@@ -10979,9 +11210,9 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
10979
11210
  # included in the symbol list
10980
11211
  include_expsyms=
10981
11212
  # exclude_expsyms can be an extended regexp of symbols to exclude
10982
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
10983
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10984
- # as well as any symbol that contains `d'.
11213
+ # it will be wrapped by ' (' and ')$', so one must not match beginning or
11214
+ # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11215
+ # as well as any symbol that contains 'd'.
10985
11216
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10986
11217
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10987
11218
  # platforms (ab)use it in PIC code, but their linkers get confused if
@@ -10996,7 +11227,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
10996
11227
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
10997
11228
  # When not using gcc, we currently assume that we are using
10998
11229
  # Microsoft Visual C++.
10999
- if test "$GCC" != yes; then
11230
+ if test yes != "$GCC"; then
11000
11231
  with_gnu_ld=no
11001
11232
  fi
11002
11233
  ;;
@@ -11004,7 +11235,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
11004
11235
  # we just hope/assume this is gcc and not c89 (= MSVC++)
11005
11236
  with_gnu_ld=yes
11006
11237
  ;;
11007
- openbsd*)
11238
+ openbsd* | bitrig*)
11008
11239
  with_gnu_ld=no
11009
11240
  ;;
11010
11241
  esac
@@ -11014,7 +11245,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
11014
11245
  # On some targets, GNU ld is compatible enough with the native linker
11015
11246
  # that we're better off using the native interface for both.
11016
11247
  lt_use_gnu_ld_interface=no
11017
- if test "$with_gnu_ld" = yes; then
11248
+ if test yes = "$with_gnu_ld"; then
11018
11249
  case $host_os in
11019
11250
  aix*)
11020
11251
  # The AIX port of GNU ld has always aspired to compatibility
@@ -11036,24 +11267,24 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
11036
11267
  esac
11037
11268
  fi
11038
11269
 
11039
- if test "$lt_use_gnu_ld_interface" = yes; then
11270
+ if test yes = "$lt_use_gnu_ld_interface"; then
11040
11271
  # If archive_cmds runs LD, not CC, wlarc should be empty
11041
- wlarc='${wl}'
11272
+ wlarc='$wl'
11042
11273
 
11043
11274
  # Set some defaults for GNU ld with shared library support. These
11044
11275
  # are reset later if shared libraries are not supported. Putting them
11045
11276
  # here allows them to be overridden if necessary.
11046
11277
  runpath_var=LD_RUN_PATH
11047
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11048
- export_dynamic_flag_spec='${wl}--export-dynamic'
11278
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11279
+ export_dynamic_flag_spec='$wl--export-dynamic'
11049
11280
  # ancient GNU ld didn't support --whole-archive et. al.
11050
11281
  if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11051
- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11282
+ whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11052
11283
  else
11053
11284
  whole_archive_flag_spec=
11054
11285
  fi
11055
11286
  supports_anon_versioning=no
11056
- case `$LD -v 2>&1` in
11287
+ case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11057
11288
  *GNU\ gold*) supports_anon_versioning=yes ;;
11058
11289
  *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11059
11290
  *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
@@ -11066,7 +11297,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
11066
11297
  case $host_os in
11067
11298
  aix[3-9]*)
11068
11299
  # On AIX/PPC, the GNU linker is very broken
11069
- if test "$host_cpu" != ia64; then
11300
+ if test ia64 != "$host_cpu"; then
11070
11301
  ld_shlibs=no
11071
11302
  cat <<_LT_EOF 1>&2
11072
11303
 
@@ -11085,7 +11316,7 @@ _LT_EOF
11085
11316
  case $host_cpu in
11086
11317
  powerpc)
11087
11318
  # see comment about AmigaOS4 .so support
11088
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11089
11320
  archive_expsym_cmds=''
11090
11321
  ;;
11091
11322
  m68k)
@@ -11101,7 +11332,7 @@ _LT_EOF
11101
11332
  allow_undefined_flag=unsupported
11102
11333
  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11103
11334
  # support --undefined. This deserves some investigation. FIXME
11104
- archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11105
11336
  else
11106
11337
  ld_shlibs=no
11107
11338
  fi
@@ -11111,7 +11342,7 @@ _LT_EOF
11111
11342
  # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11112
11343
  # as there is no search path for DLLs.
11113
11344
  hardcode_libdir_flag_spec='-L$libdir'
11114
- export_dynamic_flag_spec='${wl}--export-all-symbols'
11345
+ export_dynamic_flag_spec='$wl--export-all-symbols'
11115
11346
  allow_undefined_flag=unsupported
11116
11347
  always_export_symbols=no
11117
11348
  enable_shared_with_static_runtimes=yes
@@ -11119,61 +11350,89 @@ _LT_EOF
11119
11350
  exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11120
11351
 
11121
11352
  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11122
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11123
- # If the export-symbols file already is a .def file (1st line
11124
- # is EXPORTS), use it as is; otherwise, prepend...
11125
- archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11126
- cp $export_symbols $output_objdir/$soname.def;
11127
- else
11128
- echo EXPORTS > $output_objdir/$soname.def;
11129
- cat $export_symbols >> $output_objdir/$soname.def;
11130
- fi~
11131
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11353
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11354
+ # If the export-symbols file already is a .def file, use it as
11355
+ # is; otherwise, prepend EXPORTS...
11356
+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11357
+ cp $export_symbols $output_objdir/$soname.def;
11358
+ else
11359
+ echo EXPORTS > $output_objdir/$soname.def;
11360
+ cat $export_symbols >> $output_objdir/$soname.def;
11361
+ fi~
11362
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11132
11363
  else
11133
11364
  ld_shlibs=no
11134
11365
  fi
11135
11366
  ;;
11136
11367
 
11137
11368
  haiku*)
11138
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11369
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11139
11370
  link_all_deplibs=yes
11140
11371
  ;;
11141
11372
 
11373
+ os2*)
11374
+ hardcode_libdir_flag_spec='-L$libdir'
11375
+ hardcode_minus_L=yes
11376
+ allow_undefined_flag=unsupported
11377
+ shrext_cmds=.dll
11378
+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11379
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11380
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11381
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
11382
+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11383
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11384
+ emximp -o $lib $output_objdir/$libname.def'
11385
+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11386
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11387
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11388
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
11389
+ prefix_cmds="$SED"~
11390
+ if test EXPORTS = "`$SED 1q $export_symbols`"; then
11391
+ prefix_cmds="$prefix_cmds -e 1d";
11392
+ fi~
11393
+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11394
+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11395
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11396
+ emximp -o $lib $output_objdir/$libname.def'
11397
+ old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11398
+ enable_shared_with_static_runtimes=yes
11399
+ ;;
11400
+
11142
11401
  interix[3-9]*)
11143
11402
  hardcode_direct=no
11144
11403
  hardcode_shlibpath_var=no
11145
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11146
- export_dynamic_flag_spec='${wl}-E'
11404
+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11405
+ export_dynamic_flag_spec='$wl-E'
11147
11406
  # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11148
11407
  # Instead, shared libraries are loaded at an image base (0x10000000 by
11149
11408
  # default) and relocated if they conflict, which is a slow very memory
11150
11409
  # consuming and fragmenting process. To avoid this, we pick a random,
11151
11410
  # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11152
11411
  # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11153
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11154
- 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'
11412
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11413
+ 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'
11155
11414
  ;;
11156
11415
 
11157
11416
  gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11158
11417
  tmp_diet=no
11159
- if test "$host_os" = linux-dietlibc; then
11418
+ if test linux-dietlibc = "$host_os"; then
11160
11419
  case $cc_basename in
11161
11420
  diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11162
11421
  esac
11163
11422
  fi
11164
11423
  if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11165
- && test "$tmp_diet" = no
11424
+ && test no = "$tmp_diet"
11166
11425
  then
11167
11426
  tmp_addflag=' $pic_flag'
11168
11427
  tmp_sharedflag='-shared'
11169
11428
  case $cc_basename,$host_cpu in
11170
11429
  pgcc*) # Portland Group C compiler
11171
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11430
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11172
11431
  tmp_addflag=' $pic_flag'
11173
11432
  ;;
11174
11433
  pgf77* | pgf90* | pgf95* | pgfortran*)
11175
11434
  # Portland Group f77 and f90 compilers
11176
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11435
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11177
11436
  tmp_addflag=' $pic_flag -Mnomain' ;;
11178
11437
  ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11179
11438
  tmp_addflag=' -i_dynamic' ;;
@@ -11184,42 +11443,47 @@ _LT_EOF
11184
11443
  lf95*) # Lahey Fortran 8.1
11185
11444
  whole_archive_flag_spec=
11186
11445
  tmp_sharedflag='--shared' ;;
11446
+ nagfor*) # NAGFOR 5.3
11447
+ tmp_sharedflag='-Wl,-shared' ;;
11187
11448
  xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11188
11449
  tmp_sharedflag='-qmkshrobj'
11189
11450
  tmp_addflag= ;;
11190
11451
  nvcc*) # Cuda Compiler Driver 2.2
11191
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11452
+ whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11192
11453
  compiler_needs_object=yes
11193
11454
  ;;
11194
11455
  esac
11195
11456
  case `$CC -V 2>&1 | sed 5q` in
11196
11457
  *Sun\ C*) # Sun C 5.9
11197
- 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'
11458
+ 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'
11198
11459
  compiler_needs_object=yes
11199
11460
  tmp_sharedflag='-G' ;;
11200
11461
  *Sun\ F*) # Sun Fortran 8.3
11201
11462
  tmp_sharedflag='-G' ;;
11202
11463
  esac
11203
- archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11204
11465
 
11205
- if test "x$supports_anon_versioning" = xyes; then
11466
+ if test yes = "$supports_anon_versioning"; then
11206
11467
  archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11207
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11208
- echo "local: *; };" >> $output_objdir/$libname.ver~
11209
- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11468
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11469
+ echo "local: *; };" >> $output_objdir/$libname.ver~
11470
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11210
11471
  fi
11211
11472
 
11212
11473
  case $cc_basename in
11474
+ tcc*)
11475
+ export_dynamic_flag_spec='-rdynamic'
11476
+ ;;
11213
11477
  xlf* | bgf* | bgxlf* | mpixlf*)
11214
11478
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11215
11479
  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11216
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11480
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11217
11481
  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11218
- if test "x$supports_anon_versioning" = xyes; then
11482
+ if test yes = "$supports_anon_versioning"; then
11219
11483
  archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11220
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11221
- echo "local: *; };" >> $output_objdir/$libname.ver~
11222
- $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11484
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11485
+ echo "local: *; };" >> $output_objdir/$libname.ver~
11486
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11223
11487
  fi
11224
11488
  ;;
11225
11489
  esac
@@ -11233,8 +11497,8 @@ _LT_EOF
11233
11497
  archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11234
11498
  wlarc=
11235
11499
  else
11236
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11237
- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11500
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11501
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11238
11502
  fi
11239
11503
  ;;
11240
11504
 
@@ -11252,8 +11516,8 @@ _LT_EOF
11252
11516
 
11253
11517
  _LT_EOF
11254
11518
  elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11255
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256
- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11519
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11520
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11257
11521
  else
11258
11522
  ld_shlibs=no
11259
11523
  fi
@@ -11265,7 +11529,7 @@ _LT_EOF
11265
11529
  ld_shlibs=no
11266
11530
  cat <<_LT_EOF 1>&2
11267
11531
 
11268
- *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11532
+ *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11269
11533
  *** reliably create shared libraries on SCO systems. Therefore, libtool
11270
11534
  *** is disabling shared libraries support. We urge you to upgrade GNU
11271
11535
  *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
@@ -11280,9 +11544,9 @@ _LT_EOF
11280
11544
  # DT_RUNPATH tag from executables and libraries. But doing so
11281
11545
  # requires that you compile everything twice, which is a pain.
11282
11546
  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11283
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11284
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11285
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11547
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11548
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11549
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11286
11550
  else
11287
11551
  ld_shlibs=no
11288
11552
  fi
@@ -11299,15 +11563,15 @@ _LT_EOF
11299
11563
 
11300
11564
  *)
11301
11565
  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11302
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11303
- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11566
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11567
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11304
11568
  else
11305
11569
  ld_shlibs=no
11306
11570
  fi
11307
11571
  ;;
11308
11572
  esac
11309
11573
 
11310
- if test "$ld_shlibs" = no; then
11574
+ if test no = "$ld_shlibs"; then
11311
11575
  runpath_var=
11312
11576
  hardcode_libdir_flag_spec=
11313
11577
  export_dynamic_flag_spec=
@@ -11323,7 +11587,7 @@ _LT_EOF
11323
11587
  # Note: this linker hardcodes the directories in LIBPATH if there
11324
11588
  # are no directories specified by -L.
11325
11589
  hardcode_minus_L=yes
11326
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11590
+ if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11327
11591
  # Neither direct hardcoding nor static linking is supported with a
11328
11592
  # broken collect2.
11329
11593
  hardcode_direct=unsupported
@@ -11331,34 +11595,57 @@ _LT_EOF
11331
11595
  ;;
11332
11596
 
11333
11597
  aix[4-9]*)
11334
- if test "$host_cpu" = ia64; then
11598
+ if test ia64 = "$host_cpu"; then
11335
11599
  # On IA64, the linker does run time linking by default, so we don't
11336
11600
  # have to do anything special.
11337
11601
  aix_use_runtimelinking=no
11338
11602
  exp_sym_flag='-Bexport'
11339
- no_entry_flag=""
11603
+ no_entry_flag=
11340
11604
  else
11341
11605
  # If we're using GNU nm, then we don't want the "-C" option.
11342
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
11343
- # Also, AIX nm treats weak defined symbols like other global
11344
- # defined symbols, whereas GNU nm marks them as "W".
11606
+ # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11607
+ # Without the "-l" option, or with the "-B" option, AIX nm treats
11608
+ # weak defined symbols like other global defined symbols, whereas
11609
+ # GNU nm marks them as "W".
11610
+ # While the 'weak' keyword is ignored in the Export File, we need
11611
+ # it in the Import File for the 'aix-soname' feature, so we have
11612
+ # to replace the "-B" option with "-P" for AIX nm.
11345
11613
  if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11346
- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11614
+ 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'
11347
11615
  else
11348
- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11616
+ 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'
11349
11617
  fi
11350
11618
  aix_use_runtimelinking=no
11351
11619
 
11352
11620
  # Test if we are trying to use run time linking or normal
11353
11621
  # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11354
- # need to do runtime linking.
11622
+ # have runtime linking enabled, and use it for executables.
11623
+ # For shared libraries, we enable/disable runtime linking
11624
+ # depending on the kind of the shared library created -
11625
+ # when "with_aix_soname,aix_use_runtimelinking" is:
11626
+ # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11627
+ # "aix,yes" lib.so shared, rtl:yes, for executables
11628
+ # lib.a static archive
11629
+ # "both,no" lib.so.V(shr.o) shared, rtl:yes
11630
+ # lib.a(lib.so.V) shared, rtl:no, for executables
11631
+ # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11632
+ # lib.a(lib.so.V) shared, rtl:no
11633
+ # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11634
+ # lib.a static archive
11355
11635
  case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11356
11636
  for ld_flag in $LDFLAGS; do
11357
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11637
+ if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11358
11638
  aix_use_runtimelinking=yes
11359
11639
  break
11360
11640
  fi
11361
11641
  done
11642
+ if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11643
+ # With aix-soname=svr4, we create the lib.so.V shared archives only,
11644
+ # so we don't have lib.a shared libs to link our executables.
11645
+ # We have to force runtime linking in this case.
11646
+ aix_use_runtimelinking=yes
11647
+ LDFLAGS="$LDFLAGS -Wl,-brtl"
11648
+ fi
11362
11649
  ;;
11363
11650
  esac
11364
11651
 
@@ -11377,13 +11664,21 @@ _LT_EOF
11377
11664
  hardcode_direct_absolute=yes
11378
11665
  hardcode_libdir_separator=':'
11379
11666
  link_all_deplibs=yes
11380
- file_list_spec='${wl}-f,'
11667
+ file_list_spec='$wl-f,'
11668
+ case $with_aix_soname,$aix_use_runtimelinking in
11669
+ aix,*) ;; # traditional, no import file
11670
+ svr4,* | *,yes) # use import file
11671
+ # The Import File defines what to hardcode.
11672
+ hardcode_direct=no
11673
+ hardcode_direct_absolute=no
11674
+ ;;
11675
+ esac
11381
11676
 
11382
- if test "$GCC" = yes; then
11677
+ if test yes = "$GCC"; then
11383
11678
  case $host_os in aix4.[012]|aix4.[012].*)
11384
11679
  # We only want to do this on AIX 4.2 and lower, the check
11385
11680
  # below for broken collect2 doesn't work under 4.3+
11386
- collect2name=`${CC} -print-prog-name=collect2`
11681
+ collect2name=`$CC -print-prog-name=collect2`
11387
11682
  if test -f "$collect2name" &&
11388
11683
  strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11389
11684
  then
@@ -11402,35 +11697,42 @@ _LT_EOF
11402
11697
  ;;
11403
11698
  esac
11404
11699
  shared_flag='-shared'
11405
- if test "$aix_use_runtimelinking" = yes; then
11406
- shared_flag="$shared_flag "'${wl}-G'
11700
+ if test yes = "$aix_use_runtimelinking"; then
11701
+ shared_flag="$shared_flag "'$wl-G'
11407
11702
  fi
11703
+ # Need to ensure runtime linking is disabled for the traditional
11704
+ # shared library, or the linker may eventually find shared libraries
11705
+ # /with/ Import File - we do not want to mix them.
11706
+ shared_flag_aix='-shared'
11707
+ shared_flag_svr4='-shared $wl-G'
11408
11708
  else
11409
11709
  # not using gcc
11410
- if test "$host_cpu" = ia64; then
11710
+ if test ia64 = "$host_cpu"; then
11411
11711
  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11412
11712
  # chokes on -Wl,-G. The following line is correct:
11413
11713
  shared_flag='-G'
11414
11714
  else
11415
- if test "$aix_use_runtimelinking" = yes; then
11416
- shared_flag='${wl}-G'
11715
+ if test yes = "$aix_use_runtimelinking"; then
11716
+ shared_flag='$wl-G'
11417
11717
  else
11418
- shared_flag='${wl}-bM:SRE'
11718
+ shared_flag='$wl-bM:SRE'
11419
11719
  fi
11720
+ shared_flag_aix='$wl-bM:SRE'
11721
+ shared_flag_svr4='$wl-G'
11420
11722
  fi
11421
11723
  fi
11422
11724
 
11423
- export_dynamic_flag_spec='${wl}-bexpall'
11725
+ export_dynamic_flag_spec='$wl-bexpall'
11424
11726
  # It seems that -bexpall does not export symbols beginning with
11425
11727
  # underscore (_), so it is better to generate a list of symbols to export.
11426
11728
  always_export_symbols=yes
11427
- if test "$aix_use_runtimelinking" = yes; then
11729
+ if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11428
11730
  # Warning - without using the other runtime loading flags (-brtl),
11429
11731
  # -berok will link without error, but may produce a broken library.
11430
11732
  allow_undefined_flag='-berok'
11431
11733
  # Determine the default libpath from the value encoded in an
11432
11734
  # empty executable.
11433
- if test "${lt_cv_aix_libpath+set}" = set; then
11735
+ if test set = "${lt_cv_aix_libpath+set}"; then
11434
11736
  aix_libpath=$lt_cv_aix_libpath
11435
11737
  else
11436
11738
  if ${lt_cv_aix_libpath_+:} false; then :
@@ -11465,7 +11767,7 @@ fi
11465
11767
  rm -f core conftest.err conftest.$ac_objext \
11466
11768
  conftest$ac_exeext conftest.$ac_ext
11467
11769
  if test -z "$lt_cv_aix_libpath_"; then
11468
- lt_cv_aix_libpath_="/usr/lib:/lib"
11770
+ lt_cv_aix_libpath_=/usr/lib:/lib
11469
11771
  fi
11470
11772
 
11471
11773
  fi
@@ -11473,17 +11775,17 @@ fi
11473
11775
  aix_libpath=$lt_cv_aix_libpath_
11474
11776
  fi
11475
11777
 
11476
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11477
- archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11778
+ hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11779
+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11478
11780
  else
11479
- if test "$host_cpu" = ia64; then
11480
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11781
+ if test ia64 = "$host_cpu"; then
11782
+ hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11481
11783
  allow_undefined_flag="-z nodefs"
11482
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11784
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11483
11785
  else
11484
11786
  # Determine the default libpath from the value encoded in an
11485
11787
  # empty executable.
11486
- if test "${lt_cv_aix_libpath+set}" = set; then
11788
+ if test set = "${lt_cv_aix_libpath+set}"; then
11487
11789
  aix_libpath=$lt_cv_aix_libpath
11488
11790
  else
11489
11791
  if ${lt_cv_aix_libpath_+:} false; then :
@@ -11518,7 +11820,7 @@ fi
11518
11820
  rm -f core conftest.err conftest.$ac_objext \
11519
11821
  conftest$ac_exeext conftest.$ac_ext
11520
11822
  if test -z "$lt_cv_aix_libpath_"; then
11521
- lt_cv_aix_libpath_="/usr/lib:/lib"
11823
+ lt_cv_aix_libpath_=/usr/lib:/lib
11522
11824
  fi
11523
11825
 
11524
11826
  fi
@@ -11526,21 +11828,33 @@ fi
11526
11828
  aix_libpath=$lt_cv_aix_libpath_
11527
11829
  fi
11528
11830
 
11529
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11831
+ hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11530
11832
  # Warning - without using the other run time loading flags,
11531
11833
  # -berok will link without error, but may produce a broken library.
11532
- no_undefined_flag=' ${wl}-bernotok'
11533
- allow_undefined_flag=' ${wl}-berok'
11534
- if test "$with_gnu_ld" = yes; then
11834
+ no_undefined_flag=' $wl-bernotok'
11835
+ allow_undefined_flag=' $wl-berok'
11836
+ if test yes = "$with_gnu_ld"; then
11535
11837
  # We only use this code for GNU lds that support --whole-archive.
11536
- whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11838
+ whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11537
11839
  else
11538
11840
  # Exported symbols can be pulled into shared objects from archives
11539
11841
  whole_archive_flag_spec='$convenience'
11540
11842
  fi
11541
11843
  archive_cmds_need_lc=yes
11542
- # This is similar to how AIX traditionally builds its shared libraries.
11543
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11844
+ archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11845
+ # -brtl affects multiple linker settings, -berok does not and is overridden later
11846
+ compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11847
+ if test svr4 != "$with_aix_soname"; then
11848
+ # This is similar to how AIX traditionally builds its shared libraries.
11849
+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11850
+ fi
11851
+ if test aix != "$with_aix_soname"; then
11852
+ archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11853
+ else
11854
+ # used by -dlpreopen to get the symbols
11855
+ archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11856
+ fi
11857
+ archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11544
11858
  fi
11545
11859
  fi
11546
11860
  ;;
@@ -11549,7 +11863,7 @@ fi
11549
11863
  case $host_cpu in
11550
11864
  powerpc)
11551
11865
  # see comment about AmigaOS4 .so support
11552
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11866
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11553
11867
  archive_expsym_cmds=''
11554
11868
  ;;
11555
11869
  m68k)
@@ -11579,16 +11893,17 @@ fi
11579
11893
  # Tell ltmain to make .lib files, not .a files.
11580
11894
  libext=lib
11581
11895
  # Tell ltmain to make .dll files, not .so files.
11582
- shrext_cmds=".dll"
11896
+ shrext_cmds=.dll
11583
11897
  # FIXME: Setting linknames here is a bad hack.
11584
- archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11585
- archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11586
- sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11587
- else
11588
- sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11589
- fi~
11590
- $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11591
- linknames='
11898
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11899
+ archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11900
+ cp "$export_symbols" "$output_objdir/$soname.def";
11901
+ echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11902
+ else
11903
+ $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11904
+ fi~
11905
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11906
+ linknames='
11592
11907
  # The linker will not automatically build a static lib if we build a DLL.
11593
11908
  # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11594
11909
  enable_shared_with_static_runtimes=yes
@@ -11597,18 +11912,18 @@ fi
11597
11912
  # Don't use ranlib
11598
11913
  old_postinstall_cmds='chmod 644 $oldlib'
11599
11914
  postlink_cmds='lt_outputfile="@OUTPUT@"~
11600
- lt_tool_outputfile="@TOOL_OUTPUT@"~
11601
- case $lt_outputfile in
11602
- *.exe|*.EXE) ;;
11603
- *)
11604
- lt_outputfile="$lt_outputfile.exe"
11605
- lt_tool_outputfile="$lt_tool_outputfile.exe"
11606
- ;;
11607
- esac~
11608
- if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11609
- $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11610
- $RM "$lt_outputfile.manifest";
11611
- fi'
11915
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
11916
+ case $lt_outputfile in
11917
+ *.exe|*.EXE) ;;
11918
+ *)
11919
+ lt_outputfile=$lt_outputfile.exe
11920
+ lt_tool_outputfile=$lt_tool_outputfile.exe
11921
+ ;;
11922
+ esac~
11923
+ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11924
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11925
+ $RM "$lt_outputfile.manifest";
11926
+ fi'
11612
11927
  ;;
11613
11928
  *)
11614
11929
  # Assume MSVC wrapper
@@ -11617,7 +11932,7 @@ fi
11617
11932
  # Tell ltmain to make .lib files, not .a files.
11618
11933
  libext=lib
11619
11934
  # Tell ltmain to make .dll files, not .so files.
11620
- shrext_cmds=".dll"
11935
+ shrext_cmds=.dll
11621
11936
  # FIXME: Setting linknames here is a bad hack.
11622
11937
  archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11623
11938
  # The linker will automatically build a .lib file if we build a DLL.
@@ -11636,24 +11951,24 @@ fi
11636
11951
  hardcode_direct=no
11637
11952
  hardcode_automatic=yes
11638
11953
  hardcode_shlibpath_var=unsupported
11639
- if test "$lt_cv_ld_force_load" = "yes"; then
11640
- whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11954
+ if test yes = "$lt_cv_ld_force_load"; then
11955
+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11641
11956
 
11642
11957
  else
11643
11958
  whole_archive_flag_spec=''
11644
11959
  fi
11645
11960
  link_all_deplibs=yes
11646
- allow_undefined_flag="$_lt_dar_allow_undefined"
11961
+ allow_undefined_flag=$_lt_dar_allow_undefined
11647
11962
  case $cc_basename in
11648
- ifort*) _lt_dar_can_shared=yes ;;
11963
+ ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11649
11964
  *) _lt_dar_can_shared=$GCC ;;
11650
11965
  esac
11651
- if test "$_lt_dar_can_shared" = "yes"; then
11966
+ if test yes = "$_lt_dar_can_shared"; then
11652
11967
  output_verbose_link_cmd=func_echo_all
11653
- archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11654
- module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11655
- 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}"
11656
- 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}"
11968
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11969
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11970
+ 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"
11971
+ 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"
11657
11972
 
11658
11973
  else
11659
11974
  ld_shlibs=no
@@ -11695,33 +12010,33 @@ fi
11695
12010
  ;;
11696
12011
 
11697
12012
  hpux9*)
11698
- if test "$GCC" = yes; then
11699
- archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12013
+ if test yes = "$GCC"; then
12014
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11700
12015
  else
11701
- archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12016
+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11702
12017
  fi
11703
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12018
+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11704
12019
  hardcode_libdir_separator=:
11705
12020
  hardcode_direct=yes
11706
12021
 
11707
12022
  # hardcode_minus_L: Not really in the search PATH,
11708
12023
  # but as the default location of the library.
11709
12024
  hardcode_minus_L=yes
11710
- export_dynamic_flag_spec='${wl}-E'
12025
+ export_dynamic_flag_spec='$wl-E'
11711
12026
  ;;
11712
12027
 
11713
12028
  hpux10*)
11714
- if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11715
- archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12029
+ if test yes,no = "$GCC,$with_gnu_ld"; then
12030
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11716
12031
  else
11717
12032
  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11718
12033
  fi
11719
- if test "$with_gnu_ld" = no; then
11720
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12034
+ if test no = "$with_gnu_ld"; then
12035
+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11721
12036
  hardcode_libdir_separator=:
11722
12037
  hardcode_direct=yes
11723
12038
  hardcode_direct_absolute=yes
11724
- export_dynamic_flag_spec='${wl}-E'
12039
+ export_dynamic_flag_spec='$wl-E'
11725
12040
  # hardcode_minus_L: Not really in the search PATH,
11726
12041
  # but as the default location of the library.
11727
12042
  hardcode_minus_L=yes
@@ -11729,25 +12044,25 @@ fi
11729
12044
  ;;
11730
12045
 
11731
12046
  hpux11*)
11732
- if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12047
+ if test yes,no = "$GCC,$with_gnu_ld"; then
11733
12048
  case $host_cpu in
11734
12049
  hppa*64*)
11735
- archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12050
+ archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11736
12051
  ;;
11737
12052
  ia64*)
11738
- archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12053
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11739
12054
  ;;
11740
12055
  *)
11741
- archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12056
+ archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11742
12057
  ;;
11743
12058
  esac
11744
12059
  else
11745
12060
  case $host_cpu in
11746
12061
  hppa*64*)
11747
- archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12062
+ archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11748
12063
  ;;
11749
12064
  ia64*)
11750
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12065
+ archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11751
12066
  ;;
11752
12067
  *)
11753
12068
 
@@ -11759,7 +12074,7 @@ if ${lt_cv_prog_compiler__b+:} false; then :
11759
12074
  $as_echo_n "(cached) " >&6
11760
12075
  else
11761
12076
  lt_cv_prog_compiler__b=no
11762
- save_LDFLAGS="$LDFLAGS"
12077
+ save_LDFLAGS=$LDFLAGS
11763
12078
  LDFLAGS="$LDFLAGS -b"
11764
12079
  echo "$lt_simple_link_test_code" > conftest.$ac_ext
11765
12080
  if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
@@ -11778,14 +12093,14 @@ else
11778
12093
  fi
11779
12094
  fi
11780
12095
  $RM -r conftest*
11781
- LDFLAGS="$save_LDFLAGS"
12096
+ LDFLAGS=$save_LDFLAGS
11782
12097
 
11783
12098
  fi
11784
12099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11785
12100
  $as_echo "$lt_cv_prog_compiler__b" >&6; }
11786
12101
 
11787
- if test x"$lt_cv_prog_compiler__b" = xyes; then
11788
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12102
+ if test yes = "$lt_cv_prog_compiler__b"; then
12103
+ archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11789
12104
  else
11790
12105
  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11791
12106
  fi
@@ -11793,8 +12108,8 @@ fi
11793
12108
  ;;
11794
12109
  esac
11795
12110
  fi
11796
- if test "$with_gnu_ld" = no; then
11797
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12111
+ if test no = "$with_gnu_ld"; then
12112
+ hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11798
12113
  hardcode_libdir_separator=:
11799
12114
 
11800
12115
  case $host_cpu in
@@ -11805,7 +12120,7 @@ fi
11805
12120
  *)
11806
12121
  hardcode_direct=yes
11807
12122
  hardcode_direct_absolute=yes
11808
- export_dynamic_flag_spec='${wl}-E'
12123
+ export_dynamic_flag_spec='$wl-E'
11809
12124
 
11810
12125
  # hardcode_minus_L: Not really in the search PATH,
11811
12126
  # but as the default location of the library.
@@ -11816,8 +12131,8 @@ fi
11816
12131
  ;;
11817
12132
 
11818
12133
  irix5* | irix6* | nonstopux*)
11819
- if test "$GCC" = yes; then
11820
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12134
+ if test yes = "$GCC"; then
12135
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11821
12136
  # Try to use the -exported_symbol ld option, if it does not
11822
12137
  # work, assume that -exports_file does not work either and
11823
12138
  # implicitly export all symbols.
@@ -11827,8 +12142,8 @@ $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >
11827
12142
  if ${lt_cv_irix_exported_symbol+:} false; then :
11828
12143
  $as_echo_n "(cached) " >&6
11829
12144
  else
11830
- save_LDFLAGS="$LDFLAGS"
11831
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12145
+ save_LDFLAGS=$LDFLAGS
12146
+ LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11832
12147
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833
12148
  /* end confdefs.h. */
11834
12149
  int foo (void) { return 0; }
@@ -11840,24 +12155,34 @@ else
11840
12155
  fi
11841
12156
  rm -f core conftest.err conftest.$ac_objext \
11842
12157
  conftest$ac_exeext conftest.$ac_ext
11843
- LDFLAGS="$save_LDFLAGS"
12158
+ LDFLAGS=$save_LDFLAGS
11844
12159
  fi
11845
12160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11846
12161
  $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11847
- if test "$lt_cv_irix_exported_symbol" = yes; then
11848
- archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12162
+ if test yes = "$lt_cv_irix_exported_symbol"; then
12163
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11849
12164
  fi
11850
12165
  else
11851
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11852
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12166
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12167
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11853
12168
  fi
11854
12169
  archive_cmds_need_lc='no'
11855
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12170
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11856
12171
  hardcode_libdir_separator=:
11857
12172
  inherit_rpath=yes
11858
12173
  link_all_deplibs=yes
11859
12174
  ;;
11860
12175
 
12176
+ linux*)
12177
+ case $cc_basename in
12178
+ tcc*)
12179
+ # Fabrice Bellard et al's Tiny C Compiler
12180
+ ld_shlibs=yes
12181
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12182
+ ;;
12183
+ esac
12184
+ ;;
12185
+
11861
12186
  netbsd*)
11862
12187
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11863
12188
  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
@@ -11872,7 +12197,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11872
12197
  newsos6)
11873
12198
  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11874
12199
  hardcode_direct=yes
11875
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12200
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11876
12201
  hardcode_libdir_separator=:
11877
12202
  hardcode_shlibpath_var=no
11878
12203
  ;;
@@ -11880,27 +12205,19 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11880
12205
  *nto* | *qnx*)
11881
12206
  ;;
11882
12207
 
11883
- openbsd*)
12208
+ openbsd* | bitrig*)
11884
12209
  if test -f /usr/libexec/ld.so; then
11885
12210
  hardcode_direct=yes
11886
12211
  hardcode_shlibpath_var=no
11887
12212
  hardcode_direct_absolute=yes
11888
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12213
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11889
12214
  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11890
- archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11891
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11892
- export_dynamic_flag_spec='${wl}-E'
12215
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12216
+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12217
+ export_dynamic_flag_spec='$wl-E'
11893
12218
  else
11894
- case $host_os in
11895
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11896
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11897
- hardcode_libdir_flag_spec='-R$libdir'
11898
- ;;
11899
- *)
11900
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11901
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11902
- ;;
11903
- esac
12219
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12220
+ hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11904
12221
  fi
11905
12222
  else
11906
12223
  ld_shlibs=no
@@ -11911,33 +12228,53 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11911
12228
  hardcode_libdir_flag_spec='-L$libdir'
11912
12229
  hardcode_minus_L=yes
11913
12230
  allow_undefined_flag=unsupported
11914
- archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11915
- old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12231
+ shrext_cmds=.dll
12232
+ archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12233
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12234
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12235
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
12236
+ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12237
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12238
+ emximp -o $lib $output_objdir/$libname.def'
12239
+ archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12240
+ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12241
+ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12242
+ $ECHO EXPORTS >> $output_objdir/$libname.def~
12243
+ prefix_cmds="$SED"~
12244
+ if test EXPORTS = "`$SED 1q $export_symbols`"; then
12245
+ prefix_cmds="$prefix_cmds -e 1d";
12246
+ fi~
12247
+ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12248
+ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12249
+ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12250
+ emximp -o $lib $output_objdir/$libname.def'
12251
+ old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12252
+ enable_shared_with_static_runtimes=yes
11916
12253
  ;;
11917
12254
 
11918
12255
  osf3*)
11919
- if test "$GCC" = yes; then
11920
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11921
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12256
+ if test yes = "$GCC"; then
12257
+ allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12258
+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11922
12259
  else
11923
12260
  allow_undefined_flag=' -expect_unresolved \*'
11924
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12261
+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11925
12262
  fi
11926
12263
  archive_cmds_need_lc='no'
11927
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12264
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11928
12265
  hardcode_libdir_separator=:
11929
12266
  ;;
11930
12267
 
11931
12268
  osf4* | osf5*) # as osf3* with the addition of -msym flag
11932
- if test "$GCC" = yes; then
11933
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11934
- archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11935
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12269
+ if test yes = "$GCC"; then
12270
+ allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12271
+ archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12272
+ hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11936
12273
  else
11937
12274
  allow_undefined_flag=' -expect_unresolved \*'
11938
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12275
+ archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11939
12276
  archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11940
- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12277
+ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11941
12278
 
11942
12279
  # Both c and cxx compiler support -rpath directly
11943
12280
  hardcode_libdir_flag_spec='-rpath $libdir'
@@ -11948,24 +12285,24 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11948
12285
 
11949
12286
  solaris*)
11950
12287
  no_undefined_flag=' -z defs'
11951
- if test "$GCC" = yes; then
11952
- wlarc='${wl}'
11953
- archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12288
+ if test yes = "$GCC"; then
12289
+ wlarc='$wl'
12290
+ archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11954
12291
  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11955
- $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12292
+ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11956
12293
  else
11957
12294
  case `$CC -V 2>&1` in
11958
12295
  *"Compilers 5.0"*)
11959
12296
  wlarc=''
11960
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12297
+ archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11961
12298
  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11962
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12299
+ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11963
12300
  ;;
11964
12301
  *)
11965
- wlarc='${wl}'
11966
- archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12302
+ wlarc='$wl'
12303
+ archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11967
12304
  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11968
- $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12305
+ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11969
12306
  ;;
11970
12307
  esac
11971
12308
  fi
@@ -11975,11 +12312,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11975
12312
  solaris2.[0-5] | solaris2.[0-5].*) ;;
11976
12313
  *)
11977
12314
  # The compiler driver will combine and reorder linker options,
11978
- # but understands `-z linker_flag'. GCC discards it without `$wl',
12315
+ # but understands '-z linker_flag'. GCC discards it without '$wl',
11979
12316
  # but is careful enough not to reorder.
11980
12317
  # Supported since Solaris 2.6 (maybe 2.5.1?)
11981
- if test "$GCC" = yes; then
11982
- whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12318
+ if test yes = "$GCC"; then
12319
+ whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11983
12320
  else
11984
12321
  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11985
12322
  fi
@@ -11989,10 +12326,10 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11989
12326
  ;;
11990
12327
 
11991
12328
  sunos4*)
11992
- if test "x$host_vendor" = xsequent; then
12329
+ if test sequent = "$host_vendor"; then
11993
12330
  # Use $CC to link under sequent, because it throws in some extra .o
11994
12331
  # files that make .init and .fini sections work.
11995
- archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12332
+ archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11996
12333
  else
11997
12334
  archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11998
12335
  fi
@@ -12041,43 +12378,43 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12041
12378
  ;;
12042
12379
 
12043
12380
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12044
- no_undefined_flag='${wl}-z,text'
12381
+ no_undefined_flag='$wl-z,text'
12045
12382
  archive_cmds_need_lc=no
12046
12383
  hardcode_shlibpath_var=no
12047
12384
  runpath_var='LD_RUN_PATH'
12048
12385
 
12049
- if test "$GCC" = yes; then
12050
- archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12051
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12386
+ if test yes = "$GCC"; then
12387
+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12388
+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12052
12389
  else
12053
- archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12054
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12390
+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12391
+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12055
12392
  fi
12056
12393
  ;;
12057
12394
 
12058
12395
  sysv5* | sco3.2v5* | sco5v6*)
12059
- # Note: We can NOT use -z defs as we might desire, because we do not
12396
+ # Note: We CANNOT use -z defs as we might desire, because we do not
12060
12397
  # link with -lc, and that would cause any symbols used from libc to
12061
12398
  # always be unresolved, which means just about no library would
12062
12399
  # ever link correctly. If we're not using GNU ld we use -z text
12063
12400
  # though, which does catch some bad symbols but isn't as heavy-handed
12064
12401
  # as -z defs.
12065
- no_undefined_flag='${wl}-z,text'
12066
- allow_undefined_flag='${wl}-z,nodefs'
12402
+ no_undefined_flag='$wl-z,text'
12403
+ allow_undefined_flag='$wl-z,nodefs'
12067
12404
  archive_cmds_need_lc=no
12068
12405
  hardcode_shlibpath_var=no
12069
- hardcode_libdir_flag_spec='${wl}-R,$libdir'
12406
+ hardcode_libdir_flag_spec='$wl-R,$libdir'
12070
12407
  hardcode_libdir_separator=':'
12071
12408
  link_all_deplibs=yes
12072
- export_dynamic_flag_spec='${wl}-Bexport'
12409
+ export_dynamic_flag_spec='$wl-Bexport'
12073
12410
  runpath_var='LD_RUN_PATH'
12074
12411
 
12075
- if test "$GCC" = yes; then
12076
- archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12412
+ if test yes = "$GCC"; then
12413
+ archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414
+ archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078
12415
  else
12079
- archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12080
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12416
+ archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12417
+ archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081
12418
  fi
12082
12419
  ;;
12083
12420
 
@@ -12092,10 +12429,10 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12092
12429
  ;;
12093
12430
  esac
12094
12431
 
12095
- if test x$host_vendor = xsni; then
12432
+ if test sni = "$host_vendor"; then
12096
12433
  case $host in
12097
12434
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12098
- export_dynamic_flag_spec='${wl}-Blargedynsym'
12435
+ export_dynamic_flag_spec='$wl-Blargedynsym'
12099
12436
  ;;
12100
12437
  esac
12101
12438
  fi
@@ -12103,7 +12440,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12103
12440
 
12104
12441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12105
12442
  $as_echo "$ld_shlibs" >&6; }
12106
- test "$ld_shlibs" = no && can_build_shared=no
12443
+ test no = "$ld_shlibs" && can_build_shared=no
12107
12444
 
12108
12445
  with_gnu_ld=$with_gnu_ld
12109
12446
 
@@ -12129,7 +12466,7 @@ x|xyes)
12129
12466
  # Assume -lc should be added
12130
12467
  archive_cmds_need_lc=yes
12131
12468
 
12132
- if test "$enable_shared" = yes && test "$GCC" = yes; then
12469
+ if test yes,yes = "$GCC,$enable_shared"; then
12133
12470
  case $archive_cmds in
12134
12471
  *'~'*)
12135
12472
  # FIXME: we may have to deal with multi-command sequences.
@@ -12344,14 +12681,14 @@ esac
12344
12681
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12345
12682
  $as_echo_n "checking dynamic linker characteristics... " >&6; }
12346
12683
 
12347
- if test "$GCC" = yes; then
12684
+ if test yes = "$GCC"; then
12348
12685
  case $host_os in
12349
- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12350
- *) lt_awk_arg="/^libraries:/" ;;
12686
+ darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12687
+ *) lt_awk_arg='/^libraries:/' ;;
12351
12688
  esac
12352
12689
  case $host_os in
12353
- mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12354
- *) lt_sed_strip_eq="s,=/,/,g" ;;
12690
+ mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12691
+ *) lt_sed_strip_eq='s|=/|/|g' ;;
12355
12692
  esac
12356
12693
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12357
12694
  case $lt_search_path_spec in
@@ -12367,28 +12704,35 @@ if test "$GCC" = yes; then
12367
12704
  ;;
12368
12705
  esac
12369
12706
  # Ok, now we have the path, separated by spaces, we can step through it
12370
- # and add multilib dir if necessary.
12707
+ # and add multilib dir if necessary...
12371
12708
  lt_tmp_lt_search_path_spec=
12372
- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12709
+ lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12710
+ # ...but if some path component already ends with the multilib dir we assume
12711
+ # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12712
+ case "$lt_multi_os_dir; $lt_search_path_spec " in
12713
+ "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12714
+ lt_multi_os_dir=
12715
+ ;;
12716
+ esac
12373
12717
  for lt_sys_path in $lt_search_path_spec; do
12374
- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12375
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12376
- else
12718
+ if test -d "$lt_sys_path$lt_multi_os_dir"; then
12719
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12720
+ elif test -n "$lt_multi_os_dir"; then
12377
12721
  test -d "$lt_sys_path" && \
12378
12722
  lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12379
12723
  fi
12380
12724
  done
12381
12725
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12382
- BEGIN {RS=" "; FS="/|\n";} {
12383
- lt_foo="";
12384
- lt_count=0;
12726
+ BEGIN {RS = " "; FS = "/|\n";} {
12727
+ lt_foo = "";
12728
+ lt_count = 0;
12385
12729
  for (lt_i = NF; lt_i > 0; lt_i--) {
12386
12730
  if ($lt_i != "" && $lt_i != ".") {
12387
12731
  if ($lt_i == "..") {
12388
12732
  lt_count++;
12389
12733
  } else {
12390
12734
  if (lt_count == 0) {
12391
- lt_foo="/" $lt_i lt_foo;
12735
+ lt_foo = "/" $lt_i lt_foo;
12392
12736
  } else {
12393
12737
  lt_count--;
12394
12738
  }
@@ -12402,7 +12746,7 @@ BEGIN {RS=" "; FS="/|\n";} {
12402
12746
  # for these hosts.
12403
12747
  case $host_os in
12404
12748
  mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12405
- $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12749
+ $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12406
12750
  esac
12407
12751
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12408
12752
  else
@@ -12411,7 +12755,7 @@ fi
12411
12755
  library_names_spec=
12412
12756
  libname_spec='lib$name'
12413
12757
  soname_spec=
12414
- shrext_cmds=".so"
12758
+ shrext_cmds=.so
12415
12759
  postinstall_cmds=
12416
12760
  postuninstall_cmds=
12417
12761
  finish_cmds=
@@ -12431,11 +12775,11 @@ need_version=unknown
12431
12775
  case $host_os in
12432
12776
  aix3*)
12433
12777
  version_type=linux # correct to gnu/linux during the next big refactor
12434
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12778
+ library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12435
12779
  shlibpath_var=LIBPATH
12436
12780
 
12437
12781
  # AIX 3 has no versioning support, so we append a major version to the name.
12438
- soname_spec='${libname}${release}${shared_ext}$major'
12782
+ soname_spec='$libname$release$shared_ext$major'
12439
12783
  ;;
12440
12784
 
12441
12785
  aix[4-9]*)
@@ -12443,41 +12787,91 @@ aix[4-9]*)
12443
12787
  need_lib_prefix=no
12444
12788
  need_version=no
12445
12789
  hardcode_into_libs=yes
12446
- if test "$host_cpu" = ia64; then
12790
+ if test ia64 = "$host_cpu"; then
12447
12791
  # AIX 5 supports IA64
12448
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12792
+ library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12449
12793
  shlibpath_var=LD_LIBRARY_PATH
12450
12794
  else
12451
12795
  # With GCC up to 2.95.x, collect2 would create an import file
12452
12796
  # for dependence libraries. The import file would start with
12453
- # the line `#! .'. This would cause the generated library to
12454
- # depend on `.', always an invalid library. This was fixed in
12797
+ # the line '#! .'. This would cause the generated library to
12798
+ # depend on '.', always an invalid library. This was fixed in
12455
12799
  # development snapshots of GCC prior to 3.0.
12456
12800
  case $host_os in
12457
12801
  aix4 | aix4.[01] | aix4.[01].*)
12458
12802
  if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12459
12803
  echo ' yes '
12460
- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12804
+ echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12461
12805
  :
12462
12806
  else
12463
12807
  can_build_shared=no
12464
12808
  fi
12465
12809
  ;;
12466
12810
  esac
12467
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12811
+ # Using Import Files as archive members, it is possible to support
12812
+ # filename-based versioning of shared library archives on AIX. While
12813
+ # this would work for both with and without runtime linking, it will
12814
+ # prevent static linking of such archives. So we do filename-based
12815
+ # shared library versioning with .so extension only, which is used
12816
+ # when both runtime linking and shared linking is enabled.
12817
+ # Unfortunately, runtime linking may impact performance, so we do
12818
+ # not want this to be the default eventually. Also, we use the
12819
+ # versioned .so libs for executables only if there is the -brtl
12820
+ # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12821
+ # To allow for filename-based versioning support, we need to create
12822
+ # libNAME.so.V as an archive file, containing:
12823
+ # *) an Import File, referring to the versioned filename of the
12824
+ # archive as well as the shared archive member, telling the
12825
+ # bitwidth (32 or 64) of that shared object, and providing the
12826
+ # list of exported symbols of that shared object, eventually
12827
+ # decorated with the 'weak' keyword
12828
+ # *) the shared object with the F_LOADONLY flag set, to really avoid
12829
+ # it being seen by the linker.
12830
+ # At run time we better use the real file rather than another symlink,
12831
+ # but for link time we create the symlink libNAME.so -> libNAME.so.V
12832
+
12833
+ case $with_aix_soname,$aix_use_runtimelinking in
12834
+ # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12468
12835
  # soname into executable. Probably we can add versioning support to
12469
12836
  # collect2, so additional links can be useful in future.
12470
- if test "$aix_use_runtimelinking" = yes; then
12837
+ aix,yes) # traditional libtool
12838
+ dynamic_linker='AIX unversionable lib.so'
12471
12839
  # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12472
12840
  # instead of lib<name>.a to let people know that these are not
12473
12841
  # typical AIX shared libraries.
12474
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475
- else
12842
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12843
+ ;;
12844
+ aix,no) # traditional AIX only
12845
+ dynamic_linker='AIX lib.a(lib.so.V)'
12476
12846
  # We preserve .a as extension for shared libraries through AIX4.2
12477
12847
  # and later when we are not doing run time linking.
12478
- library_names_spec='${libname}${release}.a $libname.a'
12479
- soname_spec='${libname}${release}${shared_ext}$major'
12480
- fi
12848
+ library_names_spec='$libname$release.a $libname.a'
12849
+ soname_spec='$libname$release$shared_ext$major'
12850
+ ;;
12851
+ svr4,*) # full svr4 only
12852
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12853
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12854
+ # We do not specify a path in Import Files, so LIBPATH fires.
12855
+ shlibpath_overrides_runpath=yes
12856
+ ;;
12857
+ *,yes) # both, prefer svr4
12858
+ dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12859
+ library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12860
+ # unpreferred sharedlib libNAME.a needs extra handling
12861
+ postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12862
+ postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12863
+ # We do not specify a path in Import Files, so LIBPATH fires.
12864
+ shlibpath_overrides_runpath=yes
12865
+ ;;
12866
+ *,no) # both, prefer aix
12867
+ dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12868
+ library_names_spec='$libname$release.a $libname.a'
12869
+ soname_spec='$libname$release$shared_ext$major'
12870
+ # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12871
+ postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12872
+ postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12873
+ ;;
12874
+ esac
12481
12875
  shlibpath_var=LIBPATH
12482
12876
  fi
12483
12877
  ;;
@@ -12487,18 +12881,18 @@ amigaos*)
12487
12881
  powerpc)
12488
12882
  # Since July 2007 AmigaOS4 officially supports .so libraries.
12489
12883
  # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12490
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12491
12885
  ;;
12492
12886
  m68k)
12493
12887
  library_names_spec='$libname.ixlibrary $libname.a'
12494
12888
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12495
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12889
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12496
12890
  ;;
12497
12891
  esac
12498
12892
  ;;
12499
12893
 
12500
12894
  beos*)
12501
- library_names_spec='${libname}${shared_ext}'
12895
+ library_names_spec='$libname$shared_ext'
12502
12896
  dynamic_linker="$host_os ld.so"
12503
12897
  shlibpath_var=LIBRARY_PATH
12504
12898
  ;;
@@ -12506,8 +12900,8 @@ beos*)
12506
12900
  bsdi[45]*)
12507
12901
  version_type=linux # correct to gnu/linux during the next big refactor
12508
12902
  need_version=no
12509
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12510
- soname_spec='${libname}${release}${shared_ext}$major'
12903
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12904
+ soname_spec='$libname$release$shared_ext$major'
12511
12905
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12512
12906
  shlibpath_var=LD_LIBRARY_PATH
12513
12907
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
@@ -12519,7 +12913,7 @@ bsdi[45]*)
12519
12913
 
12520
12914
  cygwin* | mingw* | pw32* | cegcc*)
12521
12915
  version_type=windows
12522
- shrext_cmds=".dll"
12916
+ shrext_cmds=.dll
12523
12917
  need_version=no
12524
12918
  need_lib_prefix=no
12525
12919
 
@@ -12528,8 +12922,8 @@ cygwin* | mingw* | pw32* | cegcc*)
12528
12922
  # gcc
12529
12923
  library_names_spec='$libname.dll.a'
12530
12924
  # DLL is installed to $(libdir)/../bin by postinstall_cmds
12531
- postinstall_cmds='base_file=`basename \${file}`~
12532
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12925
+ postinstall_cmds='base_file=`basename \$file`~
12926
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12533
12927
  dldir=$destdir/`dirname \$dlpath`~
12534
12928
  test -d \$dldir || mkdir -p \$dldir~
12535
12929
  $install_prog $dir/$dlname \$dldir/$dlname~
@@ -12545,17 +12939,17 @@ cygwin* | mingw* | pw32* | cegcc*)
12545
12939
  case $host_os in
12546
12940
  cygwin*)
12547
12941
  # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12548
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12942
+ soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12549
12943
 
12550
12944
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12551
12945
  ;;
12552
12946
  mingw* | cegcc*)
12553
12947
  # MinGW DLLs use traditional 'lib' prefix
12554
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12948
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12555
12949
  ;;
12556
12950
  pw32*)
12557
12951
  # pw32 DLLs use 'pw' prefix rather than 'lib'
12558
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12952
+ library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12559
12953
  ;;
12560
12954
  esac
12561
12955
  dynamic_linker='Win32 ld.exe'
@@ -12564,8 +12958,8 @@ cygwin* | mingw* | pw32* | cegcc*)
12564
12958
  *,cl*)
12565
12959
  # Native MSVC
12566
12960
  libname_spec='$name'
12567
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12568
- library_names_spec='${libname}.dll.lib'
12961
+ soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12962
+ library_names_spec='$libname.dll.lib'
12569
12963
 
12570
12964
  case $build_os in
12571
12965
  mingw*)
@@ -12592,7 +12986,7 @@ cygwin* | mingw* | pw32* | cegcc*)
12592
12986
  sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12593
12987
  ;;
12594
12988
  *)
12595
- sys_lib_search_path_spec="$LIB"
12989
+ sys_lib_search_path_spec=$LIB
12596
12990
  if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12597
12991
  # It is most probably a Windows format PATH.
12598
12992
  sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
@@ -12605,8 +12999,8 @@ cygwin* | mingw* | pw32* | cegcc*)
12605
12999
  esac
12606
13000
 
12607
13001
  # DLL is installed to $(libdir)/../bin by postinstall_cmds
12608
- postinstall_cmds='base_file=`basename \${file}`~
12609
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13002
+ postinstall_cmds='base_file=`basename \$file`~
13003
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12610
13004
  dldir=$destdir/`dirname \$dlpath`~
12611
13005
  test -d \$dldir || mkdir -p \$dldir~
12612
13006
  $install_prog $dir/$dlname \$dldir/$dlname'
@@ -12619,7 +13013,7 @@ cygwin* | mingw* | pw32* | cegcc*)
12619
13013
 
12620
13014
  *)
12621
13015
  # Assume MSVC wrapper
12622
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13016
+ library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12623
13017
  dynamic_linker='Win32 ld.exe'
12624
13018
  ;;
12625
13019
  esac
@@ -12632,8 +13026,8 @@ darwin* | rhapsody*)
12632
13026
  version_type=darwin
12633
13027
  need_lib_prefix=no
12634
13028
  need_version=no
12635
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12636
- soname_spec='${libname}${release}${major}$shared_ext'
13029
+ library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13030
+ soname_spec='$libname$release$major$shared_ext'
12637
13031
  shlibpath_overrides_runpath=yes
12638
13032
  shlibpath_var=DYLD_LIBRARY_PATH
12639
13033
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
@@ -12646,8 +13040,8 @@ dgux*)
12646
13040
  version_type=linux # correct to gnu/linux during the next big refactor
12647
13041
  need_lib_prefix=no
12648
13042
  need_version=no
12649
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12650
- soname_spec='${libname}${release}${shared_ext}$major'
13043
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13044
+ soname_spec='$libname$release$shared_ext$major'
12651
13045
  shlibpath_var=LD_LIBRARY_PATH
12652
13046
  ;;
12653
13047
 
@@ -12665,12 +13059,12 @@ freebsd* | dragonfly*)
12665
13059
  version_type=freebsd-$objformat
12666
13060
  case $version_type in
12667
13061
  freebsd-elf*)
12668
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13062
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669
13063
  need_version=no
12670
13064
  need_lib_prefix=no
12671
13065
  ;;
12672
13066
  freebsd-*)
12673
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13067
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12674
13068
  need_version=yes
12675
13069
  ;;
12676
13070
  esac
@@ -12695,26 +13089,15 @@ freebsd* | dragonfly*)
12695
13089
  esac
12696
13090
  ;;
12697
13091
 
12698
- gnu*)
12699
- version_type=linux # correct to gnu/linux during the next big refactor
12700
- need_lib_prefix=no
12701
- need_version=no
12702
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12703
- soname_spec='${libname}${release}${shared_ext}$major'
12704
- shlibpath_var=LD_LIBRARY_PATH
12705
- shlibpath_overrides_runpath=no
12706
- hardcode_into_libs=yes
12707
- ;;
12708
-
12709
13092
  haiku*)
12710
13093
  version_type=linux # correct to gnu/linux during the next big refactor
12711
13094
  need_lib_prefix=no
12712
13095
  need_version=no
12713
13096
  dynamic_linker="$host_os runtime_loader"
12714
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12715
- soname_spec='${libname}${release}${shared_ext}$major'
13097
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13098
+ soname_spec='$libname$release$shared_ext$major'
12716
13099
  shlibpath_var=LIBRARY_PATH
12717
- shlibpath_overrides_runpath=yes
13100
+ shlibpath_overrides_runpath=no
12718
13101
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12719
13102
  hardcode_into_libs=yes
12720
13103
  ;;
@@ -12732,9 +13115,9 @@ hpux9* | hpux10* | hpux11*)
12732
13115
  dynamic_linker="$host_os dld.so"
12733
13116
  shlibpath_var=LD_LIBRARY_PATH
12734
13117
  shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12735
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736
- soname_spec='${libname}${release}${shared_ext}$major'
12737
- if test "X$HPUX_IA64_MODE" = X32; then
13118
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13119
+ soname_spec='$libname$release$shared_ext$major'
13120
+ if test 32 = "$HPUX_IA64_MODE"; then
12738
13121
  sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12739
13122
  else
12740
13123
  sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
@@ -12747,8 +13130,8 @@ hpux9* | hpux10* | hpux11*)
12747
13130
  dynamic_linker="$host_os dld.sl"
12748
13131
  shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12749
13132
  shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12750
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12751
- soname_spec='${libname}${release}${shared_ext}$major'
13133
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134
+ soname_spec='$libname$release$shared_ext$major'
12752
13135
  sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12753
13136
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12754
13137
  ;;
@@ -12757,8 +13140,8 @@ hpux9* | hpux10* | hpux11*)
12757
13140
  dynamic_linker="$host_os dld.sl"
12758
13141
  shlibpath_var=SHLIB_PATH
12759
13142
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12760
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12761
- soname_spec='${libname}${release}${shared_ext}$major'
13143
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13144
+ soname_spec='$libname$release$shared_ext$major'
12762
13145
  ;;
12763
13146
  esac
12764
13147
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
@@ -12771,8 +13154,8 @@ interix[3-9]*)
12771
13154
  version_type=linux # correct to gnu/linux during the next big refactor
12772
13155
  need_lib_prefix=no
12773
13156
  need_version=no
12774
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12775
- soname_spec='${libname}${release}${shared_ext}$major'
13157
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13158
+ soname_spec='$libname$release$shared_ext$major'
12776
13159
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12777
13160
  shlibpath_var=LD_LIBRARY_PATH
12778
13161
  shlibpath_overrides_runpath=no
@@ -12783,7 +13166,7 @@ irix5* | irix6* | nonstopux*)
12783
13166
  case $host_os in
12784
13167
  nonstopux*) version_type=nonstopux ;;
12785
13168
  *)
12786
- if test "$lt_cv_prog_gnu_ld" = yes; then
13169
+ if test yes = "$lt_cv_prog_gnu_ld"; then
12787
13170
  version_type=linux # correct to gnu/linux during the next big refactor
12788
13171
  else
12789
13172
  version_type=irix
@@ -12791,8 +13174,8 @@ irix5* | irix6* | nonstopux*)
12791
13174
  esac
12792
13175
  need_lib_prefix=no
12793
13176
  need_version=no
12794
- soname_spec='${libname}${release}${shared_ext}$major'
12795
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13177
+ soname_spec='$libname$release$shared_ext$major'
13178
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12796
13179
  case $host_os in
12797
13180
  irix5* | nonstopux*)
12798
13181
  libsuff= shlibsuff=
@@ -12811,8 +13194,8 @@ irix5* | irix6* | nonstopux*)
12811
13194
  esac
12812
13195
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12813
13196
  shlibpath_overrides_runpath=no
12814
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12815
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13197
+ sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13198
+ sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12816
13199
  hardcode_into_libs=yes
12817
13200
  ;;
12818
13201
 
@@ -12821,13 +13204,33 @@ linux*oldld* | linux*aout* | linux*coff*)
12821
13204
  dynamic_linker=no
12822
13205
  ;;
12823
13206
 
13207
+ linux*android*)
13208
+ version_type=none # Android doesn't support versioned libraries.
13209
+ need_lib_prefix=no
13210
+ need_version=no
13211
+ library_names_spec='$libname$release$shared_ext'
13212
+ soname_spec='$libname$release$shared_ext'
13213
+ finish_cmds=
13214
+ shlibpath_var=LD_LIBRARY_PATH
13215
+ shlibpath_overrides_runpath=yes
13216
+
13217
+ # This implies no fast_install, which is unacceptable.
13218
+ # Some rework will be needed to allow for fast_install
13219
+ # before this can be enabled.
13220
+ hardcode_into_libs=yes
13221
+
13222
+ dynamic_linker='Android linker'
13223
+ # Don't embed -rpath directories since the linker doesn't support them.
13224
+ hardcode_libdir_flag_spec='-L$libdir'
13225
+ ;;
13226
+
12824
13227
  # This must be glibc/ELF.
12825
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
13228
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12826
13229
  version_type=linux # correct to gnu/linux during the next big refactor
12827
13230
  need_lib_prefix=no
12828
13231
  need_version=no
12829
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830
- soname_spec='${libname}${release}${shared_ext}$major'
13232
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13233
+ soname_spec='$libname$release$shared_ext$major'
12831
13234
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12832
13235
  shlibpath_var=LD_LIBRARY_PATH
12833
13236
  shlibpath_overrides_runpath=no
@@ -12891,12 +13294,12 @@ netbsd*)
12891
13294
  need_lib_prefix=no
12892
13295
  need_version=no
12893
13296
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12894
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13297
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12895
13298
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12896
13299
  dynamic_linker='NetBSD (a.out) ld.so'
12897
13300
  else
12898
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12899
- soname_spec='${libname}${release}${shared_ext}$major'
13301
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13302
+ soname_spec='$libname$release$shared_ext$major'
12900
13303
  dynamic_linker='NetBSD ld.elf_so'
12901
13304
  fi
12902
13305
  shlibpath_var=LD_LIBRARY_PATH
@@ -12906,7 +13309,7 @@ netbsd*)
12906
13309
 
12907
13310
  newsos6)
12908
13311
  version_type=linux # correct to gnu/linux during the next big refactor
12909
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12910
13313
  shlibpath_var=LD_LIBRARY_PATH
12911
13314
  shlibpath_overrides_runpath=yes
12912
13315
  ;;
@@ -12915,58 +13318,68 @@ newsos6)
12915
13318
  version_type=qnx
12916
13319
  need_lib_prefix=no
12917
13320
  need_version=no
12918
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919
- soname_spec='${libname}${release}${shared_ext}$major'
13321
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13322
+ soname_spec='$libname$release$shared_ext$major'
12920
13323
  shlibpath_var=LD_LIBRARY_PATH
12921
13324
  shlibpath_overrides_runpath=no
12922
13325
  hardcode_into_libs=yes
12923
13326
  dynamic_linker='ldqnx.so'
12924
13327
  ;;
12925
13328
 
12926
- openbsd*)
13329
+ openbsd* | bitrig*)
12927
13330
  version_type=sunos
12928
- sys_lib_dlsearch_path_spec="/usr/lib"
13331
+ sys_lib_dlsearch_path_spec=/usr/lib
12929
13332
  need_lib_prefix=no
12930
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12931
- case $host_os in
12932
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12933
- *) need_version=no ;;
12934
- esac
12935
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12936
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12937
- shlibpath_var=LD_LIBRARY_PATH
12938
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12939
- case $host_os in
12940
- openbsd2.[89] | openbsd2.[89].*)
12941
- shlibpath_overrides_runpath=no
12942
- ;;
12943
- *)
12944
- shlibpath_overrides_runpath=yes
12945
- ;;
12946
- esac
13333
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13334
+ need_version=no
12947
13335
  else
12948
- shlibpath_overrides_runpath=yes
13336
+ need_version=yes
12949
13337
  fi
13338
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13339
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13340
+ shlibpath_var=LD_LIBRARY_PATH
13341
+ shlibpath_overrides_runpath=yes
12950
13342
  ;;
12951
13343
 
12952
13344
  os2*)
12953
13345
  libname_spec='$name'
12954
- shrext_cmds=".dll"
13346
+ version_type=windows
13347
+ shrext_cmds=.dll
13348
+ need_version=no
12955
13349
  need_lib_prefix=no
12956
- library_names_spec='$libname${shared_ext} $libname.a'
13350
+ # OS/2 can only load a DLL with a base name of 8 characters or less.
13351
+ soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13352
+ v=$($ECHO $release$versuffix | tr -d .-);
13353
+ n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13354
+ $ECHO $n$v`$shared_ext'
13355
+ library_names_spec='${libname}_dll.$libext'
12957
13356
  dynamic_linker='OS/2 ld.exe'
12958
- shlibpath_var=LIBPATH
13357
+ shlibpath_var=BEGINLIBPATH
13358
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13359
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13360
+ postinstall_cmds='base_file=`basename \$file`~
13361
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13362
+ dldir=$destdir/`dirname \$dlpath`~
13363
+ test -d \$dldir || mkdir -p \$dldir~
13364
+ $install_prog $dir/$dlname \$dldir/$dlname~
13365
+ chmod a+x \$dldir/$dlname~
13366
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13367
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13368
+ fi'
13369
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13370
+ dlpath=$dir/\$dldll~
13371
+ $RM \$dlpath'
12959
13372
  ;;
12960
13373
 
12961
13374
  osf3* | osf4* | osf5*)
12962
13375
  version_type=osf
12963
13376
  need_lib_prefix=no
12964
13377
  need_version=no
12965
- soname_spec='${libname}${release}${shared_ext}$major'
12966
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378
+ soname_spec='$libname$release$shared_ext$major'
13379
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12967
13380
  shlibpath_var=LD_LIBRARY_PATH
12968
13381
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12969
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13382
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12970
13383
  ;;
12971
13384
 
12972
13385
  rdos*)
@@ -12977,8 +13390,8 @@ solaris*)
12977
13390
  version_type=linux # correct to gnu/linux during the next big refactor
12978
13391
  need_lib_prefix=no
12979
13392
  need_version=no
12980
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981
- soname_spec='${libname}${release}${shared_ext}$major'
13393
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13394
+ soname_spec='$libname$release$shared_ext$major'
12982
13395
  shlibpath_var=LD_LIBRARY_PATH
12983
13396
  shlibpath_overrides_runpath=yes
12984
13397
  hardcode_into_libs=yes
@@ -12988,11 +13401,11 @@ solaris*)
12988
13401
 
12989
13402
  sunos4*)
12990
13403
  version_type=sunos
12991
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13404
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12992
13405
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12993
13406
  shlibpath_var=LD_LIBRARY_PATH
12994
13407
  shlibpath_overrides_runpath=yes
12995
- if test "$with_gnu_ld" = yes; then
13408
+ if test yes = "$with_gnu_ld"; then
12996
13409
  need_lib_prefix=no
12997
13410
  fi
12998
13411
  need_version=yes
@@ -13000,8 +13413,8 @@ sunos4*)
13000
13413
 
13001
13414
  sysv4 | sysv4.3*)
13002
13415
  version_type=linux # correct to gnu/linux during the next big refactor
13003
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004
- soname_spec='${libname}${release}${shared_ext}$major'
13416
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13417
+ soname_spec='$libname$release$shared_ext$major'
13005
13418
  shlibpath_var=LD_LIBRARY_PATH
13006
13419
  case $host_vendor in
13007
13420
  sni)
@@ -13022,24 +13435,24 @@ sysv4 | sysv4.3*)
13022
13435
  ;;
13023
13436
 
13024
13437
  sysv4*MP*)
13025
- if test -d /usr/nec ;then
13438
+ if test -d /usr/nec; then
13026
13439
  version_type=linux # correct to gnu/linux during the next big refactor
13027
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13028
- soname_spec='$libname${shared_ext}.$major'
13440
+ library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13441
+ soname_spec='$libname$shared_ext.$major'
13029
13442
  shlibpath_var=LD_LIBRARY_PATH
13030
13443
  fi
13031
13444
  ;;
13032
13445
 
13033
13446
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13034
- version_type=freebsd-elf
13447
+ version_type=sco
13035
13448
  need_lib_prefix=no
13036
13449
  need_version=no
13037
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13038
- soname_spec='${libname}${release}${shared_ext}$major'
13450
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13451
+ soname_spec='$libname$release$shared_ext$major'
13039
13452
  shlibpath_var=LD_LIBRARY_PATH
13040
13453
  shlibpath_overrides_runpath=yes
13041
13454
  hardcode_into_libs=yes
13042
- if test "$with_gnu_ld" = yes; then
13455
+ if test yes = "$with_gnu_ld"; then
13043
13456
  sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13044
13457
  else
13045
13458
  sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
@@ -13057,7 +13470,7 @@ tpf*)
13057
13470
  version_type=linux # correct to gnu/linux during the next big refactor
13058
13471
  need_lib_prefix=no
13059
13472
  need_version=no
13060
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13061
13474
  shlibpath_var=LD_LIBRARY_PATH
13062
13475
  shlibpath_overrides_runpath=no
13063
13476
  hardcode_into_libs=yes
@@ -13065,8 +13478,8 @@ tpf*)
13065
13478
 
13066
13479
  uts4*)
13067
13480
  version_type=linux # correct to gnu/linux during the next big refactor
13068
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069
- soname_spec='${libname}${release}${shared_ext}$major'
13481
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13482
+ soname_spec='$libname$release$shared_ext$major'
13070
13483
  shlibpath_var=LD_LIBRARY_PATH
13071
13484
  ;;
13072
13485
 
@@ -13076,18 +13489,18 @@ uts4*)
13076
13489
  esac
13077
13490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13078
13491
  $as_echo "$dynamic_linker" >&6; }
13079
- test "$dynamic_linker" = no && can_build_shared=no
13492
+ test no = "$dynamic_linker" && can_build_shared=no
13080
13493
 
13081
13494
  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13082
- if test "$GCC" = yes; then
13495
+ if test yes = "$GCC"; then
13083
13496
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13084
13497
  fi
13085
13498
 
13086
- if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13087
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13499
+ if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13500
+ sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13088
13501
  fi
13089
- if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13090
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13502
+ if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13503
+ sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13091
13504
  fi
13092
13505
 
13093
13506
 
@@ -13186,15 +13599,15 @@ $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13186
13599
  hardcode_action=
13187
13600
  if test -n "$hardcode_libdir_flag_spec" ||
13188
13601
  test -n "$runpath_var" ||
13189
- test "X$hardcode_automatic" = "Xyes" ; then
13602
+ test yes = "$hardcode_automatic"; then
13190
13603
 
13191
13604
  # We can hardcode non-existent directories.
13192
- if test "$hardcode_direct" != no &&
13605
+ if test no != "$hardcode_direct" &&
13193
13606
  # If the only mechanism to avoid hardcoding is shlibpath_var, we
13194
13607
  # have to relink, otherwise we might link with an installed library
13195
13608
  # when we should be linking with a yet-to-be-installed one
13196
- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13197
- test "$hardcode_minus_L" != no; then
13609
+ ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13610
+ test no != "$hardcode_minus_L"; then
13198
13611
  # Linking always hardcodes the temporary library directory.
13199
13612
  hardcode_action=relink
13200
13613
  else
@@ -13209,12 +13622,12 @@ fi
13209
13622
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13210
13623
  $as_echo "$hardcode_action" >&6; }
13211
13624
 
13212
- if test "$hardcode_action" = relink ||
13213
- test "$inherit_rpath" = yes; then
13625
+ if test relink = "$hardcode_action" ||
13626
+ test yes = "$inherit_rpath"; then
13214
13627
  # Fast installation is not supported
13215
13628
  enable_fast_install=no
13216
- elif test "$shlibpath_overrides_runpath" = yes ||
13217
- test "$enable_shared" = no; then
13629
+ elif test yes = "$shlibpath_overrides_runpath" ||
13630
+ test no = "$enable_shared"; then
13218
13631
  # Fast installation is not necessary
13219
13632
  enable_fast_install=needless
13220
13633
  fi
@@ -13224,7 +13637,7 @@ fi
13224
13637
 
13225
13638
 
13226
13639
 
13227
- if test "x$enable_dlopen" != xyes; then
13640
+ if test yes != "$enable_dlopen"; then
13228
13641
  enable_dlopen=unknown
13229
13642
  enable_dlopen_self=unknown
13230
13643
  enable_dlopen_self_static=unknown
@@ -13234,23 +13647,23 @@ else
13234
13647
 
13235
13648
  case $host_os in
13236
13649
  beos*)
13237
- lt_cv_dlopen="load_add_on"
13650
+ lt_cv_dlopen=load_add_on
13238
13651
  lt_cv_dlopen_libs=
13239
13652
  lt_cv_dlopen_self=yes
13240
13653
  ;;
13241
13654
 
13242
13655
  mingw* | pw32* | cegcc*)
13243
- lt_cv_dlopen="LoadLibrary"
13656
+ lt_cv_dlopen=LoadLibrary
13244
13657
  lt_cv_dlopen_libs=
13245
13658
  ;;
13246
13659
 
13247
13660
  cygwin*)
13248
- lt_cv_dlopen="dlopen"
13661
+ lt_cv_dlopen=dlopen
13249
13662
  lt_cv_dlopen_libs=
13250
13663
  ;;
13251
13664
 
13252
13665
  darwin*)
13253
- # if libdl is installed we need to link against it
13666
+ # if libdl is installed we need to link against it
13254
13667
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13255
13668
  $as_echo_n "checking for dlopen in -ldl... " >&6; }
13256
13669
  if ${ac_cv_lib_dl_dlopen+:} false; then :
@@ -13288,10 +13701,10 @@ fi
13288
13701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13289
13702
  $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13290
13703
  if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13291
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13704
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13292
13705
  else
13293
13706
 
13294
- lt_cv_dlopen="dyld"
13707
+ lt_cv_dlopen=dyld
13295
13708
  lt_cv_dlopen_libs=
13296
13709
  lt_cv_dlopen_self=yes
13297
13710
 
@@ -13299,10 +13712,18 @@ fi
13299
13712
 
13300
13713
  ;;
13301
13714
 
13715
+ tpf*)
13716
+ # Don't try to run any link tests for TPF. We know it's impossible
13717
+ # because TPF is a cross-compiler, and we know how we open DSOs.
13718
+ lt_cv_dlopen=dlopen
13719
+ lt_cv_dlopen_libs=
13720
+ lt_cv_dlopen_self=no
13721
+ ;;
13722
+
13302
13723
  *)
13303
13724
  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13304
13725
  if test "x$ac_cv_func_shl_load" = xyes; then :
13305
- lt_cv_dlopen="shl_load"
13726
+ lt_cv_dlopen=shl_load
13306
13727
  else
13307
13728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13308
13729
  $as_echo_n "checking for shl_load in -ldld... " >&6; }
@@ -13341,11 +13762,11 @@ fi
13341
13762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13342
13763
  $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13343
13764
  if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13344
- lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13765
+ lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13345
13766
  else
13346
13767
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13347
13768
  if test "x$ac_cv_func_dlopen" = xyes; then :
13348
- lt_cv_dlopen="dlopen"
13769
+ lt_cv_dlopen=dlopen
13349
13770
  else
13350
13771
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13351
13772
  $as_echo_n "checking for dlopen in -ldl... " >&6; }
@@ -13384,7 +13805,7 @@ fi
13384
13805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13385
13806
  $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13386
13807
  if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13387
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13808
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13388
13809
  else
13389
13810
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13390
13811
  $as_echo_n "checking for dlopen in -lsvld... " >&6; }
@@ -13423,7 +13844,7 @@ fi
13423
13844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13424
13845
  $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13425
13846
  if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13426
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13847
+ lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13427
13848
  else
13428
13849
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13429
13850
  $as_echo_n "checking for dld_link in -ldld... " >&6; }
@@ -13462,7 +13883,7 @@ fi
13462
13883
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13463
13884
  $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13464
13885
  if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13465
- lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13886
+ lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13466
13887
  fi
13467
13888
 
13468
13889
 
@@ -13483,21 +13904,21 @@ fi
13483
13904
  ;;
13484
13905
  esac
13485
13906
 
13486
- if test "x$lt_cv_dlopen" != xno; then
13487
- enable_dlopen=yes
13488
- else
13907
+ if test no = "$lt_cv_dlopen"; then
13489
13908
  enable_dlopen=no
13909
+ else
13910
+ enable_dlopen=yes
13490
13911
  fi
13491
13912
 
13492
13913
  case $lt_cv_dlopen in
13493
13914
  dlopen)
13494
- save_CPPFLAGS="$CPPFLAGS"
13495
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13915
+ save_CPPFLAGS=$CPPFLAGS
13916
+ test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13496
13917
 
13497
- save_LDFLAGS="$LDFLAGS"
13918
+ save_LDFLAGS=$LDFLAGS
13498
13919
  wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13499
13920
 
13500
- save_LIBS="$LIBS"
13921
+ save_LIBS=$LIBS
13501
13922
  LIBS="$lt_cv_dlopen_libs $LIBS"
13502
13923
 
13503
13924
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
@@ -13505,7 +13926,7 @@ $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13505
13926
  if ${lt_cv_dlopen_self+:} false; then :
13506
13927
  $as_echo_n "(cached) " >&6
13507
13928
  else
13508
- if test "$cross_compiling" = yes; then :
13929
+ if test yes = "$cross_compiling"; then :
13509
13930
  lt_cv_dlopen_self=cross
13510
13931
  else
13511
13932
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
@@ -13552,9 +13973,9 @@ else
13552
13973
  # endif
13553
13974
  #endif
13554
13975
 
13555
- /* When -fvisbility=hidden is used, assume the code has been annotated
13976
+ /* When -fvisibility=hidden is used, assume the code has been annotated
13556
13977
  correspondingly for the symbols needed. */
13557
- #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13978
+ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13558
13979
  int fnord () __attribute__((visibility("default")));
13559
13980
  #endif
13560
13981
 
@@ -13584,7 +14005,7 @@ _LT_EOF
13584
14005
  (eval $ac_link) 2>&5
13585
14006
  ac_status=$?
13586
14007
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13587
- test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14008
+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13588
14009
  (./conftest; exit; ) >&5 2>/dev/null
13589
14010
  lt_status=$?
13590
14011
  case x$lt_status in
@@ -13604,14 +14025,14 @@ fi
13604
14025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13605
14026
  $as_echo "$lt_cv_dlopen_self" >&6; }
13606
14027
 
13607
- if test "x$lt_cv_dlopen_self" = xyes; then
14028
+ if test yes = "$lt_cv_dlopen_self"; then
13608
14029
  wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13609
14030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13610
14031
  $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13611
14032
  if ${lt_cv_dlopen_self_static+:} false; then :
13612
14033
  $as_echo_n "(cached) " >&6
13613
14034
  else
13614
- if test "$cross_compiling" = yes; then :
14035
+ if test yes = "$cross_compiling"; then :
13615
14036
  lt_cv_dlopen_self_static=cross
13616
14037
  else
13617
14038
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
@@ -13658,9 +14079,9 @@ else
13658
14079
  # endif
13659
14080
  #endif
13660
14081
 
13661
- /* When -fvisbility=hidden is used, assume the code has been annotated
14082
+ /* When -fvisibility=hidden is used, assume the code has been annotated
13662
14083
  correspondingly for the symbols needed. */
13663
- #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14084
+ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13664
14085
  int fnord () __attribute__((visibility("default")));
13665
14086
  #endif
13666
14087
 
@@ -13690,7 +14111,7 @@ _LT_EOF
13690
14111
  (eval $ac_link) 2>&5
13691
14112
  ac_status=$?
13692
14113
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693
- test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14114
+ test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13694
14115
  (./conftest; exit; ) >&5 2>/dev/null
13695
14116
  lt_status=$?
13696
14117
  case x$lt_status in
@@ -13711,9 +14132,9 @@ fi
13711
14132
  $as_echo "$lt_cv_dlopen_self_static" >&6; }
13712
14133
  fi
13713
14134
 
13714
- CPPFLAGS="$save_CPPFLAGS"
13715
- LDFLAGS="$save_LDFLAGS"
13716
- LIBS="$save_LIBS"
14135
+ CPPFLAGS=$save_CPPFLAGS
14136
+ LDFLAGS=$save_LDFLAGS
14137
+ LIBS=$save_LIBS
13717
14138
  ;;
13718
14139
  esac
13719
14140
 
@@ -13757,7 +14178,7 @@ else
13757
14178
  # FIXME - insert some real tests, host_os isn't really good enough
13758
14179
  case $host_os in
13759
14180
  darwin*)
13760
- if test -n "$STRIP" ; then
14181
+ if test -n "$STRIP"; then
13761
14182
  striplib="$STRIP -x"
13762
14183
  old_striplib="$STRIP -S"
13763
14184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
@@ -13785,7 +14206,7 @@ fi
13785
14206
 
13786
14207
 
13787
14208
 
13788
- # Report which library types will actually be built
14209
+ # Report what library types will actually be built
13789
14210
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13790
14211
  $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13791
14212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
@@ -13793,13 +14214,13 @@ $as_echo "$can_build_shared" >&6; }
13793
14214
 
13794
14215
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13795
14216
  $as_echo_n "checking whether to build shared libraries... " >&6; }
13796
- test "$can_build_shared" = "no" && enable_shared=no
14217
+ test no = "$can_build_shared" && enable_shared=no
13797
14218
 
13798
14219
  # On AIX, shared libraries and static libraries use the same namespace, and
13799
14220
  # are all built from PIC.
13800
14221
  case $host_os in
13801
14222
  aix3*)
13802
- test "$enable_shared" = yes && enable_static=no
14223
+ test yes = "$enable_shared" && enable_static=no
13803
14224
  if test -n "$RANLIB"; then
13804
14225
  archive_cmds="$archive_cmds~\$RANLIB \$lib"
13805
14226
  postinstall_cmds='$RANLIB $lib'
@@ -13807,8 +14228,12 @@ $as_echo_n "checking whether to build shared libraries... " >&6; }
13807
14228
  ;;
13808
14229
 
13809
14230
  aix[4-9]*)
13810
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13811
- test "$enable_shared" = yes && enable_static=no
14231
+ if test ia64 != "$host_cpu"; then
14232
+ case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14233
+ yes,aix,yes) ;; # shared object as lib.so file only
14234
+ yes,svr4,*) ;; # shared object as lib.so archive member only
14235
+ yes,*) enable_static=no ;; # shared object in lib.a archive as well
14236
+ esac
13812
14237
  fi
13813
14238
  ;;
13814
14239
  esac
@@ -13818,7 +14243,7 @@ $as_echo "$enable_shared" >&6; }
13818
14243
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13819
14244
  $as_echo_n "checking whether to build static libraries... " >&6; }
13820
14245
  # Make sure either enable_shared or enable_static is yes.
13821
- test "$enable_shared" = yes || enable_static=yes
14246
+ test yes = "$enable_shared" || enable_static=yes
13822
14247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13823
14248
  $as_echo "$enable_static" >&6; }
13824
14249
 
@@ -13832,7 +14257,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13832
14257
  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13833
14258
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
13834
14259
 
13835
- CC="$lt_save_CC"
14260
+ CC=$lt_save_CC
13836
14261
 
13837
14262
 
13838
14263
 
@@ -14621,7 +15046,7 @@ TEST_LDFLAGS=''
14621
15046
  if test "x$EMSCRIPTEN" != "x"; then :
14622
15047
 
14623
15048
  EXEEXT=.js
14624
- TEST_LDFLAGS='--pre-js pre.js.inc'
15049
+ TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s NO_BROWSER=1 -s RESERVED_FUNCTION_POINTERS=8'
14625
15050
 
14626
15051
  fi
14627
15052
 
@@ -15577,7 +16002,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577
16002
  # report actual input values of CONFIG_FILES etc. instead of their
15578
16003
  # values after options handling.
15579
16004
  ac_log="
15580
- This file was extended by libsodium $as_me 1.0.2, which was
16005
+ This file was extended by libsodium $as_me 1.0.3, which was
15581
16006
  generated by GNU Autoconf 2.69. Invocation command line was
15582
16007
 
15583
16008
  CONFIG_FILES = $CONFIG_FILES
@@ -15635,7 +16060,7 @@ _ACEOF
15635
16060
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15636
16061
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15637
16062
  ac_cs_version="\\
15638
- libsodium config.status 1.0.2
16063
+ libsodium config.status 1.0.3
15639
16064
  configured by $0, generated by GNU Autoconf 2.69,
15640
16065
  with options \\"\$ac_cs_config\\"
15641
16066
 
@@ -15759,6 +16184,7 @@ enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15759
16184
  enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15760
16185
  pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15761
16186
  enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16187
+ shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15762
16188
  SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15763
16189
  ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15764
16190
  PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
@@ -15808,10 +16234,13 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15808
16234
  GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15809
16235
  lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15810
16236
  lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16237
+ lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15811
16238
  lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15812
16239
  lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16240
+ lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15813
16241
  nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15814
16242
  lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16243
+ lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15815
16244
  objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15816
16245
  MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15817
16246
  lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
@@ -15928,9 +16357,12 @@ CFLAGS \
15928
16357
  compiler \
15929
16358
  lt_cv_sys_global_symbol_pipe \
15930
16359
  lt_cv_sys_global_symbol_to_cdecl \
16360
+ lt_cv_sys_global_symbol_to_import \
15931
16361
  lt_cv_sys_global_symbol_to_c_name_address \
15932
16362
  lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16363
+ lt_cv_nm_interface \
15933
16364
  nm_file_list_spec \
16365
+ lt_cv_truncate_bin \
15934
16366
  lt_prog_compiler_no_builtin_flag \
15935
16367
  lt_prog_compiler_pic \
15936
16368
  lt_prog_compiler_wl \
@@ -15966,7 +16398,7 @@ striplib \
15966
16398
  AS; do
15967
16399
  case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15968
16400
  *[\\\\\\\`\\"\\\$]*)
15969
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16401
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15970
16402
  ;;
15971
16403
  *)
15972
16404
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -15996,7 +16428,7 @@ sys_lib_search_path_spec \
15996
16428
  sys_lib_dlsearch_path_spec; do
15997
16429
  case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15998
16430
  *[\\\\\\\`\\"\\\$]*)
15999
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16431
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16000
16432
  ;;
16001
16433
  *)
16002
16434
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -16005,19 +16437,16 @@ sys_lib_dlsearch_path_spec; do
16005
16437
  done
16006
16438
 
16007
16439
  ac_aux_dir='$ac_aux_dir'
16008
- xsi_shell='$xsi_shell'
16009
- lt_shell_append='$lt_shell_append'
16010
16440
 
16011
- # See if we are running on zsh, and set the options which allow our
16441
+ # See if we are running on zsh, and set the options that allow our
16012
16442
  # commands through without removal of \ escapes INIT.
16013
- if test -n "\${ZSH_VERSION+set}" ; then
16443
+ if test -n "\${ZSH_VERSION+set}"; then
16014
16444
  setopt NO_GLOB_SUBST
16015
16445
  fi
16016
16446
 
16017
16447
 
16018
16448
  PACKAGE='$PACKAGE'
16019
16449
  VERSION='$VERSION'
16020
- TIMESTAMP='$TIMESTAMP'
16021
16450
  RM='$RM'
16022
16451
  ofile='$ofile'
16023
16452
 
@@ -16569,55 +16998,50 @@ $as_echo X"$file" |
16569
16998
  ;;
16570
16999
  "libtool":C)
16571
17000
 
16572
- # See if we are running on zsh, and set the options which allow our
17001
+ # See if we are running on zsh, and set the options that allow our
16573
17002
  # commands through without removal of \ escapes.
16574
- if test -n "${ZSH_VERSION+set}" ; then
17003
+ if test -n "${ZSH_VERSION+set}"; then
16575
17004
  setopt NO_GLOB_SUBST
16576
17005
  fi
16577
17006
 
16578
- cfgfile="${ofile}T"
17007
+ cfgfile=${ofile}T
16579
17008
  trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16580
17009
  $RM "$cfgfile"
16581
17010
 
16582
17011
  cat <<_LT_EOF >> "$cfgfile"
16583
17012
  #! $SHELL
16584
-
16585
- # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16586
- # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17013
+ # Generated automatically by $as_me ($PACKAGE) $VERSION
16587
17014
  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16588
17015
  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17016
+
17017
+ # Provide generalized library-building support services.
17018
+ # Written by Gordon Matzigkeit, 1996
17019
+
17020
+ # Copyright (C) 2014 Free Software Foundation, Inc.
17021
+ # This is free software; see the source for copying conditions. There is NO
17022
+ # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17023
+
17024
+ # GNU Libtool is free software; you can redistribute it and/or modify
17025
+ # it under the terms of the GNU General Public License as published by
17026
+ # the Free Software Foundation; either version 2 of of the License, or
17027
+ # (at your option) any later version.
16589
17028
  #
16590
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16591
- # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16592
- # Foundation, Inc.
16593
- # Written by Gordon Matzigkeit, 1996
16594
- #
16595
- # This file is part of GNU Libtool.
16596
- #
16597
- # GNU Libtool is free software; you can redistribute it and/or
16598
- # modify it under the terms of the GNU General Public License as
16599
- # published by the Free Software Foundation; either version 2 of
16600
- # the License, or (at your option) any later version.
16601
- #
16602
- # As a special exception to the GNU General Public License,
16603
- # if you distribute this file as part of a program or library that
16604
- # is built using GNU Libtool, you may include this file under the
16605
- # same distribution terms that you use for the rest of that program.
17029
+ # As a special exception to the GNU General Public License, if you
17030
+ # distribute this file as part of a program or library that is built
17031
+ # using GNU Libtool, you may include this file under the same
17032
+ # distribution terms that you use for the rest of that program.
16606
17033
  #
16607
- # GNU Libtool is distributed in the hope that it will be useful,
16608
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
17034
+ # GNU Libtool is distributed in the hope that it will be useful, but
17035
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
16609
17036
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16610
17037
  # GNU General Public License for more details.
16611
17038
  #
16612
17039
  # You should have received a copy of the GNU General Public License
16613
- # along with GNU Libtool; see the file COPYING. If not, a copy
16614
- # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16615
- # obtained by writing to the Free Software Foundation, Inc.,
16616
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17040
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
16617
17041
 
16618
17042
 
16619
17043
  # The names of the tagged configurations supported by this script.
16620
- available_tags=""
17044
+ available_tags=''
16621
17045
 
16622
17046
  # ### BEGIN LIBTOOL CONFIG
16623
17047
 
@@ -16637,6 +17061,9 @@ pic_mode=$pic_mode
16637
17061
  # Whether or not to optimize for fast installation.
16638
17062
  fast_install=$enable_fast_install
16639
17063
 
17064
+ # Shared archive member basename,for filename based shared library versioning on AIX.
17065
+ shared_archive_member_spec=$shared_archive_member_spec
17066
+
16640
17067
  # Shell to use when invoking shell scripts.
16641
17068
  SHELL=$lt_SHELL
16642
17069
 
@@ -16754,18 +17181,27 @@ global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16754
17181
  # Transform the output of nm in a proper C declaration.
16755
17182
  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16756
17183
 
17184
+ # Transform the output of nm into a list of symbols to manually relocate.
17185
+ global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17186
+
16757
17187
  # Transform the output of nm in a C name address pair.
16758
17188
  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16759
17189
 
16760
17190
  # Transform the output of nm in a C name address pair when lib prefix is needed.
16761
17191
  global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16762
17192
 
17193
+ # The name lister interface.
17194
+ nm_interface=$lt_lt_cv_nm_interface
17195
+
16763
17196
  # Specify filename containing input files for \$NM.
16764
17197
  nm_file_list_spec=$lt_nm_file_list_spec
16765
17198
 
16766
- # The root where to search for dependent libraries,and in which our libraries should be installed.
17199
+ # The root where to search for dependent libraries,and where our libraries should be installed.
16767
17200
  lt_sysroot=$lt_sysroot
16768
17201
 
17202
+ # Command to truncate a binary pipe.
17203
+ lt_truncate_bin=$lt_lt_cv_truncate_bin
17204
+
16769
17205
  # The name of the directory that contains temporary libtool files.
16770
17206
  objdir=$objdir
16771
17207
 
@@ -16953,13 +17389,13 @@ hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16953
17389
  # Whether we need a single "-rpath" flag with a separated argument.
16954
17390
  hardcode_libdir_separator=$lt_hardcode_libdir_separator
16955
17391
 
16956
- # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17392
+ # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16957
17393
  # DIR into the resulting binary.
16958
17394
  hardcode_direct=$hardcode_direct
16959
17395
 
16960
- # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17396
+ # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16961
17397
  # DIR into the resulting binary and the resulting library dependency is
16962
- # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17398
+ # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16963
17399
  # library is relocated.
16964
17400
  hardcode_direct_absolute=$hardcode_direct_absolute
16965
17401
 
@@ -17017,7 +17453,7 @@ _LT_EOF
17017
17453
  # AIX sometimes has problems with the GCC collect2 program. For some
17018
17454
  # reason, if we set the COLLECT_NAMES environment variable, the problems
17019
17455
  # vanish in a puff of smoke.
17020
- if test "X${COLLECT_NAMES+set}" != Xset; then
17456
+ if test set != "${COLLECT_NAMES+set}"; then
17021
17457
  COLLECT_NAMES=
17022
17458
  export COLLECT_NAMES
17023
17459
  fi
@@ -17026,7 +17462,7 @@ _LT_EOF
17026
17462
  esac
17027
17463
 
17028
17464
 
17029
- ltmain="$ac_aux_dir/ltmain.sh"
17465
+ ltmain=$ac_aux_dir/ltmain.sh
17030
17466
 
17031
17467
 
17032
17468
  # We use sed instead of cat because bash on DJGPP gets confused if
@@ -17036,165 +17472,6 @@ ltmain="$ac_aux_dir/ltmain.sh"
17036
17472
  sed '$q' "$ltmain" >> "$cfgfile" \
17037
17473
  || (rm -f "$cfgfile"; exit 1)
17038
17474
 
17039
- if test x"$xsi_shell" = xyes; then
17040
- sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17041
- func_dirname ()\
17042
- {\
17043
- \ case ${1} in\
17044
- \ */*) func_dirname_result="${1%/*}${2}" ;;\
17045
- \ * ) func_dirname_result="${3}" ;;\
17046
- \ esac\
17047
- } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17048
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17049
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17050
- test 0 -eq $? || _lt_function_replace_fail=:
17051
-
17052
-
17053
- sed -e '/^func_basename ()$/,/^} # func_basename /c\
17054
- func_basename ()\
17055
- {\
17056
- \ func_basename_result="${1##*/}"\
17057
- } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17058
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17059
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17060
- test 0 -eq $? || _lt_function_replace_fail=:
17061
-
17062
-
17063
- sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17064
- func_dirname_and_basename ()\
17065
- {\
17066
- \ case ${1} in\
17067
- \ */*) func_dirname_result="${1%/*}${2}" ;;\
17068
- \ * ) func_dirname_result="${3}" ;;\
17069
- \ esac\
17070
- \ func_basename_result="${1##*/}"\
17071
- } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17072
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17073
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17074
- test 0 -eq $? || _lt_function_replace_fail=:
17075
-
17076
-
17077
- sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17078
- func_stripname ()\
17079
- {\
17080
- \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17081
- \ # positional parameters, so assign one to ordinary parameter first.\
17082
- \ func_stripname_result=${3}\
17083
- \ func_stripname_result=${func_stripname_result#"${1}"}\
17084
- \ func_stripname_result=${func_stripname_result%"${2}"}\
17085
- } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17086
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17087
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17088
- test 0 -eq $? || _lt_function_replace_fail=:
17089
-
17090
-
17091
- sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17092
- func_split_long_opt ()\
17093
- {\
17094
- \ func_split_long_opt_name=${1%%=*}\
17095
- \ func_split_long_opt_arg=${1#*=}\
17096
- } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17097
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17098
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17099
- test 0 -eq $? || _lt_function_replace_fail=:
17100
-
17101
-
17102
- sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17103
- func_split_short_opt ()\
17104
- {\
17105
- \ func_split_short_opt_arg=${1#??}\
17106
- \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17107
- } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17108
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17109
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17110
- test 0 -eq $? || _lt_function_replace_fail=:
17111
-
17112
-
17113
- sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17114
- func_lo2o ()\
17115
- {\
17116
- \ case ${1} in\
17117
- \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17118
- \ *) func_lo2o_result=${1} ;;\
17119
- \ esac\
17120
- } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17121
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17122
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17123
- test 0 -eq $? || _lt_function_replace_fail=:
17124
-
17125
-
17126
- sed -e '/^func_xform ()$/,/^} # func_xform /c\
17127
- func_xform ()\
17128
- {\
17129
- func_xform_result=${1%.*}.lo\
17130
- } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17131
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17132
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17133
- test 0 -eq $? || _lt_function_replace_fail=:
17134
-
17135
-
17136
- sed -e '/^func_arith ()$/,/^} # func_arith /c\
17137
- func_arith ()\
17138
- {\
17139
- func_arith_result=$(( $* ))\
17140
- } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17141
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17142
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17143
- test 0 -eq $? || _lt_function_replace_fail=:
17144
-
17145
-
17146
- sed -e '/^func_len ()$/,/^} # func_len /c\
17147
- func_len ()\
17148
- {\
17149
- func_len_result=${#1}\
17150
- } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17151
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17152
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17153
- test 0 -eq $? || _lt_function_replace_fail=:
17154
-
17155
- fi
17156
-
17157
- if test x"$lt_shell_append" = xyes; then
17158
- sed -e '/^func_append ()$/,/^} # func_append /c\
17159
- func_append ()\
17160
- {\
17161
- eval "${1}+=\\${2}"\
17162
- } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17163
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17164
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17165
- test 0 -eq $? || _lt_function_replace_fail=:
17166
-
17167
-
17168
- sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17169
- func_append_quoted ()\
17170
- {\
17171
- \ func_quote_for_eval "${2}"\
17172
- \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17173
- } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17174
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17175
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17176
- test 0 -eq $? || _lt_function_replace_fail=:
17177
-
17178
-
17179
- # Save a `func_append' function call where possible by direct use of '+='
17180
- sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17181
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17182
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17183
- test 0 -eq $? || _lt_function_replace_fail=:
17184
- else
17185
- # Save a `func_append' function call even when '+=' is not available
17186
- sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17187
- && mv -f "$cfgfile.tmp" "$cfgfile" \
17188
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17189
- test 0 -eq $? || _lt_function_replace_fail=:
17190
- fi
17191
-
17192
- if test x"$_lt_function_replace_fail" = x":"; then
17193
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17194
- $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17195
- fi
17196
-
17197
-
17198
17475
  mv -f "$cfgfile" "$ofile" ||
17199
17476
  (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17200
17477
  chmod +x "$ofile"