rbnacl-libsodium 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) 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/AUTHORS +3 -0
  5. data/vendor/libsodium/ChangeLog +21 -0
  6. data/vendor/libsodium/Makefile.in +9 -0
  7. data/vendor/libsodium/THANKS +3 -0
  8. data/vendor/libsodium/aclocal.m4 +1 -0
  9. data/vendor/libsodium/autom4te.cache/output.1 +919 -85
  10. data/vendor/libsodium/autom4te.cache/output.5 +18351 -0
  11. data/vendor/libsodium/autom4te.cache/requests +960 -725
  12. data/vendor/libsodium/autom4te.cache/traces.1 +289 -247
  13. data/vendor/libsodium/autom4te.cache/traces.5 +3032 -0
  14. data/vendor/libsodium/build-aux/ltmain.sh +70 -11
  15. data/vendor/libsodium/builds/msvc/properties/ARM.props +20 -0
  16. data/vendor/libsodium/builds/msvc/properties/ReleaseDEXE.props +1 -1
  17. data/vendor/libsodium/builds/msvc/version.h +2 -2
  18. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +3 -1
  19. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +13 -1
  20. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +244 -241
  21. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +192 -189
  22. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +2 -0
  23. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +13 -1
  24. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +244 -241
  25. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +192 -189
  26. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +3 -1
  27. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +13 -1
  28. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +244 -241
  29. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +192 -189
  30. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +3 -1
  31. data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +13 -1
  32. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj +244 -241
  33. data/vendor/libsodium/builds/msvc/vs2015/test/test.vcxproj.filters +192 -189
  34. data/vendor/libsodium/configure +918 -84
  35. data/vendor/libsodium/configure.ac +89 -15
  36. data/vendor/libsodium/dist-build/Makefile.am +6 -2
  37. data/vendor/libsodium/dist-build/Makefile.in +15 -2
  38. data/vendor/libsodium/dist-build/android-armv8-a.sh +4 -0
  39. data/vendor/libsodium/dist-build/android-build.sh +9 -9
  40. data/vendor/libsodium/dist-build/android-mips64.sh +4 -0
  41. data/vendor/libsodium/dist-build/android-x86-64.sh +4 -0
  42. data/vendor/libsodium/dist-build/emscripten.sh +3 -3
  43. data/vendor/libsodium/dist-build/ios.sh +5 -5
  44. data/vendor/libsodium/dist-build/nativeclient.sh +28 -0
  45. data/vendor/libsodium/examples/Makefile +21 -0
  46. data/vendor/libsodium/examples/auth.c +68 -0
  47. data/vendor/libsodium/examples/box.c +133 -0
  48. data/vendor/libsodium/examples/box_detached.c +132 -0
  49. data/vendor/libsodium/examples/generichash.c +80 -0
  50. data/vendor/libsodium/examples/generichash_stream.c +58 -0
  51. data/vendor/libsodium/examples/shorthash.c +58 -0
  52. data/vendor/libsodium/examples/sign.c +78 -0
  53. data/vendor/libsodium/examples/utils.h +106 -0
  54. data/vendor/libsodium/libsodium-uninstalled.pc.in +1 -1
  55. data/vendor/libsodium/libsodium.vcxproj +2 -0
  56. data/vendor/libsodium/libsodium.vcxproj.filters +6 -0
  57. data/vendor/libsodium/m4/ax_check_compile_flag.m4 +2 -2
  58. data/vendor/libsodium/m4/ax_check_define.m4 +92 -0
  59. data/vendor/libsodium/m4/ax_check_link_flag.m4 +3 -2
  60. data/vendor/libsodium/m4/libtool.m4 +111 -60
  61. data/vendor/libsodium/m4/ltoptions.m4 +1 -1
  62. data/vendor/libsodium/m4/ltsugar.m4 +1 -1
  63. data/vendor/libsodium/m4/ltversion.m4 +6 -6
  64. data/vendor/libsodium/m4/lt~obsolete.m4 +1 -1
  65. data/vendor/libsodium/msvc-scripts/Makefile.in +9 -0
  66. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  67. data/vendor/libsodium/src/Makefile.in +9 -0
  68. data/vendor/libsodium/src/libsodium/Makefile.am +27 -3
  69. data/vendor/libsodium/src/libsodium/Makefile.in +170 -63
  70. data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +852 -0
  71. data/vendor/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +137 -17
  72. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.c +1 -0
  73. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.c +1 -0
  74. data/vendor/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +10 -6
  75. data/vendor/libsodium/src/libsodium/crypto_generichash/crypto_generichash.c +1 -1
  76. data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.c +29 -23
  77. data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.c +9 -10
  78. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c +4 -2
  79. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h +1 -0
  80. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +4 -0
  81. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c +3 -0
  82. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +2 -1
  83. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_frombytes_curve25519_ref10.c +10 -10
  84. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/api.h +10 -0
  85. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +51 -0
  86. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.c +29 -0
  87. data/vendor/libsodium/src/libsodium/include/Makefile.am +6 -0
  88. data/vendor/libsodium/src/libsodium/include/Makefile.in +67 -40
  89. data/vendor/libsodium/src/libsodium/include/sodium.h +4 -0
  90. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_aes256gcm.h +88 -0
  91. data/vendor/libsodium/src/libsodium/include/sodium/crypto_aead_chacha20poly1305.h +28 -2
  92. data/vendor/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h +0 -6
  93. data/vendor/libsodium/src/libsodium/include/sodium/crypto_hash_sha256.h +1 -1
  94. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_chacha20.h +23 -0
  95. data/vendor/libsodium/src/libsodium/include/sodium/export.h +8 -0
  96. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_nativeclient.h +37 -0
  97. data/vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h +3 -2
  98. data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +6 -0
  99. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +15 -1
  100. data/vendor/libsodium/src/libsodium/randombytes/nativeclient/randombytes_nativeclient.c +49 -0
  101. data/vendor/libsodium/src/libsodium/randombytes/randombytes.c +11 -1
  102. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +71 -45
  103. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +12 -2
  104. data/vendor/libsodium/src/libsodium/sodium/runtime.c +26 -3
  105. data/vendor/libsodium/src/libsodium/sodium/utils.c +86 -13
  106. data/vendor/libsodium/test/Makefile.in +9 -0
  107. data/vendor/libsodium/test/default/Makefile.am +130 -0
  108. data/vendor/libsodium/test/default/Makefile.in +197 -50
  109. data/vendor/libsodium/test/default/aead_aes256gcm.c +3197 -0
  110. data/vendor/libsodium/test/default/aead_aes256gcm.exp +1 -0
  111. data/vendor/libsodium/test/default/aead_chacha20poly1305.c +150 -17
  112. data/vendor/libsodium/test/default/aead_chacha20poly1305.exp +51 -0
  113. data/vendor/libsodium/test/default/chacha20.c +80 -5
  114. data/vendor/libsodium/test/default/chacha20.exp +11 -0
  115. data/vendor/libsodium/test/default/generichash.c +1332 -1
  116. data/vendor/libsodium/test/default/generichash.exp +1 -1
  117. data/vendor/libsodium/test/default/generichash2.c +3 -2
  118. data/vendor/libsodium/test/default/generichash3.c +2 -1
  119. data/vendor/libsodium/test/default/nacl-test-wrapper.sh +26 -0
  120. data/vendor/libsodium/test/default/randombytes.c +4 -0
  121. data/vendor/libsodium/test/default/scalarmult.c +33 -14
  122. data/vendor/libsodium/test/default/scalarmult.exp +4 -4
  123. data/vendor/libsodium/test/default/secretbox.c +9 -0
  124. data/vendor/libsodium/test/default/secretbox.exp +19 -0
  125. data/vendor/libsodium/test/default/secretbox_easy.c +40 -4
  126. data/vendor/libsodium/test/default/secretbox_easy.exp +58 -1
  127. data/vendor/libsodium/test/default/sodium_core.c +2 -0
  128. data/vendor/libsodium/test/default/sodium_utils.c +46 -7
  129. data/vendor/libsodium/test/default/sodium_utils.exp +5 -0
  130. data/vendor/libsodium/test/default/stream.c +1 -0
  131. metadata +28 -3
