15
15
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
17
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18
AC_REVISION($Revision: 1.415 $)
18
AC_REVISION($Revision: 1.427 $)
19
19
AC_CONFIG_SRCDIR([ssh.c])
21
21
AC_CONFIG_HEADER(config.h)
326
325
#include <sys/types.h>
328
# older BSDs need sys/param.h before sys/mount.h
329
AC_CHECK_HEADERS(sys/mount.h, [], [], [
330
#include <sys/param.h>
329
333
# Messages for features tested for in target-specific section
434
438
AC_DEFINE(USE_PIPES, 1, [Use PIPES instead of a socketpair()])
435
439
AC_DEFINE(DISABLE_SHADOW, 1,
436
440
[Define if you want to disable shadow passwords])
437
AC_DEFINE(IP_TOS_IS_BROKEN, 1,
438
[Define if your system choked on IP TOS setting])
439
441
AC_DEFINE(NO_X11_UNIX_SOCKETS, 1,
440
442
[Define if X11 doesn't support AF_UNIX sockets on that system])
441
443
AC_DEFINE(NO_IPPORT_RESERVED_CONCEPT, 1,
444
446
AC_DEFINE(DISABLE_FD_PASSING, 1,
445
447
[Define if your platform needs to skip post auth
446
448
file descriptor passing])
449
AC_DEFINE(SSH_IOBUFSZ, 65536, [Windows is sensitive to read buffer size])
449
AC_DEFINE(IP_TOS_IS_BROKEN)
452
AC_DEFINE(IP_TOS_IS_BROKEN, 1,
453
[Define if your system choked on IP TOS setting])
450
454
AC_DEFINE(SETEUID_BREAKS_SETUID)
451
455
AC_DEFINE(BROKEN_SETREUID)
452
456
AC_DEFINE(BROKEN_SETREGID)
694
698
AC_DEFINE(PASSWD_NEEDS_USERNAME, 1, [must supply username to passwd
695
699
in case the name is longer than 8 chars])
700
AC_DEFINE(BROKEN_TCGETATTR_ICANON, 1, [tcgetattr with ICANON may hang])
696
701
external_path_file=/etc/default/login
697
702
# hardwire lastlog location (can't detect it on some versions)
698
703
conf_lastlog_location="/var/adm/lastlog"
1012
AC_CHECK_HEADER([zlib.h], ,AC_MSG_ERROR([*** zlib.h missing - please install first or check config.log ***]))
1007
1013
AC_CHECK_LIB(z, deflate, ,
1009
1015
saved_CPPFLAGS="$CPPFLAGS"
1027
AC_CHECK_HEADER([zlib.h], ,AC_MSG_ERROR([*** zlib.h missing - please install first or check config.log ***]))
1029
1034
AC_ARG_WITH(zlib-version-check,
1030
1035
[ --without-zlib-version-check Disable zlib version check],
1917
1922
LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
1919
1924
CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
1925
AC_CHECK_HEADER([openssl/opensslv.h], ,
1926
AC_MSG_ERROR([*** OpenSSL headers missing - please install first or check config.log ***]))
1920
1927
AC_TRY_LINK_FUNC(RAND_add, AC_DEFINE(HAVE_OPENSSL),
1922
1929
AC_MSG_ERROR([*** Can't find recent OpenSSL libcrypto (see config.log for details) ***])
2111
AC_MSG_CHECKING([if EVP_DigestUpdate returns an int])
2115
#include <openssl/evp.h>
2116
int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
2123
AC_DEFINE(OPENSSL_EVP_DIGESTUPDATE_VOID, 1,
2124
[Define if EVP_DigestUpdate returns void])
2104
2128
# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
2105
2129
# because the system crypt() is more featureful.
2106
2130
if test "x$check_for_libcrypt_before" = "x1"; then
2722
AC_CHECK_TYPES(in_addr_t,,,
2746
AC_CHECK_TYPES([in_addr_t, in_port_t],,,
2723
2747
[#include <sys/types.h>
2724
2748
#include <netinet/in.h>])
3089
3113
file descriptor passing])
3092
AC_MSG_CHECKING(if f_fsid has val members)
3116
AC_MSG_CHECKING(if struct statvfs.f_fsid is integral type)
3093
3117
AC_TRY_COMPILE([
3094
3118
#include <sys/types.h>
3095
#include <sys/statvfs.h>],
3096
[struct fsid_t t; t.val[0] = 0;],
3097
[ AC_MSG_RESULT(yes)
3098
AC_DEFINE(FSID_HAS_VAL, 1, f_fsid has members) ],
3099
[ AC_MSG_RESULT(no) ]
3119
#include <sys/stat.h>
3120
#ifdef HAVE_SYS_TIME_H
3121
# include <sys/time.h>
3123
#ifdef HAVE_SYS_MOUNT_H
3124
#include <sys/mount.h>
3126
#ifdef HAVE_SYS_STATVFS_H
3127
#include <sys/statvfs.h>
3129
], [struct statvfs s; s.f_fsid = 0;],
3130
[ AC_MSG_RESULT(yes) ],
3133
AC_MSG_CHECKING(if fsid_t has member val)
3135
#include <sys/types.h>
3136
#include <sys/statvfs.h>],
3137
[fsid_t t; t.val[0] = 0;],
3138
[ AC_MSG_RESULT(yes)
3139
AC_DEFINE(FSID_HAS_VAL, 1, fsid_t has member val) ],
3140
[ AC_MSG_RESULT(no) ])
3142
AC_MSG_CHECKING(if f_fsid has member __val)
3144
#include <sys/types.h>
3145
#include <sys/statvfs.h>],
3146
[fsid_t t; t.__val[0] = 0;],
3147
[ AC_MSG_RESULT(yes)
3148
AC_DEFINE(FSID_HAS___VAL, 1, fsid_t has member __val) ],
3149
[ AC_MSG_RESULT(no) ])
3102
3152
AC_CACHE_CHECK([for msg_control field in struct msghdr],
3103
3153
ac_cv_have_control_in_msghdr, [
3299
3349
AC_SEARCH_LIBS(res_query, resolv)
3300
3350
AC_SEARCH_LIBS(dn_expand, resolv)
3301
3351
AC_MSG_CHECKING(if res_query will link)
3302
AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes),
3353
#include "confdefs.h"
3354
#include <sys/types.h>
3355
#include <netinet/in.h>
3356
#include <arpa/nameser.h>
3361
res_query (0, 0, 0, 0, 0);
3303
3366
[AC_MSG_RESULT(no)
3304
3367
saved_LIBS="$LIBS"
3305
3368
LIBS="$LIBS -lresolv"
3306
3369
AC_MSG_CHECKING(for res_query in -lresolv)
3307
3370
AC_LINK_IFELSE([
3371
#include "confdefs.h"
3372
#include <sys/types.h>
3373
#include <netinet/in.h>
3374
#include <arpa/nameser.h>
3308
3376
#include <resolv.h>
3382
3449
AC_DEFINE(KRB5, 1, [Define if you want Kerberos 5 support])
3385
AC_MSG_CHECKING(for krb5-config)
3386
if test -x $KRB5ROOT/bin/krb5-config ; then
3387
KRB5CONF=$KRB5ROOT/bin/krb5-config
3388
AC_MSG_RESULT($KRB5CONF)
3452
AC_PATH_PROG([KRB5CONF],[krb5-config],
3453
[$KRB5ROOT/bin/krb5-config],
3454
[$KRB5ROOT/bin:$PATH])
3455
if test -x $KRB5CONF ; then
3390
3457
AC_MSG_CHECKING(for gssapi support)
3391
3458
if $KRB5CONF | grep gssapi >/dev/null ; then