|
Lines 357-363
AC_CHECK_HEADERS([ \
Link Here
|
| 357 |
sys/sysmacros.h \ |
357 |
sys/sysmacros.h \ |
| 358 |
sys/time.h \ |
358 |
sys/time.h \ |
| 359 |
sys/timers.h \ |
359 |
sys/timers.h \ |
| 360 |
sys/un.h \ |
|
|
| 361 |
time.h \ |
360 |
time.h \ |
| 362 |
tmpdir.h \ |
361 |
tmpdir.h \ |
| 363 |
ttyent.h \ |
362 |
ttyent.h \ |
|
Lines 371-376
AC_CHECK_HEADERS([ \
Link Here
|
| 371 |
vis.h \ |
370 |
vis.h \ |
| 372 |
]) |
371 |
]) |
| 373 |
|
372 |
|
|
|
373 |
# sys/un.h requires sys/socket.h to be included first on Android |
| 374 |
AC_CHECK_HEADERS([sys/un.h], [], [], [ |
| 375 |
#include <sys/socket.h> |
| 376 |
]) |
| 377 |
|
| 374 |
# lastlog.h requires sys/time.h to be included first on Solaris |
378 |
# lastlog.h requires sys/time.h to be included first on Solaris |
| 375 |
AC_CHECK_HEADERS([lastlog.h], [], [], [ |
379 |
AC_CHECK_HEADERS([lastlog.h], [], [], [ |
| 376 |
#ifdef HAVE_SYS_TIME_H |
380 |
#ifdef HAVE_SYS_TIME_H |
|
Lines 667-675
main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
Link Here
|
| 667 |
AC_DEFINE([LINK_OPNOTSUPP_ERRNO], [EPERM], |
671 |
AC_DEFINE([LINK_OPNOTSUPP_ERRNO], [EPERM], |
| 668 |
[Define to whatever link() returns for "not supported" |
672 |
[Define to whatever link() returns for "not supported" |
| 669 |
if it doesn't return EOPNOTSUPP.]) |
673 |
if it doesn't return EOPNOTSUPP.]) |
|
|
674 |
case "$host" in |
| 675 |
*-*-linux-android*) : |
| 676 |
;; |
| 677 |
*) |
| 670 |
AC_DEFINE([_PATH_BTMP], ["/var/log/btmp"], [log for bad login attempts]) |
678 |
AC_DEFINE([_PATH_BTMP], ["/var/log/btmp"], [log for bad login attempts]) |
| 671 |
AC_DEFINE([USE_BTMP]) |
679 |
AC_DEFINE([USE_BTMP]) |
|
|
680 |
;; |
| 681 |
esac |
| 672 |
AC_DEFINE([LINUX_OOM_ADJUST], [1], [Adjust Linux out-of-memory killer]) |
682 |
AC_DEFINE([LINUX_OOM_ADJUST], [1], [Adjust Linux out-of-memory killer]) |
|
|
683 |
case "$host" in |
| 684 |
*-*-linux-android*) |
| 685 |
AC_DEFINE([MISSING_HOWMANY], [1], [Define on *nto-qnx systems]) |
| 686 |
AC_DEFINE([MISSING_FD_MASK], [1], [Define on *nto-qnx systems]) |
| 687 |
SSHDLIBS="$SSHDLIBS -llog" |
| 688 |
;; |
| 689 |
esac |
| 690 |
|
| 673 |
inet6_default_4in6=yes |
691 |
inet6_default_4in6=yes |
| 674 |
case `uname -r` in |
692 |
case `uname -r` in |
| 675 |
1.*|2.0.*) |
693 |
1.*|2.0.*) |
|
Lines 1768-1779
AC_CHECK_FUNC([daemon],
Link Here
|
| 1768 |
[LIBS="$LIBS -lbsd"; AC_DEFINE([HAVE_DAEMON])])] |
1786 |
[LIBS="$LIBS -lbsd"; AC_DEFINE([HAVE_DAEMON])])] |
| 1769 |
) |
1787 |
) |
| 1770 |
|
1788 |
|
|
|
1789 |
case "$host" in |
| 1790 |
*-*-linux-android*) |
| 1791 |
dnl inline function on Android |
| 1792 |
AC_DEFINE([HAVE_GETPAGESIZE], [1], |
| 1793 |
[Define if your libraries define getpagesize()]) |
| 1794 |
;; |
| 1795 |
*) |
| 1771 |
AC_CHECK_FUNC([getpagesize], |
1796 |
AC_CHECK_FUNC([getpagesize], |
| 1772 |
[AC_DEFINE([HAVE_GETPAGESIZE], [1], |
1797 |
[AC_DEFINE([HAVE_GETPAGESIZE], [1], |
| 1773 |
[Define if your libraries define getpagesize()])], |
1798 |
[Define if your libraries define getpagesize()])], |
| 1774 |
[AC_CHECK_LIB([ucb], [getpagesize], |
1799 |
[AC_CHECK_LIB([ucb], [getpagesize], |
| 1775 |
[LIBS="$LIBS -lucb"; AC_DEFINE([HAVE_GETPAGESIZE])])] |
1800 |
[LIBS="$LIBS -lucb"; AC_DEFINE([HAVE_GETPAGESIZE])])] |
| 1776 |
) |
1801 |
) |
|
|
1802 |
;; |
| 1803 |
esac |
| 1777 |
|
1804 |
|
| 1778 |
# Check for broken snprintf |
1805 |
# Check for broken snprintf |
| 1779 |
if test "x$ac_cv_func_snprintf" = "xyes" ; then |
1806 |
if test "x$ac_cv_func_snprintf" = "xyes" ; then |
|
Lines 2931-2938
AC_CHECK_TYPES([fsblkcnt_t, fsfilcnt_t], , , [
Link Here
|
| 2931 |
#endif |
2958 |
#endif |
| 2932 |
]) |
2959 |
]) |
| 2933 |
|
2960 |
|
|
|
2961 |
dnl on Android netinet/in.h define __in_addr_t and arpa/inet.h define in_addr_t |
| 2962 |
AC_CHECK_HEADERS([arpa/inet.h]) |
| 2934 |
AC_CHECK_TYPES([in_addr_t, in_port_t], , , |
2963 |
AC_CHECK_TYPES([in_addr_t, in_port_t], , , |
| 2935 |
[#include <sys/types.h> |
2964 |
[#include <sys/types.h> |
|
|
2965 |
#ifdef HAVE_ARPA_INET_H |
| 2966 |
#include <arpa/inet.h> |
| 2967 |
#endif |
| 2936 |
#include <netinet/in.h>]) |
2968 |
#include <netinet/in.h>]) |
| 2937 |
|
2969 |
|
| 2938 |
AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [ |
2970 |
AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [ |
|
Lines 3186-3191
if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
Link Here
|
| 3186 |
[Fields in struct sockaddr_storage]) |
3218 |
[Fields in struct sockaddr_storage]) |
| 3187 |
fi |
3219 |
fi |
| 3188 |
|
3220 |
|
|
|
3221 |
AC_CHECK_MEMBERS([struct passwd.pw_gecos],,,[#include <pwd.h>]) |
| 3189 |
AC_CACHE_CHECK([for pw_class field in struct passwd], |
3222 |
AC_CACHE_CHECK([for pw_class field in struct passwd], |
| 3190 |
ac_cv_have_pw_class_in_struct_passwd, [ |
3223 |
ac_cv_have_pw_class_in_struct_passwd, [ |
| 3191 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], |
3224 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], |
|
Lines 4280-4294
AC_ARG_ENABLE([utmp],
Link Here
|
| 4280 |
fi |
4313 |
fi |
| 4281 |
] |
4314 |
] |
| 4282 |
) |
4315 |
) |
|
|
4316 |
ssh_disable_utmpx=no |
| 4283 |
AC_ARG_ENABLE([utmpx], |
4317 |
AC_ARG_ENABLE([utmpx], |
| 4284 |
[ --disable-utmpx disable use of utmpx even if detected [no]], |
4318 |
[ --disable-utmpx disable use of utmpx even if detected [no]], |
| 4285 |
[ |
4319 |
[ |
| 4286 |
if test "x$enableval" = "xno" ; then |
4320 |
ssh_disable_utmpx=$enableval |
| 4287 |
AC_DEFINE([DISABLE_UTMPX], [1], |
|
|
| 4288 |
[Define if you don't want to use utmpx]) |
| 4289 |
fi |
| 4290 |
] |
4321 |
] |
| 4291 |
) |
4322 |
) |
|
|
4323 |
if test no = $ac_cv_header_utmpx_h; then |
| 4324 |
dnl Always disable utmpx if missing header utmpx.h (Android) |
| 4325 |
ssh_disable_utmpx=yes |
| 4326 |
fi |
| 4327 |
if test yes = $ssh_disable_utmpx; then |
| 4328 |
AC_DEFINE([DISABLE_UTMPX], [1], |
| 4329 |
[Define if you don't want to use utmpx]) |
| 4330 |
fi |
| 4292 |
AC_ARG_ENABLE([wtmp], |
4331 |
AC_ARG_ENABLE([wtmp], |
| 4293 |
[ --disable-wtmp disable use of wtmp even if detected [no]], |
4332 |
[ --disable-wtmp disable use of wtmp even if detected [no]], |
| 4294 |
[ |
4333 |
[ |
|
Lines 4414-4419
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
Link Here
|
| 4414 |
#ifdef HAVE_PATHS_H |
4453 |
#ifdef HAVE_PATHS_H |
| 4415 |
# include <paths.h> |
4454 |
# include <paths.h> |
| 4416 |
#endif |
4455 |
#endif |
|
|
4456 |
/* Compatibility names for the strings of the canonical file names */ |
| 4457 |
#ifndef UTMP_FILE |
| 4458 |
#define UTMP_FILE _PATH_UTMP |
| 4459 |
#endif |
| 4417 |
]], [[ char *utmp = UTMP_FILE; ]])], |
4460 |
]], [[ char *utmp = UTMP_FILE; ]])], |
| 4418 |
[ AC_MSG_RESULT([yes]) ], |
4461 |
[ AC_MSG_RESULT([yes]) ], |
| 4419 |
[ AC_MSG_RESULT([no]) |
4462 |
[ AC_MSG_RESULT([no]) |
|
Lines 4444-4449
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
Link Here
|
| 4444 |
#ifdef HAVE_PATHS_H |
4487 |
#ifdef HAVE_PATHS_H |
| 4445 |
# include <paths.h> |
4488 |
# include <paths.h> |
| 4446 |
#endif |
4489 |
#endif |
|
|
4490 |
/* Compatibility names for the strings of the canonical file names */ |
| 4491 |
#ifndef WTMP_FILE |
| 4492 |
#define WTMP_FILE _PATH_WTMP |
| 4493 |
#endif |
| 4447 |
]], [[ char *wtmp = WTMP_FILE; ]])], |
4494 |
]], [[ char *wtmp = WTMP_FILE; ]])], |
| 4448 |
[ AC_MSG_RESULT([yes]) ], |
4495 |
[ AC_MSG_RESULT([yes]) ], |
| 4449 |
[ AC_MSG_RESULT([no]) |
4496 |
[ AC_MSG_RESULT([no]) |