@@ -1,189 +1,192 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <ItemGroup>
4
- <ClCompile Include="..\..\..\..\test\default\auth.c">
5
- <Filter>src</Filter>
6
- </ClCompile>
7
- <ClCompile Include="..\..\..\..\test\default\auth2.c">
8
- <Filter>src</Filter>
9
- </ClCompile>
10
- <ClCompile Include="..\..\..\..\test\default\auth3.c">
11
- <Filter>src</Filter>
12
- </ClCompile>
13
- <ClCompile Include="..\..\..\..\test\default\auth5.c">
14
- <Filter>src</Filter>
15
- </ClCompile>
16
- <ClCompile Include="..\..\..\..\test\default\box.c">
17
- <Filter>src</Filter>
18
- </ClCompile>
19
- <ClCompile Include="..\..\..\..\test\default\box_easy.c">
20
- <Filter>src</Filter>
21
- </ClCompile>
22
- <ClCompile Include="..\..\..\..\test\default\box_easy2.c">
23
- <Filter>src</Filter>
24
- </ClCompile>
25
- <ClCompile Include="..\..\..\..\test\default\box_seal.c">
26
- <Filter>src</Filter>
27
- </ClCompile>
28
- <ClCompile Include="..\..\..\..\test\default\box_seed.c">
29
- <Filter>src</Filter>
30
- </ClCompile>
31
- <ClCompile Include="..\..\..\..\test\default\box2.c">
32
- <Filter>src</Filter>
33
- </ClCompile>
34
- <ClCompile Include="..\..\..\..\test\default\box7.c">
35
- <Filter>src</Filter>
36
- </ClCompile>
37
- <ClCompile Include="..\..\..\..\test\default\box8.c">
38
- <Filter>src</Filter>
39
- </ClCompile>
40
- <ClCompile Include="..\..\..\..\test\default\core1.c">
41
- <Filter>src</Filter>
42
- </ClCompile>
43
- <ClCompile Include="..\..\..\..\test\default\core2.c">
44
- <Filter>src</Filter>
45
- </ClCompile>
46
- <ClCompile Include="..\..\..\..\test\default\core3.c">
47
- <Filter>src</Filter>
48
- </ClCompile>
49
- <ClCompile Include="..\..\..\..\test\default\core4.c">
50
- <Filter>src</Filter>
51
- </ClCompile>
52
- <ClCompile Include="..\..\..\..\test\default\core5.c">
53
- <Filter>src</Filter>
54
- </ClCompile>
55
- <ClCompile Include="..\..\..\..\test\default\core6.c">
56
- <Filter>src</Filter>
57
- </ClCompile>
58
- <ClCompile Include="..\..\..\..\test\default\ed25519_convert.c">
59
- <Filter>src</Filter>
60
- </ClCompile>
61
- <ClCompile Include="..\..\..\..\test\default\generichash.c">
62
- <Filter>src</Filter>
63
- </ClCompile>
64
- <ClCompile Include="..\..\..\..\test\default\generichash2.c">
65
- <Filter>src</Filter>
66
- </ClCompile>
67
- <ClCompile Include="..\..\..\..\test\default\generichash3.c">
68
- <Filter>src</Filter>
69
- </ClCompile>
70
- <ClCompile Include="..\..\..\..\test\default\hash.c">
71
- <Filter>src</Filter>
72
- </ClCompile>
73
- <ClCompile Include="..\..\..\..\test\default\hash3.c">
74
- <Filter>src</Filter>
75
- </ClCompile>
76
- <ClCompile Include="..\..\..\..\test\default\onetimeauth.c">
77
- <Filter>src</Filter>
78
- </ClCompile>
79
- <ClCompile Include="..\..\..\..\test\default\onetimeauth2.c">
80
- <Filter>src</Filter>
81
- </ClCompile>
82
- <ClCompile Include="..\..\..\..\test\default\onetimeauth7.c">
83
- <Filter>src</Filter>
84
- </ClCompile>
85
- <ClCompile Include="..\..\..\..\test\default\pwhash_scrypt_ll.c">
86
- <Filter>src</Filter>
87
- </ClCompile>
88
- <ClCompile Include="..\..\..\..\test\default\randombytes.c">
89
- <Filter>src</Filter>
90
- </ClCompile>
91
- <ClCompile Include="..\..\..\..\test\default\scalarmult.c">
92
- <Filter>src</Filter>
93
- </ClCompile>
94
- <ClCompile Include="..\..\..\..\test\default\scalarmult2.c">
95
- <Filter>src</Filter>
96
- </ClCompile>
97
- <ClCompile Include="..\..\..\..\test\default\scalarmult5.c">
98
- <Filter>src</Filter>
99
- </ClCompile>
100
- <ClCompile Include="..\..\..\..\test\default\scalarmult6.c">
101
- <Filter>src</Filter>
102
- </ClCompile>
103
- <ClCompile Include="..\..\..\..\test\default\scalarmult7.c">
104
- <Filter>src</Filter>
105
- </ClCompile>
106
- <ClCompile Include="..\..\..\..\test\default\secretbox.c">
107
- <Filter>src</Filter>
108
- </ClCompile>
109
- <ClCompile Include="..\..\..\..\test\default\secretbox_easy.c">
110
- <Filter>src</Filter>
111
- </ClCompile>
112
- <ClCompile Include="..\..\..\..\test\default\secretbox_easy2.c">
113
- <Filter>src</Filter>
114
- </ClCompile>
115
- <ClCompile Include="..\..\..\..\test\default\secretbox2.c">
116
- <Filter>src</Filter>
117
- </ClCompile>
118
- <ClCompile Include="..\..\..\..\test\default\secretbox7.c">
119
- <Filter>src</Filter>
120
- </ClCompile>
121
- <ClCompile Include="..\..\..\..\test\default\secretbox8.c">
122
- <Filter>src</Filter>
123
- </ClCompile>
124
- <ClCompile Include="..\..\..\..\test\default\shorthash.c">
125
- <Filter>src</Filter>
126
- </ClCompile>
127
- <ClCompile Include="..\..\..\..\test\default\sodium_core.c">
128
- <Filter>src</Filter>
129
- </ClCompile>
130
- <ClCompile Include="..\..\..\..\test\default\sodium_utils.c">
131
- <Filter>src</Filter>
132
- </ClCompile>
133
- <ClCompile Include="..\..\..\..\test\default\sodium_utils2.c">
134
- <Filter>src</Filter>
135
- </ClCompile>
136
- <ClCompile Include="..\..\..\..\test\default\sodium_utils3.c">
137
- <Filter>src</Filter>
138
- </ClCompile>
139
- <ClCompile Include="..\..\..\..\test\default\sodium_version.c">
140
- <Filter>src</Filter>
141
- </ClCompile>
142
- <ClCompile Include="..\..\..\..\test\default\stream.c">
143
- <Filter>src</Filter>
144
- </ClCompile>
145
- <ClCompile Include="..\..\..\..\test\default\stream2.c">
146
- <Filter>src</Filter>
147
- </ClCompile>
148
- <ClCompile Include="..\..\..\..\test\default\stream3.c">
149
- <Filter>src</Filter>
150
- </ClCompile>
151
- <ClCompile Include="..\..\..\..\test\default\stream4.c">
152
- <Filter>src</Filter>
153
- </ClCompile>
154
- <ClCompile Include="..\..\..\..\test\default\sign.c">
155
- <Filter>src</Filter>
156
- </ClCompile>
157
- <ClCompile Include="..\..\..\..\test\default\pwhash.c">
158
- <Filter>src</Filter>
159
- </ClCompile>
160
- <ClCompile Include="..\..\..\..\test\default\aead_chacha20poly1305.c">
161
- <Filter>src</Filter>
162
- </ClCompile>
163
- <ClCompile Include="..\..\..\..\test\default\auth6.c">
164
- <Filter>src</Filter>
165
- </ClCompile>
166
- <ClCompile Include="..\..\..\..\test\default\auth7.c">
167
- <Filter>src</Filter>
168
- </ClCompile>
169
- <ClCompile Include="..\..\..\..\test\default\verify1.c">
170
- <Filter>src</Filter>
171
- </ClCompile>
172
- </ItemGroup>
173
- <ItemGroup>
174
- <ClInclude Include="..\..\..\..\test\default\cmptest.h">
175
- <Filter>include</Filter>
176
- </ClInclude>
177
- <ClInclude Include="..\..\..\..\test\quirks\quirks.h">
178
- <Filter>include</Filter>
179
- </ClInclude>
180
- </ItemGroup>
181
- <ItemGroup>
182
- <Filter Include="src">
183
- <UniqueIdentifier>{705beade-aa7f-49c0-900e-4b0cbbdc2f7b}</UniqueIdentifier>
184
- </Filter>
185
- <Filter Include="include">
186
- <UniqueIdentifier>{5b5af4b5-c6aa-4b30-bdef-074b1bdc43ea}</UniqueIdentifier>
187
- </Filter>
188
- </ItemGroup>
189
- </Project>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <ClCompile Include="..\..\..\..\test\default\auth.c">
5
+ <Filter>src</Filter>
6
+ </ClCompile>
7
+ <ClCompile Include="..\..\..\..\test\default\auth2.c">
8
+ <Filter>src</Filter>
9
+ </ClCompile>
10
+ <ClCompile Include="..\..\..\..\test\default\auth3.c">
11
+ <Filter>src</Filter>
12
+ </ClCompile>
13
+ <ClCompile Include="..\..\..\..\test\default\auth5.c">
14
+ <Filter>src</Filter>
15
+ </ClCompile>
16
+ <ClCompile Include="..\..\..\..\test\default\box.c">
17
+ <Filter>src</Filter>
18
+ </ClCompile>
19
+ <ClCompile Include="..\..\..\..\test\default\box_easy.c">
20
+ <Filter>src</Filter>
21
+ </ClCompile>
22
+ <ClCompile Include="..\..\..\..\test\default\box_easy2.c">
23
+ <Filter>src</Filter>
24
+ </ClCompile>
25
+ <ClCompile Include="..\..\..\..\test\default\box_seal.c">
26
+ <Filter>src</Filter>
27
+ </ClCompile>
28
+ <ClCompile Include="..\..\..\..\test\default\box_seed.c">
29
+ <Filter>src</Filter>
30
+ </ClCompile>
31
+ <ClCompile Include="..\..\..\..\test\default\box2.c">
32
+ <Filter>src</Filter>
33
+ </ClCompile>
34
+ <ClCompile Include="..\..\..\..\test\default\box7.c">
35
+ <Filter>src</Filter>
36
+ </ClCompile>
37
+ <ClCompile Include="..\..\..\..\test\default\box8.c">
38
+ <Filter>src</Filter>
39
+ </ClCompile>
40
+ <ClCompile Include="..\..\..\..\test\default\core1.c">
41
+ <Filter>src</Filter>
42
+ </ClCompile>
43
+ <ClCompile Include="..\..\..\..\test\default\core2.c">
44
+ <Filter>src</Filter>
45
+ </ClCompile>
46
+ <ClCompile Include="..\..\..\..\test\default\core3.c">
47
+ <Filter>src</Filter>
48
+ </ClCompile>
49
+ <ClCompile Include="..\..\..\..\test\default\core4.c">
50
+ <Filter>src</Filter>
51
+ </ClCompile>
52
+ <ClCompile Include="..\..\..\..\test\default\core5.c">
53
+ <Filter>src</Filter>
54
+ </ClCompile>
55
+ <ClCompile Include="..\..\..\..\test\default\core6.c">
56
+ <Filter>src</Filter>
57
+ </ClCompile>
58
+ <ClCompile Include="..\..\..\..\test\default\ed25519_convert.c">
59
+ <Filter>src</Filter>
60
+ </ClCompile>
61
+ <ClCompile Include="..\..\..\..\test\default\generichash.c">
62
+ <Filter>src</Filter>
63
+ </ClCompile>
64
+ <ClCompile Include="..\..\..\..\test\default\generichash2.c">
65
+ <Filter>src</Filter>
66
+ </ClCompile>
67
+ <ClCompile Include="..\..\..\..\test\default\generichash3.c">
68
+ <Filter>src</Filter>
69
+ </ClCompile>
70
+ <ClCompile Include="..\..\..\..\test\default\hash.c">
71
+ <Filter>src</Filter>
72
+ </ClCompile>
73
+ <ClCompile Include="..\..\..\..\test\default\hash3.c">
74
+ <Filter>src</Filter>
75
+ </ClCompile>
76
+ <ClCompile Include="..\..\..\..\test\default\onetimeauth.c">
77
+ <Filter>src</Filter>
78
+ </ClCompile>
79
+ <ClCompile Include="..\..\..\..\test\default\onetimeauth2.c">
80
+ <Filter>src</Filter>
81
+ </ClCompile>
82
+ <ClCompile Include="..\..\..\..\test\default\onetimeauth7.c">
83
+ <Filter>src</Filter>
84
+ </ClCompile>
85
+ <ClCompile Include="..\..\..\..\test\default\pwhash_scrypt_ll.c">
86
+ <Filter>src</Filter>
87
+ </ClCompile>
88
+ <ClCompile Include="..\..\..\..\test\default\randombytes.c">
89
+ <Filter>src</Filter>
90
+ </ClCompile>
91
+ <ClCompile Include="..\..\..\..\test\default\scalarmult.c">
92
+ <Filter>src</Filter>
93
+ </ClCompile>
94
+ <ClCompile Include="..\..\..\..\test\default\scalarmult2.c">
95
+ <Filter>src</Filter>
96
+ </ClCompile>
97
+ <ClCompile Include="..\..\..\..\test\default\scalarmult5.c">
98
+ <Filter>src</Filter>
99
+ </ClCompile>
100
+ <ClCompile Include="..\..\..\..\test\default\scalarmult6.c">
101
+ <Filter>src</Filter>
102
+ </ClCompile>
103
+ <ClCompile Include="..\..\..\..\test\default\scalarmult7.c">
104
+ <Filter>src</Filter>
105
+ </ClCompile>
106
+ <ClCompile Include="..\..\..\..\test\default\secretbox.c">
107
+ <Filter>src</Filter>
108
+ </ClCompile>
109
+ <ClCompile Include="..\..\..\..\test\default\secretbox_easy.c">
110
+ <Filter>src</Filter>
111
+ </ClCompile>
112
+ <ClCompile Include="..\..\..\..\test\default\secretbox_easy2.c">
113
+ <Filter>src</Filter>
114
+ </ClCompile>
115
+ <ClCompile Include="..\..\..\..\test\default\secretbox2.c">
116
+ <Filter>src</Filter>
117
+ </ClCompile>
118
+ <ClCompile Include="..\..\..\..\test\default\secretbox7.c">
119
+ <Filter>src</Filter>
120
+ </ClCompile>
121
+ <ClCompile Include="..\..\..\..\test\default\secretbox8.c">
122
+ <Filter>src</Filter>
123
+ </ClCompile>
124
+ <ClCompile Include="..\..\..\..\test\default\shorthash.c">
125
+ <Filter>src</Filter>
126
+ </ClCompile>
127
+ <ClCompile Include="..\..\..\..\test\default\sodium_core.c">
128
+ <Filter>src</Filter>
129
+ </ClCompile>
130
+ <ClCompile Include="..\..\..\..\test\default\sodium_utils.c">
131
+ <Filter>src</Filter>
132
+ </ClCompile>
133
+ <ClCompile Include="..\..\..\..\test\default\sodium_utils2.c">
134
+ <Filter>src</Filter>
135
+ </ClCompile>
136
+ <ClCompile Include="..\..\..\..\test\default\sodium_utils3.c">
137
+ <Filter>src</Filter>
138
+ </ClCompile>
139
+ <ClCompile Include="..\..\..\..\test\default\sodium_version.c">
140
+ <Filter>src</Filter>
141
+ </ClCompile>
142
+ <ClCompile Include="..\..\..\..\test\default\stream.c">
143
+ <Filter>src</Filter>
144
+ </ClCompile>
145
+ <ClCompile Include="..\..\..\..\test\default\stream2.c">
146
+ <Filter>src</Filter>
147
+ </ClCompile>
148
+ <ClCompile Include="..\..\..\..\test\default\stream3.c">
149
+ <Filter>src</Filter>
150
+ </ClCompile>
151
+ <ClCompile Include="..\..\..\..\test\default\stream4.c">
152
+ <Filter>src</Filter>
153
+ </ClCompile>
154
+ <ClCompile Include="..\..\..\..\test\default\sign.c">
155
+ <Filter>src</Filter>
156
+ </ClCompile>
157
+ <ClCompile Include="..\..\..\..\test\default\pwhash.c">
158
+ <Filter>src</Filter>
159
+ </ClCompile>
160
+ <ClCompile Include="..\..\..\..\test\default\aead_chacha20poly1305.c">
161
+ <Filter>src</Filter>
162
+ </ClCompile>
163
+ <ClCompile Include="..\..\..\..\test\default\auth6.c">
164
+ <Filter>src</Filter>
165
+ </ClCompile>
166
+ <ClCompile Include="..\..\..\..\test\default\auth7.c">
167
+ <Filter>src</Filter>
168
+ </ClCompile>
169
+ <ClCompile Include="..\..\..\..\test\default\verify1.c">
170
+ <Filter>src</Filter>
171
+ </ClCompile>
172
+ <ClCompile Include="..\..\..\..\test\default\aead_aes256gcm.c">
173
+ <Filter>src</Filter>
174
+ </ClCompile>
175
+ </ItemGroup>
176
+ <ItemGroup>
177
+ <ClInclude Include="..\..\..\..\test\default\cmptest.h">
178
+ <Filter>include</Filter>
179
+ </ClInclude>
180
+ <ClInclude Include="..\..\..\..\test\quirks\quirks.h">
181
+ <Filter>include</Filter>
182
+ </ClInclude>
183
+ </ItemGroup>
184
+ <ItemGroup>
185
+ <Filter Include="src">
186
+ <UniqueIdentifier>{705beade-aa7f-49c0-900e-4b0cbbdc2f7b}</UniqueIdentifier>
187
+ </Filter>
188
+ <Filter Include="include">
189
+ <UniqueIdentifier>{5b5af4b5-c6aa-4b30-bdef-074b1bdc43ea}</UniqueIdentifier>
190
+ </Filter>
191
+ </ItemGroup>
192
+ </Project>
@@ -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.3.
3
+ # Generated by GNU Autoconf 2.69 for libsodium 1.0.4.
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.3'
594
- PACKAGE_STRING='libsodium 1.0.3'
593
+ PACKAGE_VERSION='1.0.4'
594
+ PACKAGE_STRING='libsodium 1.0.4'
595
595
  PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596
