configure.ac (214979) | configure.ac (218767) |
---|---|
1# $Id: configure.ac,v 1.451 2010/08/16 03:15:23 dtucker Exp $ | 1# $Id: configure.ac,v 1.469 2011/01/21 22:37:05 dtucker Exp $ |
2# 3# Copyright (c) 1999-2004 Damien Miller 4# 5# Permission to use, copy, modify, and distribute this software for any 6# purpose with or without fee is hereby granted, provided that the above 7# copyright notice and this permission notice appear in all copies. 8# 9# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 2# 3# Copyright (c) 1999-2004 Damien Miller 4# 5# Permission to use, copy, modify, and distribute this software for any 6# purpose with or without fee is hereby granted, provided that the above 7# copyright notice and this permission notice appear in all copies. 8# 9# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18AC_REVISION($Revision: 1.451 $) | 18AC_REVISION($Revision: 1.469 $) |
19AC_CONFIG_SRCDIR([ssh.c]) 20 | 19AC_CONFIG_SRCDIR([ssh.c]) 20 |
21# local macros 22AC_DEFUN([OPENSSH_CHECK_CFLAG_COMPILE], [{ 23 AC_MSG_CHECKING([if $CC supports $1]) 24 saved_CFLAGS="$CFLAGS" 25 CFLAGS="$CFLAGS $1" 26 AC_COMPILE_IFELSE([void main(void) { return 0; }], 27 [ AC_MSG_RESULT(yes) ], 28 [ AC_MSG_RESULT(no) 29 CFLAGS="$saved_CFLAGS" ] 30 ) 31}]) 32 |
|
21AC_CONFIG_HEADER(config.h) 22AC_PROG_CC 23AC_CANONICAL_HOST 24AC_C_BIGENDIAN 25 26# Checks for programs. 27AC_PROG_AWK 28AC_PROG_CPP --- 7 unchanged lines hidden (view full) --- 36AC_PATH_PROG(SED, sed) 37AC_SUBST(PERL) 38AC_PATH_PROG(ENT, ent) 39AC_SUBST(ENT) 40AC_PATH_PROG(TEST_MINUS_S_SH, bash) 41AC_PATH_PROG(TEST_MINUS_S_SH, ksh) 42AC_PATH_PROG(TEST_MINUS_S_SH, sh) 43AC_PATH_PROG(SH, sh) | 33AC_CONFIG_HEADER(config.h) 34AC_PROG_CC 35AC_CANONICAL_HOST 36AC_C_BIGENDIAN 37 38# Checks for programs. 39AC_PROG_AWK 40AC_PROG_CPP --- 7 unchanged lines hidden (view full) --- 48AC_PATH_PROG(SED, sed) 49AC_SUBST(PERL) 50AC_PATH_PROG(ENT, ent) 51AC_SUBST(ENT) 52AC_PATH_PROG(TEST_MINUS_S_SH, bash) 53AC_PATH_PROG(TEST_MINUS_S_SH, ksh) 54AC_PATH_PROG(TEST_MINUS_S_SH, sh) 55AC_PATH_PROG(SH, sh) |
56AC_PATH_PROG(GROFF, groff) 57AC_PATH_PROG(NROFF, nroff) 58AC_PATH_PROG(MANDOC, mandoc) |
|
44AC_SUBST(TEST_SHELL,sh) 45 | 59AC_SUBST(TEST_SHELL,sh) 60 |
61dnl select manpage formatter 62if test "x$MANDOC" != "x" ; then 63 MANFMT="$MANDOC" 64elif test "x$NROFF" != "x" ; then 65 MANFMT="$NROFF -mandoc" 66elif test "x$GROFF" != "x" ; then 67 MANFMT="$GROFF -mandoc -Tascii" 68else 69 AC_MSG_WARN([no manpage formatted found]) 70 MANFMT="false" 71fi 72AC_SUBST(MANFMT) 73 |
|
46dnl for buildpkg.sh 47AC_PATH_PROG(PATH_GROUPADD_PROG, groupadd, groupadd, 48 [/usr/sbin${PATH_SEPARATOR}/etc]) 49AC_PATH_PROG(PATH_USERADD_PROG, useradd, useradd, 50 [/usr/sbin${PATH_SEPARATOR}/etc]) 51AC_CHECK_PROG(MAKE_PACKAGE_SUPPORTED, pkgmk, yes, no) 52if test -x /sbin/sh; then 53 AC_SUBST(STARTUP_SCRIPT_SHELL,/sbin/sh) --- 38 unchanged lines hidden (view full) --- 92 93use_stack_protector=1 94AC_ARG_WITH(stackprotect, 95 [ --without-stackprotect Don't use compiler's stack protection], [ 96 if test "x$withval" = "xno"; then 97 use_stack_protector=0 98 fi ]) 99 | 74dnl for buildpkg.sh 75AC_PATH_PROG(PATH_GROUPADD_PROG, groupadd, groupadd, 76 [/usr/sbin${PATH_SEPARATOR}/etc]) 77AC_PATH_PROG(PATH_USERADD_PROG, useradd, useradd, 78 [/usr/sbin${PATH_SEPARATOR}/etc]) 79AC_CHECK_PROG(MAKE_PACKAGE_SUPPORTED, pkgmk, yes, no) 80if test -x /sbin/sh; then 81 AC_SUBST(STARTUP_SCRIPT_SHELL,/sbin/sh) --- 38 unchanged lines hidden (view full) --- 120 121use_stack_protector=1 122AC_ARG_WITH(stackprotect, 123 [ --without-stackprotect Don't use compiler's stack protection], [ 124 if test "x$withval" = "xno"; then 125 use_stack_protector=0 126 fi ]) 127 |
128 |
|
100if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | 129if test "$GCC" = "yes" || test "$GCC" = "egcs"; then |
101 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | 130 OPENSSH_CHECK_CFLAG_COMPILE([-Wall]) 131 OPENSSH_CHECK_CFLAG_COMPILE([-Wpointer-arith]) 132 OPENSSH_CHECK_CFLAG_COMPILE([-Wuninitialized]) 133 OPENSSH_CHECK_CFLAG_COMPILE([-Wsign-compare]) 134 OPENSSH_CHECK_CFLAG_COMPILE([-Wformat-security]) 135 OPENSSH_CHECK_CFLAG_COMPILE([-Wno-pointer-sign]) 136 OPENSSH_CHECK_CFLAG_COMPILE([-Wno-unused-result]) 137 OPENSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) 138 AC_MSG_CHECKING(gcc version) |
102 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 103 case $GCC_VER in 104 1.*) no_attrib_nonnull=1 ;; 105 2.8* | 2.9*) | 139 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 140 case $GCC_VER in 141 1.*) no_attrib_nonnull=1 ;; 142 2.8* | 2.9*) |
106 CFLAGS="$CFLAGS -Wsign-compare" | |
107 no_attrib_nonnull=1 108 ;; 109 2.*) no_attrib_nonnull=1 ;; | 143 no_attrib_nonnull=1 144 ;; 145 2.*) no_attrib_nonnull=1 ;; |
110 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; 111 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;; | |
112 *) ;; 113 esac | 146 *) ;; 147 esac |
148 AC_MSG_RESULT($GCC_VER) |
|
114 115 AC_MSG_CHECKING(if $CC accepts -fno-builtin-memset) 116 saved_CFLAGS="$CFLAGS" 117 CFLAGS="$CFLAGS -fno-builtin-memset" 118 AC_LINK_IFELSE( [AC_LANG_SOURCE([[ 119#include <string.h> 120int main(void){char b[10]; memset(b, 0, sizeof(b));} 121 ]])], --- 206 unchanged lines hidden (view full) --- 328# older BSDs need sys/param.h before sys/mount.h 329AC_CHECK_HEADERS(sys/mount.h, [], [], [ 330#include <sys/param.h> 331]) 332 333# Messages for features tested for in target-specific section 334SIA_MSG="no" 335SPC_MSG="no" | 149 150 AC_MSG_CHECKING(if $CC accepts -fno-builtin-memset) 151 saved_CFLAGS="$CFLAGS" 152 CFLAGS="$CFLAGS -fno-builtin-memset" 153 AC_LINK_IFELSE( [AC_LANG_SOURCE([[ 154#include <string.h> 155int main(void){char b[10]; memset(b, 0, sizeof(b));} 156 ]])], --- 206 unchanged lines hidden (view full) --- 363# older BSDs need sys/param.h before sys/mount.h 364AC_CHECK_HEADERS(sys/mount.h, [], [], [ 365#include <sys/param.h> 366]) 367 368# Messages for features tested for in target-specific section 369SIA_MSG="no" 370SPC_MSG="no" |
371SP_MSG="no" |
|
336 337# Check for some target-specific stuff 338case "$host" in 339*-*-aix*) 340 # Some versions of VAC won't allow macro redefinitions at 341 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that 342 # particularly with older versions of vac or xlc. 343 # It also throws errors about null macro argments, but these are --- 98 unchanged lines hidden (view full) --- 442 [Define if X11 doesn't support AF_UNIX sockets on that system]) 443 AC_DEFINE(NO_IPPORT_RESERVED_CONCEPT, 1, 444 [Define if the concept of ports only accessible to 445 superusers isn't known]) 446 AC_DEFINE(DISABLE_FD_PASSING, 1, 447 [Define if your platform needs to skip post auth 448 file descriptor passing]) 449 AC_DEFINE(SSH_IOBUFSZ, 65535, [Windows is sensitive to read buffer size]) | 372 373# Check for some target-specific stuff 374case "$host" in 375*-*-aix*) 376 # Some versions of VAC won't allow macro redefinitions at 377 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that 378 # particularly with older versions of vac or xlc. 379 # It also throws errors about null macro argments, but these are --- 98 unchanged lines hidden (view full) --- 478 [Define if X11 doesn't support AF_UNIX sockets on that system]) 479 AC_DEFINE(NO_IPPORT_RESERVED_CONCEPT, 1, 480 [Define if the concept of ports only accessible to 481 superusers isn't known]) 482 AC_DEFINE(DISABLE_FD_PASSING, 1, 483 [Define if your platform needs to skip post auth 484 file descriptor passing]) 485 AC_DEFINE(SSH_IOBUFSZ, 65535, [Windows is sensitive to read buffer size]) |
486 AC_DEFINE(FILESYSTEM_NO_BACKSLASH, 1, [File names may not contain backslash characters]) |
|
450 ;; 451*-*-dgux*) 452 AC_DEFINE(IP_TOS_IS_BROKEN, 1, 453 [Define if your system choked on IP TOS setting]) 454 AC_DEFINE(SETEUID_BREAKS_SETUID) 455 AC_DEFINE(BROKEN_SETREUID) 456 AC_DEFINE(BROKEN_SETREGID) 457 ;; --- 241 unchanged lines hidden (view full) --- 699 AC_CHECK_LIB(contract, ct_tmpl_activate, 700 [ AC_DEFINE(USE_SOLARIS_PROCESS_CONTRACTS, 1, 701 [Define if you have Solaris process contracts]) 702 SSHDLIBS="$SSHDLIBS -lcontract" 703 AC_SUBST(SSHDLIBS) 704 SPC_MSG="yes" ], ) 705 ], 706 ) | 487 ;; 488*-*-dgux*) 489 AC_DEFINE(IP_TOS_IS_BROKEN, 1, 490 [Define if your system choked on IP TOS setting]) 491 AC_DEFINE(SETEUID_BREAKS_SETUID) 492 AC_DEFINE(BROKEN_SETREUID) 493 AC_DEFINE(BROKEN_SETREGID) 494 ;; --- 241 unchanged lines hidden (view full) --- 736 AC_CHECK_LIB(contract, ct_tmpl_activate, 737 [ AC_DEFINE(USE_SOLARIS_PROCESS_CONTRACTS, 1, 738 [Define if you have Solaris process contracts]) 739 SSHDLIBS="$SSHDLIBS -lcontract" 740 AC_SUBST(SSHDLIBS) 741 SPC_MSG="yes" ], ) 742 ], 743 ) |
744 AC_ARG_WITH(solaris-projects, 745 [ --with-solaris-projects Enable Solaris projects (experimental)], 746 [ 747 AC_CHECK_LIB(project, setproject, 748 [ AC_DEFINE(USE_SOLARIS_PROJECTS, 1, 749 [Define if you have Solaris projects]) 750 SSHDLIBS="$SSHDLIBS -lproject" 751 AC_SUBST(SSHDLIBS) 752 SP_MSG="yes" ], ) 753 ], 754 ) |
|
707 ;; 708*-*-sunos4*) 709 CPPFLAGS="$CPPFLAGS -DSUNOS4" 710 AC_CHECK_FUNCS(getpwanam) 711 AC_DEFINE(PAM_SUN_CODEBASE) 712 conf_utmp_location=/etc/utmp 713 conf_wtmp_location=/var/adm/wtmp 714 conf_lastlog_location=/var/adm/lastlog --- 398 unchanged lines hidden (view full) --- 1113 gl_matchc options in glob_t]) 1114 AC_MSG_RESULT(yes) 1115 ], 1116 [ 1117 AC_MSG_RESULT(no) 1118 ] 1119) 1120 | 755 ;; 756*-*-sunos4*) 757 CPPFLAGS="$CPPFLAGS -DSUNOS4" 758 AC_CHECK_FUNCS(getpwanam) 759 AC_DEFINE(PAM_SUN_CODEBASE) 760 conf_utmp_location=/etc/utmp 761 conf_wtmp_location=/var/adm/wtmp 762 conf_lastlog_location=/var/adm/lastlog --- 398 unchanged lines hidden (view full) --- 1161 gl_matchc options in glob_t]) 1162 AC_MSG_RESULT(yes) 1163 ], 1164 [ 1165 AC_MSG_RESULT(no) 1166 ] 1167) 1168 |
1169# Check for g.gl_statv glob() extension 1170AC_MSG_CHECKING(for gl_statv and GLOB_KEEPSTAT extensions for glob) 1171AC_TRY_COMPILE( 1172 [ #include <glob.h> ], 1173 [ 1174#ifndef GLOB_KEEPSTAT 1175#error "glob does not support GLOB_KEEPSTAT extension" 1176#endif 1177glob_t g; 1178g.gl_statv = NULL; 1179], 1180 [ 1181 AC_DEFINE(GLOB_HAS_GL_STATV, 1, 1182 [Define if your system glob() function has 1183 gl_statv options in glob_t]) 1184 AC_MSG_RESULT(yes) 1185 ], 1186 [ 1187 AC_MSG_RESULT(no) 1188 ] 1189) 1190 |
|
1121AC_CHECK_DECLS(GLOB_NOMATCH, , , [#include <glob.h>]) 1122 1123AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) 1124AC_RUN_IFELSE( 1125 [AC_LANG_SOURCE([[ 1126#include <sys/types.h> 1127#include <dirent.h> 1128int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} --- 139 unchanged lines hidden (view full) --- 1268 else 1269 CPPFLAGS="$CPPFLAGS -I${withval}/include" 1270 if test -n "${need_dash_r}"; then 1271 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 1272 else 1273 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 1274 fi 1275 fi | 1191AC_CHECK_DECLS(GLOB_NOMATCH, , , [#include <glob.h>]) 1192 1193AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) 1194AC_RUN_IFELSE( 1195 [AC_LANG_SOURCE([[ 1196#include <sys/types.h> 1197#include <dirent.h> 1198int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} --- 139 unchanged lines hidden (view full) --- 1338 else 1339 CPPFLAGS="$CPPFLAGS -I${withval}/include" 1340 if test -n "${need_dash_r}"; then 1341 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 1342 else 1343 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 1344 fi 1345 fi |
1276 if test "x$use_pkgconfig_for_libedit" == "xyes"; then | 1346 if test "x$use_pkgconfig_for_libedit" = "xyes"; then |
1277 LIBEDIT=`$PKGCONFIG --libs-only-l libedit` 1278 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" 1279 else 1280 LIBEDIT="-ledit -lcurses" 1281 fi 1282 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` 1283 AC_CHECK_LIB(edit, el_init, 1284 [ AC_DEFINE(USE_LIBEDIT, 1, [Use libedit for sftp]) --- 18 unchanged lines hidden (view full) --- 1303 [ AC_MSG_RESULT(no) 1304 AC_MSG_ERROR(libedit version is not compatible) ] 1305 ) 1306 fi ] 1307) 1308 1309AUDIT_MODULE=none 1310AC_ARG_WITH(audit, | 1347 LIBEDIT=`$PKGCONFIG --libs-only-l libedit` 1348 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" 1349 else 1350 LIBEDIT="-ledit -lcurses" 1351 fi 1352 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` 1353 AC_CHECK_LIB(edit, el_init, 1354 [ AC_DEFINE(USE_LIBEDIT, 1, [Use libedit for sftp]) --- 18 unchanged lines hidden (view full) --- 1373 [ AC_MSG_RESULT(no) 1374 AC_MSG_ERROR(libedit version is not compatible) ] 1375 ) 1376 fi ] 1377) 1378 1379AUDIT_MODULE=none 1380AC_ARG_WITH(audit, |
1311 [ --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)], | 1381 [ --with-audit=module Enable audit support (modules=debug,bsm,linux)], |
1312 [ 1313 AC_MSG_CHECKING(for supported audit module) 1314 case "$withval" in 1315 bsm) 1316 AC_MSG_RESULT(bsm) 1317 AUDIT_MODULE=bsm 1318 dnl Checks for headers, libs and functions 1319 AC_CHECK_HEADERS(bsm/audit.h, [], --- 7 unchanged lines hidden (view full) --- 1327 AC_CHECK_LIB(bsm, getaudit, [], 1328 [AC_MSG_ERROR(BSM enabled and required library not found)]) 1329 AC_CHECK_FUNCS(getaudit, [], 1330 [AC_MSG_ERROR(BSM enabled and required function not found)]) 1331 # These are optional 1332 AC_CHECK_FUNCS(getaudit_addr aug_get_machine) 1333 AC_DEFINE(USE_BSM_AUDIT, 1, [Use BSM audit module]) 1334 ;; | 1382 [ 1383 AC_MSG_CHECKING(for supported audit module) 1384 case "$withval" in 1385 bsm) 1386 AC_MSG_RESULT(bsm) 1387 AUDIT_MODULE=bsm 1388 dnl Checks for headers, libs and functions 1389 AC_CHECK_HEADERS(bsm/audit.h, [], --- 7 unchanged lines hidden (view full) --- 1397 AC_CHECK_LIB(bsm, getaudit, [], 1398 [AC_MSG_ERROR(BSM enabled and required library not found)]) 1399 AC_CHECK_FUNCS(getaudit, [], 1400 [AC_MSG_ERROR(BSM enabled and required function not found)]) 1401 # These are optional 1402 AC_CHECK_FUNCS(getaudit_addr aug_get_machine) 1403 AC_DEFINE(USE_BSM_AUDIT, 1, [Use BSM audit module]) 1404 ;; |
1405 linux) 1406 AC_MSG_RESULT(linux) 1407 AUDIT_MODULE=linux 1408 dnl Checks for headers, libs and functions 1409 AC_CHECK_HEADERS(libaudit.h) 1410 SSHDLIBS="$SSHDLIBS -laudit" 1411 AC_DEFINE(USE_LINUX_AUDIT, 1, [Use Linux audit module]) 1412 ;; |
|
1335 debug) 1336 AUDIT_MODULE=debug 1337 AC_MSG_RESULT(debug) | 1413 debug) 1414 AUDIT_MODULE=debug 1415 AC_MSG_RESULT(debug) |
1338 AC_DEFINE(SSH_AUDIT_EVENTS, 1, Use audit debugging module) | 1416 AC_DEFINE(SSH_AUDIT_EVENTS, 1, [Use audit debugging module]) |
1339 ;; 1340 no) 1341 AC_MSG_RESULT(no) 1342 ;; 1343 *) 1344 AC_MSG_ERROR([Unknown audit module $withval]) 1345 ;; 1346 esac ] --- 82 unchanged lines hidden (view full) --- 1429 strnvis \ 1430 strptime \ 1431 strtonum \ 1432 strtoll \ 1433 strtoul \ 1434 swap32 \ 1435 sysconf \ 1436 tcgetpgrp \ | 1417 ;; 1418 no) 1419 AC_MSG_RESULT(no) 1420 ;; 1421 *) 1422 AC_MSG_ERROR([Unknown audit module $withval]) 1423 ;; 1424 esac ] --- 82 unchanged lines hidden (view full) --- 1507 strnvis \ 1508 strptime \ 1509 strtonum \ 1510 strtoll \ 1511 strtoul \ 1512 swap32 \ 1513 sysconf \ 1514 tcgetpgrp \ |
1515 timingsafe_bcmp \ |
|
1437 truncate \ 1438 unsetenv \ 1439 updwtmpx \ 1440 user_from_uid \ 1441 vasprintf \ 1442 vhangup \ 1443 vsnprintf \ 1444 waitpid \ 1445) 1446 | 1516 truncate \ 1517 unsetenv \ 1518 updwtmpx \ 1519 user_from_uid \ 1520 vasprintf \ 1521 vhangup \ 1522 vsnprintf \ 1523 waitpid \ 1524) 1525 |
1526AC_LINK_IFELSE( 1527[ 1528#include <ctype.h> 1529int main(void) 1530{ 1531 return (isblank('a')); 1532} 1533], 1534 [AC_DEFINE(HAVE_ISBLANK, 1, [Define if you have isblank(3C).]) 1535]) 1536 |
|
1447# PKCS#11 support requires dlopen() and co 1448AC_SEARCH_LIBS(dlopen, dl, 1449 AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support]) 1450) 1451 1452# IRIX has a const char return value for gai_strerror() 1453AC_CHECK_FUNCS(gai_strerror,[ 1454 AC_DEFINE(HAVE_GAI_STRERROR) --- 630 unchanged lines hidden (view full) --- 2085 [ 2086 AC_MSG_RESULT(no) 2087 LIBS="$saved_LIBS" 2088 ] 2089 ) 2090 ] 2091) 2092 | 1537# PKCS#11 support requires dlopen() and co 1538AC_SEARCH_LIBS(dlopen, dl, 1539 AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support]) 1540) 1541 1542# IRIX has a const char return value for gai_strerror() 1543AC_CHECK_FUNCS(gai_strerror,[ 1544 AC_DEFINE(HAVE_GAI_STRERROR) --- 630 unchanged lines hidden (view full) --- 2175 [ 2176 AC_MSG_RESULT(no) 2177 LIBS="$saved_LIBS" 2178 ] 2179 ) 2180 ] 2181) 2182 |
2183AC_CHECK_FUNCS(RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method) 2184 |
|
2093AC_ARG_WITH(ssl-engine, 2094 [ --with-ssl-engine Enable OpenSSL (hardware) ENGINE support ], 2095 [ if test "x$withval" != "xno" ; then 2096 AC_MSG_CHECKING(for OpenSSL ENGINE support) 2097 AC_TRY_COMPILE( 2098 [ #include <openssl/engine.h>], 2099 [ 2100ENGINE_load_builtin_engines();ENGINE_register_all_complete(); --- 50 unchanged lines hidden (view full) --- 2151 2152# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 2153# version in OpenSSL. 2154if test "x$check_for_libcrypt_later" = "x1"; then 2155 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 2156fi 2157 2158# Search for SHA256 support in libc and/or OpenSSL | 2185AC_ARG_WITH(ssl-engine, 2186 [ --with-ssl-engine Enable OpenSSL (hardware) ENGINE support ], 2187 [ if test "x$withval" != "xno" ; then 2188 AC_MSG_CHECKING(for OpenSSL ENGINE support) 2189 AC_TRY_COMPILE( 2190 [ #include <openssl/engine.h>], 2191 [ 2192ENGINE_load_builtin_engines();ENGINE_register_all_complete(); --- 50 unchanged lines hidden (view full) --- 2243 2244# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 2245# version in OpenSSL. 2246if test "x$check_for_libcrypt_later" = "x1"; then 2247 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 2248fi 2249 2250# Search for SHA256 support in libc and/or OpenSSL |
2159AC_CHECK_FUNCS(SHA256_Update EVP_sha256) | 2251AC_CHECK_FUNCS(SHA256_Update EVP_sha256, [TEST_SSH_SHA256=yes], 2252 [TEST_SSH_SHA256=no]) 2253AC_SUBST(TEST_SSH_SHA256) |
2160 | 2254 |
2255# Check complete ECC support in OpenSSL 2256AC_MSG_CHECKING([whether OpenSSL has complete ECC support]) 2257AC_LINK_IFELSE( 2258 [AC_LANG_SOURCE([[ 2259#include <openssl/ec.h> 2260#include <openssl/ecdh.h> 2261#include <openssl/ecdsa.h> 2262#include <openssl/evp.h> 2263#include <openssl/objects.h> 2264#include <openssl/opensslv.h> 2265#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 2266# error "OpenSSL < 0.9.8g has unreliable ECC code" 2267#endif 2268int main(void) { 2269 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); 2270 const EVP_MD *m = EVP_sha512(); /* We need this too */ 2271} 2272 ]])], 2273 [ 2274 AC_MSG_RESULT(yes) 2275 AC_DEFINE(OPENSSL_HAS_ECC, 1, 2276 [libcrypto includes complete ECC support]) 2277 TEST_SSH_ECC=yes 2278 COMMENT_OUT_ECC="" 2279 ], 2280 [ 2281 AC_MSG_RESULT(no) 2282 TEST_SSH_ECC=no 2283 COMMENT_OUT_ECC="#no ecc#" 2284 ] 2285) 2286AC_SUBST(TEST_SSH_ECC) 2287AC_SUBST(COMMENT_OUT_ECC) 2288 |
|
2161saved_LIBS="$LIBS" 2162AC_CHECK_LIB(iaf, ia_openinfo, [ 2163 LIBS="$LIBS -liaf" 2164 AC_CHECK_FUNCS(set_id, [SSHDLIBS="$SSHDLIBS -liaf" 2165 AC_DEFINE(HAVE_LIBIAF, 1, 2166 [Define if system has libiaf that supports set_id]) 2167 ]) 2168]) --- 1269 unchanged lines hidden (view full) --- 3438 else 3439 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" 3440 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" 3441 AC_MSG_CHECKING(whether we are using Heimdal) 3442 AC_TRY_COMPILE([ #include <krb5.h> ], 3443 [ char *tmp = heimdal_version; ], 3444 [ AC_MSG_RESULT(yes) 3445 AC_DEFINE(HEIMDAL) | 2289saved_LIBS="$LIBS" 2290AC_CHECK_LIB(iaf, ia_openinfo, [ 2291 LIBS="$LIBS -liaf" 2292 AC_CHECK_FUNCS(set_id, [SSHDLIBS="$SSHDLIBS -liaf" 2293 AC_DEFINE(HAVE_LIBIAF, 1, 2294 [Define if system has libiaf that supports set_id]) 2295 ]) 2296]) --- 1269 unchanged lines hidden (view full) --- 3566 else 3567 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" 3568 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" 3569 AC_MSG_CHECKING(whether we are using Heimdal) 3570 AC_TRY_COMPILE([ #include <krb5.h> ], 3571 [ char *tmp = heimdal_version; ], 3572 [ AC_MSG_RESULT(yes) 3573 AC_DEFINE(HEIMDAL) |
3446 K5LIBS="-lkrb5 -ldes" | 3574 K5LIBS="-lkrb5" |
3447 K5LIBS="$K5LIBS -lcom_err -lasn1" 3448 AC_CHECK_LIB(roken, net_write, 3449 [K5LIBS="$K5LIBS -lroken"]) | 3575 K5LIBS="$K5LIBS -lcom_err -lasn1" 3576 AC_CHECK_LIB(roken, net_write, 3577 [K5LIBS="$K5LIBS -lroken"]) |
3578 AC_CHECK_LIB(des, des_cbc_encrypt, 3579 [K5LIBS="$K5LIBS -ldes"]) |
|
3450 ], 3451 [ AC_MSG_RESULT(no) 3452 K5LIBS="-lkrb5 -lk5crypto -lcom_err" 3453 ] 3454 ) 3455 AC_SEARCH_LIBS(dn_expand, resolv) 3456 3457 AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context, --- 728 unchanged lines hidden (view full) --- 4186echo " KerberosV support: $KRB5_MSG" 4187echo " SELinux support: $SELINUX_MSG" 4188echo " Smartcard support: $SCARD_MSG" 4189echo " S/KEY support: $SKEY_MSG" 4190echo " TCP Wrappers support: $TCPW_MSG" 4191echo " MD5 password support: $MD5_MSG" 4192echo " libedit support: $LIBEDIT_MSG" 4193echo " Solaris process contract support: $SPC_MSG" | 3580 ], 3581 [ AC_MSG_RESULT(no) 3582 K5LIBS="-lkrb5 -lk5crypto -lcom_err" 3583 ] 3584 ) 3585 AC_SEARCH_LIBS(dn_expand, resolv) 3586 3587 AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context, --- 728 unchanged lines hidden (view full) --- 4316echo " KerberosV support: $KRB5_MSG" 4317echo " SELinux support: $SELINUX_MSG" 4318echo " Smartcard support: $SCARD_MSG" 4319echo " S/KEY support: $SKEY_MSG" 4320echo " TCP Wrappers support: $TCPW_MSG" 4321echo " MD5 password support: $MD5_MSG" 4322echo " libedit support: $LIBEDIT_MSG" 4323echo " Solaris process contract support: $SPC_MSG" |
4324echo " Solaris project support: $SP_MSG" |
|
4194echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" 4195echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" 4196echo " BSD Auth support: $BSD_AUTH_MSG" 4197echo " Random number source: $RAND_MSG" 4198if test ! -z "$USE_RAND_HELPER" ; then 4199echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" 4200fi 4201 --- 49 unchanged lines hidden --- | 4325echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" 4326echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" 4327echo " BSD Auth support: $BSD_AUTH_MSG" 4328echo " Random number source: $RAND_MSG" 4329if test ! -z "$USE_RAND_HELPER" ; then 4330echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" 4331fi 4332 --- 49 unchanged lines hidden --- |