diff options
author | Colin Watson <cjwatson@debian.org> | 2020-10-18 12:04:32 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-10-18 12:04:32 +0100 |
commit | 2b2c99658e3e8ed452e28f88f9cdbcdfb2a461cb (patch) | |
tree | 336445493163aa0370cb7830d97ebd8819b2e2c5 /configure | |
parent | 202f5a676221c244cd450086c334c2b59f339e86 (diff) | |
parent | 279261e1ea8150c7c64ab5fe7cb4a4ea17acbb29 (diff) |
Import openssh_8.4p1.orig.tar.gz
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 734 |
1 files changed, 553 insertions, 181 deletions
@@ -1,5 +1,4 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.583 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated by GNU Autoconf 2.69 for OpenSSH Portable. | 3 | # Generated by GNU Autoconf 2.69 for OpenSSH Portable. |
5 | # | 4 | # |
@@ -643,7 +642,6 @@ K5LIBS | |||
643 | GSSLIBS | 642 | GSSLIBS |
644 | KRB5CONF | 643 | KRB5CONF |
645 | SSHDLIBS | 644 | SSHDLIBS |
646 | SSHLIBS | ||
647 | SSH_PRIVSEP_USER | 645 | SSH_PRIVSEP_USER |
648 | LIBFIDO2 | 646 | LIBFIDO2 |
649 | SK_DUMMY_LIBRARY | 647 | SK_DUMMY_LIBRARY |
@@ -667,7 +665,6 @@ NROFF | |||
667 | GROFF | 665 | GROFF |
668 | SH | 666 | SH |
669 | TEST_MINUS_S_SH | 667 | TEST_MINUS_S_SH |
670 | ENT | ||
671 | SED | 668 | SED |
672 | KILL | 669 | KILL |
673 | CAT | 670 | CAT |
@@ -716,6 +713,7 @@ infodir | |||
716 | docdir | 713 | docdir |
717 | oldincludedir | 714 | oldincludedir |
718 | includedir | 715 | includedir |
716 | runstatedir | ||
719 | localstatedir | 717 | localstatedir |
720 | sharedstatedir | 718 | sharedstatedir |
721 | sysconfdir | 719 | sysconfdir |
@@ -845,6 +843,7 @@ datadir='${datarootdir}' | |||
845 | sysconfdir='${prefix}/etc' | 843 | sysconfdir='${prefix}/etc' |
846 | sharedstatedir='${prefix}/com' | 844 | sharedstatedir='${prefix}/com' |
847 | localstatedir='${prefix}/var' | 845 | localstatedir='${prefix}/var' |
846 | runstatedir='${localstatedir}/run' | ||
848 | includedir='${prefix}/include' | 847 | includedir='${prefix}/include' |
849 | oldincludedir='/usr/include' | 848 | oldincludedir='/usr/include' |
850 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 849 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
@@ -1097,6 +1096,15 @@ do | |||
1097 | | -silent | --silent | --silen | --sile | --sil) | 1096 | | -silent | --silent | --silen | --sile | --sil) |
1098 | silent=yes ;; | 1097 | silent=yes ;; |
1099 | 1098 | ||
1099 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | ||
1100 | | --runstate | --runstat | --runsta | --runst | --runs \ | ||
1101 | | --run | --ru | --r) | ||
1102 | ac_prev=runstatedir ;; | ||
1103 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | ||
1104 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | ||
1105 | | --run=* | --ru=* | --r=*) | ||
1106 | runstatedir=$ac_optarg ;; | ||
1107 | |||
1100 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 1108 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1101 | ac_prev=sbindir ;; | 1109 | ac_prev=sbindir ;; |
1102 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 1110 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
@@ -1234,7 +1242,7 @@ fi | |||
1234 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 1242 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1235 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 1243 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1236 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 1244 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1237 | libdir localedir mandir | 1245 | libdir localedir mandir runstatedir |
1238 | do | 1246 | do |
1239 | eval ac_val=\$$ac_var | 1247 | eval ac_val=\$$ac_var |
1240 | # Remove trailing slashes. | 1248 | # Remove trailing slashes. |
@@ -1387,6 +1395,7 @@ Fine tuning of the installation directories: | |||
1387 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | 1395 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1388 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | 1396 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1389 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | 1397 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1398 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | ||
1390 | --libdir=DIR object code libraries [EPREFIX/lib] | 1399 | --libdir=DIR object code libraries [EPREFIX/lib] |
1391 | --includedir=DIR C header files [PREFIX/include] | 1400 | --includedir=DIR C header files [PREFIX/include] |
1392 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | 1401 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
@@ -1905,127 +1914,6 @@ fi | |||
1905 | 1914 | ||
1906 | } # ac_fn_c_check_header_mongrel | 1915 | } # ac_fn_c_check_header_mongrel |
1907 | 1916 | ||
1908 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1909 | # ---------------------------------- | ||
1910 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1911 | ac_fn_c_check_func () | ||
1912 | { | ||
1913 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1915 | $as_echo_n "checking for $2... " >&6; } | ||
1916 | if eval \${$3+:} false; then : | ||
1917 | $as_echo_n "(cached) " >&6 | ||
1918 | else | ||
1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1920 | /* end confdefs.h. */ | ||
1921 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1922 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1923 | #define $2 innocuous_$2 | ||
1924 | |||
1925 | /* System header to define __stub macros and hopefully few prototypes, | ||
1926 | which can conflict with char $2 (); below. | ||
1927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1928 | <limits.h> exists even on freestanding compilers. */ | ||
1929 | |||
1930 | #ifdef __STDC__ | ||
1931 | # include <limits.h> | ||
1932 | #else | ||
1933 | # include <assert.h> | ||
1934 | #endif | ||
1935 | |||
1936 | #undef $2 | ||
1937 | |||
1938 | /* Override any GCC internal prototype to avoid an error. | ||
1939 | Use char because int might match the return type of a GCC | ||
1940 | builtin and then its argument prototype would still apply. */ | ||
1941 | #ifdef __cplusplus | ||
1942 | extern "C" | ||
1943 | #endif | ||
1944 | char $2 (); | ||
1945 | /* The GNU C library defines this for functions which it implements | ||
1946 | to always fail with ENOSYS. Some functions are actually named | ||
1947 | something starting with __ and the normal name is an alias. */ | ||
1948 | #if defined __stub_$2 || defined __stub___$2 | ||
1949 | choke me | ||
1950 | #endif | ||
1951 | |||
1952 | int | ||
1953 | main () | ||
1954 | { | ||
1955 | return $2 (); | ||
1956 | ; | ||
1957 | return 0; | ||
1958 | } | ||
1959 | _ACEOF | ||
1960 | if ac_fn_c_try_link "$LINENO"; then : | ||
1961 | eval "$3=yes" | ||
1962 | else | ||
1963 | eval "$3=no" | ||
1964 | fi | ||
1965 | rm -f core conftest.err conftest.$ac_objext \ | ||
1966 | conftest$ac_exeext conftest.$ac_ext | ||
1967 | fi | ||
1968 | eval ac_res=\$$3 | ||
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1970 | $as_echo "$ac_res" >&6; } | ||
1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1972 | |||
1973 | } # ac_fn_c_check_func | ||
1974 | |||
1975 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1976 | # ------------------------------------------- | ||
1977 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1978 | # variable VAR accordingly. | ||
1979 | ac_fn_c_check_type () | ||
1980 | { | ||
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1983 | $as_echo_n "checking for $2... " >&6; } | ||
1984 | if eval \${$3+:} false; then : | ||
1985 | $as_echo_n "(cached) " >&6 | ||
1986 | else | ||
1987 | eval "$3=no" | ||
1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1989 | /* end confdefs.h. */ | ||
1990 | $4 | ||
1991 | int | ||
1992 | main () | ||
1993 | { | ||
1994 | if (sizeof ($2)) | ||
1995 | return 0; | ||
1996 | ; | ||
1997 | return 0; | ||
1998 | } | ||
1999 | _ACEOF | ||
2000 | if ac_fn_c_try_compile "$LINENO"; then : | ||
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 | |||
2015 | else | ||
2016 | eval "$3=yes" | ||
2017 | fi | ||
2018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2019 | fi | ||
2020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2021 | fi | ||
2022 | eval ac_res=\$$3 | ||
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2024 | $as_echo "$ac_res" >&6; } | ||
2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2026 | |||
2027 | } # ac_fn_c_check_type | ||
2028 | |||
2029 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 1917 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2030 | # -------------------------------------------- | 1918 | # -------------------------------------------- |
2031 | # Tries to find the compile-time value of EXPR in a program that includes | 1919 | # Tries to find the compile-time value of EXPR in a program that includes |
@@ -2209,6 +2097,127 @@ rm -f conftest.val | |||
2209 | 2097 | ||
2210 | } # ac_fn_c_compute_int | 2098 | } # ac_fn_c_compute_int |
2211 | 2099 | ||
2100 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2101 | # ---------------------------------- | ||
2102 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2103 | ac_fn_c_check_func () | ||
2104 | { | ||
2105 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2107 | $as_echo_n "checking for $2... " >&6; } | ||
2108 | if eval \${$3+:} false; then : | ||
2109 | $as_echo_n "(cached) " >&6 | ||
2110 | else | ||
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2112 | /* end confdefs.h. */ | ||
2113 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2115 | #define $2 innocuous_$2 | ||
2116 | |||
2117 | /* System header to define __stub macros and hopefully few prototypes, | ||
2118 | which can conflict with char $2 (); below. | ||
2119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2120 | <limits.h> exists even on freestanding compilers. */ | ||
2121 | |||
2122 | #ifdef __STDC__ | ||
2123 | # include <limits.h> | ||
2124 | #else | ||
2125 | # include <assert.h> | ||
2126 | #endif | ||
2127 | |||
2128 | #undef $2 | ||
2129 | |||
2130 | /* Override any GCC internal prototype to avoid an error. | ||
2131 | Use char because int might match the return type of a GCC | ||
2132 | builtin and then its argument prototype would still apply. */ | ||
2133 | #ifdef __cplusplus | ||
2134 | extern "C" | ||
2135 | #endif | ||
2136 | char $2 (); | ||
2137 | /* The GNU C library defines this for functions which it implements | ||
2138 | to always fail with ENOSYS. Some functions are actually named | ||
2139 | something starting with __ and the normal name is an alias. */ | ||
2140 | #if defined __stub_$2 || defined __stub___$2 | ||
2141 | choke me | ||
2142 | #endif | ||
2143 | |||
2144 | int | ||
2145 | main () | ||
2146 | { | ||
2147 | return $2 (); | ||
2148 | ; | ||
2149 | return 0; | ||
2150 | } | ||
2151 | _ACEOF | ||
2152 | if ac_fn_c_try_link "$LINENO"; then : | ||
2153 | eval "$3=yes" | ||
2154 | else | ||
2155 | eval "$3=no" | ||
2156 | fi | ||
2157 | rm -f core conftest.err conftest.$ac_objext \ | ||
2158 | conftest$ac_exeext conftest.$ac_ext | ||
2159 | fi | ||
2160 | eval ac_res=\$$3 | ||
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2162 | $as_echo "$ac_res" >&6; } | ||
2163 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2164 | |||
2165 | } # ac_fn_c_check_func | ||
2166 | |||
2167 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
2168 | # ------------------------------------------- | ||
2169 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
2170 | # variable VAR accordingly. | ||
2171 | ac_fn_c_check_type () | ||
2172 | { | ||
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2175 | $as_echo_n "checking for $2... " >&6; } | ||
2176 | if eval \${$3+:} false; then : | ||
2177 | $as_echo_n "(cached) " >&6 | ||
2178 | else | ||
2179 | eval "$3=no" | ||
2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2181 | /* end confdefs.h. */ | ||
2182 | $4 | ||
2183 | int | ||
2184 | main () | ||
2185 | { | ||
2186 | if (sizeof ($2)) | ||
2187 | return 0; | ||
2188 | ; | ||
2189 | return 0; | ||
2190 | } | ||
2191 | _ACEOF | ||
2192 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2194 | /* end confdefs.h. */ | ||
2195 | $4 | ||
2196 | int | ||
2197 | main () | ||
2198 | { | ||
2199 | if (sizeof (($2))) | ||
2200 | return 0; | ||
2201 | ; | ||
2202 | return 0; | ||
2203 | } | ||
2204 | _ACEOF | ||
2205 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2206 | |||
2207 | else | ||
2208 | eval "$3=yes" | ||
2209 | fi | ||
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2211 | fi | ||
2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2213 | fi | ||
2214 | eval ac_res=\$$3 | ||
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2216 | $as_echo "$ac_res" >&6; } | ||
2217 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2218 | |||
2219 | } # ac_fn_c_check_type | ||
2220 | |||
2212 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 2221 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2213 | # ---------------------------------------------------- | 2222 | # ---------------------------------------------------- |
2214 | # Tries to find if the field MEMBER exists in type AGGR, after including | 2223 | # Tries to find if the field MEMBER exists in type AGGR, after including |
@@ -4642,47 +4651,6 @@ $as_echo "no" >&6; } | |||
4642 | fi | 4651 | fi |
4643 | 4652 | ||
4644 | 4653 | ||
4645 | # Extract the first word of "ent", so it can be a program name with args. | ||
4646 | set dummy ent; ac_word=$2 | ||
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4648 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4649 | if ${ac_cv_path_ENT+:} false; then : | ||
4650 | $as_echo_n "(cached) " >&6 | ||
4651 | else | ||
4652 | case $ENT in | ||
4653 | [\\/]* | ?:[\\/]*) | ||
4654 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4655 | ;; | ||
4656 | *) | ||
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4658 | for as_dir in $PATH | ||
4659 | do | ||
4660 | IFS=$as_save_IFS | ||
4661 | test -z "$as_dir" && as_dir=. | ||
4662 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4664 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4666 | break 2 | ||
4667 | fi | ||
4668 | done | ||
4669 | done | ||
4670 | IFS=$as_save_IFS | ||
4671 | |||
4672 | ;; | ||
4673 | esac | ||
4674 | fi | ||
4675 | ENT=$ac_cv_path_ENT | ||
4676 | if test -n "$ENT"; then | ||
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4678 | $as_echo "$ENT" >&6; } | ||
4679 | else | ||
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4681 | $as_echo "no" >&6; } | ||
4682 | fi | ||
4683 | |||
4684 | |||
4685 | |||
4686 | # Extract the first word of "bash", so it can be a program name with args. | 4654 | # Extract the first word of "bash", so it can be a program name with args. |
4687 | set dummy bash; ac_word=$2 | 4655 | set dummy bash; ac_word=$2 |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
@@ -5534,12 +5502,23 @@ $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; } | |||
5534 | #include <stdlib.h> | 5502 | #include <stdlib.h> |
5535 | #include <stdio.h> | 5503 | #include <stdio.h> |
5536 | int main(int argc, char **argv) { | 5504 | int main(int argc, char **argv) { |
5505 | (void)argv; | ||
5537 | /* Some math to catch -ftrapv problems in the toolchain */ | 5506 | /* Some math to catch -ftrapv problems in the toolchain */ |
5538 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5507 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5539 | float l = i * 2.1; | 5508 | float l = i * 2.1; |
5540 | double m = l / 0.5; | 5509 | double m = l / 0.5; |
5541 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5510 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5542 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5511 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5512 | /* | ||
5513 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5514 | * not understand comments and we don't use the "fallthrough" attribute | ||
5515 | * that it's looking for. | ||
5516 | */ | ||
5517 | switch(i){ | ||
5518 | case 0: j += i; | ||
5519 | /* FALLTHROUGH */ | ||
5520 | default: j += k; | ||
5521 | } | ||
5543 | exit(0); | 5522 | exit(0); |
5544 | } | 5523 | } |
5545 | 5524 | ||
@@ -5577,12 +5556,23 @@ $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " | |||
5577 | #include <stdlib.h> | 5556 | #include <stdlib.h> |
5578 | #include <stdio.h> | 5557 | #include <stdio.h> |
5579 | int main(int argc, char **argv) { | 5558 | int main(int argc, char **argv) { |
5559 | (void)argv; | ||
5580 | /* Some math to catch -ftrapv problems in the toolchain */ | 5560 | /* Some math to catch -ftrapv problems in the toolchain */ |
5581 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5561 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5582 | float l = i * 2.1; | 5562 | float l = i * 2.1; |
5583 | double m = l / 0.5; | 5563 | double m = l / 0.5; |
5584 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5564 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5585 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5565 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5566 | /* | ||
5567 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5568 | * not understand comments and we don't use the "fallthrough" attribute | ||
5569 | * that it's looking for. | ||
5570 | */ | ||
5571 | switch(i){ | ||
5572 | case 0: j += i; | ||
5573 | /* FALLTHROUGH */ | ||
5574 | default: j += k; | ||
5575 | } | ||
5586 | exit(0); | 5576 | exit(0); |
5587 | } | 5577 | } |
5588 | 5578 | ||
@@ -5620,12 +5610,23 @@ $as_echo_n "checking if $CC supports compile flag -Wno-error=format-truncation.. | |||
5620 | #include <stdlib.h> | 5610 | #include <stdlib.h> |
5621 | #include <stdio.h> | 5611 | #include <stdio.h> |
5622 | int main(int argc, char **argv) { | 5612 | int main(int argc, char **argv) { |
5613 | (void)argv; | ||
5623 | /* Some math to catch -ftrapv problems in the toolchain */ | 5614 | /* Some math to catch -ftrapv problems in the toolchain */ |
5624 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5615 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5625 | float l = i * 2.1; | 5616 | float l = i * 2.1; |
5626 | double m = l / 0.5; | 5617 | double m = l / 0.5; |
5627 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5618 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5628 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5619 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5620 | /* | ||
5621 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5622 | * not understand comments and we don't use the "fallthrough" attribute | ||
5623 | * that it's looking for. | ||
5624 | */ | ||
5625 | switch(i){ | ||
5626 | case 0: j += i; | ||
5627 | /* FALLTHROUGH */ | ||
5628 | default: j += k; | ||
5629 | } | ||
5629 | exit(0); | 5630 | exit(0); |
5630 | } | 5631 | } |
5631 | 5632 | ||
@@ -5663,12 +5664,23 @@ $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | |||
5663 | #include <stdlib.h> | 5664 | #include <stdlib.h> |
5664 | #include <stdio.h> | 5665 | #include <stdio.h> |
5665 | int main(int argc, char **argv) { | 5666 | int main(int argc, char **argv) { |
5667 | (void)argv; | ||
5666 | /* Some math to catch -ftrapv problems in the toolchain */ | 5668 | /* Some math to catch -ftrapv problems in the toolchain */ |
5667 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5669 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5668 | float l = i * 2.1; | 5670 | float l = i * 2.1; |
5669 | double m = l / 0.5; | 5671 | double m = l / 0.5; |
5670 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5672 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5671 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5673 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5674 | /* | ||
5675 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5676 | * not understand comments and we don't use the "fallthrough" attribute | ||
5677 | * that it's looking for. | ||
5678 | */ | ||
5679 | switch(i){ | ||
5680 | case 0: j += i; | ||
5681 | /* FALLTHROUGH */ | ||
5682 | default: j += k; | ||
5683 | } | ||
5672 | exit(0); | 5684 | exit(0); |
5673 | } | 5685 | } |
5674 | 5686 | ||
@@ -5706,12 +5718,23 @@ $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | |||
5706 | #include <stdlib.h> | 5718 | #include <stdlib.h> |
5707 | #include <stdio.h> | 5719 | #include <stdio.h> |
5708 | int main(int argc, char **argv) { | 5720 | int main(int argc, char **argv) { |
5721 | (void)argv; | ||
5709 | /* Some math to catch -ftrapv problems in the toolchain */ | 5722 | /* Some math to catch -ftrapv problems in the toolchain */ |
5710 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5723 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5711 | float l = i * 2.1; | 5724 | float l = i * 2.1; |
5712 | double m = l / 0.5; | 5725 | double m = l / 0.5; |
5713 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5726 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5714 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5727 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5728 | /* | ||
5729 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5730 | * not understand comments and we don't use the "fallthrough" attribute | ||
5731 | * that it's looking for. | ||
5732 | */ | ||
5733 | switch(i){ | ||
5734 | case 0: j += i; | ||
5735 | /* FALLTHROUGH */ | ||
5736 | default: j += k; | ||
5737 | } | ||
5715 | exit(0); | 5738 | exit(0); |
5716 | } | 5739 | } |
5717 | 5740 | ||
@@ -5749,12 +5772,23 @@ $as_echo_n "checking if $CC supports compile flag -Wextra... " >&6; } | |||
5749 | #include <stdlib.h> | 5772 | #include <stdlib.h> |
5750 | #include <stdio.h> | 5773 | #include <stdio.h> |
5751 | int main(int argc, char **argv) { | 5774 | int main(int argc, char **argv) { |
5775 | (void)argv; | ||
5752 | /* Some math to catch -ftrapv problems in the toolchain */ | 5776 | /* Some math to catch -ftrapv problems in the toolchain */ |
5753 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5777 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5754 | float l = i * 2.1; | 5778 | float l = i * 2.1; |
5755 | double m = l / 0.5; | 5779 | double m = l / 0.5; |
5756 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5780 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5757 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5781 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5782 | /* | ||
5783 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5784 | * not understand comments and we don't use the "fallthrough" attribute | ||
5785 | * that it's looking for. | ||
5786 | */ | ||
5787 | switch(i){ | ||
5788 | case 0: j += i; | ||
5789 | /* FALLTHROUGH */ | ||
5790 | default: j += k; | ||
5791 | } | ||
5758 | exit(0); | 5792 | exit(0); |
5759 | } | 5793 | } |
5760 | 5794 | ||
@@ -5792,12 +5826,23 @@ $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | |||
5792 | #include <stdlib.h> | 5826 | #include <stdlib.h> |
5793 | #include <stdio.h> | 5827 | #include <stdio.h> |
5794 | int main(int argc, char **argv) { | 5828 | int main(int argc, char **argv) { |
5829 | (void)argv; | ||
5795 | /* Some math to catch -ftrapv problems in the toolchain */ | 5830 | /* Some math to catch -ftrapv problems in the toolchain */ |
5796 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5831 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5797 | float l = i * 2.1; | 5832 | float l = i * 2.1; |
5798 | double m = l / 0.5; | 5833 | double m = l / 0.5; |
5799 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5834 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5800 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5835 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5836 | /* | ||
5837 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5838 | * not understand comments and we don't use the "fallthrough" attribute | ||
5839 | * that it's looking for. | ||
5840 | */ | ||
5841 | switch(i){ | ||
5842 | case 0: j += i; | ||
5843 | /* FALLTHROUGH */ | ||
5844 | default: j += k; | ||
5845 | } | ||
5801 | exit(0); | 5846 | exit(0); |
5802 | } | 5847 | } |
5803 | 5848 | ||
@@ -5835,12 +5880,23 @@ $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | |||
5835 | #include <stdlib.h> | 5880 | #include <stdlib.h> |
5836 | #include <stdio.h> | 5881 | #include <stdio.h> |
5837 | int main(int argc, char **argv) { | 5882 | int main(int argc, char **argv) { |
5883 | (void)argv; | ||
5838 | /* Some math to catch -ftrapv problems in the toolchain */ | 5884 | /* Some math to catch -ftrapv problems in the toolchain */ |
5839 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5885 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5840 | float l = i * 2.1; | 5886 | float l = i * 2.1; |
5841 | double m = l / 0.5; | 5887 | double m = l / 0.5; |
5842 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5888 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5843 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5889 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5890 | /* | ||
5891 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5892 | * not understand comments and we don't use the "fallthrough" attribute | ||
5893 | * that it's looking for. | ||
5894 | */ | ||
5895 | switch(i){ | ||
5896 | case 0: j += i; | ||
5897 | /* FALLTHROUGH */ | ||
5898 | default: j += k; | ||
5899 | } | ||
5844 | exit(0); | 5900 | exit(0); |
5845 | } | 5901 | } |
5846 | 5902 | ||
@@ -5878,12 +5934,23 @@ $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | |||
5878 | #include <stdlib.h> | 5934 | #include <stdlib.h> |
5879 | #include <stdio.h> | 5935 | #include <stdio.h> |
5880 | int main(int argc, char **argv) { | 5936 | int main(int argc, char **argv) { |
5937 | (void)argv; | ||
5881 | /* Some math to catch -ftrapv problems in the toolchain */ | 5938 | /* Some math to catch -ftrapv problems in the toolchain */ |
5882 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5939 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5883 | float l = i * 2.1; | 5940 | float l = i * 2.1; |
5884 | double m = l / 0.5; | 5941 | double m = l / 0.5; |
5885 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5942 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5886 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5943 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5944 | /* | ||
5945 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
5946 | * not understand comments and we don't use the "fallthrough" attribute | ||
5947 | * that it's looking for. | ||
5948 | */ | ||
5949 | switch(i){ | ||
5950 | case 0: j += i; | ||
5951 | /* FALLTHROUGH */ | ||
5952 | default: j += k; | ||
5953 | } | ||
5887 | exit(0); | 5954 | exit(0); |
5888 | } | 5955 | } |
5889 | 5956 | ||
@@ -5921,12 +5988,23 @@ $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | |||
5921 | #include <stdlib.h> | 5988 | #include <stdlib.h> |
5922 | #include <stdio.h> | 5989 | #include <stdio.h> |
5923 | int main(int argc, char **argv) { | 5990 | int main(int argc, char **argv) { |
5991 | (void)argv; | ||
5924 | /* Some math to catch -ftrapv problems in the toolchain */ | 5992 | /* Some math to catch -ftrapv problems in the toolchain */ |
5925 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 5993 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5926 | float l = i * 2.1; | 5994 | float l = i * 2.1; |
5927 | double m = l / 0.5; | 5995 | double m = l / 0.5; |
5928 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 5996 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5929 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 5997 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
5998 | /* | ||
5999 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6000 | * not understand comments and we don't use the "fallthrough" attribute | ||
6001 | * that it's looking for. | ||
6002 | */ | ||
6003 | switch(i){ | ||
6004 | case 0: j += i; | ||
6005 | /* FALLTHROUGH */ | ||
6006 | default: j += k; | ||
6007 | } | ||
5930 | exit(0); | 6008 | exit(0); |
5931 | } | 6009 | } |
5932 | 6010 | ||
@@ -5964,12 +6042,23 @@ $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... | |||
5964 | #include <stdlib.h> | 6042 | #include <stdlib.h> |
5965 | #include <stdio.h> | 6043 | #include <stdio.h> |
5966 | int main(int argc, char **argv) { | 6044 | int main(int argc, char **argv) { |
6045 | (void)argv; | ||
5967 | /* Some math to catch -ftrapv problems in the toolchain */ | 6046 | /* Some math to catch -ftrapv problems in the toolchain */ |
5968 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6047 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
5969 | float l = i * 2.1; | 6048 | float l = i * 2.1; |
5970 | double m = l / 0.5; | 6049 | double m = l / 0.5; |
5971 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6050 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
5972 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6051 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6052 | /* | ||
6053 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6054 | * not understand comments and we don't use the "fallthrough" attribute | ||
6055 | * that it's looking for. | ||
6056 | */ | ||
6057 | switch(i){ | ||
6058 | case 0: j += i; | ||
6059 | /* FALLTHROUGH */ | ||
6060 | default: j += k; | ||
6061 | } | ||
5973 | exit(0); | 6062 | exit(0); |
5974 | } | 6063 | } |
5975 | 6064 | ||
@@ -6007,12 +6096,77 @@ $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | |||
6007 | #include <stdlib.h> | 6096 | #include <stdlib.h> |
6008 | #include <stdio.h> | 6097 | #include <stdio.h> |
6009 | int main(int argc, char **argv) { | 6098 | int main(int argc, char **argv) { |
6099 | (void)argv; | ||
6100 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6101 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6102 | float l = i * 2.1; | ||
6103 | double m = l / 0.5; | ||
6104 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6105 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6106 | /* | ||
6107 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6108 | * not understand comments and we don't use the "fallthrough" attribute | ||
6109 | * that it's looking for. | ||
6110 | */ | ||
6111 | switch(i){ | ||
6112 | case 0: j += i; | ||
6113 | /* FALLTHROUGH */ | ||
6114 | default: j += k; | ||
6115 | } | ||
6116 | exit(0); | ||
6117 | } | ||
6118 | |||
6119 | _ACEOF | ||
6120 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6121 | |||
6122 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6123 | then | ||
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6125 | $as_echo "no" >&6; } | ||
6126 | CFLAGS="$saved_CFLAGS" | ||
6127 | else | ||
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6129 | $as_echo "yes" >&6; } | ||
6130 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6131 | fi | ||
6132 | else | ||
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6134 | $as_echo "no" >&6; } | ||
6135 | CFLAGS="$saved_CFLAGS" | ||
6136 | |||
6137 | fi | ||
6138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6139 | } | ||
6140 | { | ||
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-parameter" >&5 | ||
6142 | $as_echo_n "checking if $CC supports compile flag -Wunused-parameter... " >&6; } | ||
6143 | saved_CFLAGS="$CFLAGS" | ||
6144 | CFLAGS="$CFLAGS $WERROR -Wunused-parameter" | ||
6145 | _define_flag="-Wno-unused-parameter" | ||
6146 | test "x$_define_flag" = "x" && _define_flag="-Wunused-parameter" | ||
6147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6148 | /* end confdefs.h. */ | ||
6149 | |||
6150 | #include <stdlib.h> | ||
6151 | #include <stdio.h> | ||
6152 | int main(int argc, char **argv) { | ||
6153 | (void)argv; | ||
6010 | /* Some math to catch -ftrapv problems in the toolchain */ | 6154 | /* Some math to catch -ftrapv problems in the toolchain */ |
6011 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6155 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6012 | float l = i * 2.1; | 6156 | float l = i * 2.1; |
6013 | double m = l / 0.5; | 6157 | double m = l / 0.5; |
6014 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6158 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6015 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6159 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6160 | /* | ||
6161 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6162 | * not understand comments and we don't use the "fallthrough" attribute | ||
6163 | * that it's looking for. | ||
6164 | */ | ||
6165 | switch(i){ | ||
6166 | case 0: j += i; | ||
6167 | /* FALLTHROUGH */ | ||
6168 | default: j += k; | ||
6169 | } | ||
6016 | exit(0); | 6170 | exit(0); |
6017 | } | 6171 | } |
6018 | 6172 | ||
@@ -6050,12 +6204,23 @@ $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | |||
6050 | #include <stdlib.h> | 6204 | #include <stdlib.h> |
6051 | #include <stdio.h> | 6205 | #include <stdio.h> |
6052 | int main(int argc, char **argv) { | 6206 | int main(int argc, char **argv) { |
6207 | (void)argv; | ||
6053 | /* Some math to catch -ftrapv problems in the toolchain */ | 6208 | /* Some math to catch -ftrapv problems in the toolchain */ |
6054 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6209 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6055 | float l = i * 2.1; | 6210 | float l = i * 2.1; |
6056 | double m = l / 0.5; | 6211 | double m = l / 0.5; |
6057 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6212 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6058 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6213 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6214 | /* | ||
6215 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6216 | * not understand comments and we don't use the "fallthrough" attribute | ||
6217 | * that it's looking for. | ||
6218 | */ | ||
6219 | switch(i){ | ||
6220 | case 0: j += i; | ||
6221 | /* FALLTHROUGH */ | ||
6222 | default: j += k; | ||
6223 | } | ||
6059 | exit(0); | 6224 | exit(0); |
6060 | } | 6225 | } |
6061 | 6226 | ||
@@ -6093,12 +6258,23 @@ $as_echo_n "checking if $CC supports compile flag -Wimplicit-fallthrough... " >& | |||
6093 | #include <stdlib.h> | 6258 | #include <stdlib.h> |
6094 | #include <stdio.h> | 6259 | #include <stdio.h> |
6095 | int main(int argc, char **argv) { | 6260 | int main(int argc, char **argv) { |
6261 | (void)argv; | ||
6096 | /* Some math to catch -ftrapv problems in the toolchain */ | 6262 | /* Some math to catch -ftrapv problems in the toolchain */ |
6097 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6263 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6098 | float l = i * 2.1; | 6264 | float l = i * 2.1; |
6099 | double m = l / 0.5; | 6265 | double m = l / 0.5; |
6100 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6266 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6101 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6267 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6268 | /* | ||
6269 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6270 | * not understand comments and we don't use the "fallthrough" attribute | ||
6271 | * that it's looking for. | ||
6272 | */ | ||
6273 | switch(i){ | ||
6274 | case 0: j += i; | ||
6275 | /* FALLTHROUGH */ | ||
6276 | default: j += k; | ||
6277 | } | ||
6102 | exit(0); | 6278 | exit(0); |
6103 | } | 6279 | } |
6104 | 6280 | ||
@@ -6136,12 +6312,23 @@ $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; | |||
6136 | #include <stdlib.h> | 6312 | #include <stdlib.h> |
6137 | #include <stdio.h> | 6313 | #include <stdio.h> |
6138 | int main(int argc, char **argv) { | 6314 | int main(int argc, char **argv) { |
6315 | (void)argv; | ||
6139 | /* Some math to catch -ftrapv problems in the toolchain */ | 6316 | /* Some math to catch -ftrapv problems in the toolchain */ |
6140 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6317 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6141 | float l = i * 2.1; | 6318 | float l = i * 2.1; |
6142 | double m = l / 0.5; | 6319 | double m = l / 0.5; |
6143 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6320 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6144 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6321 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6322 | /* | ||
6323 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6324 | * not understand comments and we don't use the "fallthrough" attribute | ||
6325 | * that it's looking for. | ||
6326 | */ | ||
6327 | switch(i){ | ||
6328 | case 0: j += i; | ||
6329 | /* FALLTHROUGH */ | ||
6330 | default: j += k; | ||
6331 | } | ||
6145 | exit(0); | 6332 | exit(0); |
6146 | } | 6333 | } |
6147 | 6334 | ||
@@ -6180,12 +6367,23 @@ $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } | |||
6180 | #include <stdlib.h> | 6367 | #include <stdlib.h> |
6181 | #include <stdio.h> | 6368 | #include <stdio.h> |
6182 | int main(int argc, char **argv) { | 6369 | int main(int argc, char **argv) { |
6370 | (void)argv; | ||
6183 | /* Some math to catch -ftrapv problems in the toolchain */ | 6371 | /* Some math to catch -ftrapv problems in the toolchain */ |
6184 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6372 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6185 | float l = i * 2.1; | 6373 | float l = i * 2.1; |
6186 | double m = l / 0.5; | 6374 | double m = l / 0.5; |
6187 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6375 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6188 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6376 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6377 | /* | ||
6378 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6379 | * not understand comments and we don't use the "fallthrough" attribute | ||
6380 | * that it's looking for. | ||
6381 | */ | ||
6382 | switch(i){ | ||
6383 | case 0: j += i; | ||
6384 | /* FALLTHROUGH */ | ||
6385 | default: j += k; | ||
6386 | } | ||
6189 | exit(0); | 6387 | exit(0); |
6190 | } | 6388 | } |
6191 | 6389 | ||
@@ -6223,6 +6421,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; } | |||
6223 | #include <stdlib.h> | 6421 | #include <stdlib.h> |
6224 | #include <stdio.h> | 6422 | #include <stdio.h> |
6225 | int main(int argc, char **argv) { | 6423 | int main(int argc, char **argv) { |
6424 | (void)argv; | ||
6226 | /* Some math to catch -ftrapv problems in the toolchain */ | 6425 | /* Some math to catch -ftrapv problems in the toolchain */ |
6227 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6426 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6228 | float l = i * 2.1; | 6427 | float l = i * 2.1; |
@@ -6268,12 +6467,23 @@ $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; | |||
6268 | #include <stdlib.h> | 6467 | #include <stdlib.h> |
6269 | #include <stdio.h> | 6468 | #include <stdio.h> |
6270 | int main(int argc, char **argv) { | 6469 | int main(int argc, char **argv) { |
6470 | (void)argv; | ||
6271 | /* Some math to catch -ftrapv problems in the toolchain */ | 6471 | /* Some math to catch -ftrapv problems in the toolchain */ |
6272 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6472 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6273 | float l = i * 2.1; | 6473 | float l = i * 2.1; |
6274 | double m = l / 0.5; | 6474 | double m = l / 0.5; |
6275 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 6475 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
6276 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 6476 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
6477 | /* | ||
6478 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
6479 | * not understand comments and we don't use the "fallthrough" attribute | ||
6480 | * that it's looking for. | ||
6481 | */ | ||
6482 | switch(i){ | ||
6483 | case 0: j += i; | ||
6484 | /* FALLTHROUGH */ | ||
6485 | default: j += k; | ||
6486 | } | ||
6277 | exit(0); | 6487 | exit(0); |
6278 | } | 6488 | } |
6279 | 6489 | ||
@@ -6311,6 +6521,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | |||
6311 | #include <stdlib.h> | 6521 | #include <stdlib.h> |
6312 | #include <stdio.h> | 6522 | #include <stdio.h> |
6313 | int main(int argc, char **argv) { | 6523 | int main(int argc, char **argv) { |
6524 | (void)argv; | ||
6314 | /* Some math to catch -ftrapv problems in the toolchain */ | 6525 | /* Some math to catch -ftrapv problems in the toolchain */ |
6315 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6526 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6316 | float l = i * 2.1; | 6527 | float l = i * 2.1; |
@@ -6356,6 +6567,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | |||
6356 | #include <stdlib.h> | 6567 | #include <stdlib.h> |
6357 | #include <stdio.h> | 6568 | #include <stdio.h> |
6358 | int main(int argc, char **argv) { | 6569 | int main(int argc, char **argv) { |
6570 | (void)argv; | ||
6359 | /* Some math to catch -ftrapv problems in the toolchain */ | 6571 | /* Some math to catch -ftrapv problems in the toolchain */ |
6360 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6572 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6361 | float l = i * 2.1; | 6573 | float l = i * 2.1; |
@@ -6401,6 +6613,7 @@ $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | |||
6401 | #include <stdlib.h> | 6613 | #include <stdlib.h> |
6402 | #include <stdio.h> | 6614 | #include <stdio.h> |
6403 | int main(int argc, char **argv) { | 6615 | int main(int argc, char **argv) { |
6616 | (void)argv; | ||
6404 | /* Some math to catch -ftrapv problems in the toolchain */ | 6617 | /* Some math to catch -ftrapv problems in the toolchain */ |
6405 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6618 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6406 | float l = i * 2.1; | 6619 | float l = i * 2.1; |
@@ -6451,6 +6664,7 @@ $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds.. | |||
6451 | #include <stdlib.h> | 6664 | #include <stdlib.h> |
6452 | #include <stdio.h> | 6665 | #include <stdio.h> |
6453 | int main(int argc, char **argv) { | 6666 | int main(int argc, char **argv) { |
6667 | (void)argv; | ||
6454 | /* Some math to catch -ftrapv problems in the toolchain */ | 6668 | /* Some math to catch -ftrapv problems in the toolchain */ |
6455 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 6669 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
6456 | float l = i * 2.1; | 6670 | float l = i * 2.1; |
@@ -7052,6 +7266,40 @@ SPP_MSG="no" | |||
7052 | # the --with-solaris-privs option and --with-sandbox=solaris). | 7266 | # the --with-solaris-privs option and --with-sandbox=solaris). |
7053 | SOLARIS_PRIVS="no" | 7267 | SOLARIS_PRIVS="no" |
7054 | 7268 | ||
7269 | # The cast to long int works around a bug in the HP C Compiler | ||
7270 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
7271 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
7272 | # This bug is HP SR number 8606223364. | ||
7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | ||
7274 | $as_echo_n "checking size of size_t... " >&6; } | ||
7275 | if ${ac_cv_sizeof_size_t+:} false; then : | ||
7276 | $as_echo_n "(cached) " >&6 | ||
7277 | else | ||
7278 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | ||
7279 | |||
7280 | else | ||
7281 | if test "$ac_cv_type_size_t" = yes; then | ||
7282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
7283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
7284 | as_fn_error 77 "cannot compute sizeof (size_t) | ||
7285 | See \`config.log' for more details" "$LINENO" 5; } | ||
7286 | else | ||
7287 | ac_cv_sizeof_size_t=0 | ||
7288 | fi | ||
7289 | fi | ||
7290 | |||
7291 | fi | ||
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | ||
7293 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | ||
7294 | |||
7295 | |||
7296 | |||
7297 | cat >>confdefs.h <<_ACEOF | ||
7298 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | ||
7299 | _ACEOF | ||
7300 | |||
7301 | |||
7302 | |||
7055 | # Check for some target-specific stuff | 7303 | # Check for some target-specific stuff |
7056 | case "$host" in | 7304 | case "$host" in |
7057 | *-*-aix*) | 7305 | *-*-aix*) |
@@ -7385,12 +7633,23 @@ $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | |||
7385 | #include <stdlib.h> | 7633 | #include <stdlib.h> |
7386 | #include <stdio.h> | 7634 | #include <stdio.h> |
7387 | int main(int argc, char **argv) { | 7635 | int main(int argc, char **argv) { |
7636 | (void)argv; | ||
7388 | /* Some math to catch -ftrapv problems in the toolchain */ | 7637 | /* Some math to catch -ftrapv problems in the toolchain */ |
7389 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 7638 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
7390 | float l = i * 2.1; | 7639 | float l = i * 2.1; |
7391 | double m = l / 0.5; | 7640 | double m = l / 0.5; |
7392 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 7641 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
7393 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 7642 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
7643 | /* | ||
7644 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
7645 | * not understand comments and we don't use the "fallthrough" attribute | ||
7646 | * that it's looking for. | ||
7647 | */ | ||
7648 | switch(i){ | ||
7649 | case 0: j += i; | ||
7650 | /* FALLTHROUGH */ | ||
7651 | default: j += k; | ||
7652 | } | ||
7394 | exit(0); | 7653 | exit(0); |
7395 | } | 7654 | } |
7396 | 7655 | ||
@@ -7437,7 +7696,9 @@ $as_echo "assume it is working" >&6; } | |||
7437 | else | 7696 | else |
7438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7439 | /* end confdefs.h. */ | 7698 | /* end confdefs.h. */ |
7440 | #include <mach-o/dyld.h> | 7699 | |
7700 | #include <mach-o/dyld.h> | ||
7701 | #include <stdlib.h> | ||
7441 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | 7702 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
7442 | exit(0); | 7703 | exit(0); |
7443 | else | 7704 | else |
@@ -7974,6 +8235,10 @@ $as_echo_n "checking for seccomp architecture... " >&6; } | |||
7974 | case "$host" in | 8235 | case "$host" in |
7975 | x86_64-*) | 8236 | x86_64-*) |
7976 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | 8237 | seccomp_audit_arch=AUDIT_ARCH_X86_64 |
8238 | # X32: AMD64 instructions in 32bit address space. | ||
8239 | if test "x$ac_cv_sizeof_size_t" = "x4" ; then | ||
8240 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
8241 | fi | ||
7977 | ;; | 8242 | ;; |
7978 | i*86-*) | 8243 | i*86-*) |
7979 | seccomp_audit_arch=AUDIT_ARCH_I386 | 8244 | seccomp_audit_arch=AUDIT_ARCH_I386 |
@@ -8022,6 +8287,9 @@ $as_echo_n "checking for seccomp architecture... " >&6; } | |||
8022 | ;; | 8287 | ;; |
8023 | esac | 8288 | esac |
8024 | ;; | 8289 | ;; |
8290 | riscv64-*) | ||
8291 | seccomp_audit_arch=AUDIT_ARCH_RISCV64 | ||
8292 | ;; | ||
8025 | esac | 8293 | esac |
8026 | if test "x$seccomp_audit_arch" != "x" ; then | 8294 | if test "x$seccomp_audit_arch" != "x" ; then |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 |
@@ -8773,7 +9041,7 @@ $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | |||
8773 | else | 9041 | else |
8774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 9042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8775 | /* end confdefs.h. */ | 9043 | /* end confdefs.h. */ |
8776 | #include <stdio.h> | 9044 | #include <stdlib.h> |
8777 | int | 9045 | int |
8778 | main () | 9046 | main () |
8779 | { | 9047 | { |
@@ -8925,6 +9193,7 @@ else | |||
8925 | 9193 | ||
8926 | #include <libgen.h> | 9194 | #include <libgen.h> |
8927 | #include <string.h> | 9195 | #include <string.h> |
9196 | #include <stdlib.h> | ||
8928 | 9197 | ||
8929 | int main(int argc, char **argv) { | 9198 | int main(int argc, char **argv) { |
8930 | char *s, buf[32]; | 9199 | char *s, buf[32]; |
@@ -10308,6 +10577,8 @@ else | |||
10308 | 10577 | ||
10309 | #include <sys/types.h> | 10578 | #include <sys/types.h> |
10310 | #include <dirent.h> | 10579 | #include <dirent.h> |
10580 | #include <stdlib.h> | ||
10581 | |||
10311 | int | 10582 | int |
10312 | main () | 10583 | main () |
10313 | { | 10584 | { |
@@ -10692,7 +10963,10 @@ fi | |||
10692 | $as_echo_n "checking if libedit version is compatible... " >&6; } | 10963 | $as_echo_n "checking if libedit version is compatible... " >&6; } |
10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 10964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10694 | /* end confdefs.h. */ | 10965 | /* end confdefs.h. */ |
10695 | #include <histedit.h> | 10966 | |
10967 | #include <histedit.h> | ||
10968 | #include <stdlib.h> | ||
10969 | |||
10696 | int | 10970 | int |
10697 | main () | 10971 | main () |
10698 | { | 10972 | { |
@@ -10936,12 +11210,23 @@ $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | |||
10936 | #include <stdlib.h> | 11210 | #include <stdlib.h> |
10937 | #include <stdio.h> | 11211 | #include <stdio.h> |
10938 | int main(int argc, char **argv) { | 11212 | int main(int argc, char **argv) { |
11213 | (void)argv; | ||
10939 | /* Some math to catch -ftrapv problems in the toolchain */ | 11214 | /* Some math to catch -ftrapv problems in the toolchain */ |
10940 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 11215 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
10941 | float l = i * 2.1; | 11216 | float l = i * 2.1; |
10942 | double m = l / 0.5; | 11217 | double m = l / 0.5; |
10943 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | 11218 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
10944 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | 11219 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
11220 | /* | ||
11221 | * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does | ||
11222 | * not understand comments and we don't use the "fallthrough" attribute | ||
11223 | * that it's looking for. | ||
11224 | */ | ||
11225 | switch(i){ | ||
11226 | case 0: j += i; | ||
11227 | /* FALLTHROUGH */ | ||
11228 | default: j += k; | ||
11229 | } | ||
10945 | exit(0); | 11230 | exit(0); |
10946 | } | 11231 | } |
10947 | 11232 | ||
@@ -10979,6 +11264,7 @@ $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | |||
10979 | #include <stdlib.h> | 11264 | #include <stdlib.h> |
10980 | #include <stdio.h> | 11265 | #include <stdio.h> |
10981 | int main(int argc, char **argv) { | 11266 | int main(int argc, char **argv) { |
11267 | (void)argv; | ||
10982 | /* Some math to catch -ftrapv problems in the toolchain */ | 11268 | /* Some math to catch -ftrapv problems in the toolchain */ |
10983 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | 11269 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
10984 | float l = i * 2.1; | 11270 | float l = i * 2.1; |
@@ -11955,7 +12241,10 @@ $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | |||
11955 | else | 12241 | else |
11956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 12242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11957 | /* end confdefs.h. */ | 12243 | /* end confdefs.h. */ |
12244 | |||
11958 | #include <stdio.h> | 12245 | #include <stdio.h> |
12246 | #include <stdlib.h> | ||
12247 | |||
11959 | int | 12248 | int |
11960 | main () | 12249 | main () |
11961 | { | 12250 | { |
@@ -12163,7 +12452,10 @@ $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | |||
12163 | else | 12452 | else |
12164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 12453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12165 | /* end confdefs.h. */ | 12454 | /* end confdefs.h. */ |
12166 | #include <stdio.h> | 12455 | |
12456 | #include <stdio.h> | ||
12457 | #include <stdlib.h> | ||
12458 | |||
12167 | int | 12459 | int |
12168 | main () | 12460 | main () |
12169 | { | 12461 | { |
@@ -12209,6 +12501,8 @@ else | |||
12209 | 12501 | ||
12210 | #include <sys/types.h> | 12502 | #include <sys/types.h> |
12211 | #include <stdio.h> | 12503 | #include <stdio.h> |
12504 | #include <stdlib.h> | ||
12505 | #include <string.h> | ||
12212 | 12506 | ||
12213 | int | 12507 | int |
12214 | main () | 12508 | main () |
@@ -12389,6 +12683,7 @@ else | |||
12389 | /* end confdefs.h. */ | 12683 | /* end confdefs.h. */ |
12390 | 12684 | ||
12391 | #include <stdlib.h> | 12685 | #include <stdlib.h> |
12686 | #include <unistd.h> | ||
12392 | 12687 | ||
12393 | int | 12688 | int |
12394 | main () | 12689 | main () |
@@ -12438,6 +12733,8 @@ else | |||
12438 | /* end confdefs.h. */ | 12733 | /* end confdefs.h. */ |
12439 | 12734 | ||
12440 | #include <stdio.h> | 12735 | #include <stdio.h> |
12736 | #include <stdlib.h> | ||
12737 | #include <unistd.h> | ||
12441 | #include <sys/fcntl.h> | 12738 | #include <sys/fcntl.h> |
12442 | #include <sys/types.h> | 12739 | #include <sys/types.h> |
12443 | #include <sys/wait.h> | 12740 | #include <sys/wait.h> |
@@ -12507,6 +12804,7 @@ else | |||
12507 | /* end confdefs.h. */ | 12804 | /* end confdefs.h. */ |
12508 | 12805 | ||
12509 | #include <stdio.h> | 12806 | #include <stdio.h> |
12807 | #include <stdlib.h> | ||
12510 | #include <sys/socket.h> | 12808 | #include <sys/socket.h> |
12511 | #include <netdb.h> | 12809 | #include <netdb.h> |
12512 | #include <errno.h> | 12810 | #include <errno.h> |
@@ -12598,6 +12896,7 @@ else | |||
12598 | /* end confdefs.h. */ | 12896 | /* end confdefs.h. */ |
12599 | 12897 | ||
12600 | #include <stdio.h> | 12898 | #include <stdio.h> |
12899 | #include <stdlib.h> | ||
12601 | #include <sys/socket.h> | 12900 | #include <sys/socket.h> |
12602 | #include <netdb.h> | 12901 | #include <netdb.h> |
12603 | #include <errno.h> | 12902 | #include <errno.h> |
@@ -12687,7 +12986,10 @@ if test "x$check_for_conflicting_getspnam" = "x1"; then | |||
12687 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | 12986 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } |
12688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 12987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12689 | /* end confdefs.h. */ | 12988 | /* end confdefs.h. */ |
12690 | #include <shadow.h> | 12989 | |
12990 | #include <shadow.h> | ||
12991 | #include <stdlib.h> | ||
12992 | |||
12691 | int | 12993 | int |
12692 | main () | 12994 | main () |
12693 | { | 12995 | { |
@@ -12731,6 +13033,7 @@ else | |||
12731 | #include <signal.h> | 13033 | #include <signal.h> |
12732 | #include <stdlib.h> | 13034 | #include <stdlib.h> |
12733 | #include <string.h> | 13035 | #include <string.h> |
13036 | #include <unistd.h> | ||
12734 | #include <vis.h> | 13037 | #include <vis.h> |
12735 | static void sighandler(int sig) { _exit(1); } | 13038 | static void sighandler(int sig) { _exit(1); } |
12736 | 13039 | ||
@@ -12782,6 +13085,7 @@ else | |||
12782 | #include <sys/time.h> | 13085 | #include <sys/time.h> |
12783 | #include <stdlib.h> | 13086 | #include <stdlib.h> |
12784 | #include <signal.h> | 13087 | #include <signal.h> |
13088 | #include <unistd.h> | ||
12785 | static void sighandler(int sig) { } | 13089 | static void sighandler(int sig) { } |
12786 | 13090 | ||
12787 | int | 13091 | int |
@@ -13064,6 +13368,7 @@ else | |||
13064 | /* end confdefs.h. */ | 13368 | /* end confdefs.h. */ |
13065 | 13369 | ||
13066 | #include <stdio.h> | 13370 | #include <stdio.h> |
13371 | #include <stdlib.h> | ||
13067 | #include <string.h> | 13372 | #include <string.h> |
13068 | #include <openssl/opensslv.h> | 13373 | #include <openssl/opensslv.h> |
13069 | #include <openssl/crypto.h> | 13374 | #include <openssl/crypto.h> |
@@ -13147,6 +13452,7 @@ else | |||
13147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13148 | /* end confdefs.h. */ | 13453 | /* end confdefs.h. */ |
13149 | 13454 | ||
13455 | #include <stdlib.h> | ||
13150 | #include <string.h> | 13456 | #include <string.h> |
13151 | #include <openssl/opensslv.h> | 13457 | #include <openssl/opensslv.h> |
13152 | #include <openssl/crypto.h> | 13458 | #include <openssl/crypto.h> |
@@ -13387,6 +13693,7 @@ $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | |||
13387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13388 | /* end confdefs.h. */ | 13694 | /* end confdefs.h. */ |
13389 | 13695 | ||
13696 | #include <stdlib.h> | ||
13390 | #include <string.h> | 13697 | #include <string.h> |
13391 | #include <openssl/evp.h> | 13698 | #include <openssl/evp.h> |
13392 | 13699 | ||
@@ -13424,6 +13731,7 @@ $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | |||
13424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13425 | /* end confdefs.h. */ | 13732 | /* end confdefs.h. */ |
13426 | 13733 | ||
13734 | #include <stdlib.h> | ||
13427 | #include <string.h> | 13735 | #include <string.h> |
13428 | #include <openssl/evp.h> | 13736 | #include <openssl/evp.h> |
13429 | 13737 | ||
@@ -13463,6 +13771,7 @@ $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | |||
13463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13464 | /* end confdefs.h. */ | 13772 | /* end confdefs.h. */ |
13465 | 13773 | ||
13774 | #include <stdlib.h> | ||
13466 | #include <string.h> | 13775 | #include <string.h> |
13467 | #include <openssl/evp.h> | 13776 | #include <openssl/evp.h> |
13468 | 13777 | ||
@@ -13508,6 +13817,7 @@ $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | |||
13508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13509 | /* end confdefs.h. */ | 13818 | /* end confdefs.h. */ |
13510 | 13819 | ||
13820 | #include <stdlib.h> | ||
13511 | #include <string.h> | 13821 | #include <string.h> |
13512 | #include <openssl/evp.h> | 13822 | #include <openssl/evp.h> |
13513 | 13823 | ||
@@ -13769,6 +14079,7 @@ else | |||
13769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 14079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13770 | /* end confdefs.h. */ | 14080 | /* end confdefs.h. */ |
13771 | 14081 | ||
14082 | #include <stdlib.h> | ||
13772 | #include <openssl/ec.h> | 14083 | #include <openssl/ec.h> |
13773 | #include <openssl/ecdh.h> | 14084 | #include <openssl/ecdh.h> |
13774 | #include <openssl/ecdsa.h> | 14085 | #include <openssl/ecdsa.h> |
@@ -14144,6 +14455,27 @@ else | |||
14144 | as_fn_error $? "no usable libfido2 found" "$LINENO" 5 | 14455 | as_fn_error $? "no usable libfido2 found" "$LINENO" 5 |
14145 | fi | 14456 | fi |
14146 | 14457 | ||
14458 | saved_LIBS="$LIBS" | ||
14459 | LIBS="$LIBS $LIBFIDO2" | ||
14460 | for ac_func in \ | ||
14461 | fido_cred_prot \ | ||
14462 | fido_cred_set_prot \ | ||
14463 | fido_dev_get_touch_begin \ | ||
14464 | fido_dev_get_touch_status \ | ||
14465 | fido_dev_supports_cred_prot \ | ||
14466 | |||
14467 | do : | ||
14468 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14469 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14470 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14471 | cat >>confdefs.h <<_ACEOF | ||
14472 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14473 | _ACEOF | ||
14474 | |||
14475 | fi | ||
14476 | done | ||
14477 | |||
14478 | LIBS="$saved_LIBS" | ||
14147 | ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default" | 14479 | ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default" |
14148 | if test "x$ac_cv_header_fido_h" = xyes; then : | 14480 | if test "x$ac_cv_header_fido_h" = xyes; then : |
14149 | 14481 | ||
@@ -14261,6 +14593,7 @@ else | |||
14261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 14593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14262 | /* end confdefs.h. */ | 14594 | /* end confdefs.h. */ |
14263 | 14595 | ||
14596 | #include <stdlib.h> | ||
14264 | #include <string.h> | 14597 | #include <string.h> |
14265 | #include <openssl/rand.h> | 14598 | #include <openssl/rand.h> |
14266 | 14599 | ||
@@ -15145,6 +15478,7 @@ else | |||
15145 | /* end confdefs.h. */ | 15478 | /* end confdefs.h. */ |
15146 | 15479 | ||
15147 | #include <stdio.h> | 15480 | #include <stdio.h> |
15481 | #include <stdlib.h> | ||
15148 | /* Why is this so damn hard? */ | 15482 | /* Why is this so damn hard? */ |
15149 | #ifdef __GNUC__ | 15483 | #ifdef __GNUC__ |
15150 | # undef __GNUC__ | 15484 | # undef __GNUC__ |
@@ -16500,6 +16834,7 @@ else | |||
16500 | /* end confdefs.h. */ | 16834 | /* end confdefs.h. */ |
16501 | 16835 | ||
16502 | #include <stdio.h> | 16836 | #include <stdio.h> |
16837 | #include <stdlib.h> | ||
16503 | #include <string.h> | 16838 | #include <string.h> |
16504 | #ifdef HAVE_SNPRINTF | 16839 | #ifdef HAVE_SNPRINTF |
16505 | main() | 16840 | main() |
@@ -17199,6 +17534,45 @@ $as_echo "no" >&6; } | |||
17199 | fi | 17534 | fi |
17200 | 17535 | ||
17201 | 17536 | ||
17537 | # look for field 'ut_ss' in header 'utmpx.h' | ||
17538 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
17539 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_ss | ||
17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_ss field in utmpx.h" >&5 | ||
17541 | $as_echo_n "checking for ut_ss field in utmpx.h... " >&6; } | ||
17542 | if eval \${$ossh_varname+:} false; then : | ||
17543 | $as_echo_n "(cached) " >&6 | ||
17544 | else | ||
17545 | |||
17546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17547 | /* end confdefs.h. */ | ||
17548 | #include <utmpx.h> | ||
17549 | |||
17550 | _ACEOF | ||
17551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
17552 | $EGREP "ut_ss" >/dev/null 2>&1; then : | ||
17553 | eval "$ossh_varname=yes" | ||
17554 | else | ||
17555 | eval "$ossh_varname=no" | ||
17556 | fi | ||
17557 | rm -f conftest* | ||
17558 | |||
17559 | fi | ||
17560 | |||
17561 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
17562 | if test -n "`echo $ossh_varname`"; then | ||
17563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
17564 | $as_echo "$ossh_result" >&6; } | ||
17565 | if test "x$ossh_result" = "xyes"; then | ||
17566 | |||
17567 | $as_echo "#define HAVE_SS_IN_UTMPX 1" >>confdefs.h | ||
17568 | |||
17569 | fi | ||
17570 | else | ||
17571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17572 | $as_echo "no" >&6; } | ||
17573 | fi | ||
17574 | |||
17575 | |||
17202 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | 17576 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
17203 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | 17577 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
17204 | 17578 | ||
@@ -17387,6 +17761,7 @@ else | |||
17387 | #include <sys/types.h> | 17761 | #include <sys/types.h> |
17388 | #include <sys/socket.h> | 17762 | #include <sys/socket.h> |
17389 | #include <sys/uio.h> | 17763 | #include <sys/uio.h> |
17764 | #include <stdlib.h> | ||
17390 | 17765 | ||
17391 | int | 17766 | int |
17392 | main () | 17767 | main () |
@@ -17524,6 +17899,7 @@ else | |||
17524 | #include <sys/types.h> | 17899 | #include <sys/types.h> |
17525 | #include <sys/socket.h> | 17900 | #include <sys/socket.h> |
17526 | #include <sys/uio.h> | 17901 | #include <sys/uio.h> |
17902 | #include <stdlib.h> | ||
17527 | 17903 | ||
17528 | int | 17904 | int |
17529 | main () | 17905 | main () |
@@ -17566,7 +17942,7 @@ else | |||
17566 | 17942 | ||
17567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 17943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17568 | /* end confdefs.h. */ | 17944 | /* end confdefs.h. */ |
17569 | 17945 | #include <stdio.h> | |
17570 | int | 17946 | int |
17571 | main () | 17947 | main () |
17572 | { | 17948 | { |
@@ -17782,7 +18158,7 @@ else | |||
17782 | 18158 | ||
17783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 18159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17784 | /* end confdefs.h. */ | 18160 | /* end confdefs.h. */ |
17785 | 18161 | #include <stdio.h> | |
17786 | int | 18162 | int |
17787 | main () | 18163 | main () |
17788 | { | 18164 | { |
@@ -17818,7 +18194,7 @@ else | |||
17818 | 18194 | ||
17819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 18195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17820 | /* end confdefs.h. */ | 18196 | /* end confdefs.h. */ |
17821 | 18197 | #include <stdio.h> | |
17822 | int | 18198 | int |
17823 | main () | 18199 | main () |
17824 | { | 18200 | { |
@@ -18234,8 +18610,6 @@ else | |||
18234 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | 18610 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 |
18235 | fi | 18611 | fi |
18236 | 18612 | ||
18237 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
18238 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
18239 | for ac_func in getseuserbyname get_default_context_with_level | 18613 | for ac_func in getseuserbyname get_default_context_with_level |
18240 | do : | 18614 | do : |
18241 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 18615 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
@@ -18248,14 +18622,13 @@ _ACEOF | |||
18248 | fi | 18622 | fi |
18249 | done | 18623 | done |
18250 | 18624 | ||
18251 | LIBS="$save_LIBS" | 18625 | LIBS="$save_LIBS $LIBSELINUX" |
18252 | fi | 18626 | fi |
18253 | 18627 | ||
18254 | fi | 18628 | fi |
18255 | 18629 | ||
18256 | 18630 | ||
18257 | 18631 | ||
18258 | |||
18259 | # Check whether user wants Kerberos 5 support | 18632 | # Check whether user wants Kerberos 5 support |
18260 | KRB5_MSG="no" | 18633 | KRB5_MSG="no" |
18261 | 18634 | ||
@@ -19058,6 +19431,7 @@ else | |||
19058 | /* end confdefs.h. */ | 19431 | /* end confdefs.h. */ |
19059 | 19432 | ||
19060 | #include <stdio.h> | 19433 | #include <stdio.h> |
19434 | #include <stdlib.h> | ||
19061 | #include <string.h> | 19435 | #include <string.h> |
19062 | #ifdef HAVE_PATHS_H | 19436 | #ifdef HAVE_PATHS_H |
19063 | #include <paths.h> | 19437 | #include <paths.h> |
@@ -19442,6 +19816,7 @@ else | |||
19442 | 19816 | ||
19443 | /* find out what STDPATH is */ | 19817 | /* find out what STDPATH is */ |
19444 | #include <stdio.h> | 19818 | #include <stdio.h> |
19819 | #include <stdlib.h> | ||
19445 | #ifdef HAVE_PATHS_H | 19820 | #ifdef HAVE_PATHS_H |
19446 | # include <paths.h> | 19821 | # include <paths.h> |
19447 | #endif | 19822 | #endif |
@@ -21426,9 +21801,6 @@ echo " Libraries: ${LIBS}" | |||
21426 | if test ! -z "${SSHDLIBS}"; then | 21801 | if test ! -z "${SSHDLIBS}"; then |
21427 | echo " +for sshd: ${SSHDLIBS}" | 21802 | echo " +for sshd: ${SSHDLIBS}" |
21428 | fi | 21803 | fi |
21429 | if test ! -z "${SSHLIBS}"; then | ||
21430 | echo " +for ssh: ${SSHLIBS}" | ||
21431 | fi | ||
21432 | 21804 | ||
21433 | echo "" | 21805 | echo "" |
21434 | 21806 | ||