596
  PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
597
 
@@ -639,6 +639,8 @@ LIBOBJS
639
639
  HAVE_LD_OUTPUT_DEF_FALSE
640
640
  HAVE_LD_OUTPUT_DEF_TRUE
641
641
  AS
642
+ NATIVECLIENT_FALSE
643
+ NATIVECLIENT_TRUE
642
644
  EMSCRIPTEN_FALSE
643
645
  EMSCRIPTEN_TRUE
644
646
  TEST_LDFLAGS
@@ -650,7 +652,15 @@ HAVE_TI_MODE_TRUE
650
652
  HAVE_AMD64_ASM_V
651
653
  HAVE_AMD64_ASM_FALSE
652
654
  HAVE_AMD64_ASM_TRUE
655
+ CFLAGS_PCLMUL
656
+ CFLAGS_AESNI
657
+ CFLAGS_SSE4_1
658
+ CFLAGS_SSSE3
659
+ CFLAGS_SSE3
660
+ CFLAGS_SSE2
661
+ CFLAGS_MMX
653
662
  LIBTOOL_DEPS
663
+ LT_SYS_LIBRARY_PATH
654
664
  OTOOL64
655
665
  OTOOL
656
666
  LIPO
@@ -816,6 +826,7 @@ CCAS
816
826
  CCASFLAGS
817
827
  CPP
818
828
  CWFLAGS
829
+ LT_SYS_LIBRARY_PATH
819
830
  AR'
820
831
 
821
832
 
@@ -1357,7 +1368,7 @@ if test "$ac_init_help" = "long"; then
1357
1368
  # Omit some internal or obsolete options to make the list less imposing.
1358
1369
  # This message is too long to be a string in the A/UX 3.1 sh.
1359
1370
  cat <<_ACEOF
1360
- \`configure' configures libsodium 1.0.3 to adapt to many kinds of systems.
1371
+ \`configure' configures libsodium 1.0.4 to adapt to many kinds of systems.
1361
1372
 
1362
1373
  Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1374
 
@@ -1427,7 +1438,7 @@ fi
1427
1438
 
1428
1439
  if test -n "$ac_init_help"; then
1429
1440
  case $ac_init_help in
1430
- short | recursive ) echo "Configuration of libsodium 1.0.3:";;
1441
+ short | recursive ) echo "Configuration of libsodium 1.0.4:";;
1431
1442
  esac
1432
1443
  cat <<\_ACEOF
1433
1444
 
@@ -1489,6 +1500,8 @@ Some influential environment variables:
1489
1500
  CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1490
1501
  CPP C preprocessor
1491
1502
  CWFLAGS define to compilation flags for generating extra warnings
1503
+ LT_SYS_LIBRARY_PATH
1504
+ User-defined run-time library search path.
1492
1505
  AR path to the ar utility
1493
1506
 
1494
1507
  Use these variables to override the choices made by `configure' or to help
@@ -1558,7 +1571,7 @@ fi
1558
1571
  test -n "$ac_init_help" && exit $ac_status
1559
1572
  if $ac_init_version; then
1560
1573
  cat <<\_ACEOF
1561
- libsodium configure 1.0.3
1574
+ libsodium configure 1.0.4
1562
1575
  generated by GNU Autoconf 2.69
1563
1576
 
