diff options
author | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:59 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-08-07 12:18:58 +0100 |
commit | 477bb7636238c106f8cd7c868a8c0c5eabcfb3db (patch) | |
tree | 601176af2ecf358c36b766776a86845ad7a3cd6f /configure.ac | |
parent | 747fac2de0d889183f67f6900194c0462c558544 (diff) | |
parent | 4c914ccd85bbf391c4dc61b85e3c178fef465e3f (diff) |
New upstream release (7.3p1).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 192 |
1 files changed, 124 insertions, 68 deletions
diff --git a/configure.ac b/configure.ac index c978c1104..6cafb1535 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -373,6 +373,7 @@ AC_CHECK_HEADERS([ \ | |||
373 | dirent.h \ | 373 | dirent.h \ |
374 | endian.h \ | 374 | endian.h \ |
375 | elf.h \ | 375 | elf.h \ |
376 | err.h \ | ||
376 | features.h \ | 377 | features.h \ |
377 | fcntl.h \ | 378 | fcntl.h \ |
378 | floatingpoint.h \ | 379 | floatingpoint.h \ |
@@ -381,6 +382,7 @@ AC_CHECK_HEADERS([ \ | |||
381 | ia.h \ | 382 | ia.h \ |
382 | iaf.h \ | 383 | iaf.h \ |
383 | inttypes.h \ | 384 | inttypes.h \ |
385 | langinfo.h \ | ||
384 | limits.h \ | 386 | limits.h \ |
385 | locale.h \ | 387 | locale.h \ |
386 | login.h \ | 388 | login.h \ |
@@ -433,6 +435,7 @@ AC_CHECK_HEADERS([ \ | |||
433 | utmp.h \ | 435 | utmp.h \ |
434 | utmpx.h \ | 436 | utmpx.h \ |
435 | vis.h \ | 437 | vis.h \ |
438 | wchar.h \ | ||
436 | ]) | 439 | ]) |
437 | 440 | ||
438 | # lastlog.h requires sys/time.h to be included first on Solaris | 441 | # lastlog.h requires sys/time.h to be included first on Solaris |
@@ -586,9 +589,6 @@ case "$host" in | |||
586 | [Define if you want to disable shadow passwords]) | 589 | [Define if you want to disable shadow passwords]) |
587 | AC_DEFINE([NO_X11_UNIX_SOCKETS], [1], | 590 | AC_DEFINE([NO_X11_UNIX_SOCKETS], [1], |
588 | [Define if X11 doesn't support AF_UNIX sockets on that system]) | 591 | [Define if X11 doesn't support AF_UNIX sockets on that system]) |
589 | AC_DEFINE([NO_IPPORT_RESERVED_CONCEPT], [1], | ||
590 | [Define if the concept of ports only accessible to | ||
591 | superusers isn't known]) | ||
592 | AC_DEFINE([DISABLE_FD_PASSING], [1], | 592 | AC_DEFINE([DISABLE_FD_PASSING], [1], |
593 | [Define if your platform needs to skip post auth | 593 | [Define if your platform needs to skip post auth |
594 | file descriptor passing]) | 594 | file descriptor passing]) |
@@ -657,7 +657,7 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
657 | [AC_MSG_RESULT([no])] | 657 | [AC_MSG_RESULT([no])] |
658 | ) | 658 | ) |
659 | m4_pattern_allow([AU_IPv]) | 659 | m4_pattern_allow([AU_IPv]) |
660 | AC_CHECK_DECL([AU_IPv4], [], | 660 | AC_CHECK_DECL([AU_IPv4], [], |
661 | AC_DEFINE([AU_IPv4], [0], [System only supports IPv4 audit records]) | 661 | AC_DEFINE([AU_IPv4], [0], [System only supports IPv4 audit records]) |
662 | [#include <bsm/audit.h>] | 662 | [#include <bsm/audit.h>] |
663 | AC_DEFINE([LASTLOG_WRITE_PUTUTXLINE], [1], | 663 | AC_DEFINE([LASTLOG_WRITE_PUTUTXLINE], [1], |
@@ -676,12 +676,12 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
676 | SSHDLIBS="$SSHDLIBS -lcrypt" | 676 | SSHDLIBS="$SSHDLIBS -lcrypt" |
677 | TEST_MALLOC_OPTIONS="AFGJPRX" | 677 | TEST_MALLOC_OPTIONS="AFGJPRX" |
678 | ;; | 678 | ;; |
679 | *-*-haiku*) | 679 | *-*-haiku*) |
680 | LIBS="$LIBS -lbsd " | 680 | LIBS="$LIBS -lbsd " |
681 | AC_CHECK_LIB([network], [socket]) | 681 | AC_CHECK_LIB([network], [socket]) |
682 | AC_DEFINE([HAVE_U_INT64_T]) | 682 | AC_DEFINE([HAVE_U_INT64_T]) |
683 | MANTYPE=man | 683 | MANTYPE=man |
684 | ;; | 684 | ;; |
685 | *-*-hpux*) | 685 | *-*-hpux*) |
686 | # first we define all of the options common to all HP-UX releases | 686 | # first we define all of the options common to all HP-UX releases |
687 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | 687 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" |
@@ -821,6 +821,30 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
821 | aarch64*-*) | 821 | aarch64*-*) |
822 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | 822 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 |
823 | ;; | 823 | ;; |
824 | s390x-*) | ||
825 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
826 | ;; | ||
827 | s390-*) | ||
828 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
829 | ;; | ||
830 | powerpc64-*) | ||
831 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
832 | ;; | ||
833 | powerpc64le-*) | ||
834 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
835 | ;; | ||
836 | mips-*) | ||
837 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
838 | ;; | ||
839 | mipsel-*) | ||
840 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
841 | ;; | ||
842 | mips64-*) | ||
843 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
844 | ;; | ||
845 | mips64el-*) | ||
846 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
847 | ;; | ||
824 | esac | 848 | esac |
825 | if test "x$seccomp_audit_arch" != "x" ; then | 849 | if test "x$seccomp_audit_arch" != "x" ; then |
826 | AC_MSG_RESULT(["$seccomp_audit_arch"]) | 850 | AC_MSG_RESULT(["$seccomp_audit_arch"]) |
@@ -839,6 +863,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
839 | if test "x$withval" != "xno" ; then | 863 | if test "x$withval" != "xno" ; then |
840 | need_dash_r=1 | 864 | need_dash_r=1 |
841 | fi | 865 | fi |
866 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
842 | AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way]) | 867 | AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way]) |
843 | AC_CHECK_HEADER([net/if_tap.h], , | 868 | AC_CHECK_HEADER([net/if_tap.h], , |
844 | AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support])) | 869 | AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support])) |
@@ -923,6 +948,7 @@ mips-sony-bsd|mips-sony-newsos4) | |||
923 | else | 948 | else |
924 | AC_MSG_RESULT([no]) | 949 | AC_MSG_RESULT([no]) |
925 | fi | 950 | fi |
951 | AC_CHECK_FUNCS([setpflags]) | ||
926 | AC_CHECK_FUNCS([setppriv]) | 952 | AC_CHECK_FUNCS([setppriv]) |
927 | AC_CHECK_FUNCS([priv_basicset]) | 953 | AC_CHECK_FUNCS([priv_basicset]) |
928 | AC_CHECK_HEADERS([priv.h]) | 954 | AC_CHECK_HEADERS([priv.h]) |
@@ -1402,6 +1428,9 @@ g.gl_statv = NULL; | |||
1402 | 1428 | ||
1403 | AC_CHECK_DECLS([GLOB_NOMATCH], , , [#include <glob.h>]) | 1429 | AC_CHECK_DECLS([GLOB_NOMATCH], , , [#include <glob.h>]) |
1404 | 1430 | ||
1431 | AC_CHECK_DECL([VIS_ALL], , | ||
1432 | AC_DEFINE(BROKEN_STRNVIS, 1, [missing VIS_ALL]), [#include <vis.h>]) | ||
1433 | |||
1405 | AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) | 1434 | AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) |
1406 | AC_RUN_IFELSE( | 1435 | AC_RUN_IFELSE( |
1407 | [AC_LANG_PROGRAM([[ | 1436 | [AC_LANG_PROGRAM([[ |
@@ -1462,7 +1491,7 @@ AC_ARG_WITH([skey], | |||
1462 | AC_MSG_RESULT([no]) | 1491 | AC_MSG_RESULT([no]) |
1463 | AC_MSG_ERROR([** Incomplete or missing s/key libraries.]) | 1492 | AC_MSG_ERROR([** Incomplete or missing s/key libraries.]) |
1464 | ]) | 1493 | ]) |
1465 | AC_MSG_CHECKING([if skeychallenge takes 4 arguments]) | 1494 | AC_MSG_CHECKING([if skeychallenge takes 4 arguments]) |
1466 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | 1495 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
1467 | #include <stdio.h> | 1496 | #include <stdio.h> |
1468 | #include <skey.h> | 1497 | #include <skey.h> |
@@ -1581,7 +1610,7 @@ AC_ARG_WITH([libedit], | |||
1581 | AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no]) | 1610 | AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no]) |
1582 | if test "x$PKGCONFIG" != "xno"; then | 1611 | if test "x$PKGCONFIG" != "xno"; then |
1583 | AC_MSG_CHECKING([if $PKGCONFIG knows about libedit]) | 1612 | AC_MSG_CHECKING([if $PKGCONFIG knows about libedit]) |
1584 | if "$PKGCONFIG" libedit; then | 1613 | if "$PKGCONFIG" libedit; then |
1585 | AC_MSG_RESULT([yes]) | 1614 | AC_MSG_RESULT([yes]) |
1586 | use_pkgconfig_for_libedit=yes | 1615 | use_pkgconfig_for_libedit=yes |
1587 | else | 1616 | else |
@@ -1652,9 +1681,9 @@ AC_ARG_WITH([audit], | |||
1652 | AC_CHECK_FUNCS([getaudit_addr aug_get_machine]) | 1681 | AC_CHECK_FUNCS([getaudit_addr aug_get_machine]) |
1653 | AC_DEFINE([USE_BSM_AUDIT], [1], [Use BSM audit module]) | 1682 | AC_DEFINE([USE_BSM_AUDIT], [1], [Use BSM audit module]) |
1654 | if test "$sol2ver" -ge 11; then | 1683 | if test "$sol2ver" -ge 11; then |
1655 | SSHDLIBS="$SSHDLIBS -lscf" | 1684 | SSHDLIBS="$SSHDLIBS -lscf" |
1656 | AC_DEFINE([BROKEN_BSM_API], [1], | 1685 | AC_DEFINE([BROKEN_BSM_API], [1], |
1657 | [The system has incomplete BSM API]) | 1686 | [The system has incomplete BSM API]) |
1658 | fi | 1687 | fi |
1659 | ;; | 1688 | ;; |
1660 | linux) | 1689 | linux) |
@@ -1746,6 +1775,8 @@ AC_CHECK_FUNCS([ \ | |||
1746 | closefrom \ | 1775 | closefrom \ |
1747 | dirfd \ | 1776 | dirfd \ |
1748 | endgrent \ | 1777 | endgrent \ |
1778 | err \ | ||
1779 | errx \ | ||
1749 | explicit_bzero \ | 1780 | explicit_bzero \ |
1750 | fchmod \ | 1781 | fchmod \ |
1751 | fchown \ | 1782 | fchown \ |
@@ -1772,7 +1803,6 @@ AC_CHECK_FUNCS([ \ | |||
1772 | inet_ntop \ | 1803 | inet_ntop \ |
1773 | innetgr \ | 1804 | innetgr \ |
1774 | login_getcapbool \ | 1805 | login_getcapbool \ |
1775 | mblen \ | ||
1776 | md5_crypt \ | 1806 | md5_crypt \ |
1777 | memmove \ | 1807 | memmove \ |
1778 | memset_s \ | 1808 | memset_s \ |
@@ -1837,8 +1867,15 @@ AC_CHECK_FUNCS([ \ | |||
1837 | vasprintf \ | 1867 | vasprintf \ |
1838 | vsnprintf \ | 1868 | vsnprintf \ |
1839 | waitpid \ | 1869 | waitpid \ |
1870 | warn \ | ||
1840 | ]) | 1871 | ]) |
1841 | 1872 | ||
1873 | dnl Wide character support. Linux man page says it needs _XOPEN_SOURCE. | ||
1874 | saved_CFLAGS="$CFLAGS" | ||
1875 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE" | ||
1876 | AC_CHECK_FUNCS([mblen mbtowc nl_langinfo wcwidth]) | ||
1877 | CFLAGS="$saved_CFLAGS" | ||
1878 | |||
1842 | AC_LINK_IFELSE( | 1879 | AC_LINK_IFELSE( |
1843 | [AC_LANG_PROGRAM( | 1880 | [AC_LANG_PROGRAM( |
1844 | [[ #include <ctype.h> ]], | 1881 | [[ #include <ctype.h> ]], |
@@ -1846,8 +1883,18 @@ AC_LINK_IFELSE( | |||
1846 | [AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).]) | 1883 | [AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).]) |
1847 | ]) | 1884 | ]) |
1848 | 1885 | ||
1886 | disable_pkcs11= | ||
1887 | AC_ARG_ENABLE([pkcs11], | ||
1888 | [ --disable-pkcs11 disable PKCS#11 support code [no]], | ||
1889 | [ | ||
1890 | if test "x$enableval" = "xno" ; then | ||
1891 | disable_pkcs11=1 | ||
1892 | fi | ||
1893 | ] | ||
1894 | ) | ||
1895 | |||
1849 | # PKCS11 depends on OpenSSL. | 1896 | # PKCS11 depends on OpenSSL. |
1850 | if test "x$openssl" = "xyes" ; then | 1897 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then |
1851 | # PKCS#11 support requires dlopen() and co | 1898 | # PKCS#11 support requires dlopen() and co |
1852 | AC_SEARCH_LIBS([dlopen], [dl], | 1899 | AC_SEARCH_LIBS([dlopen], [dl], |
1853 | [AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])] | 1900 | [AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])] |
@@ -2062,7 +2109,7 @@ if test "x$ac_cv_func_snprintf" = "xyes" ; then | |||
2062 | [[ | 2109 | [[ |
2063 | char b[5]; | 2110 | char b[5]; |
2064 | snprintf(b,5,"123456789"); | 2111 | snprintf(b,5,"123456789"); |
2065 | exit(b[4]!='\0'); | 2112 | exit(b[4]!='\0'); |
2066 | ]])], | 2113 | ]])], |
2067 | [AC_MSG_RESULT([yes])], | 2114 | [AC_MSG_RESULT([yes])], |
2068 | [ | 2115 | [ |
@@ -2472,8 +2519,9 @@ if test "x$openssl" = "xyes" ; then | |||
2472 | if(fd == NULL) | 2519 | if(fd == NULL) |
2473 | exit(1); | 2520 | exit(1); |
2474 | 2521 | ||
2475 | if ((rc = fprintf(fd ,"%08lx (%s)\n", | 2522 | if ((rc = fprintf(fd, "%08lx (%s)\n", |
2476 | (unsigned long)OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | 2523 | (unsigned long)OPENSSL_VERSION_NUMBER, |
2524 | OPENSSL_VERSION_TEXT)) < 0) | ||
2477 | exit(1); | 2525 | exit(1); |
2478 | 2526 | ||
2479 | exit(0); | 2527 | exit(0); |
@@ -2508,8 +2556,8 @@ if test "x$openssl" = "xyes" ; then | |||
2508 | if(fd == NULL) | 2556 | if(fd == NULL) |
2509 | exit(1); | 2557 | exit(1); |
2510 | 2558 | ||
2511 | if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), | 2559 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), |
2512 | SSLeay_version(SSLEAY_VERSION))) <0) | 2560 | SSLeay_version(SSLEAY_VERSION))) < 0) |
2513 | exit(1); | 2561 | exit(1); |
2514 | 2562 | ||
2515 | exit(0); | 2563 | exit(0); |
@@ -2684,7 +2732,8 @@ if test "x$openssl" = "xyes" ; then | |||
2684 | [ | 2732 | [ |
2685 | AC_MSG_RESULT([no]) | 2733 | AC_MSG_RESULT([no]) |
2686 | unsupported_algorithms="$unsupported_cipers \ | 2734 | unsupported_algorithms="$unsupported_cipers \ |
2687 | aes128-gcm@openssh.com aes256-gcm@openssh.com" | 2735 | aes128-gcm@openssh.com \ |
2736 | aes256-gcm@openssh.com" | ||
2688 | ] | 2737 | ] |
2689 | ) | 2738 | ) |
2690 | 2739 | ||
@@ -2727,16 +2776,18 @@ if test "x$openssl" = "xyes" ; then | |||
2727 | # Search for SHA256 support in libc and/or OpenSSL | 2776 | # Search for SHA256 support in libc and/or OpenSSL |
2728 | AC_CHECK_FUNCS([SHA256_Update EVP_sha256], , | 2777 | AC_CHECK_FUNCS([SHA256_Update EVP_sha256], , |
2729 | [unsupported_algorithms="$unsupported_algorithms \ | 2778 | [unsupported_algorithms="$unsupported_algorithms \ |
2730 | hmac-sha2-256 hmac-sha2-512 \ | 2779 | hmac-sha2-256 \ |
2780 | hmac-sha2-512 \ | ||
2731 | diffie-hellman-group-exchange-sha256 \ | 2781 | diffie-hellman-group-exchange-sha256 \ |
2732 | hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com" | 2782 | hmac-sha2-256-etm@openssh.com \ |
2783 | hmac-sha2-512-etm@openssh.com" | ||
2733 | ] | 2784 | ] |
2734 | ) | 2785 | ) |
2735 | # Search for RIPE-MD support in OpenSSL | 2786 | # Search for RIPE-MD support in OpenSSL |
2736 | AC_CHECK_FUNCS([EVP_ripemd160], , | 2787 | AC_CHECK_FUNCS([EVP_ripemd160], , |
2737 | [unsupported_algorithms="$unsupported_algorithms \ | 2788 | [unsupported_algorithms="$unsupported_algorithms \ |
2738 | hmac-ripemd160 | 2789 | hmac-ripemd160 \ |
2739 | hmac-ripemd160@openssh.com | 2790 | hmac-ripemd160@openssh.com \ |
2740 | hmac-ripemd160-etm@openssh.com" | 2791 | hmac-ripemd160-etm@openssh.com" |
2741 | ] | 2792 | ] |
2742 | ) | 2793 | ) |
@@ -2837,24 +2888,30 @@ if test "x$openssl" = "xyes" ; then | |||
2837 | TEST_SSH_ECC=yes | 2888 | TEST_SSH_ECC=yes |
2838 | COMMENT_OUT_ECC="" | 2889 | COMMENT_OUT_ECC="" |
2839 | else | 2890 | else |
2840 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ | 2891 | unsupported_algorithms="$unsupported_algorithms \ |
2841 | ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com" | 2892 | ecdsa-sha2-nistp256 \ |
2893 | ecdh-sha2-nistp256 \ | ||
2894 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
2842 | fi | 2895 | fi |
2843 | if test x$enable_nistp384 = x1; then | 2896 | if test x$enable_nistp384 = x1; then |
2844 | AC_DEFINE([OPENSSL_HAS_NISTP384], [1], [libcrypto has NID_secp384r1]) | 2897 | AC_DEFINE([OPENSSL_HAS_NISTP384], [1], [libcrypto has NID_secp384r1]) |
2845 | TEST_SSH_ECC=yes | 2898 | TEST_SSH_ECC=yes |
2846 | COMMENT_OUT_ECC="" | 2899 | COMMENT_OUT_ECC="" |
2847 | else | 2900 | else |
2848 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ | 2901 | unsupported_algorithms="$unsupported_algorithms \ |
2849 | ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com" | 2902 | ecdsa-sha2-nistp384 \ |
2903 | ecdh-sha2-nistp384 \ | ||
2904 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
2850 | fi | 2905 | fi |
2851 | if test x$enable_nistp521 = x1; then | 2906 | if test x$enable_nistp521 = x1; then |
2852 | AC_DEFINE([OPENSSL_HAS_NISTP521], [1], [libcrypto has NID_secp521r1]) | 2907 | AC_DEFINE([OPENSSL_HAS_NISTP521], [1], [libcrypto has NID_secp521r1]) |
2853 | TEST_SSH_ECC=yes | 2908 | TEST_SSH_ECC=yes |
2854 | COMMENT_OUT_ECC="" | 2909 | COMMENT_OUT_ECC="" |
2855 | else | 2910 | else |
2856 | unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ | 2911 | unsupported_algorithms="$unsupported_algorithms \ |
2857 | ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com" | 2912 | ecdh-sha2-nistp521 \ |
2913 | ecdsa-sha2-nistp521 \ | ||
2914 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
2858 | fi | 2915 | fi |
2859 | 2916 | ||
2860 | AC_SUBST([TEST_SSH_ECC]) | 2917 | AC_SUBST([TEST_SSH_ECC]) |
@@ -2876,7 +2933,7 @@ AC_CHECK_LIB([iaf], [ia_openinfo], [ | |||
2876 | LIBS="$LIBS -liaf" | 2933 | LIBS="$LIBS -liaf" |
2877 | AC_CHECK_FUNCS([set_id], [SSHDLIBS="$SSHDLIBS -liaf" | 2934 | AC_CHECK_FUNCS([set_id], [SSHDLIBS="$SSHDLIBS -liaf" |
2878 | AC_DEFINE([HAVE_LIBIAF], [1], | 2935 | AC_DEFINE([HAVE_LIBIAF], [1], |
2879 | [Define if system has libiaf that supports set_id]) | 2936 | [Define if system has libiaf that supports set_id]) |
2880 | ]) | 2937 | ]) |
2881 | ]) | 2938 | ]) |
2882 | LIBS="$saved_LIBS" | 2939 | LIBS="$saved_LIBS" |
@@ -3402,7 +3459,7 @@ fi | |||
3402 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ | 3459 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ |
3403 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3460 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3404 | [[ u_int a; a = 1;]])], | 3461 | [[ u_int a; a = 1;]])], |
3405 | [ ac_cv_have_u_int="yes" ], [ ac_cv_have_u_int="no" | 3462 | [ ac_cv_have_u_int="yes" ], [ ac_cv_have_u_int="no" |
3406 | ]) | 3463 | ]) |
3407 | ]) | 3464 | ]) |
3408 | if test "x$ac_cv_have_u_int" = "xyes" ; then | 3465 | if test "x$ac_cv_have_u_int" = "xyes" ; then |
@@ -3413,7 +3470,7 @@ fi | |||
3413 | AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [ | 3470 | AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [ |
3414 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3471 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3415 | [[ int8_t a; int16_t b; int32_t c; a = b = c = 1;]])], | 3472 | [[ int8_t a; int16_t b; int32_t c; a = b = c = 1;]])], |
3416 | [ ac_cv_have_intxx_t="yes" ], [ ac_cv_have_intxx_t="no" | 3473 | [ ac_cv_have_intxx_t="yes" ], [ ac_cv_have_intxx_t="no" |
3417 | ]) | 3474 | ]) |
3418 | ]) | 3475 | ]) |
3419 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | 3476 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then |
@@ -3430,7 +3487,7 @@ then | |||
3430 | [ | 3487 | [ |
3431 | AC_DEFINE([HAVE_INTXX_T]) | 3488 | AC_DEFINE([HAVE_INTXX_T]) |
3432 | AC_MSG_RESULT([yes]) | 3489 | AC_MSG_RESULT([yes]) |
3433 | ], [ AC_MSG_RESULT([no]) | 3490 | ], [ AC_MSG_RESULT([no]) |
3434 | ]) | 3491 | ]) |
3435 | fi | 3492 | fi |
3436 | 3493 | ||
@@ -3447,7 +3504,7 @@ AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [ | |||
3447 | ]], [[ | 3504 | ]], [[ |
3448 | int64_t a; a = 1; | 3505 | int64_t a; a = 1; |
3449 | ]])], | 3506 | ]])], |
3450 | [ ac_cv_have_int64_t="yes" ], [ ac_cv_have_int64_t="no" | 3507 | [ ac_cv_have_int64_t="yes" ], [ ac_cv_have_int64_t="no" |
3451 | ]) | 3508 | ]) |
3452 | ]) | 3509 | ]) |
3453 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | 3510 | if test "x$ac_cv_have_int64_t" = "xyes" ; then |
@@ -3457,7 +3514,7 @@ fi | |||
3457 | AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [ | 3514 | AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [ |
3458 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3515 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3459 | [[ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;]])], | 3516 | [[ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;]])], |
3460 | [ ac_cv_have_u_intxx_t="yes" ], [ ac_cv_have_u_intxx_t="no" | 3517 | [ ac_cv_have_u_intxx_t="yes" ], [ ac_cv_have_u_intxx_t="no" |
3461 | ]) | 3518 | ]) |
3462 | ]) | 3519 | ]) |
3463 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | 3520 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then |
@@ -3472,14 +3529,14 @@ if test -z "$have_u_intxx_t" ; then | |||
3472 | [ | 3529 | [ |
3473 | AC_DEFINE([HAVE_U_INTXX_T]) | 3530 | AC_DEFINE([HAVE_U_INTXX_T]) |
3474 | AC_MSG_RESULT([yes]) | 3531 | AC_MSG_RESULT([yes]) |
3475 | ], [ AC_MSG_RESULT([no]) | 3532 | ], [ AC_MSG_RESULT([no]) |
3476 | ]) | 3533 | ]) |
3477 | fi | 3534 | fi |
3478 | 3535 | ||
3479 | AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [ | 3536 | AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [ |
3480 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3537 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3481 | [[ u_int64_t a; a = 1;]])], | 3538 | [[ u_int64_t a; a = 1;]])], |
3482 | [ ac_cv_have_u_int64_t="yes" ], [ ac_cv_have_u_int64_t="no" | 3539 | [ ac_cv_have_u_int64_t="yes" ], [ ac_cv_have_u_int64_t="no" |
3483 | ]) | 3540 | ]) |
3484 | ]) | 3541 | ]) |
3485 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | 3542 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then |
@@ -3496,7 +3553,7 @@ then | |||
3496 | [ | 3553 | [ |
3497 | AC_DEFINE([HAVE_U_INT64_T]) | 3554 | AC_DEFINE([HAVE_U_INT64_T]) |
3498 | AC_MSG_RESULT([yes]) | 3555 | AC_MSG_RESULT([yes]) |
3499 | ], [ AC_MSG_RESULT([no]) | 3556 | ], [ AC_MSG_RESULT([no]) |
3500 | ]) | 3557 | ]) |
3501 | fi | 3558 | fi |
3502 | 3559 | ||
@@ -3510,7 +3567,7 @@ if test -z "$have_u_intxx_t" ; then | |||
3510 | uint32_t c; | 3567 | uint32_t c; |
3511 | a = b = c = 1; | 3568 | a = b = c = 1; |
3512 | ]])], | 3569 | ]])], |
3513 | [ ac_cv_have_uintxx_t="yes" ], [ ac_cv_have_uintxx_t="no" | 3570 | [ ac_cv_have_uintxx_t="yes" ], [ ac_cv_have_uintxx_t="no" |
3514 | ]) | 3571 | ]) |
3515 | ]) | 3572 | ]) |
3516 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | 3573 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then |
@@ -3528,7 +3585,7 @@ then | |||
3528 | [ | 3585 | [ |
3529 | AC_DEFINE([HAVE_UINTXX_T]) | 3586 | AC_DEFINE([HAVE_UINTXX_T]) |
3530 | AC_MSG_RESULT([yes]) | 3587 | AC_MSG_RESULT([yes]) |
3531 | ], [ AC_MSG_RESULT([no]) | 3588 | ], [ AC_MSG_RESULT([no]) |
3532 | ]) | 3589 | ]) |
3533 | fi | 3590 | fi |
3534 | 3591 | ||
@@ -3541,7 +3598,7 @@ then | |||
3541 | [ | 3598 | [ |
3542 | AC_DEFINE([HAVE_UINTXX_T]) | 3599 | AC_DEFINE([HAVE_UINTXX_T]) |
3543 | AC_MSG_RESULT([yes]) | 3600 | AC_MSG_RESULT([yes]) |
3544 | ], [ AC_MSG_RESULT([no]) | 3601 | ], [ AC_MSG_RESULT([no]) |
3545 | ]) | 3602 | ]) |
3546 | fi | 3603 | fi |
3547 | 3604 | ||
@@ -3568,7 +3625,7 @@ fi | |||
3568 | AC_CACHE_CHECK([for u_char], ac_cv_have_u_char, [ | 3625 | AC_CACHE_CHECK([for u_char], ac_cv_have_u_char, [ |
3569 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3626 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3570 | [[ u_char foo; foo = 125; ]])], | 3627 | [[ u_char foo; foo = 125; ]])], |
3571 | [ ac_cv_have_u_char="yes" ], [ ac_cv_have_u_char="no" | 3628 | [ ac_cv_have_u_char="yes" ], [ ac_cv_have_u_char="no" |
3572 | ]) | 3629 | ]) |
3573 | ]) | 3630 | ]) |
3574 | if test "x$ac_cv_have_u_char" = "xyes" ; then | 3631 | if test "x$ac_cv_have_u_char" = "xyes" ; then |
@@ -3603,7 +3660,7 @@ AC_CHECK_TYPES([in_addr_t, in_port_t], , , | |||
3603 | AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [ | 3660 | AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [ |
3604 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3661 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3605 | [[ size_t foo; foo = 1235; ]])], | 3662 | [[ size_t foo; foo = 1235; ]])], |
3606 | [ ac_cv_have_size_t="yes" ], [ ac_cv_have_size_t="no" | 3663 | [ ac_cv_have_size_t="yes" ], [ ac_cv_have_size_t="no" |
3607 | ]) | 3664 | ]) |
3608 | ]) | 3665 | ]) |
3609 | if test "x$ac_cv_have_size_t" = "xyes" ; then | 3666 | if test "x$ac_cv_have_size_t" = "xyes" ; then |
@@ -3613,7 +3670,7 @@ fi | |||
3613 | AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [ | 3670 | AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [ |
3614 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3671 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3615 | [[ ssize_t foo; foo = 1235; ]])], | 3672 | [[ ssize_t foo; foo = 1235; ]])], |
3616 | [ ac_cv_have_ssize_t="yes" ], [ ac_cv_have_ssize_t="no" | 3673 | [ ac_cv_have_ssize_t="yes" ], [ ac_cv_have_ssize_t="no" |
3617 | ]) | 3674 | ]) |
3618 | ]) | 3675 | ]) |
3619 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | 3676 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then |
@@ -3623,7 +3680,7 @@ fi | |||
3623 | AC_CACHE_CHECK([for clock_t], ac_cv_have_clock_t, [ | 3680 | AC_CACHE_CHECK([for clock_t], ac_cv_have_clock_t, [ |
3624 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <time.h> ]], | 3681 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <time.h> ]], |
3625 | [[ clock_t foo; foo = 1235; ]])], | 3682 | [[ clock_t foo; foo = 1235; ]])], |
3626 | [ ac_cv_have_clock_t="yes" ], [ ac_cv_have_clock_t="no" | 3683 | [ ac_cv_have_clock_t="yes" ], [ ac_cv_have_clock_t="no" |
3627 | ]) | 3684 | ]) |
3628 | ]) | 3685 | ]) |
3629 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | 3686 | if test "x$ac_cv_have_clock_t" = "xyes" ; then |
@@ -3654,7 +3711,7 @@ fi | |||
3654 | AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [ | 3711 | AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [ |
3655 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3712 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3656 | [[ pid_t foo; foo = 1235; ]])], | 3713 | [[ pid_t foo; foo = 1235; ]])], |
3657 | [ ac_cv_have_pid_t="yes" ], [ ac_cv_have_pid_t="no" | 3714 | [ ac_cv_have_pid_t="yes" ], [ ac_cv_have_pid_t="no" |
3658 | ]) | 3715 | ]) |
3659 | ]) | 3716 | ]) |
3660 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | 3717 | if test "x$ac_cv_have_pid_t" = "xyes" ; then |
@@ -3664,7 +3721,7 @@ fi | |||
3664 | AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [ | 3721 | AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [ |
3665 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], | 3722 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> ]], |
3666 | [[ mode_t foo; foo = 1235; ]])], | 3723 | [[ mode_t foo; foo = 1235; ]])], |
3667 | [ ac_cv_have_mode_t="yes" ], [ ac_cv_have_mode_t="no" | 3724 | [ ac_cv_have_mode_t="yes" ], [ ac_cv_have_mode_t="no" |
3668 | ]) | 3725 | ]) |
3669 | ]) | 3726 | ]) |
3670 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | 3727 | if test "x$ac_cv_have_mode_t" = "xyes" ; then |
@@ -3678,7 +3735,7 @@ AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage | |||
3678 | #include <sys/socket.h> | 3735 | #include <sys/socket.h> |
3679 | ]], [[ struct sockaddr_storage s; ]])], | 3736 | ]], [[ struct sockaddr_storage s; ]])], |
3680 | [ ac_cv_have_struct_sockaddr_storage="yes" ], | 3737 | [ ac_cv_have_struct_sockaddr_storage="yes" ], |
3681 | [ ac_cv_have_struct_sockaddr_storage="no" | 3738 | [ ac_cv_have_struct_sockaddr_storage="no" |
3682 | ]) | 3739 | ]) |
3683 | ]) | 3740 | ]) |
3684 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | 3741 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
@@ -3692,7 +3749,7 @@ AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [ | |||
3692 | #include <netinet/in.h> | 3749 | #include <netinet/in.h> |
3693 | ]], [[ struct sockaddr_in6 s; s.sin6_family = 0; ]])], | 3750 | ]], [[ struct sockaddr_in6 s; s.sin6_family = 0; ]])], |
3694 | [ ac_cv_have_struct_sockaddr_in6="yes" ], | 3751 | [ ac_cv_have_struct_sockaddr_in6="yes" ], |
3695 | [ ac_cv_have_struct_sockaddr_in6="no" | 3752 | [ ac_cv_have_struct_sockaddr_in6="no" |
3696 | ]) | 3753 | ]) |
3697 | ]) | 3754 | ]) |
3698 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | 3755 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
@@ -3706,7 +3763,7 @@ AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [ | |||
3706 | #include <netinet/in.h> | 3763 | #include <netinet/in.h> |
3707 | ]], [[ struct in6_addr s; s.s6_addr[0] = 0; ]])], | 3764 | ]], [[ struct in6_addr s; s.s6_addr[0] = 0; ]])], |
3708 | [ ac_cv_have_struct_in6_addr="yes" ], | 3765 | [ ac_cv_have_struct_in6_addr="yes" ], |
3709 | [ ac_cv_have_struct_in6_addr="no" | 3766 | [ ac_cv_have_struct_in6_addr="no" |
3710 | ]) | 3767 | ]) |
3711 | ]) | 3768 | ]) |
3712 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | 3769 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
@@ -3730,7 +3787,7 @@ AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [ | |||
3730 | #include <netdb.h> | 3787 | #include <netdb.h> |
3731 | ]], [[ struct addrinfo s; s.ai_flags = AI_PASSIVE; ]])], | 3788 | ]], [[ struct addrinfo s; s.ai_flags = AI_PASSIVE; ]])], |
3732 | [ ac_cv_have_struct_addrinfo="yes" ], | 3789 | [ ac_cv_have_struct_addrinfo="yes" ], |
3733 | [ ac_cv_have_struct_addrinfo="no" | 3790 | [ ac_cv_have_struct_addrinfo="no" |
3734 | ]) | 3791 | ]) |
3735 | ]) | 3792 | ]) |
3736 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | 3793 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
@@ -3742,7 +3799,7 @@ AC_CACHE_CHECK([for struct timeval], ac_cv_have_struct_timeval, [ | |||
3742 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/time.h> ]], | 3799 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/time.h> ]], |
3743 | [[ struct timeval tv; tv.tv_sec = 1;]])], | 3800 | [[ struct timeval tv; tv.tv_sec = 1;]])], |
3744 | [ ac_cv_have_struct_timeval="yes" ], | 3801 | [ ac_cv_have_struct_timeval="yes" ], |
3745 | [ ac_cv_have_struct_timeval="no" | 3802 | [ ac_cv_have_struct_timeval="no" |
3746 | ]) | 3803 | ]) |
3747 | ]) | 3804 | ]) |
3748 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | 3805 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then |
@@ -3850,7 +3907,7 @@ AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage], | |||
3850 | #include <sys/socket.h> | 3907 | #include <sys/socket.h> |
3851 | ]], [[ struct sockaddr_storage s; s.__ss_family = 1; ]])], | 3908 | ]], [[ struct sockaddr_storage s; s.__ss_family = 1; ]])], |
3852 | [ ac_cv_have___ss_family_in_struct_ss="yes" ], | 3909 | [ ac_cv_have___ss_family_in_struct_ss="yes" ], |
3853 | [ ac_cv_have___ss_family_in_struct_ss="no" | 3910 | [ ac_cv_have___ss_family_in_struct_ss="no" |
3854 | ]) | 3911 | ]) |
3855 | ]) | 3912 | ]) |
3856 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | 3913 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
@@ -3949,7 +4006,7 @@ AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ | |||
3949 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], | 4006 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], |
3950 | [[ extern char *__progname; printf("%s", __progname); ]])], | 4007 | [[ extern char *__progname; printf("%s", __progname); ]])], |
3951 | [ ac_cv_libc_defines___progname="yes" ], | 4008 | [ ac_cv_libc_defines___progname="yes" ], |
3952 | [ ac_cv_libc_defines___progname="no" | 4009 | [ ac_cv_libc_defines___progname="no" |
3953 | ]) | 4010 | ]) |
3954 | ]) | 4011 | ]) |
3955 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | 4012 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then |
@@ -3960,7 +4017,7 @@ AC_CACHE_CHECK([whether $CC implements __FUNCTION__], ac_cv_cc_implements___FUNC | |||
3960 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], | 4017 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], |
3961 | [[ printf("%s", __FUNCTION__); ]])], | 4018 | [[ printf("%s", __FUNCTION__); ]])], |
3962 | [ ac_cv_cc_implements___FUNCTION__="yes" ], | 4019 | [ ac_cv_cc_implements___FUNCTION__="yes" ], |
3963 | [ ac_cv_cc_implements___FUNCTION__="no" | 4020 | [ ac_cv_cc_implements___FUNCTION__="no" |
3964 | ]) | 4021 | ]) |
3965 | ]) | 4022 | ]) |
3966 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | 4023 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then |
@@ -3972,7 +4029,7 @@ AC_CACHE_CHECK([whether $CC implements __func__], ac_cv_cc_implements___func__, | |||
3972 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], | 4029 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], |
3973 | [[ printf("%s", __func__); ]])], | 4030 | [[ printf("%s", __func__); ]])], |
3974 | [ ac_cv_cc_implements___func__="yes" ], | 4031 | [ ac_cv_cc_implements___func__="yes" ], |
3975 | [ ac_cv_cc_implements___func__="no" | 4032 | [ ac_cv_cc_implements___func__="no" |
3976 | ]) | 4033 | ]) |
3977 | ]) | 4034 | ]) |
3978 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | 4035 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then |
@@ -3985,7 +4042,7 @@ AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ | |||
3985 | va_list x,y; | 4042 | va_list x,y; |
3986 | ]], [[ va_copy(x,y); ]])], | 4043 | ]], [[ va_copy(x,y); ]])], |
3987 | [ ac_cv_have_va_copy="yes" ], | 4044 | [ ac_cv_have_va_copy="yes" ], |
3988 | [ ac_cv_have_va_copy="no" | 4045 | [ ac_cv_have_va_copy="no" |
3989 | ]) | 4046 | ]) |
3990 | ]) | 4047 | ]) |
3991 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | 4048 | if test "x$ac_cv_have_va_copy" = "xyes" ; then |
@@ -3997,7 +4054,7 @@ AC_CACHE_CHECK([whether __va_copy exists], ac_cv_have___va_copy, [ | |||
3997 | #include <stdarg.h> | 4054 | #include <stdarg.h> |
3998 | va_list x,y; | 4055 | va_list x,y; |
3999 | ]], [[ __va_copy(x,y); ]])], | 4056 | ]], [[ __va_copy(x,y); ]])], |
4000 | [ ac_cv_have___va_copy="yes" ], [ ac_cv_have___va_copy="no" | 4057 | [ ac_cv_have___va_copy="yes" ], [ ac_cv_have___va_copy="no" |
4001 | ]) | 4058 | ]) |
4002 | ]) | 4059 | ]) |
4003 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | 4060 | if test "x$ac_cv_have___va_copy" = "xyes" ; then |
@@ -4009,7 +4066,7 @@ AC_CACHE_CHECK([whether getopt has optreset support], | |||
4009 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <getopt.h> ]], | 4066 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <getopt.h> ]], |
4010 | [[ extern int optreset; optreset = 0; ]])], | 4067 | [[ extern int optreset; optreset = 0; ]])], |
4011 | [ ac_cv_have_getopt_optreset="yes" ], | 4068 | [ ac_cv_have_getopt_optreset="yes" ], |
4012 | [ ac_cv_have_getopt_optreset="no" | 4069 | [ ac_cv_have_getopt_optreset="no" |
4013 | ]) | 4070 | ]) |
4014 | ]) | 4071 | ]) |
4015 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | 4072 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then |
@@ -4021,7 +4078,7 @@ AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [ | |||
4021 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], | 4078 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], |
4022 | [[ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);]])], | 4079 | [[ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);]])], |
4023 | [ ac_cv_libc_defines_sys_errlist="yes" ], | 4080 | [ ac_cv_libc_defines_sys_errlist="yes" ], |
4024 | [ ac_cv_libc_defines_sys_errlist="no" | 4081 | [ ac_cv_libc_defines_sys_errlist="no" |
4025 | ]) | 4082 | ]) |
4026 | ]) | 4083 | ]) |
4027 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | 4084 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then |
@@ -4034,7 +4091,7 @@ AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [ | |||
4034 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], | 4091 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], |
4035 | [[ extern int sys_nerr; printf("%i", sys_nerr);]])], | 4092 | [[ extern int sys_nerr; printf("%i", sys_nerr);]])], |
4036 | [ ac_cv_libc_defines_sys_nerr="yes" ], | 4093 | [ ac_cv_libc_defines_sys_nerr="yes" ], |
4037 | [ ac_cv_libc_defines_sys_nerr="no" | 4094 | [ ac_cv_libc_defines_sys_nerr="no" |
4038 | ]) | 4095 | ]) |
4039 | ]) | 4096 | ]) |
4040 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | 4097 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then |
@@ -4193,7 +4250,6 @@ AC_ARG_WITH([kerberos5], | |||
4193 | [K5LIBS="$K5LIBS -ldes"]) | 4250 | [K5LIBS="$K5LIBS -ldes"]) |
4194 | ], [ AC_MSG_RESULT([no]) | 4251 | ], [ AC_MSG_RESULT([no]) |
4195 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | 4252 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" |
4196 | |||
4197 | ]) | 4253 | ]) |
4198 | AC_SEARCH_LIBS([dn_expand], [resolv]) | 4254 | AC_SEARCH_LIBS([dn_expand], [resolv]) |
4199 | 4255 | ||
@@ -4399,7 +4455,7 @@ AC_ARG_WITH([maildir], | |||
4399 | exit(0); | 4455 | exit(0); |
4400 | ]])], | 4456 | ]])], |
4401 | [ | 4457 | [ |
4402 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | 4458 | maildir_what=`awk -F: '{print $1}' conftest.maildir` |
4403 | maildir=`awk -F: '{print $2}' conftest.maildir \ | 4459 | maildir=`awk -F: '{print $2}' conftest.maildir \ |
4404 | | sed 's|/$||'` | 4460 | | sed 's|/$||'` |
4405 | AC_MSG_RESULT([Using: $maildir from $maildir_what]) | 4461 | AC_MSG_RESULT([Using: $maildir from $maildir_what]) |
@@ -4744,7 +4800,7 @@ AC_ARG_WITH([pid-dir], | |||
4744 | ] | 4800 | ] |
4745 | ) | 4801 | ) |
4746 | 4802 | ||
4747 | AC_DEFINE_UNQUOTED([_PATH_SSH_PIDDIR], ["$piddir"], | 4803 | AC_DEFINE_UNQUOTED([_PATH_SSH_PIDDIR], ["$piddir"], |
4748 | [Specify location of ssh.pid]) | 4804 | [Specify location of ssh.pid]) |
4749 | AC_SUBST([piddir]) | 4805 | AC_SUBST([piddir]) |
4750 | 4806 | ||
@@ -4902,7 +4958,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
4902 | ]], [[ char *utmp = UTMP_FILE; ]])], | 4958 | ]], [[ char *utmp = UTMP_FILE; ]])], |
4903 | [ AC_MSG_RESULT([yes]) ], | 4959 | [ AC_MSG_RESULT([yes]) ], |
4904 | [ AC_MSG_RESULT([no]) | 4960 | [ AC_MSG_RESULT([no]) |
4905 | system_utmp_path=no | 4961 | system_utmp_path=no |
4906 | ]) | 4962 | ]) |
4907 | if test -z "$conf_utmp_location"; then | 4963 | if test -z "$conf_utmp_location"; then |
4908 | if test x"$system_utmp_path" = x"no" ; then | 4964 | if test x"$system_utmp_path" = x"no" ; then |
@@ -4932,7 +4988,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
4932 | ]], [[ char *wtmp = WTMP_FILE; ]])], | 4988 | ]], [[ char *wtmp = WTMP_FILE; ]])], |
4933 | [ AC_MSG_RESULT([yes]) ], | 4989 | [ AC_MSG_RESULT([yes]) ], |
4934 | [ AC_MSG_RESULT([no]) | 4990 | [ AC_MSG_RESULT([no]) |
4935 | system_wtmp_path=no | 4991 | system_wtmp_path=no |
4936 | ]) | 4992 | ]) |
4937 | if test -z "$conf_wtmp_location"; then | 4993 | if test -z "$conf_wtmp_location"; then |
4938 | if test x"$system_wtmp_path" = x"no" ; then | 4994 | if test x"$system_wtmp_path" = x"no" ; then |
@@ -4965,7 +5021,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
4965 | ]], [[ char *wtmpx = WTMPX_FILE; ]])], | 5021 | ]], [[ char *wtmpx = WTMPX_FILE; ]])], |
4966 | [ AC_MSG_RESULT([yes]) ], | 5022 | [ AC_MSG_RESULT([yes]) ], |
4967 | [ AC_MSG_RESULT([no]) | 5023 | [ AC_MSG_RESULT([no]) |
4968 | system_wtmpx_path=no | 5024 | system_wtmpx_path=no |
4969 | ]) | 5025 | ]) |
4970 | if test -z "$conf_wtmpx_location"; then | 5026 | if test -z "$conf_wtmpx_location"; then |
4971 | if test x"$system_wtmpx_path" = x"no" ; then | 5027 | if test x"$system_wtmpx_path" = x"no" ; then |