rbnacl-libsodium 1.0.15.1 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +4 -6
- data/CHANGES.md +50 -42
- data/Gemfile +1 -1
- data/README.md +3 -1
- data/Rakefile +46 -0
- data/ext/rbnacl/extconf.rb +16 -1
- data/lib/rbnacl/libsodium.rb +16 -8
- data/lib/rbnacl/libsodium/version.rb +1 -1
- data/rbnacl-libsodium.gemspec +3 -0
- data/vendor/libsodium/AUTHORS +20 -5
- data/vendor/libsodium/ChangeLog +25 -0
- data/vendor/libsodium/Makefile.in +3 -1
- data/vendor/libsodium/README.markdown +2 -1
- data/vendor/libsodium/aclocal.m4 +1 -0
- data/vendor/libsodium/autom4te.cache/output.1 +836 -123
- data/vendor/libsodium/autom4te.cache/output.4 +21342 -0
- data/vendor/libsodium/autom4te.cache/requests +801 -554
- data/vendor/libsodium/autom4te.cache/traces.1 +717 -596
- data/vendor/libsodium/autom4te.cache/traces.4 +4355 -0
- data/vendor/libsodium/builds/Makefile.in +3 -1
- data/vendor/libsodium/builds/msvc/resource.h +1 -1
- data/vendor/libsodium/builds/msvc/resource.rc +2 -2
- data/vendor/libsodium/builds/msvc/version.h +2 -2
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/builds/msvc/vs2017/libsodium/libsodium.vcxproj.filters +60 -24
- data/vendor/libsodium/configure +834 -121
- data/vendor/libsodium/configure.ac +55 -13
- data/vendor/libsodium/contrib/Findsodium.cmake +22 -3
- data/vendor/libsodium/contrib/Makefile.in +3 -1
- data/vendor/libsodium/dist-build/Makefile.in +3 -1
- data/vendor/libsodium/dist-build/android-build.sh +2 -2
- data/vendor/libsodium/dist-build/emscripten-symbols.def +38 -26
- data/vendor/libsodium/dist-build/emscripten.sh +23 -8
- data/vendor/libsodium/dist-build/msys2-win32.sh +1 -1
- data/vendor/libsodium/dist-build/msys2-win64.sh +1 -1
- data/vendor/libsodium/libsodium.vcxproj +17 -8
- data/vendor/libsodium/libsodium.vcxproj.filters +41 -14
- data/vendor/libsodium/m4/ax_tls.m4 +74 -0
- data/vendor/libsodium/msvc-scripts/Makefile.in +3 -1
- data/vendor/libsodium/msvc-scripts/process.bat +2 -2
- data/vendor/libsodium/packaging/dotnet-core/README.md +5 -5
- data/vendor/libsodium/packaging/dotnet-core/prepare.py +7 -7
- data/vendor/libsodium/packaging/nuget/package.config +1 -1
- data/vendor/libsodium/regen-msvc/libsodium.vcxproj +326 -0
- data/vendor/libsodium/regen-msvc/libsodium.vcxproj.filters +23 -0
- data/vendor/libsodium/regen-msvc/libsodium.vcxproj.filters.tpl +35 -0
- data/vendor/libsodium/regen-msvc/libsodium.vcxproj.tpl +93 -0
- data/vendor/libsodium/regen-msvc/regen-msvc.py +136 -0
- data/vendor/libsodium/regen-msvc/tl_libsodium.vcxproj.filters.tpl +23 -0
- data/vendor/libsodium/regen-msvc/tl_libsodium.vcxproj.tpl +331 -0
- data/vendor/libsodium/src/Makefile.in +3 -1
- data/vendor/libsodium/src/libsodium/Makefile.am +40 -24
- data/vendor/libsodium/src/libsodium/Makefile.in +238 -180
- data/vendor/libsodium/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +10 -2
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/core_ed25519.c +79 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +2031 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/base.h +1344 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/base2.h +40 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/constants.h +20 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_25_5/fe.h +220 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/base.h +1344 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/base2.h +40 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/constants.h +21 -0
- data/vendor/libsodium/src/libsodium/crypto_core/ed25519/ref10/fe_51/fe.h +116 -0
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c +2 -1
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.c +14 -82
- data/vendor/libsodium/src/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.c +1 -0
- data/vendor/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512_cp.c +3 -3
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h +1 -7
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c +1 -0
- data/vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c +0 -6
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.c +19 -92
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2-core.h +72 -4
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.c +5 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/argon2/argon2.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +10 -7
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c +108 -231
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.h +1 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c +27 -27
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c +2 -1
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c +6 -3
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c +3 -11
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c +86 -0
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +28 -26
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c +32 -30
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +14 -115
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +56 -13
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/{ed25519_ref10.h → sign_ed25519_ref10.h} +2 -5
- data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519.c +1 -1
- data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20.c +1 -0
- data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h +1 -1
- data/vendor/libsodium/src/libsodium/include/Makefile.am +2 -0
- data/vendor/libsodium/src/libsodium/include/Makefile.in +13 -9
- data/vendor/libsodium/src/libsodium/include/sodium.h +2 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_core_ed25519.h +37 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h +8 -0
- data/vendor/libsodium/src/libsodium/include/sodium/crypto_scalarmult_ed25519.h +41 -0
- data/vendor/libsodium/src/libsodium/include/sodium/private/common.h +18 -0
- data/vendor/libsodium/src/libsodium/include/sodium/private/ed25519_ref10.h +125 -0
- data/vendor/libsodium/src/libsodium/include/sodium/private/ed25519_ref10_fe_25_5.h +1050 -0
- data/vendor/libsodium/src/libsodium/include/sodium/private/ed25519_ref10_fe_51.h +518 -0
- data/vendor/libsodium/src/libsodium/include/sodium/runtime.h +3 -0
- data/vendor/libsodium/src/libsodium/include/sodium/utils.h +3 -0
- data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +182 -102
- data/vendor/libsodium/src/libsodium/sodium/core.c +30 -2
- data/vendor/libsodium/src/libsodium/sodium/runtime.c +14 -0
- data/vendor/libsodium/src/libsodium/sodium/utils.c +46 -0
- data/vendor/libsodium/test/Makefile.in +3 -1
- data/vendor/libsodium/test/default/Makefile.am +16 -0
- data/vendor/libsodium/test/default/Makefile.in +71 -23
- data/vendor/libsodium/test/default/aead_aes256gcm.c +1 -1
- data/vendor/libsodium/test/default/cmptest.h +4 -0
- data/vendor/libsodium/test/default/core3.c +44 -4
- data/vendor/libsodium/test/default/core3.exp +2 -0
- data/vendor/libsodium/test/default/core4.c +1 -1
- data/vendor/libsodium/test/default/core_ed25519.c +151 -0
- data/vendor/libsodium/test/default/core_ed25519.exp +1 -0
- data/vendor/libsodium/test/default/ed25519_convert.c +9 -1
- data/vendor/libsodium/test/default/index.html.tpl +17 -3
- data/vendor/libsodium/test/default/kdf.c +4 -2
- data/vendor/libsodium/test/default/metamorphic.c +8 -8
- data/vendor/libsodium/test/default/misuse.c +29 -1
- data/vendor/libsodium/test/default/pwhash_argon2i.c +9 -3
- data/vendor/libsodium/test/default/pwhash_argon2i.exp +2 -2
- data/vendor/libsodium/test/default/pwhash_argon2id.c +7 -2
- data/vendor/libsodium/test/default/pwhash_argon2id.exp +2 -2
- data/vendor/libsodium/test/default/scalarmult.c +0 -2
- data/vendor/libsodium/test/default/scalarmult.exp +0 -1
- data/vendor/libsodium/test/default/scalarmult_ed25519.c +90 -0
- data/vendor/libsodium/test/default/scalarmult_ed25519.exp +1 -0
- data/vendor/libsodium/test/default/secretbox_easy2.c +1 -1
- data/vendor/libsodium/test/default/secretstream.c +52 -3
- data/vendor/libsodium/test/default/sign.c +16 -0
- data/vendor/libsodium/test/default/sodium_core.c +1 -0
- data/vendor/libsodium/test/default/sodium_utils.c +2 -1
- data/vendor/libsodium/test/default/xchacha20.c +2 -1
- metadata +63 -12
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/base.h +0 -1344
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/base2.h +0 -40
- data/vendor/libsodium/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c +0 -2797
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c +0 -545
- data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.h +0 -10
- data/vendor/libsodium/src/libsodium/include/sodium/private/curve25519_ref10.h +0 -132
- data/vendor/libsodium/test/default/index-wasm.html.tpl +0 -118
@@ -16,7 +16,8 @@ Its goal is to provide all of the core operations needed to build
|
|
16
16
|
higher-level cryptographic tools.
|
17
17
|
|
18
18
|
Sodium supports a variety of compilers and operating systems,
|
19
|
-
including Windows (with MingW or Visual Studio, x86 and x64), iOS
|
19
|
+
including Windows (with MingW or Visual Studio, x86 and x64), iOS, Android,
|
20
|
+
as well as Javascript and Webassembly.
|
20
21
|
|
21
22
|
## Documentation
|
22
23
|
|
data/vendor/libsodium/aclocal.m4
CHANGED
@@ -1212,6 +1212,7 @@ m4_include([m4/ax_check_compile_flag.m4])
|
|
1212
1212
|
m4_include([m4/ax_check_define.m4])
|
1213
1213
|
m4_include([m4/ax_check_link_flag.m4])
|
1214
1214
|
m4_include([m4/ax_pthread.m4])
|
1215
|
+
m4_include([m4/ax_tls.m4])
|
1215
1216
|
m4_include([m4/ax_valgrind_check.m4])
|
1216
1217
|
m4_include([m4/ld-output-def.m4])
|
1217
1218
|
m4_include([m4/libtool.m4])
|
@@ -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
|
+
@%:@ Generated by GNU Autoconf 2.69 for libsodium 1.0.16.
|
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.
|
594
|
-
PACKAGE_STRING='libsodium 1.0.
|
593
|
+
PACKAGE_VERSION='1.0.16'
|
594
|
+
PACKAGE_STRING='libsodium 1.0.16'
|
595
595
|
PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
|
596
596
|
PACKAGE_URL='https://github.com/jedisct1/libsodium'
|
597
597
|
|
@@ -645,6 +645,7 @@ EMSCRIPTEN_FALSE
|
|
645
645
|
EMSCRIPTEN_TRUE
|
646
646
|
TEST_LDFLAGS
|
647
647
|
LIBTOOL_EXTRA_FLAGS
|
648
|
+
ALLOCA
|
648
649
|
HAVE_CPUID_V
|
649
650
|
HAVE_TI_MODE_V
|
650
651
|
HAVE_TI_MODE_FALSE
|
@@ -655,6 +656,7 @@ HAVE_AVX_ASM_TRUE
|
|
655
656
|
HAVE_AMD64_ASM_V
|
656
657
|
HAVE_AMD64_ASM_FALSE
|
657
658
|
HAVE_AMD64_ASM_TRUE
|
659
|
+
CFLAGS_RDRAND
|
658
660
|
CFLAGS_PCLMUL
|
659
661
|
CFLAGS_AESNI
|
660
662
|
CFLAGS_AVX512F
|
@@ -825,6 +827,7 @@ enable_blocking_random
|
|
825
827
|
enable_minimal
|
826
828
|
with_pthreads
|
827
829
|
with_safecode
|
830
|
+
with_ctgrind
|
828
831
|
enable_debug
|
829
832
|
enable_opt
|
830
833
|
enable_valgrind
|
@@ -1397,7 +1400,7 @@ if test "$ac_init_help" = "long"; then
|
|
1397
1400
|
# Omit some internal or obsolete options to make the list less imposing.
|
1398
1401
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
1399
1402
|
cat <<_ACEOF
|
1400
|
-
\`configure' configures libsodium 1.0.
|
1403
|
+
\`configure' configures libsodium 1.0.16 to adapt to many kinds of systems.
|
1401
1404
|
|
1402
1405
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1403
1406
|
|
@@ -1467,7 +1470,7 @@ fi
|
|
1467
1470
|
|
1468
1471
|
if test -n "$ac_init_help"; then
|
1469
1472
|
case $ac_init_help in
|
1470
|
-
short | recursive ) echo "Configuration of libsodium 1.0.
|
1473
|
+
short | recursive ) echo "Configuration of libsodium 1.0.16:";;
|
1471
1474
|
esac
|
1472
1475
|
cat <<\_ACEOF
|
1473
1476
|
|
@@ -1521,6 +1524,7 @@ Optional Packages:
|
|
1521
1524
|
--with-pthreads use pthreads library, or --without-pthreads to
|
1522
1525
|
disable threading support.
|
1523
1526
|
--with-safecode For maintainers only - please do not use
|
1527
|
+
--with-ctgrind For maintainers only - please do not use
|
1524
1528
|
--with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
|
1525
1529
|
both@:>@
|
1526
1530
|
--with-aix-soname=aix|svr4|both
|
@@ -1615,7 +1619,7 @@ fi
|
|
1615
1619
|
test -n "$ac_init_help" && exit $ac_status
|
1616
1620
|
if $ac_init_version; then
|
1617
1621
|
cat <<\_ACEOF
|
1618
|
-
libsodium configure 1.0.
|
1622
|
+
libsodium configure 1.0.16
|
1619
1623
|
generated by GNU Autoconf 2.69
|
1620
1624
|
|
1621
1625
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
@@ -1980,11 +1984,65 @@ $as_echo "$ac_res" >&6; }
|
|
1980
1984
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
1981
1985
|
|
1982
1986
|
} @%:@ ac_fn_c_check_func
|
1987
|
+
|
1988
|
+
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
1989
|
+
@%:@ -------------------------------------------
|
1990
|
+
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
|
1991
|
+
@%:@ variable VAR accordingly.
|
1992
|
+
ac_fn_c_check_type ()
|
1993
|
+
{
|
1994
|
+
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
1995
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
1996
|
+
$as_echo_n "checking for $2... " >&6; }
|
1997
|
+
if eval \${$3+:} false; then :
|
1998
|
+
$as_echo_n "(cached) " >&6
|
1999
|
+
else
|
2000
|
+
eval "$3=no"
|
2001
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2002
|
+
/* end confdefs.h. */
|
2003
|
+
$4
|
2004
|
+
int
|
2005
|
+
main ()
|
2006
|
+
{
|
2007
|
+
if (sizeof ($2))
|
2008
|
+
return 0;
|
2009
|
+
;
|
2010
|
+
return 0;
|
2011
|
+
}
|
2012
|
+
_ACEOF
|
2013
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
2014
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2015
|
+
/* end confdefs.h. */
|
2016
|
+
$4
|
2017
|
+
int
|
2018
|
+
main ()
|
2019
|
+
{
|
2020
|
+
if (sizeof (($2)))
|
2021
|
+
return 0;
|
2022
|
+
;
|
2023
|
+
return 0;
|
2024
|
+
}
|
2025
|
+
_ACEOF
|
2026
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
2027
|
+
|
2028
|
+
else
|
2029
|
+
eval "$3=yes"
|
2030
|
+
fi
|
2031
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2032
|
+
fi
|
2033
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2034
|
+
fi
|
2035
|
+
eval ac_res=\$$3
|
2036
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
2037
|
+
$as_echo "$ac_res" >&6; }
|
2038
|
+
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
2039
|
+
|
2040
|
+
} @%:@ ac_fn_c_check_type
|
1983
2041
|
cat >config.log <<_ACEOF
|
1984
2042
|
This file contains any messages produced by compilers while
|
1985
2043
|
running configure, to aid debugging if configure makes a mistake.
|
1986
2044
|
|
1987
|
-
It was created by libsodium $as_me 1.0.
|
2045
|
+
It was created by libsodium $as_me 1.0.16, which was
|
1988
2046
|
generated by GNU Autoconf 2.69. Invocation command line was
|
1989
2047
|
|
1990
2048
|
$ $0 $@
|
@@ -2920,7 +2978,7 @@ fi
|
|
2920
2978
|
|
2921
2979
|
# Define the identity of the package.
|
2922
2980
|
PACKAGE='libsodium'
|
2923
|
-
VERSION='1.0.
|
2981
|
+
VERSION='1.0.16'
|
2924
2982
|
|
2925
2983
|
|
2926
2984
|
cat >>confdefs.h <<_ACEOF
|
@@ -3216,9 +3274,9 @@ ISODATE=`date +%Y-%m-%d`
|
|
3216
3274
|
|
3217
3275
|
|
3218
3276
|
SODIUM_LIBRARY_VERSION_MAJOR=10
|
3219
|
-
SODIUM_LIBRARY_VERSION_MINOR=
|
3277
|
+
SODIUM_LIBRARY_VERSION_MINOR=1
|
3220
3278
|
DLL_VERSION=8
|
3221
|
-
SODIUM_LIBRARY_VERSION=
|
3279
|
+
SODIUM_LIBRARY_VERSION=24:0:1
|
3222
3280
|
# | | |
|
3223
3281
|
# +------+ | +---+
|
3224
3282
|
# | | |
|
@@ -5403,6 +5461,7 @@ if test "x$ax_pthread_ok" = "xyes"; then
|
|
5403
5461
|
|
5404
5462
|
$as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h
|
5405
5463
|
|
5464
|
+
with_threads="yes"
|
5406
5465
|
LIBS="$PTHREAD_LIBS $LIBS"
|
5407
5466
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
5408
5467
|
CC="$PTHREAD_CC"
|
@@ -5419,6 +5478,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
5419
5478
|
|
5420
5479
|
|
5421
5480
|
|
5481
|
+
else
|
5482
|
+
with_threads="no"
|
5422
5483
|
fi
|
5423
5484
|
|
5424
5485
|
|
@@ -5437,6 +5498,63 @@ fi
|
|
5437
5498
|
fi
|
5438
5499
|
|
5439
5500
|
|
5501
|
+
|
5502
|
+
@%:@ Check whether --with-ctgrind was given.
|
5503
|
+
if test "${with_ctgrind+set}" = set; then :
|
5504
|
+
withval=$with_ctgrind; if test "x$withval" = "xyes"; then :
|
5505
|
+
|
5506
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_poison in -lctgrind" >&5
|
5507
|
+
$as_echo_n "checking for ct_poison in -lctgrind... " >&6; }
|
5508
|
+
if ${ac_cv_lib_ctgrind_ct_poison+:} false; then :
|
5509
|
+
$as_echo_n "(cached) " >&6
|
5510
|
+
else
|
5511
|
+
ac_check_lib_save_LIBS=$LIBS
|
5512
|
+
LIBS="-lctgrind $LIBS"
|
5513
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5514
|
+
/* end confdefs.h. */
|
5515
|
+
|
5516
|
+
/* Override any GCC internal prototype to avoid an error.
|
5517
|
+
Use char because int might match the return type of a GCC
|
5518
|
+
builtin and then its argument prototype would still apply. */
|
5519
|
+
#ifdef __cplusplus
|
5520
|
+
extern "C"
|
5521
|
+
#endif
|
5522
|
+
char ct_poison ();
|
5523
|
+
int
|
5524
|
+
main ()
|
5525
|
+
{
|
5526
|
+
return ct_poison ();
|
5527
|
+
;
|
5528
|
+
return 0;
|
5529
|
+
}
|
5530
|
+
_ACEOF
|
5531
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
5532
|
+
ac_cv_lib_ctgrind_ct_poison=yes
|
5533
|
+
else
|
5534
|
+
ac_cv_lib_ctgrind_ct_poison=no
|
5535
|
+
fi
|
5536
|
+
rm -f core conftest.err conftest.$ac_objext \
|
5537
|
+
conftest$ac_exeext conftest.$ac_ext
|
5538
|
+
LIBS=$ac_check_lib_save_LIBS
|
5539
|
+
fi
|
5540
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctgrind_ct_poison" >&5
|
5541
|
+
$as_echo "$ac_cv_lib_ctgrind_ct_poison" >&6; }
|
5542
|
+
if test "x$ac_cv_lib_ctgrind_ct_poison" = xyes; then :
|
5543
|
+
cat >>confdefs.h <<_ACEOF
|
5544
|
+
@%:@define HAVE_LIBCTGRIND 1
|
5545
|
+
_ACEOF
|
5546
|
+
|
5547
|
+
LIBS="-lctgrind $LIBS"
|
5548
|
+
|
5549
|
+
fi
|
5550
|
+
|
5551
|
+
|
5552
|
+
fi
|
5553
|
+
|
5554
|
+
fi
|
5555
|
+
|
5556
|
+
|
5557
|
+
ENABLE_CWFLAGS=no
|
5440
5558
|
@%:@ Check whether --enable-debug was given.
|
5441
5559
|
if test "${enable_debug+set}" = set; then :
|
5442
5560
|
enableval=$enable_debug;
|
@@ -5457,10 +5575,11 @@ if test "${enable_debug+set}" = set; then :
|
|
5457
5575
|
;;
|
5458
5576
|
esac
|
5459
5577
|
done
|
5460
|
-
CFLAGS="$nxflags -
|
5578
|
+
CFLAGS="$nxflags -O -g3"
|
5461
5579
|
|
5462
5580
|
fi
|
5463
|
-
|
5581
|
+
ENABLE_CWFLAGS=yes
|
5582
|
+
CPPFLAGS="$CPPFLAGS -DDEBUG=1 -U_FORTIFY_SOURCE"
|
5464
5583
|
|
5465
5584
|
fi
|
5466
5585
|
|
@@ -5508,6 +5627,42 @@ else
|
|
5508
5627
|
:
|
5509
5628
|
fi
|
5510
5629
|
|
5630
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
|
5631
|
+
$as_echo_n "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
|
5632
|
+
if ${ax_cv_check_cflags___fomit_frame_pointer+:} false; then :
|
5633
|
+
$as_echo_n "(cached) " >&6
|
5634
|
+
else
|
5635
|
+
|
5636
|
+
ax_check_save_flags=$CFLAGS
|
5637
|
+
CFLAGS="$CFLAGS -fomit-frame-pointer"
|
5638
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
5639
|
+
/* end confdefs.h. */
|
5640
|
+
#include <time.h>
|
5641
|
+
int
|
5642
|
+
main ()
|
5643
|
+
{
|
5644
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
5645
|
+
;
|
5646
|
+
return 0;
|
5647
|
+
}
|
5648
|
+
_ACEOF
|
5649
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
5650
|
+
ax_cv_check_cflags___fomit_frame_pointer=yes
|
5651
|
+
else
|
5652
|
+
ax_cv_check_cflags___fomit_frame_pointer=no
|
5653
|
+
fi
|
5654
|
+
rm -f core conftest.err conftest.$ac_objext \
|
5655
|
+
conftest$ac_exeext conftest.$ac_ext
|
5656
|
+
CFLAGS=$ax_check_save_flags
|
5657
|
+
fi
|
5658
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
|
5659
|
+
$as_echo "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
|
5660
|
+
if test "x$ax_cv_check_cflags___fomit_frame_pointer" = xyes; then :
|
5661
|
+
CFLAGS="$CFLAGS -fomit-frame-pointer"
|
5662
|
+
else
|
5663
|
+
:
|
5664
|
+
fi
|
5665
|
+
|
5511
5666
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
|
5512
5667
|
$as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
|
5513
5668
|
if ${ax_cv_check_cflags___march_native+:} false; then :
|
@@ -6465,6 +6620,38 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
6465
6620
|
|
6466
6621
|
|
6467
6622
|
|
6623
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
|
6624
|
+
$as_echo_n "checking for variable-length arrays... " >&6; }
|
6625
|
+
if ${ac_cv_c_vararrays+:} false; then :
|
6626
|
+
$as_echo_n "(cached) " >&6
|
6627
|
+
else
|
6628
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
6629
|
+
/* end confdefs.h. */
|
6630
|
+
|
6631
|
+
int
|
6632
|
+
main ()
|
6633
|
+
{
|
6634
|
+
static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
|
6635
|
+
;
|
6636
|
+
return 0;
|
6637
|
+
}
|
6638
|
+
_ACEOF
|
6639
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
6640
|
+
ac_cv_c_vararrays=yes
|
6641
|
+
else
|
6642
|
+
ac_cv_c_vararrays=no
|
6643
|
+
fi
|
6644
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
6645
|
+
fi
|
6646
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
|
6647
|
+
$as_echo "$ac_cv_c_vararrays" >&6; }
|
6648
|
+
if test $ac_cv_c_vararrays = yes; then
|
6649
|
+
|
6650
|
+
$as_echo "@%:@define HAVE_C_VARARRAYS 1" >>confdefs.h
|
6651
|
+
|
6652
|
+
fi
|
6653
|
+
|
6654
|
+
|
6468
6655
|
|
6469
6656
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
|
6470
6657
|
$as_echo_n "checking for __native_client__ defined... " >&6; }
|
@@ -7179,14 +7366,17 @@ esac
|
|
7179
7366
|
|
7180
7367
|
fi
|
7181
7368
|
|
7182
|
-
|
7183
|
-
|
7184
|
-
|
7369
|
+
|
7370
|
+
|
7371
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wall" | $as_tr_sh`
|
7372
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wall" >&5
|
7373
|
+
$as_echo_n "checking whether C compiler accepts $CFLAGS -Wall... " >&6; }
|
7374
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
7185
7375
|
$as_echo_n "(cached) " >&6
|
7186
7376
|
else
|
7187
7377
|
|
7188
7378
|
ax_check_save_flags=$CFLAGS
|
7189
|
-
CFLAGS="$CFLAGS -
|
7379
|
+
CFLAGS="$CFLAGS $CFLAGS -Wall"
|
7190
7380
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7191
7381
|
/* end confdefs.h. */
|
7192
7382
|
#include <time.h>
|
@@ -7199,30 +7389,32 @@ time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
|
7199
7389
|
}
|
7200
7390
|
_ACEOF
|
7201
7391
|
if ac_fn_c_try_link "$LINENO"; then :
|
7202
|
-
|
7392
|
+
eval "$as_CACHEVAR=yes"
|
7203
7393
|
else
|
7204
|
-
|
7394
|
+
eval "$as_CACHEVAR=no"
|
7205
7395
|
fi
|
7206
7396
|
rm -f core conftest.err conftest.$ac_objext \
|
7207
7397
|
conftest$ac_exeext conftest.$ac_ext
|
7208
7398
|
CFLAGS=$ax_check_save_flags
|
7209
7399
|
fi
|
7210
|
-
|
7211
|
-
$as_echo "$
|
7212
|
-
|
7213
|
-
|
7400
|
+
eval ac_res=\$$as_CACHEVAR
|
7401
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7402
|
+
$as_echo "$ac_res" >&6; }
|
7403
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7404
|
+
CWFLAGS="$CFLAGS -Wall"
|
7214
7405
|
else
|
7215
7406
|
:
|
7216
7407
|
fi
|
7217
7408
|
|
7218
|
-
|
7219
|
-
$
|
7220
|
-
|
7409
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wextra" | $as_tr_sh`
|
7410
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wextra" >&5
|
7411
|
+
$as_echo_n "checking whether C compiler accepts $CFLAGS -Wextra... " >&6; }
|
7412
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
7221
7413
|
$as_echo_n "(cached) " >&6
|
7222
7414
|
else
|
7223
7415
|
|
7224
7416
|
ax_check_save_flags=$CFLAGS
|
7225
|
-
CFLAGS="$CFLAGS -
|
7417
|
+
CFLAGS="$CFLAGS $CFLAGS -Wextra"
|
7226
7418
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7227
7419
|
/* end confdefs.h. */
|
7228
7420
|
#include <time.h>
|
@@ -7235,30 +7427,53 @@ time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
|
7235
7427
|
}
|
7236
7428
|
_ACEOF
|
7237
7429
|
if ac_fn_c_try_link "$LINENO"; then :
|
7238
|
-
|
7430
|
+
eval "$as_CACHEVAR=yes"
|
7239
7431
|
else
|
7240
|
-
|
7432
|
+
eval "$as_CACHEVAR=no"
|
7241
7433
|
fi
|
7242
7434
|
rm -f core conftest.err conftest.$ac_objext \
|
7243
7435
|
conftest$ac_exeext conftest.$ac_ext
|
7244
7436
|
CFLAGS=$ax_check_save_flags
|
7245
7437
|
fi
|
7246
|
-
|
7247
|
-
$as_echo "$
|
7248
|
-
|
7249
|
-
|
7438
|
+
eval ac_res=\$$as_CACHEVAR
|
7439
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7440
|
+
$as_echo "$ac_res" >&6; }
|
7441
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7442
|
+
CWFLAGS="$CFLAGS -Wextra"
|
7250
7443
|
else
|
7251
7444
|
:
|
7252
7445
|
fi
|
7253
7446
|
|
7254
|
-
|
7255
|
-
$
|
7256
|
-
|
7447
|
+
|
7448
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
|
7449
|
+
$as_echo_n "checking for clang... " >&6; }
|
7450
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7451
|
+
/* end confdefs.h. */
|
7452
|
+
|
7453
|
+
int
|
7454
|
+
main ()
|
7455
|
+
{
|
7456
|
+
|
7457
|
+
#ifndef __clang__
|
7458
|
+
#error Not clang
|
7459
|
+
#endif
|
7460
|
+
|
7461
|
+
;
|
7462
|
+
return 0;
|
7463
|
+
}
|
7464
|
+
_ACEOF
|
7465
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
7466
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
7467
|
+
$as_echo "yes" >&6; }
|
7468
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
|
7469
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
|
7470
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
|
7471
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
7257
7472
|
$as_echo_n "(cached) " >&6
|
7258
7473
|
else
|
7259
7474
|
|
7260
7475
|
ax_check_save_flags=$CFLAGS
|
7261
|
-
CFLAGS="$CFLAGS -
|
7476
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
|
7262
7477
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7263
7478
|
/* end confdefs.h. */
|
7264
7479
|
#include <time.h>
|
@@ -7271,34 +7486,40 @@ time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
|
7271
7486
|
}
|
7272
7487
|
_ACEOF
|
7273
7488
|
if ac_fn_c_try_link "$LINENO"; then :
|
7274
|
-
|
7489
|
+
eval "$as_CACHEVAR=yes"
|
7275
7490
|
else
|
7276
|
-
|
7491
|
+
eval "$as_CACHEVAR=no"
|
7277
7492
|
fi
|
7278
7493
|
rm -f core conftest.err conftest.$ac_objext \
|
7279
7494
|
conftest$ac_exeext conftest.$ac_ext
|
7280
7495
|
CFLAGS=$ax_check_save_flags
|
7281
7496
|
fi
|
7282
|
-
|
7283
|
-
$as_echo "$
|
7284
|
-
|
7285
|
-
|
7497
|
+
eval ac_res=\$$as_CACHEVAR
|
7498
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7499
|
+
$as_echo "$ac_res" >&6; }
|
7500
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7501
|
+
CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
|
7286
7502
|
else
|
7287
7503
|
:
|
7288
7504
|
fi
|
7289
7505
|
|
7506
|
+
|
7507
|
+
else
|
7508
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
7509
|
+
$as_echo "no" >&6; }
|
7290
7510
|
|
7511
|
+
fi
|
7512
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
7291
7513
|
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
|
7514
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
|
7515
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
|
7516
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
|
7296
7517
|
if eval \${$as_CACHEVAR+:} false; then :
|
7297
7518
|
$as_echo_n "(cached) " >&6
|
7298
7519
|
else
|
7299
7520
|
|
7300
7521
|
ax_check_save_flags=$CFLAGS
|
7301
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7522
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
|
7302
7523
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7303
7524
|
/* end confdefs.h. */
|
7304
7525
|
#include <time.h>
|
@@ -7323,20 +7544,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7323
7544
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7324
7545
|
$as_echo "$ac_res" >&6; }
|
7325
7546
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7326
|
-
CWFLAGS="$CWFLAGS -
|
7547
|
+
CWFLAGS="$CWFLAGS -Wbad-function-cast"
|
7327
7548
|
else
|
7328
7549
|
:
|
7329
7550
|
fi
|
7330
7551
|
|
7331
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7332
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7333
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7552
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
|
7553
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
|
7554
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
|
7334
7555
|
if eval \${$as_CACHEVAR+:} false; then :
|
7335
7556
|
$as_echo_n "(cached) " >&6
|
7336
7557
|
else
|
7337
7558
|
|
7338
7559
|
ax_check_save_flags=$CFLAGS
|
7339
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7560
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
|
7340
7561
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7341
7562
|
/* end confdefs.h. */
|
7342
7563
|
#include <time.h>
|
@@ -7361,41 +7582,58 @@ eval ac_res=\$$as_CACHEVAR
|
|
7361
7582
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7362
7583
|
$as_echo "$ac_res" >&6; }
|
7363
7584
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7364
|
-
CWFLAGS="$CWFLAGS -
|
7585
|
+
CWFLAGS="$CWFLAGS -Wcast-qual"
|
7365
7586
|
else
|
7366
7587
|
:
|
7367
7588
|
fi
|
7368
7589
|
|
7369
|
-
|
7370
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking
|
7371
|
-
$as_echo_n "checking
|
7372
|
-
|
7590
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wdiv-by-zero" | $as_tr_sh`
|
7591
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero" >&5
|
7592
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero... " >&6; }
|
7593
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
7594
|
+
$as_echo_n "(cached) " >&6
|
7595
|
+
else
|
7596
|
+
|
7597
|
+
ax_check_save_flags=$CFLAGS
|
7598
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wdiv-by-zero"
|
7599
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7373
7600
|
/* end confdefs.h. */
|
7374
|
-
|
7601
|
+
#include <time.h>
|
7375
7602
|
int
|
7376
7603
|
main ()
|
7377
7604
|
{
|
7378
|
-
|
7379
|
-
#ifndef __clang__
|
7380
|
-
#error Not clang
|
7381
|
-
#endif
|
7382
|
-
|
7605
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
7383
7606
|
;
|
7384
7607
|
return 0;
|
7385
7608
|
}
|
7386
7609
|
_ACEOF
|
7387
|
-
if
|
7388
|
-
|
7389
|
-
|
7390
|
-
|
7391
|
-
|
7392
|
-
|
7610
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
7611
|
+
eval "$as_CACHEVAR=yes"
|
7612
|
+
else
|
7613
|
+
eval "$as_CACHEVAR=no"
|
7614
|
+
fi
|
7615
|
+
rm -f core conftest.err conftest.$ac_objext \
|
7616
|
+
conftest$ac_exeext conftest.$ac_ext
|
7617
|
+
CFLAGS=$ax_check_save_flags
|
7618
|
+
fi
|
7619
|
+
eval ac_res=\$$as_CACHEVAR
|
7620
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7621
|
+
$as_echo "$ac_res" >&6; }
|
7622
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7623
|
+
CWFLAGS="$CWFLAGS -Wdiv-by-zero"
|
7624
|
+
else
|
7625
|
+
:
|
7626
|
+
fi
|
7627
|
+
|
7628
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-branches" | $as_tr_sh`
|
7629
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-branches" >&5
|
7630
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-branches... " >&6; }
|
7393
7631
|
if eval \${$as_CACHEVAR+:} false; then :
|
7394
7632
|
$as_echo_n "(cached) " >&6
|
7395
7633
|
else
|
7396
7634
|
|
7397
7635
|
ax_check_save_flags=$CFLAGS
|
7398
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7636
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-branches"
|
7399
7637
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7400
7638
|
/* end confdefs.h. */
|
7401
7639
|
#include <time.h>
|
@@ -7420,28 +7658,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7420
7658
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7421
7659
|
$as_echo "$ac_res" >&6; }
|
7422
7660
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7423
|
-
CWFLAGS="$CWFLAGS -
|
7661
|
+
CWFLAGS="$CWFLAGS -Wduplicated-branches"
|
7424
7662
|
else
|
7425
7663
|
:
|
7426
7664
|
fi
|
7427
7665
|
|
7428
|
-
|
7429
|
-
|
7430
|
-
|
7431
|
-
$as_echo "no" >&6; }
|
7432
|
-
|
7433
|
-
fi
|
7434
|
-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
7435
|
-
|
7436
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
|
7437
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
|
7438
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
|
7666
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
|
7667
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
|
7668
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
|
7439
7669
|
if eval \${$as_CACHEVAR+:} false; then :
|
7440
7670
|
$as_echo_n "(cached) " >&6
|
7441
7671
|
else
|
7442
7672
|
|
7443
7673
|
ax_check_save_flags=$CFLAGS
|
7444
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7674
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
|
7445
7675
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7446
7676
|
/* end confdefs.h. */
|
7447
7677
|
#include <time.h>
|
@@ -7466,20 +7696,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7466
7696
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7467
7697
|
$as_echo "$ac_res" >&6; }
|
7468
7698
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7469
|
-
CWFLAGS="$CWFLAGS -
|
7699
|
+
CWFLAGS="$CWFLAGS -Wduplicated-cond"
|
7470
7700
|
else
|
7471
7701
|
:
|
7472
7702
|
fi
|
7473
7703
|
|
7474
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7475
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7476
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7704
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
|
7705
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
|
7706
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
|
7477
7707
|
if eval \${$as_CACHEVAR+:} false; then :
|
7478
7708
|
$as_echo_n "(cached) " >&6
|
7479
7709
|
else
|
7480
7710
|
|
7481
7711
|
ax_check_save_flags=$CFLAGS
|
7482
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7712
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
|
7483
7713
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7484
7714
|
/* end confdefs.h. */
|
7485
7715
|
#include <time.h>
|
@@ -7504,20 +7734,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7504
7734
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7505
7735
|
$as_echo "$ac_res" >&6; }
|
7506
7736
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7507
|
-
CWFLAGS="$CWFLAGS -
|
7737
|
+
CWFLAGS="$CWFLAGS -Wfloat-equal"
|
7508
7738
|
else
|
7509
7739
|
:
|
7510
7740
|
fi
|
7511
7741
|
|
7512
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7513
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7514
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7742
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
|
7743
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
|
7744
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
|
7515
7745
|
if eval \${$as_CACHEVAR+:} false; then :
|
7516
7746
|
$as_echo_n "(cached) " >&6
|
7517
7747
|
else
|
7518
7748
|
|
7519
7749
|
ax_check_save_flags=$CFLAGS
|
7520
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7750
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
|
7521
7751
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7522
7752
|
/* end confdefs.h. */
|
7523
7753
|
#include <time.h>
|
@@ -7542,20 +7772,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7542
7772
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7543
7773
|
$as_echo "$ac_res" >&6; }
|
7544
7774
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7545
|
-
CWFLAGS="$CWFLAGS -
|
7775
|
+
CWFLAGS="$CWFLAGS -Wformat=2"
|
7546
7776
|
else
|
7547
7777
|
:
|
7548
7778
|
fi
|
7549
7779
|
|
7550
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7551
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7552
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7780
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wlogical-op" | $as_tr_sh`
|
7781
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wlogical-op" >&5
|
7782
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wlogical-op... " >&6; }
|
7553
7783
|
if eval \${$as_CACHEVAR+:} false; then :
|
7554
7784
|
$as_echo_n "(cached) " >&6
|
7555
7785
|
else
|
7556
7786
|
|
7557
7787
|
ax_check_save_flags=$CFLAGS
|
7558
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7788
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wlogical-op"
|
7559
7789
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7560
7790
|
/* end confdefs.h. */
|
7561
7791
|
#include <time.h>
|
@@ -7580,20 +7810,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7580
7810
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7581
7811
|
$as_echo "$ac_res" >&6; }
|
7582
7812
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7583
|
-
CWFLAGS="$CWFLAGS -
|
7813
|
+
CWFLAGS="$CWFLAGS -Wlogical-op"
|
7584
7814
|
else
|
7585
7815
|
:
|
7586
7816
|
fi
|
7587
7817
|
|
7588
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7589
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7590
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7818
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmaybe-uninitialized" | $as_tr_sh`
|
7819
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized" >&5
|
7820
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized... " >&6; }
|
7591
7821
|
if eval \${$as_CACHEVAR+:} false; then :
|
7592
7822
|
$as_echo_n "(cached) " >&6
|
7593
7823
|
else
|
7594
7824
|
|
7595
7825
|
ax_check_save_flags=$CFLAGS
|
7596
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7826
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wmaybe-uninitialized"
|
7597
7827
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7598
7828
|
/* end confdefs.h. */
|
7599
7829
|
#include <time.h>
|
@@ -7618,20 +7848,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
7618
7848
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7619
7849
|
$as_echo "$ac_res" >&6; }
|
7620
7850
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7621
|
-
CWFLAGS="$CWFLAGS -
|
7851
|
+
CWFLAGS="$CWFLAGS -Wmaybe-uninitialized"
|
7622
7852
|
else
|
7623
7853
|
:
|
7624
7854
|
fi
|
7625
7855
|
|
7626
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
7627
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
7628
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
7856
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmisleading-indentation" | $as_tr_sh`
|
7857
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation" >&5
|
7858
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation... " >&6; }
|
7629
7859
|
if eval \${$as_CACHEVAR+:} false; then :
|
7630
7860
|
$as_echo_n "(cached) " >&6
|
7631
7861
|
else
|
7632
7862
|
|
7633
7863
|
ax_check_save_flags=$CFLAGS
|
7634
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
7864
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wmisleading-indentation"
|
7635
7865
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
7636
7866
|
/* end confdefs.h. */
|
7637
7867
|
#include <time.h>
|
@@ -7656,7 +7886,7 @@ eval ac_res=\$$as_CACHEVAR
|
|
7656
7886
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
7657
7887
|
$as_echo "$ac_res" >&6; }
|
7658
7888
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
7659
|
-
CWFLAGS="$CWFLAGS -
|
7889
|
+
CWFLAGS="$CWFLAGS -Wmisleading-indentation"
|
7660
7890
|
else
|
7661
7891
|
:
|
7662
7892
|
fi
|
@@ -8041,6 +8271,44 @@ else
|
|
8041
8271
|
:
|
8042
8272
|
fi
|
8043
8273
|
|
8274
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wrestrict" | $as_tr_sh`
|
8275
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wrestrict" >&5
|
8276
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wrestrict... " >&6; }
|
8277
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
8278
|
+
$as_echo_n "(cached) " >&6
|
8279
|
+
else
|
8280
|
+
|
8281
|
+
ax_check_save_flags=$CFLAGS
|
8282
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wrestrict"
|
8283
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8284
|
+
/* end confdefs.h. */
|
8285
|
+
#include <time.h>
|
8286
|
+
int
|
8287
|
+
main ()
|
8288
|
+
{
|
8289
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
8290
|
+
;
|
8291
|
+
return 0;
|
8292
|
+
}
|
8293
|
+
_ACEOF
|
8294
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
8295
|
+
eval "$as_CACHEVAR=yes"
|
8296
|
+
else
|
8297
|
+
eval "$as_CACHEVAR=no"
|
8298
|
+
fi
|
8299
|
+
rm -f core conftest.err conftest.$ac_objext \
|
8300
|
+
conftest$ac_exeext conftest.$ac_ext
|
8301
|
+
CFLAGS=$ax_check_save_flags
|
8302
|
+
fi
|
8303
|
+
eval ac_res=\$$as_CACHEVAR
|
8304
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8305
|
+
$as_echo "$ac_res" >&6; }
|
8306
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8307
|
+
CWFLAGS="$CWFLAGS -Wrestrict"
|
8308
|
+
else
|
8309
|
+
:
|
8310
|
+
fi
|
8311
|
+
|
8044
8312
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | $as_tr_sh`
|
8045
8313
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
|
8046
8314
|
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
|
@@ -8079,6 +8347,44 @@ else
|
|
8079
8347
|
:
|
8080
8348
|
fi
|
8081
8349
|
|
8350
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wsometimes-uninitialized" | $as_tr_sh`
|
8351
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized" >&5
|
8352
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized... " >&6; }
|
8353
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
8354
|
+
$as_echo_n "(cached) " >&6
|
8355
|
+
else
|
8356
|
+
|
8357
|
+
ax_check_save_flags=$CFLAGS
|
8358
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wsometimes-uninitialized"
|
8359
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8360
|
+
/* end confdefs.h. */
|
8361
|
+
#include <time.h>
|
8362
|
+
int
|
8363
|
+
main ()
|
8364
|
+
{
|
8365
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
8366
|
+
;
|
8367
|
+
return 0;
|
8368
|
+
}
|
8369
|
+
_ACEOF
|
8370
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
8371
|
+
eval "$as_CACHEVAR=yes"
|
8372
|
+
else
|
8373
|
+
eval "$as_CACHEVAR=no"
|
8374
|
+
fi
|
8375
|
+
rm -f core conftest.err conftest.$ac_objext \
|
8376
|
+
conftest$ac_exeext conftest.$ac_ext
|
8377
|
+
CFLAGS=$ax_check_save_flags
|
8378
|
+
fi
|
8379
|
+
eval ac_res=\$$as_CACHEVAR
|
8380
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8381
|
+
$as_echo "$ac_res" >&6; }
|
8382
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8383
|
+
CWFLAGS="$CWFLAGS -Wsometimes-uninitialized"
|
8384
|
+
else
|
8385
|
+
:
|
8386
|
+
fi
|
8387
|
+
|
8082
8388
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
|
8083
8389
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
|
8084
8390
|
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
|
@@ -8087,7 +8393,45 @@ if eval \${$as_CACHEVAR+:} false; then :
|
|
8087
8393
|
else
|
8088
8394
|
|
8089
8395
|
ax_check_save_flags=$CFLAGS
|
8090
|
-
CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
|
8396
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
|
8397
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8398
|
+
/* end confdefs.h. */
|
8399
|
+
#include <time.h>
|
8400
|
+
int
|
8401
|
+
main ()
|
8402
|
+
{
|
8403
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
8404
|
+
;
|
8405
|
+
return 0;
|
8406
|
+
}
|
8407
|
+
_ACEOF
|
8408
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
8409
|
+
eval "$as_CACHEVAR=yes"
|
8410
|
+
else
|
8411
|
+
eval "$as_CACHEVAR=no"
|
8412
|
+
fi
|
8413
|
+
rm -f core conftest.err conftest.$ac_objext \
|
8414
|
+
conftest$ac_exeext conftest.$ac_ext
|
8415
|
+
CFLAGS=$ax_check_save_flags
|
8416
|
+
fi
|
8417
|
+
eval ac_res=\$$as_CACHEVAR
|
8418
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8419
|
+
$as_echo "$ac_res" >&6; }
|
8420
|
+
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8421
|
+
CWFLAGS="$CWFLAGS -Wstrict-prototypes"
|
8422
|
+
else
|
8423
|
+
:
|
8424
|
+
fi
|
8425
|
+
|
8426
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
|
8427
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
|
8428
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
|
8429
|
+
if eval \${$as_CACHEVAR+:} false; then :
|
8430
|
+
$as_echo_n "(cached) " >&6
|
8431
|
+
else
|
8432
|
+
|
8433
|
+
ax_check_save_flags=$CFLAGS
|
8434
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
|
8091
8435
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8092
8436
|
/* end confdefs.h. */
|
8093
8437
|
#include <time.h>
|
@@ -8112,20 +8456,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
8112
8456
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8113
8457
|
$as_echo "$ac_res" >&6; }
|
8114
8458
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8115
|
-
CWFLAGS="$CWFLAGS -
|
8459
|
+
CWFLAGS="$CWFLAGS -Wswitch-enum"
|
8116
8460
|
else
|
8117
8461
|
:
|
8118
8462
|
fi
|
8119
8463
|
|
8120
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
8121
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
8122
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
8464
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
|
8465
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
|
8466
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
|
8123
8467
|
if eval \${$as_CACHEVAR+:} false; then :
|
8124
8468
|
$as_echo_n "(cached) " >&6
|
8125
8469
|
else
|
8126
8470
|
|
8127
8471
|
ax_check_save_flags=$CFLAGS
|
8128
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
8472
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
|
8129
8473
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8130
8474
|
/* end confdefs.h. */
|
8131
8475
|
#include <time.h>
|
@@ -8150,20 +8494,20 @@ eval ac_res=\$$as_CACHEVAR
|
|
8150
8494
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8151
8495
|
$as_echo "$ac_res" >&6; }
|
8152
8496
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8153
|
-
CWFLAGS="$CWFLAGS -
|
8497
|
+
CWFLAGS="$CWFLAGS -Wvariable-decl"
|
8154
8498
|
else
|
8155
8499
|
:
|
8156
8500
|
fi
|
8157
8501
|
|
8158
|
-
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -
|
8159
|
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -
|
8160
|
-
$as_echo_n "checking whether C compiler accepts $CWFLAGS -
|
8502
|
+
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wwrite-strings" | $as_tr_sh`
|
8503
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wwrite-strings" >&5
|
8504
|
+
$as_echo_n "checking whether C compiler accepts $CWFLAGS -Wwrite-strings... " >&6; }
|
8161
8505
|
if eval \${$as_CACHEVAR+:} false; then :
|
8162
8506
|
$as_echo_n "(cached) " >&6
|
8163
8507
|
else
|
8164
8508
|
|
8165
8509
|
ax_check_save_flags=$CFLAGS
|
8166
|
-
CFLAGS="$CFLAGS $CWFLAGS -
|
8510
|
+
CFLAGS="$CFLAGS $CWFLAGS -Wwrite-strings"
|
8167
8511
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8168
8512
|
/* end confdefs.h. */
|
8169
8513
|
#include <time.h>
|
@@ -8188,7 +8532,7 @@ eval ac_res=\$$as_CACHEVAR
|
|
8188
8532
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
8189
8533
|
$as_echo "$ac_res" >&6; }
|
8190
8534
|
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
|
8191
|
-
CWFLAGS="$CWFLAGS -
|
8535
|
+
CWFLAGS="$CWFLAGS -Wwrite-strings"
|
8192
8536
|
else
|
8193
8537
|
:
|
8194
8538
|
fi
|
@@ -8507,6 +8851,65 @@ $as_echo "$as_me: WARNING: On this platform, SIGABRT cannot be caught using sign
|
|
8507
8851
|
fi
|
8508
8852
|
|
8509
8853
|
|
8854
|
+
if test "x$with_threads" = "xyes"; then :
|
8855
|
+
|
8856
|
+
|
8857
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
|
8858
|
+
$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
|
8859
|
+
if ${ac_cv_tls+:} false; then :
|
8860
|
+
$as_echo_n "(cached) " >&6
|
8861
|
+
else
|
8862
|
+
for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
|
8863
|
+
case $ax_tls_keyword in @%:@(
|
8864
|
+
none) :
|
8865
|
+
ac_cv_tls=none ; break ;; @%:@(
|
8866
|
+
*) :
|
8867
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
8868
|
+
/* end confdefs.h. */
|
8869
|
+
#include <stdlib.h>
|
8870
|
+
static void
|
8871
|
+
foo(void) {
|
8872
|
+
static $ax_tls_keyword int bar;
|
8873
|
+
exit(1);
|
8874
|
+
}
|
8875
|
+
int
|
8876
|
+
main ()
|
8877
|
+
{
|
8878
|
+
|
8879
|
+
;
|
8880
|
+
return 0;
|
8881
|
+
}
|
8882
|
+
_ACEOF
|
8883
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
8884
|
+
ac_cv_tls=$ax_tls_keyword ; break
|
8885
|
+
else
|
8886
|
+
ac_cv_tls=none
|
8887
|
+
|
8888
|
+
fi
|
8889
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
|
8890
|
+
esac
|
8891
|
+
done
|
8892
|
+
|
8893
|
+
fi
|
8894
|
+
|
8895
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
|
8896
|
+
$as_echo "$ac_cv_tls" >&6; }
|
8897
|
+
|
8898
|
+
if test "$ac_cv_tls" != "none"; then :
|
8899
|
+
|
8900
|
+
cat >>confdefs.h <<_ACEOF
|
8901
|
+
@%:@define TLS $ac_cv_tls
|
8902
|
+
_ACEOF
|
8903
|
+
|
8904
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is supported" >&5
|
8905
|
+
$as_echo "thread local storage is supported" >&6; }
|
8906
|
+
else
|
8907
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is not supported" >&5
|
8908
|
+
$as_echo "thread local storage is not supported" >&6; }
|
8909
|
+
fi
|
8910
|
+
|
8911
|
+
fi
|
8912
|
+
|
8510
8913
|
case `pwd` in
|
8511
8914
|
*\ * | *\ *)
|
8512
8915
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
@@ -17248,6 +17651,112 @@ else
|
|
17248
17651
|
fi
|
17249
17652
|
|
17250
17653
|
|
17654
|
+
else
|
17655
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
17656
|
+
$as_echo "no" >&6; }
|
17657
|
+
fi
|
17658
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
17659
|
+
CFLAGS="$oldcflags"
|
17660
|
+
|
17661
|
+
oldcflags="$CFLAGS"
|
17662
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
|
17663
|
+
$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
|
17664
|
+
if ${ax_cv_check_cflags___mrdrnd+:} false; then :
|
17665
|
+
$as_echo_n "(cached) " >&6
|
17666
|
+
else
|
17667
|
+
|
17668
|
+
ax_check_save_flags=$CFLAGS
|
17669
|
+
CFLAGS="$CFLAGS -mrdrnd"
|
17670
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
17671
|
+
/* end confdefs.h. */
|
17672
|
+
#include <time.h>
|
17673
|
+
int
|
17674
|
+
main ()
|
17675
|
+
{
|
17676
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
17677
|
+
;
|
17678
|
+
return 0;
|
17679
|
+
}
|
17680
|
+
_ACEOF
|
17681
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
17682
|
+
ax_cv_check_cflags___mrdrnd=yes
|
17683
|
+
else
|
17684
|
+
ax_cv_check_cflags___mrdrnd=no
|
17685
|
+
fi
|
17686
|
+
rm -f core conftest.err conftest.$ac_objext \
|
17687
|
+
conftest$ac_exeext conftest.$ac_ext
|
17688
|
+
CFLAGS=$ax_check_save_flags
|
17689
|
+
fi
|
17690
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
|
17691
|
+
$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
|
17692
|
+
if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
|
17693
|
+
CFLAGS="$CFLAGS -mrdrnd"
|
17694
|
+
else
|
17695
|
+
:
|
17696
|
+
fi
|
17697
|
+
|
17698
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDRAND" >&5
|
17699
|
+
$as_echo_n "checking for RDRAND... " >&6; }
|
17700
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
17701
|
+
/* end confdefs.h. */
|
17702
|
+
|
17703
|
+
#ifdef __native_client__
|
17704
|
+
# error NativeClient detected - Avoiding RDRAND opcodes
|
17705
|
+
#endif
|
17706
|
+
#pragma GCC target("rdrnd")
|
17707
|
+
#include <immintrin.h>
|
17708
|
+
|
17709
|
+
int
|
17710
|
+
main ()
|
17711
|
+
{
|
17712
|
+
unsigned long long x; _rdrand64_step(&x);
|
17713
|
+
;
|
17714
|
+
return 0;
|
17715
|
+
}
|
17716
|
+
_ACEOF
|
17717
|
+
if ac_fn_c_try_compile "$LINENO"; then :
|
17718
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
17719
|
+
$as_echo "yes" >&6; }
|
17720
|
+
|
17721
|
+
$as_echo "@%:@define HAVE_RDRAND 1" >>confdefs.h
|
17722
|
+
|
17723
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
|
17724
|
+
$as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
|
17725
|
+
if ${ax_cv_check_cflags___mrdrnd+:} false; then :
|
17726
|
+
$as_echo_n "(cached) " >&6
|
17727
|
+
else
|
17728
|
+
|
17729
|
+
ax_check_save_flags=$CFLAGS
|
17730
|
+
CFLAGS="$CFLAGS -mrdrnd"
|
17731
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
17732
|
+
/* end confdefs.h. */
|
17733
|
+
#include <time.h>
|
17734
|
+
int
|
17735
|
+
main ()
|
17736
|
+
{
|
17737
|
+
time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
|
17738
|
+
;
|
17739
|
+
return 0;
|
17740
|
+
}
|
17741
|
+
_ACEOF
|
17742
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
17743
|
+
ax_cv_check_cflags___mrdrnd=yes
|
17744
|
+
else
|
17745
|
+
ax_cv_check_cflags___mrdrnd=no
|
17746
|
+
fi
|
17747
|
+
rm -f core conftest.err conftest.$ac_objext \
|
17748
|
+
conftest$ac_exeext conftest.$ac_ext
|
17749
|
+
CFLAGS=$ax_check_save_flags
|
17750
|
+
fi
|
17751
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
|
17752
|
+
$as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
|
17753
|
+
if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
|
17754
|
+
CFLAGS_RDRAND="-mrdrnd"
|
17755
|
+
else
|
17756
|
+
:
|
17757
|
+
fi
|
17758
|
+
|
17759
|
+
|
17251
17760
|
else
|
17252
17761
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
17253
17762
|
$as_echo "no" >&6; }
|
@@ -17269,6 +17778,7 @@ fi
|
|
17269
17778
|
|
17270
17779
|
|
17271
17780
|
|
17781
|
+
|
17272
17782
|
for ac_header in sys/mman.h intrin.h
|
17273
17783
|
do :
|
17274
17784
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
@@ -18017,6 +18527,203 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
18017
18527
|
conftest$ac_exeext conftest.$ac_ext
|
18018
18528
|
|
18019
18529
|
|
18530
|
+
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
18531
|
+
if test "x$ac_cv_type_size_t" = xyes; then :
|
18532
|
+
|
18533
|
+
else
|
18534
|
+
|
18535
|
+
cat >>confdefs.h <<_ACEOF
|
18536
|
+
@%:@define size_t unsigned int
|
18537
|
+
_ACEOF
|
18538
|
+
|
18539
|
+
fi
|
18540
|
+
|
18541
|
+
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
18542
|
+
# for constant arguments. Useless!
|
18543
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
18544
|
+
$as_echo_n "checking for working alloca.h... " >&6; }
|
18545
|
+
if ${ac_cv_working_alloca_h+:} false; then :
|
18546
|
+
$as_echo_n "(cached) " >&6
|
18547
|
+
else
|
18548
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
18549
|
+
/* end confdefs.h. */
|
18550
|
+
@%:@include <alloca.h>
|
18551
|
+
int
|
18552
|
+
main ()
|
18553
|
+
{
|
18554
|
+
char *p = (char *) alloca (2 * sizeof (int));
|
18555
|
+
if (p) return 0;
|
18556
|
+
;
|
18557
|
+
return 0;
|
18558
|
+
}
|
18559
|
+
_ACEOF
|
18560
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
18561
|
+
ac_cv_working_alloca_h=yes
|
18562
|
+
else
|
18563
|
+
ac_cv_working_alloca_h=no
|
18564
|
+
fi
|
18565
|
+
rm -f core conftest.err conftest.$ac_objext \
|
18566
|
+
conftest$ac_exeext conftest.$ac_ext
|
18567
|
+
fi
|
18568
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
18569
|
+
$as_echo "$ac_cv_working_alloca_h" >&6; }
|
18570
|
+
if test $ac_cv_working_alloca_h = yes; then
|
18571
|
+
|
18572
|
+
$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
|
18573
|
+
|
18574
|
+
fi
|
18575
|
+
|
18576
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
18577
|
+
$as_echo_n "checking for alloca... " >&6; }
|
18578
|
+
if ${ac_cv_func_alloca_works+:} false; then :
|
18579
|
+
$as_echo_n "(cached) " >&6
|
18580
|
+
else
|
18581
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
18582
|
+
/* end confdefs.h. */
|
18583
|
+
#ifdef __GNUC__
|
18584
|
+
# define alloca __builtin_alloca
|
18585
|
+
#else
|
18586
|
+
# ifdef _MSC_VER
|
18587
|
+
# include <malloc.h>
|
18588
|
+
# define alloca _alloca
|
18589
|
+
# else
|
18590
|
+
# ifdef HAVE_ALLOCA_H
|
18591
|
+
# include <alloca.h>
|
18592
|
+
# else
|
18593
|
+
# ifdef _AIX
|
18594
|
+
#pragma alloca
|
18595
|
+
# else
|
18596
|
+
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
18597
|
+
void *alloca (size_t);
|
18598
|
+
# endif
|
18599
|
+
# endif
|
18600
|
+
# endif
|
18601
|
+
# endif
|
18602
|
+
#endif
|
18603
|
+
|
18604
|
+
int
|
18605
|
+
main ()
|
18606
|
+
{
|
18607
|
+
char *p = (char *) alloca (1);
|
18608
|
+
if (p) return 0;
|
18609
|
+
;
|
18610
|
+
return 0;
|
18611
|
+
}
|
18612
|
+
_ACEOF
|
18613
|
+
if ac_fn_c_try_link "$LINENO"; then :
|
18614
|
+
ac_cv_func_alloca_works=yes
|
18615
|
+
else
|
18616
|
+
ac_cv_func_alloca_works=no
|
18617
|
+
fi
|
18618
|
+
rm -f core conftest.err conftest.$ac_objext \
|
18619
|
+
conftest$ac_exeext conftest.$ac_ext
|
18620
|
+
fi
|
18621
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
18622
|
+
$as_echo "$ac_cv_func_alloca_works" >&6; }
|
18623
|
+
|
18624
|
+
if test $ac_cv_func_alloca_works = yes; then
|
18625
|
+
|
18626
|
+
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
|
18627
|
+
|
18628
|
+
else
|
18629
|
+
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
18630
|
+
# that cause trouble. Some versions do not even contain alloca or
|
18631
|
+
# contain a buggy version. If you still want to use their alloca,
|
18632
|
+
# use ar to extract alloca.o from them instead of compiling alloca.c.
|
18633
|
+
|
18634
|
+
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
18635
|
+
|
18636
|
+
$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
|
18637
|
+
|
18638
|
+
|
18639
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
18640
|
+
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
18641
|
+
if ${ac_cv_os_cray+:} false; then :
|
18642
|
+
$as_echo_n "(cached) " >&6
|
18643
|
+
else
|
18644
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
18645
|
+
/* end confdefs.h. */
|
18646
|
+
#if defined CRAY && ! defined CRAY2
|
18647
|
+
webecray
|
18648
|
+
#else
|
18649
|
+
wenotbecray
|
18650
|
+
#endif
|
18651
|
+
|
18652
|
+
_ACEOF
|
18653
|
+
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
18654
|
+
$EGREP "webecray" >/dev/null 2>&1; then :
|
18655
|
+
ac_cv_os_cray=yes
|
18656
|
+
else
|
18657
|
+
ac_cv_os_cray=no
|
18658
|
+
fi
|
18659
|
+
rm -f conftest*
|
18660
|
+
|
18661
|
+
fi
|
18662
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
18663
|
+
$as_echo "$ac_cv_os_cray" >&6; }
|
18664
|
+
if test $ac_cv_os_cray = yes; then
|
18665
|
+
for ac_func in _getb67 GETB67 getb67; do
|
18666
|
+
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
18667
|
+
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
18668
|
+
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
18669
|
+
|
18670
|
+
cat >>confdefs.h <<_ACEOF
|
18671
|
+
@%:@define CRAY_STACKSEG_END $ac_func
|
18672
|
+
_ACEOF
|
18673
|
+
|
18674
|
+
break
|
18675
|
+
fi
|
18676
|
+
|
18677
|
+
done
|
18678
|
+
fi
|
18679
|
+
|
18680
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
18681
|
+
$as_echo_n "checking stack direction for C alloca... " >&6; }
|
18682
|
+
if ${ac_cv_c_stack_direction+:} false; then :
|
18683
|
+
$as_echo_n "(cached) " >&6
|
18684
|
+
else
|
18685
|
+
if test "$cross_compiling" = yes; then :
|
18686
|
+
ac_cv_c_stack_direction=0
|
18687
|
+
else
|
18688
|
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
18689
|
+
/* end confdefs.h. */
|
18690
|
+
$ac_includes_default
|
18691
|
+
int
|
18692
|
+
find_stack_direction (int *addr, int depth)
|
18693
|
+
{
|
18694
|
+
int dir, dummy = 0;
|
18695
|
+
if (! addr)
|
18696
|
+
addr = &dummy;
|
18697
|
+
*addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
18698
|
+
dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
18699
|
+
return dir + dummy;
|
18700
|
+
}
|
18701
|
+
|
18702
|
+
int
|
18703
|
+
main (int argc, char **argv)
|
18704
|
+
{
|
18705
|
+
return find_stack_direction (0, argc + !argv + 20) < 0;
|
18706
|
+
}
|
18707
|
+
_ACEOF
|
18708
|
+
if ac_fn_c_try_run "$LINENO"; then :
|
18709
|
+
ac_cv_c_stack_direction=1
|
18710
|
+
else
|
18711
|
+
ac_cv_c_stack_direction=-1
|
18712
|
+
fi
|
18713
|
+
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
18714
|
+
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
18715
|
+
fi
|
18716
|
+
|
18717
|
+
fi
|
18718
|
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
18719
|
+
$as_echo "$ac_cv_c_stack_direction" >&6; }
|
18720
|
+
cat >>confdefs.h <<_ACEOF
|
18721
|
+
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
|
18722
|
+
_ACEOF
|
18723
|
+
|
18724
|
+
|
18725
|
+
fi
|
18726
|
+
|
18020
18727
|
if test "x$EMSCRIPTEN" = "x"; then :
|
18021
18728
|
|
18022
18729
|
for ac_func in arc4random arc4random_buf
|
@@ -18437,6 +19144,12 @@ fi
|
|
18437
19144
|
|
18438
19145
|
|
18439
19146
|
|
19147
|
+
if test "x$ENABLE_CWFLAGS" = "xyes"; then :
|
19148
|
+
|
19149
|
+
CFLAGS="$CFLAGS $CWFLAGS"
|
19150
|
+
|
19151
|
+
fi
|
19152
|
+
|
18440
19153
|
ac_config_files="$ac_config_files Makefile builds/Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
|
18441
19154
|
|
18442
19155
|
cat >confcache <<\_ACEOF
|
@@ -19045,7 +19758,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
19045
19758
|
# report actual input values of CONFIG_FILES etc. instead of their
|
19046
19759
|
# values after options handling.
|
19047
19760
|
ac_log="
|
19048
|
-
This file was extended by libsodium $as_me 1.0.
|
19761
|
+
This file was extended by libsodium $as_me 1.0.16, which was
|
19049
19762
|
generated by GNU Autoconf 2.69. Invocation command line was
|
19050
19763
|
|
19051
19764
|
CONFIG_FILES = $CONFIG_FILES
|
@@ -19103,7 +19816,7 @@ _ACEOF
|
|
19103
19816
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
19104
19817
|
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
19105
19818
|
ac_cs_version="\\
|
19106
|
-
libsodium config.status 1.0.
|
19819
|
+
libsodium config.status 1.0.16
|
19107
19820
|
configured by $0, generated by GNU Autoconf 2.69,
|
19108
19821
|
with options \\"\$ac_cs_config\\"
|
19109
19822
|
|