1564
1577
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1927,7 +1940,7 @@ cat >config.log <<_ACEOF
1927
1940
  This file contains any messages produced by compilers while
1928
1941
  running configure, to aid debugging if configure makes a mistake.
1929
1942
 
1930
- It was created by libsodium $as_me 1.0.3, which was
1943
+ It was created by libsodium $as_me 1.0.4, which was
1931
1944
  generated by GNU Autoconf 2.69. Invocation command line was
1932
1945
 
1933
1946
  $ $0 $@
@@ -2863,7 +2876,7 @@ fi
2863
2876
 
2864
2877
  # Define the identity of the package.
2865
2878
  PACKAGE='libsodium'
2866
- VERSION='1.0.3'
2879
+ VERSION='1.0.4'
2867
2880
 
2868
2881
 
2869
2882
  cat >>confdefs.h <<_ACEOF
@@ -3159,9 +3172,9 @@ ISODATE=`date +%Y-%m-%d`
3159
3172
 
3160
3173
 
3161
3174
  SODIUM_LIBRARY_VERSION_MAJOR=7
3162
- SODIUM_LIBRARY_VERSION_MINOR=5
3175
+ SODIUM_LIBRARY_VERSION_MINOR=6
3163
3176
  DLL_VERSION=6
3164
- SODIUM_LIBRARY_VERSION=15:0:2
3177
+ SODIUM_LIBRARY_VERSION=16:0:3
3165
3178
  # | | |
3166
3179
  # +------+ | +---+
3167
3180
  # | | |
@@ -5132,7 +5145,79 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5132
5145
 
5133
5146
 
5134
5147
 
5135
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
5148
+
5149
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
5150
+ $as_echo_n "checking for __native_client__ defined... " >&6; }
5151
+ if ${ac_cv_defined___native_client__+:} false; then :
5152
+ $as_echo_n "(cached) " >&6
5153
+ else
5154
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155
+ /* end confdefs.h. */
5156
+
5157
+ int
5158
+ main ()
5159
+ {
5160
+
5161
+ #ifdef __native_client__
5162
+ int ok;
5163
+ #else
5164
+ choke me
5165
+ #endif
5166
+
5167
+ ;
5168
+ return 0;
5169
+ }
5170
+ _ACEOF
5171
+ if ac_fn_c_try_compile "$LINENO"; then :
5172
+ ac_cv_defined___native_client__=yes
5173
+ else
5174
+ ac_cv_defined___native_client__=no
5175
+ fi
5176
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177
+ fi
5178
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
5179
+ $as_echo "$ac_cv_defined___native_client__" >&6; }
5180
+ if test $ac_cv_defined___native_client__ != "no"; then :
5181
+ NATIVECLIENT="yes"
5182
+ fi
5183
+
5184
+
5185
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
5186
+ $as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
5187
+ if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
5188
+ $as_echo_n "(cached) " >&6
5189
+ else
5190
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191
+ /* end confdefs.h. */
5192
+
5193
+ int
5194
+ main ()
5195
+ {
5196
+
5197
+ #ifdef _FORTIFY_SOURCE
5198
+ int ok;
5199
+ #else
5200
+ choke me
5201
+ #endif
5202
+
5203
+ ;
5204
+ return 0;
5205
+ }
5206
+ _ACEOF
5207
+ if ac_fn_c_try_compile "$LINENO"; then :
5208
+ ac_cv_defined__FORTIFY_SOURCE=yes
5209
+ else
5210
+ ac_cv_defined__FORTIFY_SOURCE=no
5211
+ fi
5212
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213
+ fi
5214
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
5215
+ $as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
5216
+ if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
5217
+
5218
+ else
5219
+
5220
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
5136
5221
  $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
5137
5222
  if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
5138
5223
  $as_echo_n "(cached) " >&6
@@ -5161,13 +5246,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161
5246
  fi
5162
5247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
5163
5248
  $as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
5164
- if test x"$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
5249
+ if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
5165
5250
  CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
5166
5251
  else
5167
5252
  :
5168
5253
  fi
5169
5254
 
5170
5255
 
5256
+ fi
5257
+
5171
5258
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
5172
5259
  $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
5173
5260
  if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
@@ -5197,7 +5284,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197
5284
  fi
5198
5285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
5199
5286
  $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
5200
- if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
5287
+ if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
5201
5288
  CFLAGS="$CFLAGS -fvisibility=hidden"
5202
5289
  else
5203
5290
  :
@@ -5238,7 +5325,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238
5325
  fi
5239
5326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
5240
5327
  $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5241
- if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
5328
+ if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
5242
5329
 
5243
5330
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5244
5331
  $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
@@ -5270,7 +5357,7 @@ rm -f core conftest.err conftest.$ac_objext \
5270
5357
  fi
5271
5358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5272
5359
  $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5273
- if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5360
+ if test "x$ax_cv_check_ldflags___fPIC" = xyes; then :
5274
5361
  CFLAGS="$CFLAGS -fPIC"
5275
5362
 
5276
5363
  else
@@ -5316,7 +5403,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316
5403
  fi
5317
5404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5318
5405
  $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5319
- if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
5406
+ if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
5320
5407
 
5321
5408
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5322
5409
  $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
@@ -5348,7 +5435,7 @@ rm -f core conftest.err conftest.$ac_objext \
5348
5435
  fi
5349
5436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5350
5437
  $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5351
- if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
5438
+ if test "x$ax_cv_check_ldflags___fPIE" = xyes; then :
5352
5439
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5353
5440
  $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5354
5441
  if ${ax_cv_check_ldflags___pie+:} false; then :
@@ -5379,7 +5466,7 @@ rm -f core conftest.err conftest.$ac_objext \
5379
5466
  fi
5380
5467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5381
5468
  $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5382
- if test x"$ax_cv_check_ldflags___pie" = xyes; then :
5469
+ if test "x$ax_cv_check_ldflags___pie" = xyes; then :
5383
5470
  CFLAGS="$CFLAGS -fPIE"
5384
5471
  LDFLAGS="$LDFLAGS -pie"
5385
5472
  else
@@ -5428,7 +5515,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428
5515
  fi
5429
5516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5430
5517
  $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5431
- if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5518
+ if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5432
5519
  CFLAGS="$CFLAGS -fno-strict-aliasing"
5433
5520
  else
5434
5521
  :
@@ -5463,7 +5550,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
5550
  fi
5464
5551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5465
5552
  $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5466
- if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5553
+ if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5467
5554
  CFLAGS="$CFLAGS -fno-strict-overflow"
5468
5555
  else
5469
5556
 
@@ -5496,7 +5583,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
5583
  fi
5497
5584
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5498
5585
  $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5499
- if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5586
+ if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
5500
5587
  CFLAGS="$CFLAGS -fwrapv"
5501
5588
  else
5502
5589
  :
@@ -5511,7 +5598,7 @@ LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
5511
5598
  # Check whether --enable-soname-versions was given.
5512
5599
  if test "${enable_soname_versions+set}" = set; then :
5513
5600
  enableval=$enable_soname_versions;
5514
- if test "x$enableval" = "xno"; then :
5601
+ if test "x$enableval" = "xno"; then :
5515
5602
 
5516
5603
  LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
5517
5604
 
@@ -5554,7 +5641,7 @@ rm -f core conftest.err conftest.$ac_objext \
5554
5641
  fi
5555
5642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5556
5643
  $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5557
- if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5644
+ if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5558
5645
  LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5559
5646
  else
5560
5647
  :
@@ -5590,7 +5677,7 @@ rm -f core conftest.err conftest.$ac_objext \
5590
5677
  fi
5591
5678
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5592
5679
  $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5593
- if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5680
+ if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5594
5681
  LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5595
5682
  else
5596
5683
  :
@@ -5638,7 +5725,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638
5725
  fi
5639
5726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5640
5727
  $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5641
- if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5728
+ if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
5642
5729
 
5643
5730
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5644
5731
  $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
@@ -5670,7 +5757,7 @@ rm -f core conftest.err conftest.$ac_objext \
5670
5757
  fi
5671
5758
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5672
5759
  $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5673
- if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5760
+ if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5674
5761
  CFLAGS="$CFLAGS -fstack-protector"
5675
5762
 
5676
5763
  else
@@ -5718,7 +5805,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718
5805
  fi
5719
5806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5720
5807
  $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5721
- if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5808
+ if test "x$ax_cv_check_cflags___Winit_self" = xyes; then :
5722
5809
  CFLAGS="$CFLAGS -Winit-self"
5723
5810
  else
5724
5811
  :
@@ -5753,7 +5840,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753
5840
  fi
5754
5841
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5755
5842
  $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5756
- if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5843
+ if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5757
5844
  CFLAGS="$CFLAGS -Wwrite-strings"
5758
5845
  else
5759
5846
  :
@@ -5788,7 +5875,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788
5875
  fi
5789
5876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5790
5877
  $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5791
- if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5878
+ if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5792
5879
  CFLAGS="$CFLAGS -Wdiv-by-zero"
5793
5880
  else
5794
5881
  :
@@ -5823,7 +5910,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823
5910
  fi
5824
5911
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5825
5912
  $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5826
- if test x"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5913
+ if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5827
5914
  CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5828
5915
  else
5829
5916
  :
@@ -5863,7 +5950,7 @@ fi
5863
5950
  eval ac_res=\$$as_CACHEVAR
5864
5951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5865
5952
  $as_echo "$ac_res" >&6; }
5866
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5953
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5867
5954
  CWFLAGS="$CWFLAGS -Wall"
5868
5955
  else
5869
5956
  :
@@ -5900,7 +5987,7 @@ fi
5900
5987
  eval ac_res=\$$as_CACHEVAR
5901
5988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5902
5989
  $as_echo "$ac_res" >&6; }
5903
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5990
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5904
5991
  CWFLAGS="$CWFLAGS -Wextra"
5905
5992
  else
5906
5993
  :
@@ -5958,7 +6045,7 @@ fi
5958
6045
  eval ac_res=\$$as_CACHEVAR
5959
6046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5960
6047
  $as_echo "$ac_res" >&6; }
