diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 716 |
1 files changed, 569 insertions, 147 deletions
@@ -624,6 +624,7 @@ ac_includes_default="\ | |||
624 | #endif" | 624 | #endif" |
625 | 625 | ||
626 | ac_subst_vars='LTLIBOBJS | 626 | ac_subst_vars='LTLIBOBJS |
627 | DEPEND | ||
627 | UNSUPPORTED_ALGORITHMS | 628 | UNSUPPORTED_ALGORITHMS |
628 | TEST_MALLOC_OPTIONS | 629 | TEST_MALLOC_OPTIONS |
629 | TEST_SSH_UTF8 | 630 | TEST_SSH_UTF8 |
@@ -663,11 +664,11 @@ SH | |||
663 | TEST_MINUS_S_SH | 664 | TEST_MINUS_S_SH |
664 | ENT | 665 | ENT |
665 | SED | 666 | SED |
666 | PERL | ||
667 | KILL | 667 | KILL |
668 | CAT | 668 | CAT |
669 | ac_ct_AR | 669 | ac_ct_AR |
670 | AR | 670 | AR |
671 | MKDIR_P | ||
671 | INSTALL_DATA | 672 | INSTALL_DATA |
672 | INSTALL_SCRIPT | 673 | INSTALL_SCRIPT |
673 | INSTALL_PROGRAM | 674 | INSTALL_PROGRAM |
@@ -1473,7 +1474,7 @@ Optional Packages: | |||
1473 | --with-superuser-path= Specify different path for super-user | 1474 | --with-superuser-path= Specify different path for super-user |
1474 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | 1475 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses |
1475 | --with-bsd-auth Enable BSD auth support | 1476 | --with-bsd-auth Enable BSD auth support |
1476 | --with-pid-dir=PATH Specify location of ssh.pid file | 1477 | --with-pid-dir=PATH Specify location of sshd.pid file |
1477 | --with-lastlog=FILE|DIR specify lastlog location common locations | 1478 | --with-lastlog=FILE|DIR specify lastlog location common locations |
1478 | 1479 | ||
1479 | Some influential environment variables: | 1480 | Some influential environment variables: |
@@ -4564,6 +4565,48 @@ $as_echo "$ac_cv_path_EGREP" >&6; } | |||
4564 | EGREP="$ac_cv_path_EGREP" | 4565 | EGREP="$ac_cv_path_EGREP" |
4565 | 4566 | ||
4566 | 4567 | ||
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
4569 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
4570 | if test -z "$MKDIR_P"; then | ||
4571 | if ${ac_cv_path_mkdir+:} false; then : | ||
4572 | $as_echo_n "(cached) " >&6 | ||
4573 | else | ||
4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4575 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
4576 | do | ||
4577 | IFS=$as_save_IFS | ||
4578 | test -z "$as_dir" && as_dir=. | ||
4579 | for ac_prog in mkdir gmkdir; do | ||
4580 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4581 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | ||
4582 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
4583 | 'mkdir (GNU coreutils) '* | \ | ||
4584 | 'mkdir (coreutils) '* | \ | ||
4585 | 'mkdir (fileutils) '4.1*) | ||
4586 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
4587 | break 3;; | ||
4588 | esac | ||
4589 | done | ||
4590 | done | ||
4591 | done | ||
4592 | IFS=$as_save_IFS | ||
4593 | |||
4594 | fi | ||
4595 | |||
4596 | test -d ./--version && rmdir ./--version | ||
4597 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
4598 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
4599 | else | ||
4600 | # As a last resort, use the slow shell script. Don't cache a | ||
4601 | # value for MKDIR_P within a source directory, because that will | ||
4602 | # break other packages using the cache if that directory is | ||
4603 | # removed, or if the value is a relative name. | ||
4604 | MKDIR_P="$ac_install_sh -d" | ||
4605 | fi | ||
4606 | fi | ||
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
4608 | $as_echo "$MKDIR_P" >&6; } | ||
4609 | |||
4567 | if test -n "$ac_tool_prefix"; then | 4610 | if test -n "$ac_tool_prefix"; then |
4568 | for ac_prog in ar | 4611 | for ac_prog in ar |
4569 | do | 4612 | do |
@@ -4744,51 +4787,6 @@ $as_echo "no" >&6; } | |||
4744 | fi | 4787 | fi |
4745 | 4788 | ||
4746 | 4789 | ||
4747 | for ac_prog in perl5 perl | ||
4748 | do | ||
4749 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4750 | set dummy $ac_prog; ac_word=$2 | ||
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4752 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4753 | if ${ac_cv_path_PERL+:} false; then : | ||
4754 | $as_echo_n "(cached) " >&6 | ||
4755 | else | ||
4756 | case $PERL in | ||
4757 | [\\/]* | ?:[\\/]*) | ||
4758 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4759 | ;; | ||
4760 | *) | ||
4761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4762 | for as_dir in $PATH | ||
4763 | do | ||
4764 | IFS=$as_save_IFS | ||
4765 | test -z "$as_dir" && as_dir=. | ||
4766 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4768 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4770 | break 2 | ||
4771 | fi | ||
4772 | done | ||
4773 | done | ||
4774 | IFS=$as_save_IFS | ||
4775 | |||
4776 | ;; | ||
4777 | esac | ||
4778 | fi | ||
4779 | PERL=$ac_cv_path_PERL | ||
4780 | if test -n "$PERL"; then | ||
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4782 | $as_echo "$PERL" >&6; } | ||
4783 | else | ||
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4785 | $as_echo "no" >&6; } | ||
4786 | fi | ||
4787 | |||
4788 | |||
4789 | test -n "$PERL" && break | ||
4790 | done | ||
4791 | |||
4792 | # Extract the first word of "sed", so it can be a program name with args. | 4790 | # Extract the first word of "sed", so it can be a program name with args. |
4793 | set dummy sed; ac_word=$2 | 4791 | set dummy sed; ac_word=$2 |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
@@ -4829,7 +4827,6 @@ $as_echo "no" >&6; } | |||
4829 | fi | 4827 | fi |
4830 | 4828 | ||
4831 | 4829 | ||
4832 | |||
4833 | # Extract the first word of "ent", so it can be a program name with args. | 4830 | # Extract the first word of "ent", so it can be a program name with args. |
4834 | set dummy ent; ac_word=$2 | 4831 | set dummy ent; ac_word=$2 |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
@@ -6223,6 +6220,172 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
6223 | } | 6220 | } |
6224 | if test "x$use_toolchain_hardening" = "x1"; then | 6221 | if test "x$use_toolchain_hardening" = "x1"; then |
6225 | { | 6222 | { |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mfunction-return=thunk" >&5 | ||
6224 | $as_echo_n "checking if $CC supports compile flag -mfunction-return=thunk... " >&6; } | ||
6225 | saved_CFLAGS="$CFLAGS" | ||
6226 | CFLAGS="$CFLAGS $WERROR -mfunction-return=thunk" | ||
6227 | _define_flag="" | ||
6228 | test "x$_define_flag" = "x" && _define_flag="-mfunction-return=thunk" | ||
6229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6230 | /* end confdefs.h. */ | ||
6231 | |||
6232 | #include <stdlib.h> | ||
6233 | #include <stdio.h> | ||
6234 | int main(int argc, char **argv) { | ||
6235 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6236 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6237 | float l = i * 2.1; | ||
6238 | double m = l / 0.5; | ||
6239 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6240 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6241 | exit(0); | ||
6242 | } | ||
6243 | |||
6244 | _ACEOF | ||
6245 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6246 | |||
6247 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6248 | then | ||
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6250 | $as_echo "no" >&6; } | ||
6251 | CFLAGS="$saved_CFLAGS" | ||
6252 | else | ||
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6254 | $as_echo "yes" >&6; } | ||
6255 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6256 | fi | ||
6257 | else | ||
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6259 | $as_echo "no" >&6; } | ||
6260 | CFLAGS="$saved_CFLAGS" | ||
6261 | |||
6262 | fi | ||
6263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6264 | } # gcc | ||
6265 | { | ||
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mindirect-branch=thunk" >&5 | ||
6267 | $as_echo_n "checking if $CC supports compile flag -mindirect-branch=thunk... " >&6; } | ||
6268 | saved_CFLAGS="$CFLAGS" | ||
6269 | CFLAGS="$CFLAGS $WERROR -mindirect-branch=thunk" | ||
6270 | _define_flag="" | ||
6271 | test "x$_define_flag" = "x" && _define_flag="-mindirect-branch=thunk" | ||
6272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6273 | /* end confdefs.h. */ | ||
6274 | |||
6275 | #include <stdlib.h> | ||
6276 | #include <stdio.h> | ||
6277 | int main(int argc, char **argv) { | ||
6278 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6279 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6280 | float l = i * 2.1; | ||
6281 | double m = l / 0.5; | ||
6282 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6283 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6284 | exit(0); | ||
6285 | } | ||
6286 | |||
6287 | _ACEOF | ||
6288 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6289 | |||
6290 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6291 | then | ||
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6293 | $as_echo "no" >&6; } | ||
6294 | CFLAGS="$saved_CFLAGS" | ||
6295 | else | ||
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6297 | $as_echo "yes" >&6; } | ||
6298 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6299 | fi | ||
6300 | else | ||
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6302 | $as_echo "no" >&6; } | ||
6303 | CFLAGS="$saved_CFLAGS" | ||
6304 | |||
6305 | fi | ||
6306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6307 | } # gcc | ||
6308 | { | ||
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5 | ||
6310 | $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } | ||
6311 | saved_CFLAGS="$CFLAGS" | ||
6312 | CFLAGS="$CFLAGS $WERROR -mretpoline" | ||
6313 | _define_flag="" | ||
6314 | test "x$_define_flag" = "x" && _define_flag="-mretpoline" | ||
6315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6316 | /* end confdefs.h. */ | ||
6317 | |||
6318 | #include <stdlib.h> | ||
6319 | #include <stdio.h> | ||
6320 | int main(int argc, char **argv) { | ||
6321 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6322 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6323 | float l = i * 2.1; | ||
6324 | double m = l / 0.5; | ||
6325 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6326 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6327 | exit(0); | ||
6328 | } | ||
6329 | |||
6330 | _ACEOF | ||
6331 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6332 | |||
6333 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6334 | then | ||
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6336 | $as_echo "no" >&6; } | ||
6337 | CFLAGS="$saved_CFLAGS" | ||
6338 | else | ||
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6340 | $as_echo "yes" >&6; } | ||
6341 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6342 | fi | ||
6343 | else | ||
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6345 | $as_echo "no" >&6; } | ||
6346 | CFLAGS="$saved_CFLAGS" | ||
6347 | |||
6348 | fi | ||
6349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6350 | } # clang | ||
6351 | { | ||
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5 | ||
6353 | $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; } | ||
6354 | saved_LDFLAGS="$LDFLAGS" | ||
6355 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt" | ||
6356 | _define_flag="" | ||
6357 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt" | ||
6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6359 | /* end confdefs.h. */ | ||
6360 | |||
6361 | #include <stdlib.h> | ||
6362 | #include <stdio.h> | ||
6363 | int main(int argc, char **argv) { | ||
6364 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6365 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6366 | float l = i * 2.1; | ||
6367 | double m = l / 0.5; | ||
6368 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6369 | long long p = n * o; | ||
6370 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6371 | exit(0); | ||
6372 | } | ||
6373 | |||
6374 | _ACEOF | ||
6375 | if ac_fn_c_try_link "$LINENO"; then : | ||
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6377 | $as_echo "yes" >&6; } | ||
6378 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6379 | else | ||
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6381 | $as_echo "no" >&6; } | ||
6382 | LDFLAGS="$saved_LDFLAGS" | ||
6383 | |||
6384 | fi | ||
6385 | rm -f core conftest.err conftest.$ac_objext \ | ||
6386 | conftest$ac_exeext conftest.$ac_ext | ||
6387 | } | ||
6388 | { | ||
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 |
6227 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | 6390 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } |
6228 | saved_CFLAGS="$CFLAGS" | 6391 | saved_CFLAGS="$CFLAGS" |
@@ -6591,6 +6754,34 @@ $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | |||
6591 | fi | 6754 | fi |
6592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6593 | 6756 | ||
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5 | ||
6758 | $as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; } | ||
6759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6760 | /* end confdefs.h. */ | ||
6761 | |||
6762 | #include <stdlib.h> | ||
6763 | typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2))); | ||
6764 | int | ||
6765 | main () | ||
6766 | { | ||
6767 | exit(0); | ||
6768 | ; | ||
6769 | return 0; | ||
6770 | } | ||
6771 | _ACEOF | ||
6772 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6774 | $as_echo "yes" >&6; } | ||
6775 | else | ||
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6777 | $as_echo "no" >&6; } | ||
6778 | |||
6779 | $as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h | ||
6780 | |||
6781 | |||
6782 | fi | ||
6783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6784 | |||
6594 | if test "x$no_attrib_nonnull" != "x1" ; then | 6785 | if test "x$no_attrib_nonnull" != "x1" ; then |
6595 | 6786 | ||
6596 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | 6787 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h |
@@ -6717,6 +6908,7 @@ for ac_header in \ | |||
6717 | glob.h \ | 6908 | glob.h \ |
6718 | ia.h \ | 6909 | ia.h \ |
6719 | iaf.h \ | 6910 | iaf.h \ |
6911 | ifaddrs.h \ | ||
6720 | inttypes.h \ | 6912 | inttypes.h \ |
6721 | langinfo.h \ | 6913 | langinfo.h \ |
6722 | limits.h \ | 6914 | limits.h \ |
@@ -6740,12 +6932,13 @@ for ac_header in \ | |||
6740 | stdint.h \ | 6932 | stdint.h \ |
6741 | string.h \ | 6933 | string.h \ |
6742 | strings.h \ | 6934 | strings.h \ |
6743 | sys/audit.h \ | ||
6744 | sys/bitypes.h \ | 6935 | sys/bitypes.h \ |
6745 | sys/bsdtty.h \ | 6936 | sys/bsdtty.h \ |
6746 | sys/cdefs.h \ | 6937 | sys/cdefs.h \ |
6747 | sys/dir.h \ | 6938 | sys/dir.h \ |
6939 | sys/file.h \ | ||
6748 | sys/mman.h \ | 6940 | sys/mman.h \ |
6941 | sys/label.h \ | ||
6749 | sys/ndir.h \ | 6942 | sys/ndir.h \ |
6750 | sys/poll.h \ | 6943 | sys/poll.h \ |
6751 | sys/prctl.h \ | 6944 | sys/prctl.h \ |
@@ -6760,6 +6953,7 @@ for ac_header in \ | |||
6760 | sys/sysmacros.h \ | 6953 | sys/sysmacros.h \ |
6761 | sys/time.h \ | 6954 | sys/time.h \ |
6762 | sys/timers.h \ | 6955 | sys/timers.h \ |
6956 | sys/vfs.h \ | ||
6763 | time.h \ | 6957 | time.h \ |
6764 | tmpdir.h \ | 6958 | tmpdir.h \ |
6765 | ttyent.h \ | 6959 | ttyent.h \ |
@@ -6786,6 +6980,32 @@ fi | |||
6786 | done | 6980 | done |
6787 | 6981 | ||
6788 | 6982 | ||
6983 | # On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h] | ||
6984 | # to be included first. | ||
6985 | for ac_header in sys/audit.h | ||
6986 | do : | ||
6987 | ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" " | ||
6988 | #ifdef HAVE_SYS_TIME_H | ||
6989 | # include <sys/time.h> | ||
6990 | #endif | ||
6991 | #ifdef HAVE_SYS_TYPES_H | ||
6992 | # include <sys/types.h> | ||
6993 | #endif | ||
6994 | #ifdef HAVE_SYS_LABEL_H | ||
6995 | # include <sys/label.h> | ||
6996 | #endif | ||
6997 | |||
6998 | " | ||
6999 | if test "x$ac_cv_header_sys_audit_h" = xyes; then : | ||
7000 | cat >>confdefs.h <<_ACEOF | ||
7001 | #define HAVE_SYS_AUDIT_H 1 | ||
7002 | _ACEOF | ||
7003 | |||
7004 | fi | ||
7005 | |||
7006 | done | ||
7007 | |||
7008 | |||
6789 | # sys/capsicum.h requires sys/types.h | 7009 | # sys/capsicum.h requires sys/types.h |
6790 | for ac_header in sys/capsicum.h | 7010 | for ac_header in sys/capsicum.h |
6791 | do : | 7011 | do : |
@@ -6805,6 +7025,29 @@ fi | |||
6805 | done | 7025 | done |
6806 | 7026 | ||
6807 | 7027 | ||
7028 | # net/route.h requires sys/socket.h and sys/types.h. | ||
7029 | # sys/sysctl.h also requires sys/param.h | ||
7030 | for ac_header in net/route.h sys/sysctl.h | ||
7031 | do : | ||
7032 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7033 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||
7034 | #ifdef HAVE_SYS_TYPES_H | ||
7035 | # include <sys/types.h> | ||
7036 | #endif | ||
7037 | #include <sys/param.h> | ||
7038 | #include <sys/socket.h> | ||
7039 | |||
7040 | " | ||
7041 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7042 | cat >>confdefs.h <<_ACEOF | ||
7043 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7044 | _ACEOF | ||
7045 | |||
7046 | fi | ||
7047 | |||
7048 | done | ||
7049 | |||
7050 | |||
6808 | # lastlog.h requires sys/time.h to be included first on Solaris | 7051 | # lastlog.h requires sys/time.h to be included first on Solaris |
6809 | for ac_header in lastlog.h | 7052 | for ac_header in lastlog.h |
6810 | do : | 7053 | do : |
@@ -7185,6 +7428,12 @@ $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | |||
7185 | 7428 | ||
7186 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | 7429 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h |
7187 | 7430 | ||
7431 | |||
7432 | $as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h | ||
7433 | |||
7434 | |||
7435 | $as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h | ||
7436 | |||
7188 | ;; | 7437 | ;; |
7189 | *-*-android*) | 7438 | *-*-android*) |
7190 | 7439 | ||
@@ -7695,6 +7944,19 @@ $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | |||
7695 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | 7944 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
7696 | 7945 | ||
7697 | fi | 7946 | fi |
7947 | ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" " | ||
7948 | #ifdef HAVE_SYS_TYPES_H | ||
7949 | # include <sys/types.H> | ||
7950 | #endif | ||
7951 | |||
7952 | " | ||
7953 | if test "x$ac_cv_header_linux_if_h" = xyes; then : | ||
7954 | |||
7955 | $as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h | ||
7956 | |||
7957 | fi | ||
7958 | |||
7959 | |||
7698 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | 7960 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h |
7699 | do : | 7961 | do : |
7700 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 7962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
@@ -7709,6 +7971,75 @@ fi | |||
7709 | 7971 | ||
7710 | done | 7972 | done |
7711 | 7973 | ||
7974 | # Obtain MIPS ABI | ||
7975 | case "$host" in | ||
7976 | mips*) | ||
7977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7978 | /* end confdefs.h. */ | ||
7979 | |||
7980 | #if _MIPS_SIM != _ABIO32 | ||
7981 | #error | ||
7982 | #endif | ||
7983 | |||
7984 | int | ||
7985 | main () | ||
7986 | { | ||
7987 | |||
7988 | ; | ||
7989 | return 0; | ||
7990 | } | ||
7991 | _ACEOF | ||
7992 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7993 | mips_abi="o32" | ||
7994 | else | ||
7995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7996 | /* end confdefs.h. */ | ||
7997 | |||
7998 | #if _MIPS_SIM != _ABIN32 | ||
7999 | #error | ||
8000 | #endif | ||
8001 | |||
8002 | int | ||
8003 | main () | ||
8004 | { | ||
8005 | |||
8006 | ; | ||
8007 | return 0; | ||
8008 | } | ||
8009 | _ACEOF | ||
8010 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8011 | mips_abi="n32" | ||
8012 | else | ||
8013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8014 | /* end confdefs.h. */ | ||
8015 | |||
8016 | #if _MIPS_SIM != _ABI64 | ||
8017 | #error | ||
8018 | #endif | ||
8019 | |||
8020 | int | ||
8021 | main () | ||
8022 | { | ||
8023 | |||
8024 | ; | ||
8025 | return 0; | ||
8026 | } | ||
8027 | _ACEOF | ||
8028 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8029 | mips_abi="n64" | ||
8030 | else | ||
8031 | as_fn_error $? "unknown MIPS ABI" "$LINENO" 5 | ||
8032 | |||
8033 | fi | ||
8034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8035 | |||
8036 | fi | ||
8037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8038 | |||
8039 | fi | ||
8040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8041 | ;; | ||
8042 | esac | ||
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | 8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 |
7713 | $as_echo_n "checking for seccomp architecture... " >&6; } | 8044 | $as_echo_n "checking for seccomp architecture... " >&6; } |
7714 | seccomp_audit_arch= | 8045 | seccomp_audit_arch= |
@@ -7744,10 +8075,24 @@ $as_echo_n "checking for seccomp architecture... " >&6; } | |||
7744 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | 8075 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL |
7745 | ;; | 8076 | ;; |
7746 | mips64-*) | 8077 | mips64-*) |
7747 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | 8078 | case "$mips_abi" in |
8079 | "n32") | ||
8080 | seccomp_audit_arch=AUDIT_ARCH_MIPS64N32 | ||
8081 | ;; | ||
8082 | "n64") | ||
8083 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
8084 | ;; | ||
8085 | esac | ||
7748 | ;; | 8086 | ;; |
7749 | mips64el-*) | 8087 | mips64el-*) |
7750 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | 8088 | case "$mips_abi" in |
8089 | "n32") | ||
8090 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32 | ||
8091 | ;; | ||
8092 | "n64") | ||
8093 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
8094 | ;; | ||
8095 | esac | ||
7751 | ;; | 8096 | ;; |
7752 | esac | 8097 | esac |
7753 | if test "x$seccomp_audit_arch" != "x" ; then | 8098 | if test "x$seccomp_audit_arch" != "x" ; then |
@@ -8102,6 +8447,9 @@ done | |||
8102 | conf_lastlog_location=/var/adm/lastlog | 8447 | conf_lastlog_location=/var/adm/lastlog |
8103 | $as_echo "#define USE_PIPES 1" >>confdefs.h | 8448 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
8104 | 8449 | ||
8450 | |||
8451 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
8452 | |||
8105 | ;; | 8453 | ;; |
8106 | *-ncr-sysv*) | 8454 | *-ncr-sysv*) |
8107 | LIBS="$LIBS -lc89" | 8455 | LIBS="$LIBS -lc89" |
@@ -8260,12 +8608,10 @@ $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | |||
8260 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | 8608 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h |
8261 | 8609 | ||
8262 | TEST_SHELL=$SHELL # let configure find us a capable shell | 8610 | TEST_SHELL=$SHELL # let configure find us a capable shell |
8611 | check_for_libcrypt_later=1 | ||
8263 | case "$host" in | 8612 | case "$host" in |
8264 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | 8613 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x |
8265 | maildir=/var/spool/mail | 8614 | maildir=/var/spool/mail |
8266 | |||
8267 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
8268 | |||
8269 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | 8615 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
8270 | 8616 | ||
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | 8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 |
@@ -8318,17 +8664,12 @@ _ACEOF | |||
8318 | fi | 8664 | fi |
8319 | done | 8665 | done |
8320 | 8666 | ||
8321 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8322 | |||
8323 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8324 | |||
8325 | 8667 | ||
8326 | fi | 8668 | fi |
8327 | 8669 | ||
8328 | ;; | 8670 | ;; |
8329 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | 8671 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
8330 | 8672 | ||
8331 | check_for_libcrypt_later=1 | ||
8332 | ;; | 8673 | ;; |
8333 | esac | 8674 | esac |
8334 | ;; | 8675 | ;; |
@@ -8383,58 +8724,6 @@ done | |||
8383 | TEST_SHELL=$SHELL # let configure find us a capable shell | 8724 | TEST_SHELL=$SHELL # let configure find us a capable shell |
8384 | SKIP_DISABLE_LASTLOG_DEFINE=yes | 8725 | SKIP_DISABLE_LASTLOG_DEFINE=yes |
8385 | ;; | 8726 | ;; |
8386 | *-*-unicosmk*) | ||
8387 | |||
8388 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8389 | |||
8390 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8391 | |||
8392 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8393 | |||
8394 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8395 | |||
8396 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8397 | |||
8398 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8399 | |||
8400 | LDFLAGS="$LDFLAGS" | ||
8401 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8402 | MANTYPE=cat | ||
8403 | ;; | ||
8404 | *-*-unicosmp*) | ||
8405 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8406 | |||
8407 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8408 | |||
8409 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8410 | |||
8411 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8412 | |||
8413 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8414 | |||
8415 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8416 | |||
8417 | LDFLAGS="$LDFLAGS" | ||
8418 | LIBS="$LIBS -lgen -lacid -ldb" | ||
8419 | MANTYPE=cat | ||
8420 | ;; | ||
8421 | *-*-unicos*) | ||
8422 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8423 | |||
8424 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8425 | |||
8426 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8427 | |||
8428 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8429 | |||
8430 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8431 | |||
8432 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8433 | |||
8434 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
8435 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8436 | MANTYPE=cat | ||
8437 | ;; | ||
8438 | *-dec-osf*) | 8727 | *-dec-osf*) |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | 8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 |
8440 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | 8729 | $as_echo_n "checking for Digital Unix SIA... " >&6; } |
@@ -9874,7 +10163,43 @@ fi | |||
9874 | 10163 | ||
9875 | 10164 | ||
9876 | # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL; | 10165 | # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL; |
9877 | if test "x$ac_cv_func_malloc_0_nonnull" != "xyes"; then | 10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5 |
10167 | $as_echo_n "checking if calloc(0, N) returns non-null... " >&6; } | ||
10168 | if test "$cross_compiling" = yes; then : | ||
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5 | ||
10170 | $as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;} | ||
10171 | func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull" | ||
10172 | |||
10173 | else | ||
10174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10175 | /* end confdefs.h. */ | ||
10176 | #include <stdlib.h> | ||
10177 | int | ||
10178 | main () | ||
10179 | { | ||
10180 | void *p = calloc(0, 1); exit(p == NULL); | ||
10181 | |||
10182 | ; | ||
10183 | return 0; | ||
10184 | } | ||
10185 | _ACEOF | ||
10186 | if ac_fn_c_try_run "$LINENO"; then : | ||
10187 | func_calloc_0_nonnull=yes | ||
10188 | else | ||
10189 | func_calloc_0_nonnull=no | ||
10190 | fi | ||
10191 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10192 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10193 | fi | ||
10194 | |||
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5 | ||
10196 | $as_echo "$func_calloc_0_nonnull" >&6; } | ||
10197 | |||
10198 | if test "x$func_calloc_0_nonnull" == "xyes"; then | ||
10199 | |||
10200 | $as_echo "#define HAVE_CALLOC 1" >>confdefs.h | ||
10201 | |||
10202 | else | ||
9878 | 10203 | ||
9879 | $as_echo "#define HAVE_CALLOC 0" >>confdefs.h | 10204 | $as_echo "#define HAVE_CALLOC 0" >>confdefs.h |
9880 | 10205 | ||
@@ -10256,7 +10581,7 @@ else | |||
10256 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" | 10581 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" |
10257 | fi | 10582 | fi |
10258 | 10583 | ||
10259 | if test "x$PKGCONFIG" = "xno"; then | 10584 | if test "x$LDNSCONFIG" = "xno"; then |
10260 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | 10585 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
10261 | LDFLAGS="$LDFLAGS -L${withval}/lib" | 10586 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
10262 | LIBS="-lldns $LIBS" | 10587 | LIBS="-lldns $LIBS" |
@@ -10833,6 +11158,7 @@ for ac_func in \ | |||
10833 | bcrypt_pbkdf \ | 11158 | bcrypt_pbkdf \ |
10834 | bindresvport_sa \ | 11159 | bindresvport_sa \ |
10835 | blf_enc \ | 11160 | blf_enc \ |
11161 | bzero \ | ||
10836 | cap_rights_limit \ | 11162 | cap_rights_limit \ |
10837 | clock \ | 11163 | clock \ |
10838 | closefrom \ | 11164 | closefrom \ |
@@ -10843,6 +11169,7 @@ for ac_func in \ | |||
10843 | explicit_bzero \ | 11169 | explicit_bzero \ |
10844 | fchmod \ | 11170 | fchmod \ |
10845 | fchown \ | 11171 | fchown \ |
11172 | flock \ | ||
10846 | freeaddrinfo \ | 11173 | freeaddrinfo \ |
10847 | freezero \ | 11174 | freezero \ |
10848 | fstatfs \ | 11175 | fstatfs \ |
@@ -10857,9 +11184,9 @@ for ac_func in \ | |||
10857 | getpeereid \ | 11184 | getpeereid \ |
10858 | getpeerucred \ | 11185 | getpeerucred \ |
10859 | getpgid \ | 11186 | getpgid \ |
10860 | getpgrp \ | ||
10861 | _getpty \ | 11187 | _getpty \ |
10862 | getrlimit \ | 11188 | getrlimit \ |
11189 | getsid \ | ||
10863 | getttyent \ | 11190 | getttyent \ |
10864 | glob \ | 11191 | glob \ |
10865 | group_from_gid \ | 11192 | group_from_gid \ |
@@ -10881,6 +11208,7 @@ for ac_func in \ | |||
10881 | poll \ | 11208 | poll \ |
10882 | prctl \ | 11209 | prctl \ |
10883 | pstat \ | 11210 | pstat \ |
11211 | raise \ | ||
10884 | readpassphrase \ | 11212 | readpassphrase \ |
10885 | reallocarray \ | 11213 | reallocarray \ |
10886 | recvmsg \ | 11214 | recvmsg \ |
@@ -10915,6 +11243,7 @@ for ac_func in \ | |||
10915 | strlcat \ | 11243 | strlcat \ |
10916 | strlcpy \ | 11244 | strlcpy \ |
10917 | strmode \ | 11245 | strmode \ |
11246 | strndup \ | ||
10918 | strnlen \ | 11247 | strnlen \ |
10919 | strnvis \ | 11248 | strnvis \ |
10920 | strptime \ | 11249 | strptime \ |
@@ -10949,6 +11278,18 @@ fi | |||
10949 | done | 11278 | done |
10950 | 11279 | ||
10951 | 11280 | ||
11281 | ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default" | ||
11282 | if test "x$ac_cv_have_decl_bzero" = xyes; then : | ||
11283 | ac_have_decl=1 | ||
11284 | else | ||
11285 | ac_have_decl=0 | ||
11286 | fi | ||
11287 | |||
11288 | cat >>confdefs.h <<_ACEOF | ||
11289 | #define HAVE_DECL_BZERO $ac_have_decl | ||
11290 | _ACEOF | ||
11291 | |||
11292 | |||
10952 | for ac_func in mblen mbtowc nl_langinfo wcwidth | 11293 | for ac_func in mblen mbtowc nl_langinfo wcwidth |
10953 | do : | 11294 | do : |
10954 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11295 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
@@ -11090,9 +11431,15 @@ $as_echo "$ac_cv_search_dlopen" >&6; } | |||
11090 | ac_res=$ac_cv_search_dlopen | 11431 | ac_res=$ac_cv_search_dlopen |
11091 | if test "$ac_res" != no; then : | 11432 | if test "$ac_res" != no; then : |
11092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 11433 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
11434 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||
11435 | |||
11436 | " | ||
11437 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||
11093 | 11438 | ||
11094 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | 11439 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h |
11095 | 11440 | ||
11441 | fi | ||
11442 | |||
11096 | 11443 | ||
11097 | fi | 11444 | fi |
11098 | 11445 | ||
@@ -11258,21 +11605,6 @@ $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |||
11258 | fi | 11605 | fi |
11259 | 11606 | ||
11260 | 11607 | ||
11261 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
11262 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
11263 | for ac_func in getrusage | ||
11264 | do : | ||
11265 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
11266 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
11267 | cat >>confdefs.h <<_ACEOF | ||
11268 | #define HAVE_GETRUSAGE 1 | ||
11269 | _ACEOF | ||
11270 | |||
11271 | fi | ||
11272 | done | ||
11273 | |||
11274 | fi | ||
11275 | |||
11276 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | 11608 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " |
11277 | #ifdef HAVE_STRING_H | 11609 | #ifdef HAVE_STRING_H |
11278 | # include <string.h> | 11610 | # include <string.h> |
@@ -11365,6 +11697,21 @@ cat >>confdefs.h <<_ACEOF | |||
11365 | _ACEOF | 11697 | _ACEOF |
11366 | 11698 | ||
11367 | 11699 | ||
11700 | ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" " | ||
11701 | #include <sys/types.h> | ||
11702 | #include <sys/uio.h> | ||
11703 | #include <unistd.h> | ||
11704 | |||
11705 | " | ||
11706 | if test "x$ac_cv_have_decl_readv" = xyes; then : | ||
11707 | ac_have_decl=1 | ||
11708 | else | ||
11709 | ac_have_decl=0 | ||
11710 | fi | ||
11711 | |||
11712 | cat >>confdefs.h <<_ACEOF | ||
11713 | #define HAVE_DECL_READV $ac_have_decl | ||
11714 | _ACEOF | ||
11368 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | 11715 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " |
11369 | #include <sys/types.h> | 11716 | #include <sys/types.h> |
11370 | #include <sys/uio.h> | 11717 | #include <sys/uio.h> |
@@ -11655,6 +12002,39 @@ fi | |||
11655 | done | 12002 | done |
11656 | 12003 | ||
11657 | 12004 | ||
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5 | ||
12006 | $as_echo_n "checking for working fflush(NULL)... " >&6; } | ||
12007 | if test "$cross_compiling" = yes; then : | ||
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
12009 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
12010 | |||
12011 | else | ||
12012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12013 | /* end confdefs.h. */ | ||
12014 | #include <stdio.h> | ||
12015 | int | ||
12016 | main () | ||
12017 | { | ||
12018 | fflush(NULL); exit(0); | ||
12019 | ; | ||
12020 | return 0; | ||
12021 | } | ||
12022 | _ACEOF | ||
12023 | if ac_fn_c_try_run "$LINENO"; then : | ||
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12025 | $as_echo "yes" >&6; } | ||
12026 | else | ||
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12028 | $as_echo "no" >&6; } | ||
12029 | |||
12030 | $as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h | ||
12031 | |||
12032 | fi | ||
12033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12034 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12035 | fi | ||
12036 | |||
12037 | |||
11658 | for ac_func in gettimeofday time | 12038 | for ac_func in gettimeofday time |
11659 | do : | 12039 | do : |
11660 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12040 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
@@ -12396,38 +12776,45 @@ fi | |||
12396 | 12776 | ||
12397 | fi | 12777 | fi |
12398 | 12778 | ||
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | 12779 | for ac_func in getpgrp |
12400 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | 12780 | do : |
12401 | if ${ac_cv_func_getpgrp_void+:} false; then : | 12781 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
12402 | $as_echo_n "(cached) " >&6 | 12782 | if test "x$ac_cv_func_getpgrp" = xyes; then : |
12403 | else | 12783 | cat >>confdefs.h <<_ACEOF |
12404 | # Use it with a single arg. | 12784 | #define HAVE_GETPGRP 1 |
12405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 12785 | _ACEOF |
12786 | |||
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5 | ||
12788 | $as_echo_n "checking if getpgrp accepts zero args... " >&6; } | ||
12789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12406 | /* end confdefs.h. */ | 12790 | /* end confdefs.h. */ |
12407 | $ac_includes_default | 12791 | $ac_includes_default |
12408 | int | 12792 | int |
12409 | main () | 12793 | main () |
12410 | { | 12794 | { |
12411 | getpgrp (0); | 12795 | getpgrp(); |
12412 | ; | 12796 | ; |
12413 | return 0; | 12797 | return 0; |
12414 | } | 12798 | } |
12415 | _ACEOF | 12799 | _ACEOF |
12416 | if ac_fn_c_try_compile "$LINENO"; then : | 12800 | if ac_fn_c_try_compile "$LINENO"; then : |
12417 | ac_cv_func_getpgrp_void=no | 12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12802 | $as_echo "yes" >&6; } | ||
12803 | |||
12804 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12805 | |||
12418 | else | 12806 | else |
12419 | ac_cv_func_getpgrp_void=yes | 12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12420 | fi | 12808 | $as_echo "no" >&6; } |
12421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12422 | 12809 | ||
12423 | fi | 12810 | $as_echo "#define GETPGRP_VOID 0" >>confdefs.h |
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
12425 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
12426 | if test $ac_cv_func_getpgrp_void = yes; then | ||
12427 | 12811 | ||
12428 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12429 | 12812 | ||
12430 | fi | 12813 | fi |
12814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12815 | |||
12816 | fi | ||
12817 | done | ||
12431 | 12818 | ||
12432 | 12819 | ||
12433 | # Search for OpenSSL | 12820 | # Search for OpenSSL |
@@ -15193,6 +15580,33 @@ _ACEOF | |||
15193 | fi | 15580 | fi |
15194 | 15581 | ||
15195 | 15582 | ||
15583 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " | ||
15584 | #include <sys/types.h> | ||
15585 | #ifdef HAVE_SYS_BITYPES_H | ||
15586 | #include <sys/bitypes.h> | ||
15587 | #endif | ||
15588 | #ifdef HAVE_SYS_STATFS_H | ||
15589 | #include <sys/statfs.h> | ||
15590 | #endif | ||
15591 | #ifdef HAVE_SYS_STATVFS_H | ||
15592 | #include <sys/statvfs.h> | ||
15593 | #endif | ||
15594 | #ifdef HAVE_SYS_VFS_H | ||
15595 | #include <sys/vfs.h> | ||
15596 | #endif | ||
15597 | |||
15598 | " | ||
15599 | if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : | ||
15600 | |||
15601 | cat >>confdefs.h <<_ACEOF | ||
15602 | #define HAVE_STRUCT_STATFS_F_FLAGS 1 | ||
15603 | _ACEOF | ||
15604 | |||
15605 | |||
15606 | fi | ||
15607 | |||
15608 | |||
15609 | |||
15196 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | 15610 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> |
15197 | #include <netinet/in.h> | 15611 | #include <netinet/in.h> |
15198 | " | 15612 | " |
@@ -19272,6 +19686,8 @@ TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | |||
19272 | 19686 | ||
19273 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | 19687 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms |
19274 | 19688 | ||
19689 | DEPEND=$(cat $srcdir/.depend) | ||
19690 | |||
19275 | 19691 | ||
19276 | CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" | 19692 | CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" |
19277 | LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" | 19693 | LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" |
@@ -19859,6 +20275,7 @@ gives unlimited permission to copy, distribute and modify it." | |||
19859 | ac_pwd='$ac_pwd' | 20275 | ac_pwd='$ac_pwd' |
19860 | srcdir='$srcdir' | 20276 | srcdir='$srcdir' |
19861 | INSTALL='$INSTALL' | 20277 | INSTALL='$INSTALL' |
20278 | MKDIR_P='$MKDIR_P' | ||
19862 | AWK='$AWK' | 20279 | AWK='$AWK' |
19863 | test -n "\$AWK" || AWK=awk | 20280 | test -n "\$AWK" || AWK=awk |
19864 | _ACEOF | 20281 | _ACEOF |
@@ -20426,6 +20843,11 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |||
20426 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 20843 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
20427 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 20844 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
20428 | esac | 20845 | esac |
20846 | ac_MKDIR_P=$MKDIR_P | ||
20847 | case $MKDIR_P in | ||
20848 | [\\/$]* | ?:[\\/]* ) ;; | ||
20849 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
20850 | esac | ||
20429 | _ACEOF | 20851 | _ACEOF |
20430 | 20852 | ||
20431 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 20853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
@@ -20480,6 +20902,7 @@ s&@builddir@&$ac_builddir&;t t | |||
20480 | s&@abs_builddir@&$ac_abs_builddir&;t t | 20902 | s&@abs_builddir@&$ac_abs_builddir&;t t |
20481 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 20903 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
20482 | s&@INSTALL@&$ac_INSTALL&;t t | 20904 | s&@INSTALL@&$ac_INSTALL&;t t |
20905 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
20483 | $ac_datarootdir_hack | 20906 | $ac_datarootdir_hack |
20484 | " | 20907 | " |
20485 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 20908 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
@@ -20607,7 +21030,6 @@ echo " PAM support: $PAM_MSG" | |||
20607 | echo " OSF SIA support: $SIA_MSG" | 21030 | echo " OSF SIA support: $SIA_MSG" |
20608 | echo " KerberosV support: $KRB5_MSG" | 21031 | echo " KerberosV support: $KRB5_MSG" |
20609 | echo " SELinux support: $SELINUX_MSG" | 21032 | echo " SELinux support: $SELINUX_MSG" |
20610 | echo " Smartcard support: $SCARD_MSG" | ||
20611 | echo " S/KEY support: $SKEY_MSG" | 21033 | echo " S/KEY support: $SKEY_MSG" |
20612 | echo " MD5 password support: $MD5_MSG" | 21034 | echo " MD5 password support: $MD5_MSG" |
20613 | echo " libedit support: $LIBEDIT_MSG" | 21035 | echo " libedit support: $LIBEDIT_MSG" |