5961
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6048
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
5962
6049
  CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
5963
6050
  else
5964
6051
  :
@@ -6003,7 +6090,7 @@ fi
6003
6090
  eval ac_res=\$$as_CACHEVAR
6004
6091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6005
6092
  $as_echo "$ac_res" >&6; }
6006
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6093
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6007
6094
  CWFLAGS="$CWFLAGS -Wbad-function-cast"
6008
6095
  else
6009
6096
  :
@@ -6040,7 +6127,7 @@ fi
6040
6127
  eval ac_res=\$$as_CACHEVAR
6041
6128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6042
6129
  $as_echo "$ac_res" >&6; }
6043
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6130
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6044
6131
  CWFLAGS="$CWFLAGS -Wcast-align"
6045
6132
  else
6046
6133
  :
@@ -6077,7 +6164,7 @@ fi
6077
6164
  eval ac_res=\$$as_CACHEVAR
6078
6165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6079
6166
  $as_echo "$ac_res" >&6; }
6080
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6167
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6081
6168
  CWFLAGS="$CWFLAGS -Wcast-qual"
6082
6169
  else
6083
6170
  :
@@ -6114,7 +6201,7 @@ fi
6114
6201
  eval ac_res=\$$as_CACHEVAR
6115
6202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6116
6203
  $as_echo "$ac_res" >&6; }
6117
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6204
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6118
6205
  CWFLAGS="$CWFLAGS -Wchar-subscripts"
6119
6206
  else
6120
6207
  :
@@ -6151,7 +6238,7 @@ fi
6151
6238
  eval ac_res=\$$as_CACHEVAR
6152
6239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6153
6240
  $as_echo "$ac_res" >&6; }
6154
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6241
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6155
6242
  CWFLAGS="$CWFLAGS -Wcomment"
6156
6243
  else
6157
6244
  :
@@ -6188,7 +6275,7 @@ fi
6188
6275
  eval ac_res=\$$as_CACHEVAR
6189
6276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6190
6277
  $as_echo "$ac_res" >&6; }
6191
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6278
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6192
6279
  CWFLAGS="$CWFLAGS -Wfloat-equal"
6193
6280
  else
6194
6281
  :
@@ -6225,7 +6312,7 @@ fi
6225
6312
  eval ac_res=\$$as_CACHEVAR
6226
6313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6227
6314
  $as_echo "$ac_res" >&6; }
6228
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6315
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6229
6316
  CWFLAGS="$CWFLAGS -Wformat=2"
6230
6317
  else
6231
6318
  :
@@ -6262,7 +6349,7 @@ fi
6262
6349
  eval ac_res=\$$as_CACHEVAR
6263
6350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6264
6351
  $as_echo "$ac_res" >&6; }
6265
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6352
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6266
6353
  CWFLAGS="$CWFLAGS -Wimplicit"
6267
6354
  else
6268
6355
  :
@@ -6299,7 +6386,7 @@ fi
6299
6386
  eval ac_res=\$$as_CACHEVAR
6300
6387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6301
6388
  $as_echo "$ac_res" >&6; }
6302
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6389
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6303
6390
  CWFLAGS="$CWFLAGS -Wmissing-declarations"
6304
6391
  else
6305
6392
  :
@@ -6336,7 +6423,7 @@ fi
6336
6423
  eval ac_res=\$$as_CACHEVAR
6337
6424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338
6425
  $as_echo "$ac_res" >&6; }
6339
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6426
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6340
6427
  CWFLAGS="$CWFLAGS -Wmissing-prototypes"
6341
6428
  else
6342
6429
  :
@@ -6373,7 +6460,7 @@ fi
6373
6460
  eval ac_res=\$$as_CACHEVAR
6374
6461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6375
6462
  $as_echo "$ac_res" >&6; }
6376
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6463
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6377
6464
  CWFLAGS="$CWFLAGS -Wnormalized=id"
6378
6465
  else
6379
6466
  :
@@ -6410,7 +6497,7 @@ fi
6410
6497
  eval ac_res=\$$as_CACHEVAR
6411
6498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6412
6499
  $as_echo "$ac_res" >&6; }
6413
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6500
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6414
6501
  CWFLAGS="$CWFLAGS -Woverride-init"
6415
6502
  else
6416
6503
  :
@@ -6447,7 +6534,7 @@ fi
6447
6534
  eval ac_res=\$$as_CACHEVAR
6448
6535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6449
6536
  $as_echo "$ac_res" >&6; }
6450
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6537
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6451
6538
  CWFLAGS="$CWFLAGS -Wparentheses"
6452
6539
  else
6453
6540
  :
@@ -6484,7 +6571,7 @@ fi
6484
6571
  eval ac_res=\$$as_CACHEVAR
6485
6572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486
6573
  $as_echo "$ac_res" >&6; }
6487
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6574
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6488
6575
  CWFLAGS="$CWFLAGS -Wpointer-arith"
6489
6576
  else
6490
6577
  :
@@ -6521,7 +6608,7 @@ fi
6521
6608
  eval ac_res=\$$as_CACHEVAR
6522
6609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523
6610
  $as_echo "$ac_res" >&6; }
6524
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6611
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6525
6612
  CWFLAGS="$CWFLAGS -Wredundant-decls"
6526
6613
  else
6527
6614
  :
@@ -6558,7 +6645,7 @@ fi
6558
6645
  eval ac_res=\$$as_CACHEVAR
6559
6646
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560
6647
  $as_echo "$ac_res" >&6; }
6561
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6648
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6562
6649
  CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6563
6650
  else
6564
6651
  :
@@ -6595,7 +6682,7 @@ fi
6595
6682
  eval ac_res=\$$as_CACHEVAR
6596
6683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6597
6684
  $as_echo "$ac_res" >&6; }
6598
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6685
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6599
6686
  CWFLAGS="$CWFLAGS -Wswitch-enum"
6600
6687
  else
6601
6688
  :
@@ -6632,7 +6719,7 @@ fi
6632
6719
  eval ac_res=\$$as_CACHEVAR
6633
6720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6634
6721
  $as_echo "$ac_res" >&6; }
6635
- if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6722
+ if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
6636
6723
  CWFLAGS="$CWFLAGS -Wvariable-decl"
6637
6724
  else
6638
6725
  :
@@ -6669,7 +6756,7 @@ rm -f core conftest.err conftest.$ac_objext \
6669
6756
  fi
6670
6757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6671
6758
  $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6672
- if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6759
+ if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6673
6760
  LDFLAGS="$LDFLAGS -Wl,-z,relro"
6674
6761
  else
6675
6762
  :
@@ -6705,7 +6792,7 @@ rm -f core conftest.err conftest.$ac_objext \
6705
6792
  fi
6706
6793
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6707
6794
  $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6708
- if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6795
+ if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6709
6796
  LDFLAGS="$LDFLAGS -Wl,-z,now"
6710
6797
  else
6711
6798
  :
@@ -6741,7 +6828,7 @@ rm -f core conftest.err conftest.$ac_objext \
6741
6828
  fi
6742
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6743
6830
  $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6744
- if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6831
+ if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6745
6832
  LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6746
6833
  else
6747
6834
  :
@@ -6756,8 +6843,8 @@ esac
6756
6843
 
6757
6844
 
6758
6845
 
6759
- macro_version='2.4.4'
6760
- macro_revision='2.4.4'
6846
+ macro_version='2.4.6'
6847
+ macro_revision='2.4.6'
6761
6848
 
6762
6849
 
6763
6850
 
@@ -8978,6 +9065,21 @@ $as_echo "$lt_cv_truncate_bin" >&6; }
8978
9065
 
8979
9066
 
8980
9067
 
9068
+
9069
+ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9070
+ func_cc_basename ()
9071
+ {
9072
+ for cc_temp in $*""; do
9073
+ case $cc_temp in
9074
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9075
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9076
+ \-*) ;;
9077
+ *) break;;
9078
+ esac
9079
+ done
9080
+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9081
+ }
9082
+
8981
9083
  # Check whether --enable-libtool-lock was given.
8982
9084
  if test "${enable_libtool_lock+set}" = set; then :
8983
9085
  enableval=$enable_libtool_lock;
@@ -9985,6 +10087,41 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
9985
10087
  ;;
9986
10088
  esac
9987
10089
 
10090
+ # func_munge_path_list VARIABLE PATH
10091
+ # -----------------------------------
10092
+ # VARIABLE is name of variable containing _space_ separated list of
10093
+ # directories to be munged by the contents of PATH, which is string
10094
+ # having a format:
10095
+ # "DIR[:DIR]:"
10096
+ # string "DIR[ DIR]" will be prepended to VARIABLE
10097
+ # ":DIR[:DIR]"
10098
+ # string "DIR[ DIR]" will be appended to VARIABLE
10099
+ # "DIRP[:DIRP]::[DIRA:]DIRA"
10100
+ # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10101
+ # "DIRA[ DIRA]" will be appended to VARIABLE
10102
+ # "DIR[:DIR]"
10103
+ # VARIABLE will be replaced by "DIR[ DIR]"
10104
+ func_munge_path_list ()
10105
+ {
10106
+ case x$2 in
10107
+ x)
10108
+ ;;
10109
+ *:)
10110
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10111
+ ;;
10112
+ x:*)
10113
+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10114
+ ;;
10115
+ *::*)
10116
+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10117
+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10118
+ ;;
10119
+ *)
10120
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10121
+ ;;
10122
+ esac
10123
+ }
10124
+
9988
10125
  for ac_header in dlfcn.h
9989
10126
  do :
9990
10127
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
@@ -10305,15 +10442,8 @@ test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10305
10442
  test -z "$LD" && LD=ld
10306
10443
  test -z "$ac_objext" && ac_objext=o
10307
10444
 
10308
- for cc_temp in $compiler""; do
10309
- case $cc_temp in
10310
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10311
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10312
- \-*) ;;
10313
- *) break;;
10314
- esac
10315
- done
10316
- cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10445
+ func_cc_basename $compiler
10446
+ cc_basename=$func_cc_basename_result
10317
10447
 
10318
10448
 
10319
10449
  # Only perform the check for file, if the check method requires it
@@ -12772,6 +12902,8 @@ hardcode_into_libs=no
12772
12902
  # flags to be left without arguments
12773
12903
  need_version=unknown
12774
12904
 
12905
+
12906
+
12775
12907
  case $host_os in
12776
12908
  aix3*)
12777
12909
  version_type=linux # correct to gnu/linux during the next big refactor
@@ -13060,6 +13192,7 @@ freebsd* | dragonfly*)
13060
13192
  case $version_type in
13061
13193
  freebsd-elf*)
13062
13194
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13195
+ soname_spec='$libname$release$shared_ext$major'
13063
13196
  need_version=no
13064
13197
  need_lib_prefix=no
13065
13198
  ;;
@@ -13119,10 +13252,11 @@ hpux9* | hpux10* | hpux11*)
13119
13252
  soname_spec='$libname$release$shared_ext$major'
13120
13253
  if test 32 = "$HPUX_IA64_MODE"; then
13121
13254
  sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13255
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13122
13256
  else
13123
13257
  sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13258
+ sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13124
13259
  fi
13125
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13126
13260
  ;;
13127
13261
  hppa*64*)
13128
13262
  shrext_cmds='.sl'
@@ -13274,7 +13408,12 @@ fi
13274
13408
  # before this can be enabled.
13275
13409
  hardcode_into_libs=yes
13276
13410
 
13277
- # Append ld.so.conf contents to the search path
13411
+ # Ideally, we could use ldconfig to report *all* directores which are
13412
+ # searched for libraries, however this is still not possible. Aside from not
13413
+ # being certain /sbin/ldconfig is available, command
13414
+ # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13415
+ # even though it is searched at run-time. Try to do the best guess by
13416
+ # appending ld.so.conf contents (and includes) to the search path.
13278
13417
  if test -f /etc/ld.so.conf; then
13279
13418
  lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13280
13419
  sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
@@ -13499,10 +13638,25 @@ fi
13499
13638
  if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13500
13639
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13501
13640
  fi
13641
+
13502
13642
  if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13503
13643
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13504
13644
  fi
13505
13645
 
13646
+ # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13647
+ configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13648
+
13649
+ # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13650
+ func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13651
+
13652
+ # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13653
+ configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13654
+
13655
+
13656
+
13657
+
13658
+
13659
+
13506
13660
 
13507
13661
 
13508
13662
 
@@ -14383,6 +14537,42 @@ if test "x$EMSCRIPTEN" = "x"; then :
14383
14537
 
14384
14538
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
14385
14539
  $as_echo_n "checking for MMX instructions set... " >&6; }
14540
+ oldcflags="$CFLAGS"
14541
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
14542
+ $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
14543
+ if ${ax_cv_check_cflags___mmmx+:} false; then :
14544
+ $as_echo_n "(cached) " >&6
14545
+ else
14546
+
14547
+ ax_check_save_flags=$CFLAGS
14548
+ CFLAGS="$CFLAGS -mmmx"
14549
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550
+ /* end confdefs.h. */
14551
+ #include <stdio.h>
14552
+ int
14553
+ main ()
14554
+ {
14555
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14556
+ ;
14557
+ return 0;
14558
+ }
14559
+ _ACEOF
14560
+ if ac_fn_c_try_compile "$LINENO"; then :
14561
+ ax_cv_check_cflags___mmmx=yes
14562
+ else
14563
+ ax_cv_check_cflags___mmmx=no
14564
+ fi
14565
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566
+ CFLAGS=$ax_check_save_flags
14567
+ fi
14568
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
14569
+ $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
14570
+ if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
14571
+ CFLAGS="$CFLAGS -mmmx"
14572
+ else
14573
+ :
14574
+ fi
14575
+
14386
14576
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387
14577
  /* end confdefs.h. */
14388
14578
 
@@ -14403,18 +14593,93 @@ $as_echo "yes" >&6; }
14403
14593
 
14404
14594
  $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
14405
14595
 
14596
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
14597
+ $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
14598
+ if ${ax_cv_check_cflags___mmmx+:} false; then :
14599
+ $as_echo_n "(cached) " >&6
14600
+ else
14601
+
14602
+ ax_check_save_flags=$CFLAGS
14603
+ CFLAGS="$CFLAGS -mmmx"
14604
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605
+ /* end confdefs.h. */
14606
+ #include <stdio.h>
14607
+ int
14608
+ main ()
14609
+ {
14610
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14611
+ ;
14612
+ return 0;
14613
+ }
14614
+ _ACEOF
14615
+ if ac_fn_c_try_compile "$LINENO"; then :
14616
+ ax_cv_check_cflags___mmmx=yes
14617
+ else
14618
+ ax_cv_check_cflags___mmmx=no
14619
+ fi
14620
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621
+ CFLAGS=$ax_check_save_flags
14622
+ fi
14623
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
14624
+ $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
14625
+ if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
14626
+ CFLAGS_MMX="-mmmx"
14627
+ else
14628
+ :
14629
+ fi
14630
+
14406
14631
  else
14407
14632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408
14633
  $as_echo "no" >&6; }
14409
14634
  fi
14410
14635
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636
+ CFLAGS="$oldcflags"
14411
14637
 
14412
14638
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
14413
14639
  $as_echo_n "checking for SSE2 instructions set... " >&6; }
14640
+ oldcflags="$CFLAGS"
14641
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
14642
+ $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
14643
+ if ${ax_cv_check_cflags___msse2+:} false; then :
14644
+ $as_echo_n "(cached) " >&6
14645
+ else
14646
+
14647
+ ax_check_save_flags=$CFLAGS
14648
+ CFLAGS="$CFLAGS -msse2"
14649
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650
+ /* end confdefs.h. */
14651
+ #include <stdio.h>
14652
+ int
14653
+ main ()
14654
+ {
14655
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14656
+ ;
14657
+ return 0;
14658
+ }
14659
+ _ACEOF
14660
+ if ac_fn_c_try_compile "$LINENO"; then :
14661
+ ax_cv_check_cflags___msse2=yes
14662
+ else
14663
+ ax_cv_check_cflags___msse2=no
14664
+ fi
14665
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666
+ CFLAGS=$ax_check_save_flags
14667
+ fi
14668
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
14669
+ $as_echo "$ax_cv_check_cflags___msse2" >&6; }
14670
+ if test "x$ax_cv_check_cflags___msse2" = xyes; then :
14671
+ CFLAGS="$CFLAGS -msse2"
14672
+ else
14673
+ :
14674
+ fi
14675
+
14414
14676
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415
14677
  /* end confdefs.h. */
14416
14678
 
14417
14679
  #pragma GCC target("sse2")
14680
+ #ifndef __SSE2__
14681
+ # define __SSE2__
14682
+ #endif
14418
14683
  #include <emmintrin.h>
14419
14684
 
14420
14685
  int
@@ -14431,11 +14696,83 @@ $as_echo "yes" >&6; }
14431
14696
 
14432
14697
  $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
14433
14698
 
14699
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
14700
+ $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
14701
+ if ${ax_cv_check_cflags___msse2+:} false; then :
14702
+ $as_echo_n "(cached) " >&6
14703
+ else
14704
+
14705
+ ax_check_save_flags=$CFLAGS
14706
+ CFLAGS="$CFLAGS -msse2"
14707
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708
+ /* end confdefs.h. */
14709
+ #include <stdio.h>
14710
+ int
14711
+ main ()
14712
+ {
14713
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14714
+ ;
14715
+ return 0;
14716
+ }
14717
+ _ACEOF
14718
+ if ac_fn_c_try_compile "$LINENO"; then :
14719
+ ax_cv_check_cflags___msse2=yes
14720
+ else
14721
+ ax_cv_check_cflags___msse2=no
14722
+ fi
14723
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724
+ CFLAGS=$ax_check_save_flags
14725
+ fi
14726
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
14727
+ $as_echo "$ax_cv_check_cflags___msse2" >&6; }
14728
+ if test "x$ax_cv_check_cflags___msse2" = xyes; then :
14729
+ CFLAGS_SSE2="-msse2"
14730
+ else
14731
+ :
14732
+ fi
14733
+
14434
14734
  else
14435
14735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436
14736
  $as_echo "no" >&6; }
14437
14737
  fi
14438
14738
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739
+ CFLAGS="$oldcflags"
14740
+
14741
+ oldcflags="$CFLAGS"
14742
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
14743
+ $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
14744
+ if ${ax_cv_check_cflags___msse3+:} false; then :
14745
+ $as_echo_n "(cached) " >&6
14746
+ else
14747
+
14748
+ ax_check_save_flags=$CFLAGS
14749
+ CFLAGS="$CFLAGS -msse3"
14750
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751
+ /* end confdefs.h. */
14752
+ #include <stdio.h>
14753
+ int
14754
+ main ()
14755
+ {
14756
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14757
+ ;
14758
+ return 0;
14759
+ }
14760
+ _ACEOF
14761
+ if ac_fn_c_try_compile "$LINENO"; then :
14762
+ ax_cv_check_cflags___msse3=yes
14763
+ else
14764
+ ax_cv_check_cflags___msse3=no
14765
+ fi
14766
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767
+ CFLAGS=$ax_check_save_flags
14768
+ fi
14769
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
14770
+ $as_echo "$ax_cv_check_cflags___msse3" >&6; }
14771
+ if test "x$ax_cv_check_cflags___msse3" = xyes; then :
14772
+ CFLAGS="$CFLAGS -msse3"
14773
+ else
14774
+ :
14775
+ fi
14439
14776
 
14440
14777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
14441
14778
  $as_echo_n "checking for SSE3 instructions set... " >&6; }
@@ -14460,11 +14797,83 @@ $as_echo "yes" >&6; }
14460
14797
 
14461
14798
  $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
14462
14799
 
14800
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
14801
+ $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
14802
+ if ${ax_cv_check_cflags___msse3+:} false; then :
14803
+ $as_echo_n "(cached) " >&6
14804
+ else
14805
+
14806
+ ax_check_save_flags=$CFLAGS
14807
+ CFLAGS="$CFLAGS -msse3"
14808
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809
+ /* end confdefs.h. */
14810
+ #include <stdio.h>
14811
+ int
14812
+ main ()
14813
+ {
14814
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14815
+ ;
14816
+ return 0;
14817
+ }
14818
+ _ACEOF
14819
+ if ac_fn_c_try_compile "$LINENO"; then :
14820
+ ax_cv_check_cflags___msse3=yes
14821
+ else
14822
+ ax_cv_check_cflags___msse3=no
14823
+ fi
14824
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825
+ CFLAGS=$ax_check_save_flags
14826
+ fi
14827
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
14828
+ $as_echo "$ax_cv_check_cflags___msse3" >&6; }
14829
+ if test "x$ax_cv_check_cflags___msse3" = xyes; then :
14830
+ CFLAGS_SSE3="-msse3"
14831
+ else
14832
+ :
14833
+ fi
14834
+
14463
14835
  else
14464
14836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465
14837
  $as_echo "no" >&6; }
14466
14838
  fi
14467
14839
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840
+ CFLAGS="$oldcflags"
14841
+
14842
+ oldcflags="$CFLAGS"
14843
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
14844
+ $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
14845
+ if ${ax_cv_check_cflags___mssse3+:} false; then :
14846
+ $as_echo_n "(cached) " >&6
14847
+ else
14848
+
14849
+ ax_check_save_flags=$CFLAGS
14850
+ CFLAGS="$CFLAGS -mssse3"
14851
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852
+ /* end confdefs.h. */
14853
+ #include <stdio.h>
14854
+ int
14855
+ main ()
14856
+ {
14857
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14858
+ ;
14859
+ return 0;
14860
+ }
14861
+ _ACEOF
14862
+ if ac_fn_c_try_compile "$LINENO"; then :
14863
+ ax_cv_check_cflags___mssse3=yes
14864
+ else
14865
+ ax_cv_check_cflags___mssse3=no
14866
+ fi
14867
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868
+ CFLAGS=$ax_check_save_flags
14869
+ fi
14870
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
14871
+ $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
14872
+ if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
14873
+ CFLAGS="$CFLAGS -mssse3"
14874
+ else
14875
+ :
14876
+ fi
14468
14877
 
14469
14878
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
14470
14879
  $as_echo_n "checking for SSSE3 instructions set... " >&6; }
@@ -14488,14 +14897,332 @@ $as_echo "yes" >&6; }
14488
14897
 
14489
14898
  $as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
14490
14899
 
14900
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
14901
+ $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
14902
+ if ${ax_cv_check_cflags___mssse3+:} false; then :
14903
+ $as_echo_n "(cached) " >&6
14491
14904
  else
14492
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905
+
14906
+ ax_check_save_flags=$CFLAGS
14907
+ CFLAGS="$CFLAGS -mssse3"
14908
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909
+ /* end confdefs.h. */
14910
+ #include <stdio.h>
14911
+ int
14912
+ main ()
14913
+ {
14914
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14915
+ ;
14916
+ return 0;
14917
+ }
14918
+ _ACEOF
14919
+ if ac_fn_c_try_compile "$LINENO"; then :
14920
+ ax_cv_check_cflags___mssse3=yes
14921
+ else
14922
+ ax_cv_check_cflags___mssse3=no
14923
+ fi
14924
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925
+ CFLAGS=$ax_check_save_flags
14926
+ fi
14927
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
14928
+ $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
14929
+ if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
14930
+ CFLAGS_SSSE3="-mssse3"
14931
+ else
14932
+ :
14933
+ fi
14934
+
14935
+ else
14936
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937
+ $as_echo "no" >&6; }
14938
+ fi
14939
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940
+ CFLAGS="$oldcflags"
14941
+
14942
+ oldcflags="$CFLAGS"
14943
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
14944
+ $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
14945
+ if ${ax_cv_check_cflags___msse4_1+:} false; then :
14946
+ $as_echo_n "(cached) " >&6
14947
+ else
14948
+
14949
+ ax_check_save_flags=$CFLAGS
14950
+ CFLAGS="$CFLAGS -msse4.1"
14951
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952
+ /* end confdefs.h. */
14953
+ #include <stdio.h>
14954
+ int
14955
+ main ()
14956
+ {
14957
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
14958
+ ;
14959
+ return 0;
14960
+ }
14961
+ _ACEOF
14962
+ if ac_fn_c_try_compile "$LINENO"; then :
14963
+ ax_cv_check_cflags___msse4_1=yes
14964
+ else
14965
+ ax_cv_check_cflags___msse4_1=no
14966
+ fi
14967
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968
+ CFLAGS=$ax_check_save_flags
14969
+ fi
14970
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
14971
+ $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
14972
+ if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
14973
+ CFLAGS="$CFLAGS -msse4.1"
14974
+ else
14975
+ :
14976
+ fi
14977
+
14978
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
14979
+ $as_echo_n "checking for SSE4.1 instructions set... " >&6; }
14980
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981
+ /* end confdefs.h. */
14982
+
14983
+ #pragma GCC target("sse4.1")
14984
+ #include <smmintrin.h>
14985
+
14986
+ int
14987
+ main ()
14988
+ {
14989
+ __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
14990
+ ;
14991
+ return 0;
14992
+ }
14993
+ _ACEOF
14994
+ if ac_fn_c_try_compile "$LINENO"; then :
14995
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14996
+ $as_echo "yes" >&6; }
14997
+
14998
+ $as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
14999
+
15000
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
15001
+ $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
15002
+ if ${ax_cv_check_cflags___msse4_1+:} false; then :
15003
+ $as_echo_n "(cached) " >&6
15004
+ else
15005
+
15006
+ ax_check_save_flags=$CFLAGS
15007
+ CFLAGS="$CFLAGS -msse4.1"
15008
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009
+ /* end confdefs.h. */
15010
+ #include <stdio.h>
15011
+ int
15012
+ main ()
15013
+ {
15014
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15015
+ ;
15016
+ return 0;
15017
+ }
15018
+ _ACEOF
15019
+ if ac_fn_c_try_compile "$LINENO"; then :
15020
+ ax_cv_check_cflags___msse4_1=yes
15021
+ else
15022
+ ax_cv_check_cflags___msse4_1=no
15023
+ fi
15024
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025
+ CFLAGS=$ax_check_save_flags
15026
+ fi
15027
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
15028
+ $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
15029
+ if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
15030
+ CFLAGS_SSE4_1="-msse4.1"
15031
+ else
15032
+ :
15033
+ fi
15034
+
15035
+ else
15036
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037
+ $as_echo "no" >&6; }
15038
+ fi
15039
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15040
+ CFLAGS="$oldcflags"
15041
+
15042
+ oldcflags="$CFLAGS"
15043
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
15044
+ $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
15045
+ if ${ax_cv_check_cflags___maes+:} false; then :
15046
+ $as_echo_n "(cached) " >&6
15047
+ else
15048
+
15049
+ ax_check_save_flags=$CFLAGS
15050
+ CFLAGS="$CFLAGS -maes"
15051
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052
+ /* end confdefs.h. */
15053
+ #include <stdio.h>
15054
+ int
15055
+ main ()
15056
+ {
15057
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15058
+ ;
15059
+ return 0;
15060
+ }
15061
+ _ACEOF
15062
+ if ac_fn_c_try_compile "$LINENO"; then :
15063
+ ax_cv_check_cflags___maes=yes
15064
+ else
15065
+ ax_cv_check_cflags___maes=no
15066
+ fi
15067
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068
+ CFLAGS=$ax_check_save_flags
15069
+ fi
15070
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
15071
+ $as_echo "$ax_cv_check_cflags___maes" >&6; }
15072
+ if test "x$ax_cv_check_cflags___maes" = xyes; then :
15073
+ CFLAGS="$CFLAGS -maes"
15074
+ else
15075
+ :
15076
+ fi
15077
+
15078
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
15079
+ $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
15080
+ if ${ax_cv_check_cflags___mpclmul+:} false; then :
15081
+ $as_echo_n "(cached) " >&6
15082
+ else
15083
+
15084
+ ax_check_save_flags=$CFLAGS
15085
+ CFLAGS="$CFLAGS -mpclmul"
15086
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087
+ /* end confdefs.h. */
15088
+ #include <stdio.h>
15089
+ int
15090
+ main ()
15091
+ {
15092
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15093
+ ;
15094
+ return 0;
15095
+ }
15096
+ _ACEOF
15097
+ if ac_fn_c_try_compile "$LINENO"; then :
15098
+ ax_cv_check_cflags___mpclmul=yes
15099
+ else
15100
+ ax_cv_check_cflags___mpclmul=no
15101
+ fi
15102
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103
+ CFLAGS=$ax_check_save_flags
15104
+ fi
15105
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
15106
+ $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
15107
+ if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
15108
+ CFLAGS="$CFLAGS -mpclmul"
15109
+ else
15110
+ :
15111
+ fi
15112
+
15113
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
15114
+ $as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
15115
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116
+ /* end confdefs.h. */
15117
+
15118
+ #pragma GCC target("aes")
15119
+ #pragma GCC target("pclmul")
15120
+ #include <wmmintrin.h>
15121
+
15122
+ int
15123
+ main ()
15124
+ {
15125
+ __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
15126
+ __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
15127
+ ;
15128
+ return 0;
15129
+ }
15130
+ _ACEOF
15131
+ if ac_fn_c_try_compile "$LINENO"; then :
15132
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15133
+ $as_echo "yes" >&6; }
15134
+
15135
+ $as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
15136
+
15137
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
15138
+ $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
15139
+ if ${ax_cv_check_cflags___maes+:} false; then :
15140
+ $as_echo_n "(cached) " >&6
15141
+ else
15142
+
15143
+ ax_check_save_flags=$CFLAGS
15144
+ CFLAGS="$CFLAGS -maes"
15145
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146
+ /* end confdefs.h. */
15147
+ #include <stdio.h>
15148
+ int
15149
+ main ()
15150
+ {
15151
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15152
+ ;
15153
+ return 0;
15154
+ }
15155
+ _ACEOF
15156
+ if ac_fn_c_try_compile "$LINENO"; then :
15157
+ ax_cv_check_cflags___maes=yes
15158
+ else
15159
+ ax_cv_check_cflags___maes=no
15160
+ fi
15161
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162
+ CFLAGS=$ax_check_save_flags
15163
+ fi
15164
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
15165
+ $as_echo "$ax_cv_check_cflags___maes" >&6; }
15166
+ if test "x$ax_cv_check_cflags___maes" = xyes; then :
15167
+ CFLAGS_AESNI="-maes"
15168
+ else
15169
+ :
15170
+ fi
15171
+
15172
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
15173
+ $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
15174
+ if ${ax_cv_check_cflags___mpclmul+:} false; then :
15175
+ $as_echo_n "(cached) " >&6
15176
+ else
15177
+
15178
+ ax_check_save_flags=$CFLAGS
15179
+ CFLAGS="$CFLAGS -mpclmul"
15180
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181
+ /* end confdefs.h. */
15182
+ #include <stdio.h>
15183
+ int
15184
+ main ()
15185
+ {
15186
+ char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15187
+ ;
15188
+ return 0;
15189
+ }
15190
+ _ACEOF
15191
+ if ac_fn_c_try_compile "$LINENO"; then :
15192
+ ax_cv_check_cflags___mpclmul=yes
15193
+ else
15194
+ ax_cv_check_cflags___mpclmul=no
15195
+ fi
15196
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197
+ CFLAGS=$ax_check_save_flags
15198
+ fi
15199
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
15200
+ $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
15201
+ if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
15202
+ CFLAGS_PCLMUL="-mpclmul"
15203
+ else
15204
+ :
15205
+ fi
15206
+
15207
+
15208
+ else
15209
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493
15210
  $as_echo "no" >&6; }
14494
15211
  fi
14495
15212
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213
+ CFLAGS="$oldcflags"
15214
+
14496
15215
 
14497
15216
  fi
14498
15217
 
15218
+
15219
+
15220
+
15221
+
15222
+
15223
+
15224
+
15225
+
14499
15226
  for ac_header in sys/mman.h
14500
15227
  do :
14501
15228
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
@@ -14984,20 +15711,46 @@ fi
14984
15711
  rm -f core conftest.err conftest.$ac_objext \
14985
15712
  conftest$ac_exeext conftest.$ac_ext
14986
15713
 
15714
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
15715
+ $as_echo_n "checking if data alignment is required... " >&6; }
15716
+ aligned_access_required=yes
14987
15717
  case $host_cpu in #(
14988
15718
  i*86 | x86_64 | powerpc* | s390*) :
14989
- { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is not required on this target" >&5
14990
- $as_echo "$as_me: data alignment is not required on this target" >&6;} ;; #(
14991
- *) :
14992
- { $as_echo "$as_me:${as_lineno-$LINENO}: data alignment is required on this target" >&5
14993
- $as_echo "$as_me: data alignment is required on this target" >&6;}
15719
+ aligned_access_required=no ;; #(
15720
+ arm*) :
15721
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722
+ /* end confdefs.h. */
14994
15723
 
14995
- $as_echo "#define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
15724
+ #ifndef __ARM_FEATURE_UNALIGNED
15725
+ # error data alignment is required
15726
+ #endif
15727
+
15728
+ int
15729
+ main ()
15730
+ {
14996
15731
 
15732
+ ;
15733
+ return 0;
15734
+ }
15735
+ _ACEOF
15736
+ if ac_fn_c_try_compile "$LINENO"; then :
15737
+ aligned_access_required=no
15738
+ fi
15739
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997
15740
  ;; #(
14998
15741
  *) :
14999
15742
  ;;
15000
15743
  esac
15744
+ if test "x$aligned_access_required" = "xyes"; then :
15745
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15746
+ $as_echo "yes" >&6; }
15747
+
15748
+ $as_echo "#define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
15749
+
15750
+ else
15751
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752
+ $as_echo "no" >&6; }
15753
+ fi
15001
15754
 
15002
15755
 
15003
15756
  if test "x$EMSCRIPTEN" = "x"; then :
@@ -15028,12 +15781,13 @@ done
15028
15781
 
15029
15782
 
15030
15783
  fi
15031
- for ac_func in posix_memalign
15784
+ for ac_func in posix_memalign getpid
15032
15785
  do :
15033
- ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
15034
- if test "x$ac_cv_func_posix_memalign" = xyes; then :
15786
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15787
+ ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15788
+ if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15035
15789
  cat >>confdefs.h <<_ACEOF
15036
- #define HAVE_POSIX_MEMALIGN 1
15790
+ #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037
15791
  _ACEOF
15038
15792
 
15039
15793
  fi
@@ -15059,6 +15813,15 @@ else
15059
15813
  fi
15060
15814
 
15061
15815
 
15816
+ if test "x$NATIVECLIENT" != "x"; then
15817
+ NATIVECLIENT_TRUE=
15818
+ NATIVECLIENT_FALSE='#'
15819
+ else
15820
+ NATIVECLIENT_TRUE='#'
15821
+ NATIVECLIENT_FALSE=
15822
+ fi
15823
+
15824
+
15062
15825
 
15063
15826
 
15064
15827
  enable_win32_dll=yes
@@ -15601,6 +16364,10 @@ if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
15601
16364
  as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
15602
16365
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603
16366
  fi
16367
+ if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
16368
+ as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
16369
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
16370
+ fi
15604
16371
  if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
15605
16372
  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
15606
16373
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -16002,7 +16769,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002
16769
  # report actual input values of CONFIG_FILES etc. instead of their
16003
16770
  # values after options handling.
16004
16771
  ac_log="
16005
- This file was extended by libsodium $as_me 1.0.3, which was
16772
+ This file was extended by libsodium $as_me 1.0.4, which was
16006
16773
  generated by GNU Autoconf 2.69. Invocation command line was
16007
16774
 
16008
16775
  CONFIG_FILES = $CONFIG_FILES
@@ -16060,7 +16827,7 @@ _ACEOF
16060
16827
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16061
16828
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16062
16829
  ac_cs_version="\\
16063
- libsodium config.status 1.0.3
16830
+ libsodium config.status 1.0.4
16064
16831
  configured by $0, generated by GNU Autoconf 2.69,
16065
16832
  with options \\"\$ac_cs_config\\"
16066
16833
 
@@ -16305,7 +17072,8 @@ finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16305
17072
  finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16306
17073
  hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16307
17074
  sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16308
- sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17075
+ configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17076
+ configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16309
17077
  hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16310
17078
  enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16311
17079
  enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
@@ -16425,7 +17193,8 @@ postinstall_cmds \
16425
17193
  postuninstall_cmds \
16426
17194
  finish_cmds \
16427
17195
  sys_lib_search_path_spec \
16428
- sys_lib_dlsearch_path_spec; do
17196
+ configure_time_dlsearch_path \
17197
+ configure_time_lt_sys_library_path; do
16429
17198
  case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16430
17199
  *[\\\\\\\`\\"\\\$]*)
16431
17200
  eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
@@ -17043,6 +17812,9 @@ $as_echo X"$file" |
17043
17812
  # The names of the tagged configurations supported by this script.
17044
17813
  available_tags=''
17045
17814
 
17815
+ # Configured defaults for sys_lib_dlsearch_path munging.
17816
+ : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17817
+
17046
17818
  # ### BEGIN LIBTOOL CONFIG
17047
17819
 
17048
17820
  # Which release of libtool.m4 was used?
@@ -17292,8 +18064,11 @@ hardcode_into_libs=$hardcode_into_libs
17292
18064
  # Compile-time system search path for libraries.
17293
18065
  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17294
18066
 
17295
- # Run-time system search path for libraries.
17296
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18067
+ # Detected run-time system search path for libraries.
18068
+ sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18069
+
18070
+ # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18071
+ configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17297
18072
 
17298
18073
  # Whether dlopen is supported.
17299
18074
  dlopen_support=$enable_dlopen
@@ -17445,6 +18220,65 @@ hardcode_action=$hardcode_action
17445
18220
 
17446
18221
  # ### END LIBTOOL CONFIG
17447
18222
 
18223
+ _LT_EOF
18224
+
18225
+ cat <<'_LT_EOF' >> "$cfgfile"
18226
+
18227
+ # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18228
+
18229
+ # func_munge_path_list VARIABLE PATH
18230
+ # -----------------------------------
18231
+ # VARIABLE is name of variable containing _space_ separated list of
18232
+ # directories to be munged by the contents of PATH, which is string
18233
+ # having a format:
18234
+ # "DIR[:DIR]:"
18235
+ # string "DIR[ DIR]" will be prepended to VARIABLE
18236
+ # ":DIR[:DIR]"
18237
+ # string "DIR[ DIR]" will be appended to VARIABLE
18238
+ # "DIRP[:DIRP]::[DIRA:]DIRA"
18239
+ # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18240
+ # "DIRA[ DIRA]" will be appended to VARIABLE
18241
+ # "DIR[:DIR]"
18242
+ # VARIABLE will be replaced by "DIR[ DIR]"
18243
+ func_munge_path_list ()
18244
+ {
18245
+ case x$2 in
18246
+ x)
18247
+ ;;
18248
+ *:)
18249
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18250
+ ;;
18251
+ x:*)
18252
+ eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18253
+ ;;
18254
+ *::*)
18255
+ eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18256
+ eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18257
+ ;;
18258
+ *)
18259
+ eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18260
+ ;;
18261
+ esac
18262
+ }
18263
+
18264
+
18265
+ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18266
+ func_cc_basename ()
18267
+ {
18268
+ for cc_temp in $*""; do
18269
+ case $cc_temp in
18270
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18271
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18272
+ \-*) ;;
18273
+ *) break;;
18274
+ esac
18275
+ done
18276
+ func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18277
+ }
18278
+
18279
+
18280
+ # ### END FUNCTIONS SHARED WITH CONFIGURE
18281
+
17448
18282
  _LT_EOF
17449
18283
 
17450
18284
  case $host_os in